Lines Matching defs:label
83 #define FILL_PDU_QUEUE(index, ctype, label, pending) \
86 btif_rc_cb.rc_pdu_info[index].label = label; \
97 send_metamsg_rsp(btif_rc_cb.rc_handle, btif_rc_cb.rc_pdu_info[index].label, \
100 btif_rc_cb.rc_pdu_info[index].label = 0; \
109 UINT8 label;
114 UINT8 label;
134 UINT8 label;
140 UINT8 label;
145 UINT8 label;
232 static void send_reject_response (UINT8 rc_handle, UINT8 label,
235 static void send_metamsg_rsp (UINT8 rc_handle, UINT8 label,
238 static void register_volumechange(UINT8 label);
244 static void release_transaction(UINT8 label);
245 static rc_transaction_t* get_transaction_by_lbl(UINT8 label);
253 UINT8 event, tAVRC_COMMAND *pavrc_cmd, UINT8 label);
269 static bt_status_t register_notification_cmd (UINT8 label, UINT8 event_id, UINT32 event_value);
276 static void btif_rc_upstreams_evt(UINT16 event, tAVRC_COMMAND* p_param, UINT8 ctype, UINT8 label);
278 static void btif_rc_upstreams_rsp_evt(UINT16 event, tAVRC_RESPONSE *pavrc_resp, UINT8 ctype, UINT8 label);
512 BTIF_TRACE_DEBUG("%s Checking for feature flags in btif_rc_handler with label %d",
529 BTIF_TRACE_DEBUG("%s register_volumechange already in progress for label %d",
813 release_transaction(p_remote_rsp->label);
862 release_transaction(p_remote_rsp->label);
884 send_metamsg_rsp(pmeta_msg->rc_handle, pmeta_msg->label, AVRC_RSP_INTERIM, &avrc_rsp);
885 send_metamsg_rsp(pmeta_msg->rc_handle, pmeta_msg->label, AVRC_RSP_CHANGED, &avrc_rsp);
924 transaction=get_transaction_by_lbl(pmeta_msg->label);
931 BTIF_TRACE_DEBUG("%s:Discard vendor dependent rsp. code: %d label:%d.",
932 __FUNCTION__, pmeta_msg->code, pmeta_msg->label);
946 BTIF_TRACE_DEBUG("%s Received vendor command.code,PDU and label: %d, %d,%d",
947 __FUNCTION__, pmeta_msg->code, avrc_command.cmd.pdu, pmeta_msg->label);
954 send_reject_response(pmeta_msg->rc_handle, pmeta_msg->label, avrc_command.pdu, status);
963 BTIF_TRACE_EVENT("%s:New register notification received.event_id:%s,label:0x%x,code:%x",
964 __FUNCTION__,dump_rc_notification_event_id(event_id), pmeta_msg->label,pmeta_msg->code);
966 btif_rc_cb.rc_notif[event_id-1].label = pmeta_msg->label;
983 pmeta_msg->label);
1072 BTIF_TRACE_DEBUG("%s BTA_AV_META_MSG_EVT code:%d label:%d",
1075 p_data->meta_msg.label);
1089 BTIF_TRACE_DEBUG("%s BTA_AV_META_MSG_EVT code:%d label:%d",
1092 p_data->meta_msg.label);
1198 static void send_reject_response (UINT8 rc_handle, UINT8 label, UINT8 pdu, UINT8 status)
1213 BTA_AvMetaRsp(rc_handle, label, ctype, p_msg);
1222 * label Label of the RC response
1229 static void send_metamsg_rsp (UINT8 rc_handle, UINT8 label, tBTA_AV_CODE code,
1240 BTIF_TRACE_EVENT("+%s: rc_handle: %d, label: %d, code: 0x%02x, pdu: %s", __FUNCTION__,
1241 rc_handle, label, code, dump_rc_pdu(pmetamsg_resp->rsp.pdu));
1292 BTA_AvMetaRsp(btif_rc_cb.rc_handle, btif_rc_cb.rc_notif[event_id-1].label,
1320 BTA_AvMetaRsp(rc_handle, label, ctype, p_msg);
1358 static void btif_rc_upstreams_evt(UINT16 event, tAVRC_COMMAND *pavrc_cmd, UINT8 ctype, UINT8 label)
1360 BTIF_TRACE_EVENT("%s pdu: %s handle: 0x%x ctype:%x label:%x", __FUNCTION__,
1361 dump_rc_pdu(pavrc_cmd->pdu), btif_rc_cb.rc_handle, ctype, label);
1367 FILL_PDU_QUEUE(IDX_GET_PLAY_STATUS_RSP, ctype, label, TRUE)
1379 send_reject_response (btif_rc_cb.rc_handle, label, pavrc_cmd->pdu, AVRC_STS_BAD_CMD);
1400 send_reject_response (btif_rc_cb.rc_handle, label, pavrc_cmd->pdu,
1434 FILL_PDU_QUEUE(IDX_GET_ELEMENT_ATTR_RSP, ctype, label, TRUE);
1445 send_reject_response (btif_rc_cb.rc_handle, label, pavrc_cmd->pdu, AVRC_STS_BAD_PARAM);
1464 send_metamsg_rsp(btif_rc_cb.rc_handle, label, ctype, &avrc_rsp);
1470 send_reject_response (btif_rc_cb.rc_handle, label, pavrc_cmd->pdu,
1489 UINT8 label)
1500 pavrc_cmd->volume.volume, label);
1506 &rc_addr, label);
1524 static void btif_rc_upstreams_rsp_evt(UINT16 event, tAVRC_RESPONSE *pavrc_resp, UINT8 ctype, UINT8 label)
1526 BTIF_TRACE_EVENT("%s pdu: %s handle: 0x%x ctype:%x label:%x", __FUNCTION__,
1527 dump_rc_pdu(pavrc_resp->pdu), btif_rc_cb.rc_handle, ctype, label);
1751 send_metamsg_rsp(btif_rc_cb.rc_handle, btif_rc_cb.rc_notif[event_id-1].label,
1801 BTIF_TRACE_DEBUG("%s msgreq being sent out with label %d",
1844 BTIF_TRACE_DEBUG("%s called with label:%d",__FUNCTION__,lbl);
1861 BTIF_TRACE_ERROR("%s transaction not obtained with label: %d",
1889 BTIF_TRACE_DEBUG("%s: code %d,event ID %d,PDU %x,parsing status %d, label:%d",
1891 status, pmeta_msg->label);
1897 && btif_rc_cb.rc_vol_label==pmeta_msg->label)
1904 release_transaction(pmeta_msg->label);
1910 && btif_rc_cb.rc_vol_label!=pmeta_msg->label)
1912 // Just discard the message, if the device sends back with an incorrect label
1913 BTIF_TRACE_DEBUG("%s:Discarding register notfn in rsp.code: %d and label %d",
1914 __FUNCTION__, pmeta_msg->code, pmeta_msg->label);
1935 /* free up the label here */
1936 release_transaction(pmeta_msg->label);
1942 pmeta_msg->label);
1977 ** transaction label and removes the event from list,
1985 UINT8 label;
1988 label = (*(UINT8*)cb_data) & 0xFF;
1990 if (p_event->label == label)
2008 static void rc_notification_interim_timout (UINT8 label)
2013 iterate_supported_event_list_for_timeout, &label);
2056 rc_notification_interim_timout(p_context->rc_status_cmd.label);
2099 release_transaction(p_context->rc_status_cmd.label);
2146 release_transaction(p_context->rc_control_cmd.label);
2263 p_event->label
2265 p_context->rc_status_cmd.label = p_transaction->lbl;
2278 BTIF_TRACE_ERROR("%s Error No more Transaction label %d",
2286 p_context->rc_status_cmd.label = p_txn->lbl;
2299 p_context->rc_control_cmd.label = p_txn->lbl;
3083 static void clear_cmd_timeout (UINT8 label)
3087 p_txn = get_transaction_by_lbl (label);
3090 BTIF_TRACE_ERROR("%s: Error in transaction label lookup", __FUNCTION__);
3133 clear_cmd_timeout (pmeta_msg->label);
3174 release_transaction(pmeta_msg->label);
3203 BTIF_TRACE_DEBUG("%s Received vendor command.code %d, PDU %d label %d",
3204 __FUNCTION__, pmeta_msg->code, avrc_cmd.pdu, pmeta_msg->label);
3211 send_reject_response(pmeta_msg->rc_handle, pmeta_msg->label, avrc_cmd.pdu, status);
3225 btif_rc_ctrl_upstreams_rsp_cmd(avrc_cmd.pdu, &avrc_cmd, pmeta_msg->label);
3313 BTIF_TRACE_DEBUG("%s msgreq being sent out with label %d",
3361 BTIF_TRACE_DEBUG("%s msgreq being sent out with label %d",
3411 BTIF_TRACE_DEBUG("%s msgreq being sent out with label %d",
3465 BTIF_TRACE_DEBUG("%s msgreq being sent out with label %d",
3522 BTIF_TRACE_DEBUG("%s msgreq being sent out with label %d",
3580 BTIF_TRACE_DEBUG("%s msgreq being sent out with label %d",
3637 BTIF_TRACE_DEBUG("%s msgreq being sent out with label %d",
3668 static bt_status_t register_notification_cmd (UINT8 label, UINT8 event_id, UINT32 event_value)
3689 BTIF_TRACE_DEBUG("%s msgreq being sent out with label %d",
3690 __FUNCTION__, label);
3693 BTA_AvVendorCmd(btif_rc_cb.rc_handle, label, AVRC_CMD_NOTIF,
3750 BTIF_TRACE_DEBUG("%s msgreq being sent out with label %d",
3804 BTIF_TRACE_DEBUG("%s msgreq being sent out with label %d",
3836 static bt_status_t set_volume_rsp(bt_bdaddr_t *bd_addr, uint8_t abs_vol, uint8_t label)
3854 BTIF_TRACE_DEBUG("%s msgreq being sent out with label %d",
3858 BTA_AvVendorRsp(btif_rc_cb.rc_handle, label,
3885 uint8_t abs_vol, uint8_t label)
3902 BTIF_TRACE_DEBUG("%s msgreq being sent out with label %d",
3903 __func__, label);
3905 BTA_AvVendorRsp(btif_rc_cb.rc_handle, label,
4099 label structures and mutexes.
4135 ** Description Will return a transaction based on the label. If not inuse
4145 /* Determine if this is a valid label */
4155 BTIF_TRACE_DEBUG("%s: Got transaction.label: %d",__FUNCTION__,lbl);
4183 BTIF_TRACE_DEBUG("%s:Got transaction.label: %d",__FUNCTION__,device.transaction[i].lbl);