Lines Matching refs:p_pkt
41 static tAVRC_STS avrc_bld_get_capability_rsp (tAVRC_GET_CAPS_RSP *p_rsp, BT_HDR *p_pkt)
59 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset;
74 p_data = p_start + p_pkt->len;
102 p_pkt->len = (p_data - p_start);
119 static tAVRC_STS avrc_bld_list_app_settings_attr_rsp (tAVRC_LIST_APP_ATTR_RSP *p_rsp, BT_HDR *p_pkt)
127 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset;
140 p_data = p_start + p_pkt->len;
154 p_pkt->len = (p_data - p_start);
171 BT_HDR *p_pkt)
179 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset;
193 p_data = p_start + p_pkt->len;
205 p_pkt->len = (p_data - p_start);
221 BT_HDR *p_pkt)
235 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset;
248 p_data = p_start + p_pkt->len;
262 p_pkt->len = (p_data - p_start);
278 static tAVRC_STS avrc_bld_set_app_setting_value_rsp (tAVRC_RSP *p_rsp, BT_HDR *p_pkt)
281 UNUSED(p_pkt);
299 static tAVRC_STS avrc_bld_app_setting_text_rsp (tAVRC_GET_APP_ATTR_TXT_RSP *p_rsp, BT_HDR *p_pkt)
313 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset;
315 len_left = GKI_get_buf_size(p_pkt) - BT_HDR_SIZE - p_pkt->offset - p_pkt->len;
327 p_data = p_start + p_pkt->len;
354 p_pkt->len = (p_data - p_start);
371 BT_HDR *p_pkt)
374 return avrc_bld_app_setting_text_rsp(p_rsp, p_pkt);
389 BT_HDR *p_pkt)
392 return avrc_bld_app_setting_text_rsp(p_rsp, p_pkt);
406 static tAVRC_STS avrc_bld_inform_charset_rsp (tAVRC_RSP *p_rsp, BT_HDR *p_pkt)
409 UNUSED(p_pkt);
427 static tAVRC_STS avrc_bld_inform_battery_status_rsp (tAVRC_RSP *p_rsp, BT_HDR *p_pkt)
430 UNUSED(p_pkt);
448 static tAVRC_STS avrc_bld_get_elem_attrs_rsp (tAVRC_GET_ELEM_ATTRS_RSP *p_rsp, BT_HDR *p_pkt)
462 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset;
475 p_data = p_start + p_pkt->len;
497 p_pkt->len = (p_data - p_start);
512 static tAVRC_STS avrc_bld_get_play_status_rsp (tAVRC_GET_PLAY_STATUS_RSP *p_rsp, BT_HDR *p_pkt)
517 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset;
525 p_pkt->len = (p_data - p_start);
540 static tAVRC_STS avrc_bld_notify_rsp (tAVRC_REG_NOTIF_RSP *p_rsp, BT_HDR *p_pkt)
550 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset;
648 p_pkt->len = (p_data - p_start);
664 static tAVRC_STS avrc_bld_next_rsp (tAVRC_RSP *p_rsp, BT_HDR *p_pkt)
667 UNUSED(p_pkt);
685 tAVRC_STS avrc_bld_group_navigation_rsp (UINT16 navi_id, BT_HDR *p_pkt)
696 p_data = (UINT8 *)(p_pkt+1) + p_pkt->offset;
698 p_pkt->len = 2;
712 static tAVRC_STS avrc_bld_rejected_rsp( tAVRC_RSP *p_rsp, BT_HDR *p_pkt )
718 p_start = (UINT8 *)(p_pkt + 1) + p_pkt->offset;
724 p_pkt->len = p_data - p_start;
742 BT_HDR *p_pkt=NULL;
768 p_pkt = (BT_HDR *)GKI_getbuf(len);
769 if (p_pkt)
773 p_pkt->layer_specific = chnl;
774 p_pkt->event = opcode;
775 p_pkt->offset = offset;
776 p_data = (UINT8 *)(p_pkt + 1) + p_pkt->offset;
794 p_pkt->len = (p_data - p_start);
797 return p_pkt;
814 BT_HDR *p_pkt;
835 p_pkt = *pp_pkt;
840 return( avrc_bld_rejected_rsp(&p_rsp->rsp, p_pkt) );
847 status = avrc_bld_group_navigation_rsp(p_rsp->pdu, p_pkt);
851 status = avrc_bld_get_capability_rsp(&p_rsp->get_caps, p_pkt);
855 status = avrc_bld_list_app_settings_attr_rsp(&p_rsp->list_app_attr, p_pkt);
859 status = avrc_bld_list_app_settings_values_rsp(&p_rsp->list_app_values, p_pkt);
863 status = avrc_bld_get_cur_app_setting_value_rsp(&p_rsp->get_cur_app_val, p_pkt);
867 status = avrc_bld_set_app_setting_value_rsp(&p_rsp->set_app_val, p_pkt);
871 status = avrc_bld_get_app_setting_attr_text_rsp(&p_rsp->get_app_attr_txt, p_pkt);
875 status = avrc_bld_get_app_setting_value_text_rsp(&p_rsp->get_app_val_txt, p_pkt);
879 status = avrc_bld_inform_charset_rsp(&p_rsp->inform_charset, p_pkt);
883 status = avrc_bld_inform_battery_status_rsp(&p_rsp->inform_battery_status, p_pkt);
887 status = avrc_bld_get_elem_attrs_rsp(&p_rsp->get_elem_attrs, p_pkt);
891 status = avrc_bld_get_play_status_rsp(&p_rsp->get_play_status, p_pkt);
895 status = avrc_bld_notify_rsp(&p_rsp->reg_notif, p_pkt);
899 status = avrc_bld_next_rsp(&p_rsp->continu, p_pkt);
903 status = avrc_bld_next_rsp(&p_rsp->abort, p_pkt);
909 GKI_freebuf(p_pkt);