Lines Matching refs:p_rsp
182 uint8_t *p_rsp, *p_rsp_start, *p_rsp_param_len; in process_service_search() local
256 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_search()
259 UINT8_TO_BE_STREAM(p_rsp, SDP_PDU_SERVICE_SEARCH_RSP); in process_service_search()
260 UINT16_TO_BE_STREAM(p_rsp, trans_num); in process_service_search()
263 p_rsp_param_len = p_rsp; in process_service_search()
264 p_rsp += 2; in process_service_search()
267 UINT16_TO_BE_STREAM(p_rsp, num_rsp_handles); in process_service_search()
268 UINT16_TO_BE_STREAM(p_rsp, cur_handles); in process_service_search()
275 UINT32_TO_BE_STREAM(p_rsp, rsp_handles[xx]); in process_service_search()
278 UINT8_TO_BE_STREAM(p_rsp, SDP_CONTINUATION_LEN); in process_service_search()
279 UINT16_TO_BE_STREAM(p_rsp, p_ccb->cont_offset); in process_service_search()
281 UINT8_TO_BE_STREAM(p_rsp, 0); in process_service_search()
284 rsp_param_len = p_rsp - p_rsp_param_len - 2; in process_service_search()
288 p_buf->len = p_rsp - p_rsp_start; in process_service_search()
311 uint8_t *p_rsp, *p_rsp_start, *p_rsp_param_len; in process_service_attr_req() local
384 p_rsp = &p_ccb->rsp_list[0]; in process_service_attr_req()
389 p_rsp = &p_ccb->rsp_list[3]; /* Leave space for data elem descr */ in process_service_attr_req()
404 rem_len = max_list_len - (int16_t)(p_rsp - &p_ccb->rsp_list[0]); in process_service_attr_req()
423 p_rsp = sdpu_build_partial_attrib_entry(p_rsp, p_attr, rem_len, in process_service_attr_req()
442 p_rsp = sdpu_build_partial_attrib_entry( in process_service_attr_req()
443 p_rsp, p_attr, (uint16_t)rem_len, &p_ccb->cont_info.attr_offset); in process_service_attr_req()
449 p_rsp = sdpu_build_attrib_entry(p_rsp, p_attr); in process_service_attr_req()
464 len_to_send = (uint16_t)(p_rsp - &p_ccb->rsp_list[0]); in process_service_attr_req()
490 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_attr_req()
493 UINT8_TO_BE_STREAM(p_rsp, SDP_PDU_SERVICE_ATTR_RSP); in process_service_attr_req()
494 UINT16_TO_BE_STREAM(p_rsp, trans_num); in process_service_attr_req()
497 p_rsp_param_len = p_rsp; in process_service_attr_req()
498 p_rsp += 2; in process_service_attr_req()
500 UINT16_TO_BE_STREAM(p_rsp, len_to_send); in process_service_attr_req()
502 memcpy(p_rsp, &p_ccb->rsp_list[cont_offset], len_to_send); in process_service_attr_req()
503 p_rsp += len_to_send; in process_service_attr_req()
511 UINT8_TO_BE_STREAM(p_rsp, SDP_CONTINUATION_LEN); in process_service_attr_req()
512 UINT16_TO_BE_STREAM(p_rsp, p_ccb->cont_offset); in process_service_attr_req()
514 UINT8_TO_BE_STREAM(p_rsp, 0); in process_service_attr_req()
517 rsp_param_len = p_rsp - p_rsp_param_len - 2; in process_service_attr_req()
521 p_buf->len = p_rsp - p_rsp_start; in process_service_attr_req()
546 uint8_t *p_rsp, *p_rsp_start, *p_rsp_param_len; in process_service_search_attr_req() local
611 p_rsp = &p_ccb->rsp_list[0]; in process_service_search_attr_req()
616 p_rsp = &p_ccb->rsp_list[3]; /* Leave space for data elem descr */ in process_service_search_attr_req()
629 p_seq_start = p_rsp; in process_service_search_attr_req()
633 rem_len = max_list_len - (int16_t)(p_rsp - &p_ccb->rsp_list[0]); in process_service_search_attr_req()
640 p_rsp += 3; in process_service_search_attr_req()
650 rem_len = max_list_len - (int16_t)(p_rsp - &p_ccb->rsp_list[0]); in process_service_search_attr_req()
670 p_rsp = sdpu_build_partial_attrib_entry( in process_service_search_attr_req()
671 p_rsp, p_attr, rem_len, &p_ccb->cont_info.attr_offset); in process_service_search_attr_req()
690 p_rsp = sdpu_build_partial_attrib_entry( in process_service_search_attr_req()
691 p_rsp, p_attr, (uint16_t)rem_len, &p_ccb->cont_info.attr_offset); in process_service_search_attr_req()
698 p_rsp = sdpu_build_attrib_entry(p_rsp, p_attr); in process_service_search_attr_req()
721 p_rsp = p_seq_start; in process_service_search_attr_req()
736 len_to_send = (uint16_t)(p_rsp - &p_ccb->rsp_list[0]); in process_service_search_attr_req()
790 p_rsp = p_rsp_start = (uint8_t*)(p_buf + 1) + L2CAP_MIN_OFFSET; in process_service_search_attr_req()
793 UINT8_TO_BE_STREAM(p_rsp, SDP_PDU_SERVICE_SEARCH_ATTR_RSP); in process_service_search_attr_req()
794 UINT16_TO_BE_STREAM(p_rsp, trans_num); in process_service_search_attr_req()
797 p_rsp_param_len = p_rsp; in process_service_search_attr_req()
798 p_rsp += 2; in process_service_search_attr_req()
801 UINT16_TO_BE_STREAM(p_rsp, len_to_send); in process_service_search_attr_req()
804 memcpy(p_rsp, &p_ccb->rsp_list[cont_offset], len_to_send); in process_service_search_attr_req()
805 p_rsp += len_to_send; in process_service_search_attr_req()
813 UINT8_TO_BE_STREAM(p_rsp, SDP_CONTINUATION_LEN); in process_service_search_attr_req()
814 UINT16_TO_BE_STREAM(p_rsp, p_ccb->cont_offset); in process_service_search_attr_req()
816 UINT8_TO_BE_STREAM(p_rsp, 0); in process_service_search_attr_req()
819 rsp_param_len = p_rsp - p_rsp_param_len - 2; in process_service_search_attr_req()
823 p_buf->len = p_rsp - p_rsp_start; in process_service_search_attr_req()