Lines Matching refs:handle

89 static void bta_ag_port_cback(UINT32 code, UINT16 port_handle, UINT16 handle)
95 if ((p_scb = bta_ag_scb_by_idx(handle)) != NULL)
97 /* ignore port events for port handles other than connected handle */
100 APPL_TRACE_DEBUG("ag_port_cback ignoring handle:%d conn_handle = %d other handle = %d",
101 port_handle, p_scb->conn_handle, handle);
108 p_buf->layer_specific = handle;
124 static void bta_ag_mgmt_cback(UINT32 code, UINT16 port_handle, UINT16 handle)
132 APPL_TRACE_DEBUG("ag_mgmt_cback : code = %d, port_handle = %d, handle = %d",
133 code, port_handle, handle);
135 if ((p_scb = bta_ag_scb_by_idx(handle)) != NULL)
137 /* ignore close event for port handles other than connected handle */
140 APPL_TRACE_DEBUG("ag_mgmt_cback ignoring handle:%d", port_handle);
162 APPL_TRACE_ERROR ("bta_ag_mgmt_cback: PORT_SUCCESS, ignoring handle = %d", port_handle);
181 p_buf->hdr.layer_specific = handle;
198 static int bta_ag_data_cback(UINT16 port_handle, void *p_data, UINT16 len, UINT16 handle)
203 bta_ag_co_tx_write(handle, (UINT8 *) p_data, len);
219 void bta_ag_mgmt_cback_1(UINT32 code, UINT16 handle) {bta_ag_mgmt_cback(code, handle, 1);}
220 void bta_ag_mgmt_cback_2(UINT32 code, UINT16 handle) {bta_ag_mgmt_cback(code, handle, 2);}
221 void bta_ag_mgmt_cback_3(UINT32 code, UINT16 handle) {bta_ag_mgmt_cback(code, handle, 3);}
222 void bta_ag_port_cback_1(UINT32 code, UINT16 handle) {bta_ag_port_cback(code, handle, 1);}
223 void bta_ag_port_cback_2(UINT32 code, UINT16 handle) {bta_ag_port_cback(code, handle, 2);}
224 void bta_ag_port_cback_3(UINT32 code, UINT16 handle) {bta_ag_port_cback(code, handle, 3);}
260 void bta_ag_setup_port(tBTA_AG_SCB *p_scb, UINT16 handle)
267 PORT_SetDataCallback(handle, bta_ag_data_cback_tbl[i]);
270 PORT_SetEventMask(handle, BTA_AG_PORT_EV_MASK);
271 PORT_SetEventCallback(handle, bta_ag_port_cback_tbl[i]);
308 /* TODO: CR#137125 to handle to error properly */