Home | History | Annotate | Download | only in ag

Lines Matching refs:handle

88 static void bta_ag_port_cback(UINT32 code, UINT16 port_handle, UINT16 handle)
93 if ((p_scb = bta_ag_scb_by_idx(handle)) != NULL)
95 /* ignore port events for port handles other than connected handle */
98 APPL_TRACE_DEBUG3("ag_port_cback ignoring handle:%d conn_handle = %d other handle = %d",
99 port_handle, p_scb->conn_handle, handle);
106 p_buf->layer_specific = handle;
122 static void bta_ag_mgmt_cback(UINT32 code, UINT16 port_handle, UINT16 handle)
130 APPL_TRACE_DEBUG3("ag_mgmt_cback : code = %d, port_handle = %d, handle = %d",
131 code, port_handle, handle);
133 if ((p_scb = bta_ag_scb_by_idx(handle)) != NULL)
135 /* ignore close event for port handles other than connected handle */
138 APPL_TRACE_DEBUG1("ag_mgmt_cback ignoring handle:%d", port_handle);
160 APPL_TRACE_ERROR1 ("bta_ag_mgmt_cback: PORT_SUCCESS, ignoring handle = %d", port_handle);
179 p_buf->hdr.layer_specific = handle;
196 static int bta_ag_data_cback(UINT16 port_handle, void *p_data, UINT16 len, UINT16 handle)
199 bta_ag_co_tx_write(handle, (UINT8 *) p_data, len);
215 void bta_ag_mgmt_cback_1(UINT32 code, UINT16 handle) {bta_ag_mgmt_cback(code, handle, 1);}
216 void bta_ag_mgmt_cback_2(UINT32 code, UINT16 handle) {bta_ag_mgmt_cback(code, handle, 2);}
217 void bta_ag_mgmt_cback_3(UINT32 code, UINT16 handle) {bta_ag_mgmt_cback(code, handle, 3);}
218 void bta_ag_port_cback_1(UINT32 code, UINT16 handle) {bta_ag_port_cback(code, handle, 1);}
219 void bta_ag_port_cback_2(UINT32 code, UINT16 handle) {bta_ag_port_cback(code, handle, 2);}
220 void bta_ag_port_cback_3(UINT32 code, UINT16 handle) {bta_ag_port_cback(code, handle, 3);}
256 void bta_ag_setup_port(tBTA_AG_SCB *p_scb, UINT16 handle)
263 PORT_SetDataCallback(handle, bta_ag_data_cback_tbl[i]);
266 PORT_SetEventMask(handle, BTA_AG_PORT_EV_MASK);
267 PORT_SetEventCallback(handle, bta_ag_port_cback_tbl[i]);
304 /* TODO: CR#137125 to handle to error properly */