Lines Matching refs:p_req
47 uint16_t param_len, uint8_t* p_req,
51 uint16_t param_len, uint8_t* p_req,
55 uint16_t param_len, uint8_t* p_req,
108 uint8_t* p_req = (uint8_t*)(p_msg + 1) + p_msg->offset; in sdp_server_handle_client_req() local
109 uint8_t* p_req_end = p_req + p_msg->len; in sdp_server_handle_client_req()
117 if (p_req + sizeof(pdu_id) + sizeof(trans_num) > p_req_end) { in sdp_server_handle_client_req()
125 pdu_id = *p_req++; in sdp_server_handle_client_req()
128 BE_STREAM_TO_UINT16(trans_num, p_req); in sdp_server_handle_client_req()
130 if (p_req + sizeof(param_len) > p_req_end) { in sdp_server_handle_client_req()
136 BE_STREAM_TO_UINT16(param_len, p_req); in sdp_server_handle_client_req()
138 if ((p_req + param_len) != p_req_end) { in sdp_server_handle_client_req()
146 process_service_search(p_ccb, trans_num, param_len, p_req, p_req_end); in sdp_server_handle_client_req()
150 process_service_attr_req(p_ccb, trans_num, param_len, p_req, p_req_end); in sdp_server_handle_client_req()
154 process_service_search_attr_req(p_ccb, trans_num, param_len, p_req, in sdp_server_handle_client_req()
178 uint16_t param_len, uint8_t* p_req, in process_service_search() argument
188 p_req = sdpu_extract_uid_seq(p_req, param_len, &uid_seq); in process_service_search()
190 if ((!p_req) || (!uid_seq.num_uids)) { in process_service_search()
197 if (p_req + sizeof(max_replies) + sizeof(uint8_t) > p_req_end) { in process_service_search()
203 BE_STREAM_TO_UINT16(max_replies, p_req); in process_service_search()
218 if (*p_req) { in process_service_search()
219 if (*p_req++ != SDP_CONTINUATION_LEN || in process_service_search()
220 (p_req + sizeof(cont_offset) > p_req_end)) { in process_service_search()
225 BE_STREAM_TO_UINT16(cont_offset, p_req); in process_service_search()
306 uint16_t param_len, uint8_t* p_req, in process_service_attr_req() argument
319 if (p_req + sizeof(rec_handle) + sizeof(max_list_len) > p_req_end) { in process_service_attr_req()
327 BE_STREAM_TO_UINT32(rec_handle, p_req); in process_service_attr_req()
331 BE_STREAM_TO_UINT16(max_list_len, p_req); in process_service_attr_req()
337 p_req = sdpu_extract_attr_seq(p_req, param_len, &attr_seq); in process_service_attr_req()
339 if ((!p_req) || (!attr_seq.num_attr) || in process_service_attr_req()
340 (p_req + sizeof(uint8_t) > p_req_end)) { in process_service_attr_req()
367 if (*p_req) { in process_service_attr_req()
368 if (*p_req++ != SDP_CONTINUATION_LEN || in process_service_attr_req()
369 (p_req + sizeof(cont_offset) > p_req_end)) { in process_service_attr_req()
374 BE_STREAM_TO_UINT16(cont_offset, p_req); in process_service_attr_req()
540 uint16_t param_len, uint8_t* p_req, in process_service_search_attr_req() argument
556 p_req = sdpu_extract_uid_seq(p_req, param_len, &uid_seq); in process_service_search_attr_req()
558 if ((!p_req) || (!uid_seq.num_uids) || in process_service_search_attr_req()
559 (p_req + sizeof(uint16_t) > p_req_end)) { in process_service_search_attr_req()
566 BE_STREAM_TO_UINT16(max_list_len, p_req); in process_service_search_attr_req()
571 param_len = static_cast<uint16_t>(p_req_end - p_req); in process_service_search_attr_req()
572 p_req = sdpu_extract_attr_seq(p_req, param_len, &attr_seq); in process_service_search_attr_req()
574 if ((!p_req) || (!attr_seq.num_attr) || in process_service_search_attr_req()
575 (p_req + sizeof(uint8_t) > p_req_end)) { in process_service_search_attr_req()
594 if (*p_req) { in process_service_search_attr_req()
595 if (*p_req++ != SDP_CONTINUATION_LEN || in process_service_search_attr_req()
596 (p_req + sizeof(uint16_t) > p_req_end)) { in process_service_search_attr_req()
601 BE_STREAM_TO_UINT16(cont_offset, p_req); in process_service_search_attr_req()