Home | History | Annotate | Download | only in ag

Lines Matching full:handle

88 static void bta_ag_port_cback(UINT32 code, UINT16 port_handle, UINT16 handle)
94 if ((p_scb = bta_ag_scb_by_idx(handle)) != NULL)
96 /* ignore port events for port handles other than connected handle */
99 APPL_TRACE_DEBUG("ag_port_cback ignoring handle:%d conn_handle = %d other handle = %d",
100 port_handle, p_scb->conn_handle, handle);
107 p_buf->layer_specific = handle;
123 static void bta_ag_mgmt_cback(UINT32 code, UINT16 port_handle, UINT16 handle)
131 APPL_TRACE_DEBUG("ag_mgmt_cback : code = %d, port_handle = %d, handle = %d",
132 code, port_handle, handle);
134 if ((p_scb = bta_ag_scb_by_idx(handle)) != NULL)
136 /* ignore close event for port handles other than connected handle */
139 APPL_TRACE_DEBUG("ag_mgmt_cback ignoring handle:%d", port_handle);
161 APPL_TRACE_ERROR ("bta_ag_mgmt_cback: PORT_SUCCESS, ignoring handle = %d", port_handle);
180 p_buf->hdr.layer_specific = handle;
197 static int bta_ag_data_cback(UINT16 port_handle, void *p_data, UINT16 len, UINT16 handle)
202 bta_ag_co_tx_write(handle, (UINT8 *) p_data, len);
218 void bta_ag_mgmt_cback_1(UINT32 code, UINT16 handle) {bta_ag_mgmt_cback(code, handle, 1);}
219 void bta_ag_mgmt_cback_2(UINT32 code, UINT16 handle) {bta_ag_mgmt_cback(code, handle, 2);}
220 void bta_ag_mgmt_cback_3(UINT32 code, UINT16 handle) {bta_ag_mgmt_cback(code, handle, 3);}
221 void bta_ag_port_cback_1(UINT32 code, UINT16 handle) {bta_ag_port_cback(code, handle, 1);}
222 void bta_ag_port_cback_2(UINT32 code, UINT16 handle) {bta_ag_port_cback(code, handle, 2);}
223 void bta_ag_port_cback_3(UINT32 code, UINT16 handle) {bta_ag_port_cback(code, handle, 3);}
259 void bta_ag_setup_port(tBTA_AG_SCB *p_scb, UINT16 handle)
266 PORT_SetDataCallback(handle, bta_ag_data_cback_tbl[i]);
269 PORT_SetEventMask(handle, BTA_AG_PORT_EV_MASK);
270 PORT_SetEventCallback(handle, bta_ag_port_cback_tbl[i]);
307 /* TODO: CR#137125 to handle to error properly */