• Home
  • Raw
  • Download

Lines Matching refs:p_pkt

39 static tAVRC_STS avrc_bld_next_cmd(tAVRC_NEXT_CMD* p_cmd, BT_HDR* p_pkt) {  in avrc_bld_next_cmd()  argument
45 p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_next_cmd()
51 p_pkt->len = (p_data - p_start); in avrc_bld_next_cmd()
72 BT_HDR* p_pkt) { in avrc_bld_set_abs_volume_cmd() argument
77 p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_set_abs_volume_cmd()
82 p_pkt->len = (p_data - p_start); in avrc_bld_set_abs_volume_cmd()
96 static tAVRC_STS avrc_bld_register_notifn(BT_HDR* p_pkt, uint8_t event_id, in avrc_bld_register_notifn() argument
103 p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_register_notifn()
109 p_pkt->len = (p_data - p_start); in avrc_bld_register_notifn()
124 static tAVRC_STS avrc_bld_get_capability_cmd(BT_HDR* p_pkt, uint8_t cap_id) { in avrc_bld_get_capability_cmd() argument
126 uint8_t* p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_get_capability_cmd()
131 p_pkt->len = (p_data - p_start); in avrc_bld_get_capability_cmd()
145 static tAVRC_STS avrc_bld_list_player_app_attr_cmd(BT_HDR* p_pkt) { in avrc_bld_list_player_app_attr_cmd() argument
147 uint8_t* p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_list_player_app_attr_cmd()
151 p_pkt->len = (p_data - p_start); in avrc_bld_list_player_app_attr_cmd()
165 static tAVRC_STS avrc_bld_list_player_app_values_cmd(BT_HDR* p_pkt, in avrc_bld_list_player_app_values_cmd() argument
168 uint8_t* p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_list_player_app_values_cmd()
173 p_pkt->len = (p_data - p_start); in avrc_bld_list_player_app_values_cmd()
189 BT_HDR* p_pkt, uint8_t num_attrib_id, uint8_t* attrib_ids) { in avrc_bld_get_current_player_app_values_cmd() argument
191 uint8_t* p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_get_current_player_app_values_cmd()
201 p_pkt->len = (p_data - p_start); in avrc_bld_get_current_player_app_values_cmd()
217 BT_HDR* p_pkt, uint8_t num_attrib_id, tAVRC_APP_SETTING* p_val) { in avrc_bld_set_current_player_app_values_cmd() argument
219 uint8_t* p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_set_current_player_app_values_cmd()
232 p_pkt->len = (p_data - p_start); in avrc_bld_set_current_player_app_values_cmd()
248 BT_HDR* p_pkt, tAVRC_GET_APP_ATTR_TXT_CMD* p_cmd) { in avrc_bld_get_player_app_setting_attr_text_cmd() argument
251 uint8_t* p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_get_player_app_setting_attr_text_cmd()
261 p_pkt->len = (p_data - p_start); in avrc_bld_get_player_app_setting_attr_text_cmd()
277 BT_HDR* p_pkt, tAVRC_GET_APP_VAL_TXT_CMD* p_cmd) { in avrc_bld_get_player_app_setting_value_text_cmd() argument
280 uint8_t* p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_get_player_app_setting_value_text_cmd()
290 p_pkt->len = (p_data - p_start); in avrc_bld_get_player_app_setting_value_text_cmd()
304 static tAVRC_STS avrc_bld_get_element_attr_cmd(BT_HDR* p_pkt, in avrc_bld_get_element_attr_cmd() argument
308 uint8_t* p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_get_element_attr_cmd()
323 p_pkt->len = (p_data - p_start); in avrc_bld_get_element_attr_cmd()
337 static tAVRC_STS avrc_bld_play_item_cmd(BT_HDR* p_pkt, uint8_t scope, in avrc_bld_play_item_cmd() argument
340 uint8_t* p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_play_item_cmd()
350 p_pkt->len = (p_data - p_start); in avrc_bld_play_item_cmd()
364 static tAVRC_STS avrc_bld_get_play_status_cmd(BT_HDR* p_pkt) { in avrc_bld_get_play_status_cmd() argument
366 uint8_t* p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_get_play_status_cmd()
370 p_pkt->len = (p_data - p_start); in avrc_bld_get_play_status_cmd()
384 static tAVRC_STS avrc_bld_get_folder_items_cmd(BT_HDR* p_pkt, in avrc_bld_get_folder_items_cmd() argument
389 uint8_t* p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_get_folder_items_cmd()
402 p_pkt->len = (p_data - p_start); in avrc_bld_get_folder_items_cmd()
416 static tAVRC_STS avrc_bld_change_folder_cmd(BT_HDR* p_pkt, in avrc_bld_change_folder_cmd() argument
419 uint8_t* p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_change_folder_cmd()
431 p_pkt->len = (p_data - p_start); in avrc_bld_change_folder_cmd()
446 BT_HDR* p_pkt, const tAVRC_SET_BR_PLAYER_CMD* cmd) { in avrc_bld_set_browsed_player_cmd() argument
448 uint8_t* p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_set_browsed_player_cmd()
458 p_pkt->len = (p_data - p_start); in avrc_bld_set_browsed_player_cmd()
473 BT_HDR* p_pkt, const tAVRC_SET_ADDR_PLAYER_CMD* cmd) { in avrc_bld_set_addressed_player_cmd() argument
476 uint8_t* p_start = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_set_addressed_player_cmd()
484 p_pkt->len = (p_data - p_start); in avrc_bld_set_addressed_player_cmd()
522 BT_HDR* p_pkt = (BT_HDR*)osi_malloc(AVRC_META_CMD_BUF_SIZE); in avrc_bld_init_cmd_buffer() local
525 p_pkt->layer_specific = chnl; in avrc_bld_init_cmd_buffer()
526 p_pkt->event = opcode; in avrc_bld_init_cmd_buffer()
527 p_pkt->offset = offset; in avrc_bld_init_cmd_buffer()
528 p_data = (uint8_t*)(p_pkt + 1) + p_pkt->offset; in avrc_bld_init_cmd_buffer()
544 p_pkt->len = (p_data - p_start); in avrc_bld_init_cmd_buffer()
547 return p_pkt; in avrc_bld_init_cmd_buffer()
582 BT_HDR* p_pkt = *pp_pkt; in AVRC_BldCommand() local
586 status = avrc_bld_next_cmd(&p_cmd->continu, p_pkt); in AVRC_BldCommand()
590 status = avrc_bld_next_cmd(&p_cmd->abort, p_pkt); in AVRC_BldCommand()
594 status = avrc_bld_set_abs_volume_cmd(&p_cmd->volume, p_pkt); in AVRC_BldCommand()
599 status = avrc_bld_register_notifn(p_pkt, p_cmd->reg_notif.event_id, in AVRC_BldCommand()
605 avrc_bld_get_capability_cmd(p_pkt, p_cmd->get_caps.capability_id); in AVRC_BldCommand()
608 status = avrc_bld_list_player_app_attr_cmd(p_pkt); in AVRC_BldCommand()
612 p_pkt, p_cmd->list_app_values.attr_id); in AVRC_BldCommand()
616 p_pkt, p_cmd->get_cur_app_val.num_attr, p_cmd->get_cur_app_val.attrs); in AVRC_BldCommand()
620 p_pkt, p_cmd->set_app_val.num_val, p_cmd->set_app_val.p_vals); in AVRC_BldCommand()
623 avrc_bld_get_player_app_setting_attr_text_cmd(p_pkt, in AVRC_BldCommand()
627 avrc_bld_get_player_app_setting_value_text_cmd(p_pkt, in AVRC_BldCommand()
632 p_pkt, p_cmd->get_elem_attrs.num_attr, p_cmd->get_elem_attrs.attrs); in AVRC_BldCommand()
635 status = avrc_bld_play_item_cmd(p_pkt, p_cmd->play_item.scope, in AVRC_BldCommand()
640 status = avrc_bld_get_play_status_cmd(p_pkt); in AVRC_BldCommand()
643 status = avrc_bld_get_folder_items_cmd(p_pkt, &(p_cmd->get_items)); in AVRC_BldCommand()
646 status = avrc_bld_change_folder_cmd(p_pkt, &(p_cmd->chg_path)); in AVRC_BldCommand()
649 status = avrc_bld_set_browsed_player_cmd(p_pkt, &(p_cmd->br_player)); in AVRC_BldCommand()
652 status = avrc_bld_set_addressed_player_cmd(p_pkt, &(p_cmd->addr_player)); in AVRC_BldCommand()
657 osi_free(p_pkt); in AVRC_BldCommand()