Lines Matching refs:p_rsp
179 UINT8 *p_rsp, *p_rsp_start, *p_rsp_param_len;
264 p_rsp = p_rsp_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET;
267 UINT8_TO_BE_STREAM (p_rsp, SDP_PDU_SERVICE_SEARCH_RSP);
268 UINT16_TO_BE_STREAM (p_rsp, trans_num);
271 p_rsp_param_len = p_rsp;
272 p_rsp += 2;
275 UINT16_TO_BE_STREAM (p_rsp, num_rsp_handles);
276 UINT16_TO_BE_STREAM (p_rsp, cur_handles);
282 UINT32_TO_BE_STREAM (p_rsp, rsp_handles[xx]);
286 UINT8_TO_BE_STREAM (p_rsp, SDP_CONTINUATION_LEN);
287 UINT16_TO_BE_STREAM (p_rsp, p_ccb->cont_offset);
290 UINT8_TO_BE_STREAM (p_rsp, 0);
293 rsp_param_len = p_rsp - p_rsp_param_len - 2;
297 p_buf->len = p_rsp - p_rsp_start;
323 UINT8 *p_rsp, *p_rsp_start, *p_rsp_param_len;
389 p_rsp = &p_ccb->rsp_list[0];
412 p_rsp = &p_ccb->rsp_list[3]; /* Leave space for data elem descr */
428 rem_len = max_list_len - (INT16) (p_rsp - &p_ccb->rsp_list[0]);
442 p_rsp = sdpu_build_partial_attrib_entry (p_rsp, p_attr, rem_len,
461 p_rsp = sdpu_build_partial_attrib_entry (p_rsp, p_attr, (UINT16)rem_len,
469 p_rsp = sdpu_build_attrib_entry (p_rsp, p_attr);
481 /* If all the attributes have been accomodated in p_rsp,
486 len_to_send = (UINT16) (p_rsp - &p_ccb->rsp_list[0]);
518 p_rsp = p_rsp_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET;
521 UINT8_TO_BE_STREAM (p_rsp, SDP_PDU_SERVICE_ATTR_RSP);
522 UINT16_TO_BE_STREAM (p_rsp, trans_num);
525 p_rsp_param_len = p_rsp;
526 p_rsp += 2;
528 UINT16_TO_BE_STREAM (p_rsp, len_to_send);
530 memcpy (p_rsp, &p_ccb->rsp_list[cont_offset], len_to_send);
531 p_rsp += len_to_send;
540 UINT8_TO_BE_STREAM (p_rsp, SDP_CONTINUATION_LEN);
541 UINT16_TO_BE_STREAM (p_rsp, p_ccb->cont_offset);
544 UINT8_TO_BE_STREAM (p_rsp, 0);
547 rsp_param_len = p_rsp - p_rsp_param_len - 2;
551 p_buf->len = p_rsp - p_rsp_start;
579 UINT8 *p_rsp, *p_rsp_start, *p_rsp_param_len;
639 p_rsp = &p_ccb->rsp_list[0];
662 p_rsp = &p_ccb->rsp_list[3]; /* Leave space for data elem descr */
675 p_seq_start = p_rsp;
679 rem_len = max_list_len - (INT16) (p_rsp - &p_ccb->rsp_list[0]);
687 p_rsp += 3;
698 rem_len = max_list_len - (INT16) (p_rsp - &p_ccb->rsp_list[0]);
713 p_rsp = sdpu_build_partial_attrib_entry (p_rsp, p_attr, rem_len,
735 p_rsp = sdpu_build_partial_attrib_entry (p_rsp, p_attr, (UINT16)rem_len,
744 p_rsp = sdpu_build_attrib_entry (p_rsp, p_attr);
770 p_rsp = p_seq_start;
786 len_to_send = (UINT16) (p_rsp - &p_ccb->rsp_list[0]);
820 p_rsp = p_rsp_start = (UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET;
823 UINT8_TO_BE_STREAM (p_rsp, SDP_PDU_SERVICE_SEARCH_ATTR_RSP);
824 UINT16_TO_BE_STREAM (p_rsp, trans_num);
827 p_rsp_param_len = p_rsp;
828 p_rsp += 2;
831 UINT16_TO_BE_STREAM (p_rsp, len_to_send);
834 memcpy (p_rsp, &p_ccb->rsp_list[cont_offset], len_to_send);
835 p_rsp += len_to_send;
844 UINT8_TO_BE_STREAM (p_rsp, SDP_CONTINUATION_LEN);
845 UINT16_TO_BE_STREAM (p_rsp, p_ccb->cont_offset);
848 UINT8_TO_BE_STREAM (p_rsp, 0);
851 rsp_param_len = p_rsp - p_rsp_param_len - 2;
855 p_buf->len = p_rsp - p_rsp_start;