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()
127 pdu_id = *p_req++; in sdp_server_handle_client_req()
130 BE_STREAM_TO_UINT16(trans_num, p_req); in sdp_server_handle_client_req()
132 if (p_req + sizeof(param_len) > p_req_end) { in sdp_server_handle_client_req()
140 BE_STREAM_TO_UINT16(param_len, p_req); in sdp_server_handle_client_req()
142 if ((p_req + param_len) != p_req_end) { in sdp_server_handle_client_req()
150 process_service_search(p_ccb, trans_num, param_len, p_req, p_req_end); in sdp_server_handle_client_req()
154 process_service_attr_req(p_ccb, trans_num, param_len, p_req, p_req_end); in sdp_server_handle_client_req()
158 process_service_search_attr_req(p_ccb, trans_num, param_len, p_req, in sdp_server_handle_client_req()
182 uint16_t param_len, uint8_t* p_req, in process_service_search() argument
192 p_req = sdpu_extract_uid_seq(p_req, param_len, &uid_seq); in process_service_search()
194 if ((!p_req) || (!uid_seq.num_uids)) { in process_service_search()
201 if (p_req + sizeof(max_replies) + sizeof(uint8_t) > p_req_end) { in process_service_search()
207 BE_STREAM_TO_UINT16(max_replies, p_req); in process_service_search()
222 if (*p_req) { in process_service_search()
223 if (*p_req++ != SDP_CONTINUATION_LEN || in process_service_search()
224 (p_req + sizeof(cont_offset) > p_req_end)) { in process_service_search()
229 BE_STREAM_TO_UINT16(cont_offset, p_req); in process_service_search()
310 uint16_t param_len, uint8_t* p_req, in process_service_attr_req() argument
323 if (p_req + sizeof(rec_handle) + sizeof(max_list_len) > p_req_end) { in process_service_attr_req()
331 BE_STREAM_TO_UINT32(rec_handle, p_req); in process_service_attr_req()
335 BE_STREAM_TO_UINT16(max_list_len, p_req); in process_service_attr_req()
341 p_req = sdpu_extract_attr_seq(p_req, param_len, &attr_seq); in process_service_attr_req()
343 if ((!p_req) || (!attr_seq.num_attr) || in process_service_attr_req()
344 (p_req + sizeof(uint8_t) > p_req_end)) { in process_service_attr_req()
371 if (*p_req) { in process_service_attr_req()
372 if (*p_req++ != SDP_CONTINUATION_LEN || in process_service_attr_req()
373 (p_req + sizeof(cont_offset) > p_req_end)) { in process_service_attr_req()
378 BE_STREAM_TO_UINT16(cont_offset, p_req); in process_service_attr_req()
544 uint16_t param_len, uint8_t* p_req, in process_service_search_attr_req() argument
561 p_req = sdpu_extract_uid_seq(p_req, param_len, &uid_seq); in process_service_search_attr_req()
563 if ((!p_req) || (!uid_seq.num_uids) || in process_service_search_attr_req()
564 (p_req + sizeof(uint16_t) > p_req_end)) { in process_service_search_attr_req()
571 BE_STREAM_TO_UINT16(max_list_len, p_req); in process_service_search_attr_req()
576 param_len = static_cast<uint16_t>(p_req_end - p_req); in process_service_search_attr_req()
577 p_req = sdpu_extract_attr_seq(p_req, param_len, &attr_seq); in process_service_search_attr_req()
579 if ((!p_req) || (!attr_seq.num_attr) || in process_service_search_attr_req()
580 (p_req + sizeof(uint8_t) > p_req_end)) { in process_service_search_attr_req()
599 if (*p_req) { in process_service_search_attr_req()
600 if (*p_req++ != SDP_CONTINUATION_LEN || in process_service_search_attr_req()
601 (p_req + sizeof(uint16_t) > p_req_end)) { in process_service_search_attr_req()
606 BE_STREAM_TO_UINT16(cont_offset, p_req); in process_service_search_attr_req()