Home
last modified time | relevance | path

Searched refs:port_handle (Results 1 – 11 of 11) sorted by relevance

/system/bt/bta/ag/
Dbta_ag_rfc.c42 void bta_ag_port_cback_1(UINT32 code, UINT16 port_handle);
43 void bta_ag_port_cback_2(UINT32 code, UINT16 port_handle);
44 void bta_ag_port_cback_3(UINT32 code, UINT16 port_handle);
46 void bta_ag_mgmt_cback_1(UINT32 code, UINT16 port_handle);
47 void bta_ag_mgmt_cback_2(UINT32 code, UINT16 port_handle);
48 void bta_ag_mgmt_cback_3(UINT32 code, UINT16 port_handle);
50 int bta_ag_data_cback_1(UINT16 port_handle, void *p_data, UINT16 len);
51 int bta_ag_data_cback_2(UINT16 port_handle, void *p_data, UINT16 len);
52 int bta_ag_data_cback_3(UINT16 port_handle, void *p_data, UINT16 len);
88 static void bta_ag_port_cback(UINT32 code, UINT16 port_handle, UINT16 handle) in bta_ag_port_cback() argument
[all …]
Dbta_ag_act.c562 if (PORT_SUCCESS != (status=PORT_CheckConnection(p_data->rfc.port_handle, dev_addr, &lcid))) in bta_ag_rfc_acp_open()
605 i, p_scb->serv_handle[i], p_data->rfc.port_handle); in bta_ag_rfc_acp_open()
607 if (p_scb->serv_handle[i] == p_data->rfc.port_handle) in bta_ag_rfc_acp_open()
610 p_scb->conn_handle = p_data->rfc.port_handle; in bta_ag_rfc_acp_open()
Dbta_ag_int.h207 UINT16 port_handle; member
/system/bt/bta/hf_client/
Dbta_hf_client_rfc.c43 static void bta_hf_client_port_cback(UINT32 code, UINT16 port_handle) in bta_hf_client_port_cback() argument
49 if (port_handle != bta_hf_client_cb.scb.conn_handle) in bta_hf_client_port_cback()
52 port_handle, bta_hf_client_cb.scb.conn_handle); in bta_hf_client_port_cback()
73 static void bta_hf_client_mgmt_cback(UINT32 code, UINT16 port_handle) in bta_hf_client_mgmt_cback() argument
79 … code, port_handle, bta_hf_client_cb.scb.conn_handle, bta_hf_client_cb.scb.serv_handle); in bta_hf_client_mgmt_cback()
82 if ((code != PORT_SUCCESS) && (port_handle != bta_hf_client_cb.scb.conn_handle)) in bta_hf_client_mgmt_cback()
84 APPL_TRACE_DEBUG("bta_hf_client_mgmt_cback ignoring handle:%d", port_handle); in bta_hf_client_mgmt_cback()
90 …if ((bta_hf_client_cb.scb.conn_handle && (port_handle == bta_hf_client_cb.scb.conn_handle)) || /* … in bta_hf_client_mgmt_cback()
91 … (port_handle == bta_hf_client_cb.scb.serv_handle)) /* incoming connection */ in bta_hf_client_mgmt_cback()
97 … APPL_TRACE_ERROR ("bta_hf_client_mgmt_cback: PORT_SUCCESS, ignoring handle = %d", port_handle); in bta_hf_client_mgmt_cback()
[all …]
Dbta_hf_client_act.c274 bta_hf_client_cb.scb.serv_handle, p_data->rfc.port_handle); in bta_hf_client_rfc_acp_open()
277 if (PORT_SUCCESS != (status=PORT_CheckConnection(p_data->rfc.port_handle, dev_addr, &lcid))) in bta_hf_client_rfc_acp_open()
302 bta_hf_client_cb.scb.conn_handle = p_data->rfc.port_handle; in bta_hf_client_rfc_acp_open()
Dbta_hf_client_int.h111 UINT16 port_handle; member
/system/bt/stack/include/
Dport_api.h99 typedef int (tPORT_DATA_CALLBACK) (UINT16 port_handle, void *p_data, UINT16 len);
104 typedef int (tPORT_DATA_CO_CALLBACK) (UINT16 port_handle, UINT8* p_buf, UINT16 len, int type);
106 typedef void (tPORT_CALLBACK) (UINT32 code, UINT16 port_handle);
261 extern int PORT_SetEventCallback (UINT16 port_handle,
273 int PORT_ClearKeepHandleFlag (UINT16 port_handle);
287 extern int PORT_SetDataCallback (UINT16 port_handle,
290 extern int PORT_SetDataCOCallback (UINT16 port_handle, tPORT_DATA_CO_CALLBACK *p_port_cb);
302 extern int PORT_SetEventMask (UINT16 port_handle, UINT32 mask);
/system/bt/bta/jv/
Dbta_jv_act.c201 tBTA_JV_RFC_CB * bta_jv_alloc_rfc_cb(UINT16 port_handle, tBTA_JV_PCB **pp_pcb) in bta_jv_alloc_rfc_cb() argument
218 p_cb->rfc_hdl[0] = port_handle; in bta_jv_alloc_rfc_cb()
220 port_handle, p_cb->handle); in bta_jv_alloc_rfc_cb()
222 p_pcb = &bta_jv_cb.port_cb[port_handle - 1]; in bta_jv_alloc_rfc_cb()
224 p_pcb->port_handle = port_handle; in bta_jv_alloc_rfc_cb()
233 "limit:%d", port_handle, BTA_JV_MAX_RFC_CONN); in bta_jv_alloc_rfc_cb()
247 tBTA_JV_PCB * bta_jv_rfc_port_to_pcb(UINT16 port_handle) in bta_jv_rfc_port_to_pcb() argument
251 if ((port_handle > 0) && (port_handle <= MAX_RFC_PORTS) in bta_jv_rfc_port_to_pcb()
252 && bta_jv_cb.port_cb[port_handle - 1].handle) in bta_jv_rfc_port_to_pcb()
254 p_pcb = &bta_jv_cb.port_cb[port_handle - 1]; in bta_jv_rfc_port_to_pcb()
[all …]
Dbta_jv_int.h143 UINT16 port_handle;/* port handle */ member
Dbta_jv_api.c1051 return bta_jv_cb.port_cb[bta_jv_cb.rfc_cb[hi].rfc_hdl[si] - 1].port_handle; in BTA_JvRfcommGetPortHdl()
/system/bt/stack/rfcomm/
Dport_api.c327 int PORT_SetEventCallback (UINT16 port_handle, tPORT_CALLBACK *p_port_cb) in PORT_SetEventCallback() argument
332 if ((port_handle == 0) || (port_handle > MAX_RFC_PORTS)) in PORT_SetEventCallback()
337 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetEventCallback()
344 RFCOMM_TRACE_API ("PORT_SetEventCallback() handle:%d", port_handle); in PORT_SetEventCallback()
360 int PORT_ClearKeepHandleFlag (UINT16 port_handle) in PORT_ClearKeepHandleFlag() argument
365 if ((port_handle == 0) || (port_handle > MAX_RFC_PORTS)) in PORT_ClearKeepHandleFlag()
370 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_ClearKeepHandleFlag()
388 int PORT_SetDataCallback (UINT16 port_handle, tPORT_DATA_CALLBACK *p_port_cb) in PORT_SetDataCallback() argument
392 RFCOMM_TRACE_API ("PORT_SetDataCallback() handle:%d cb 0x%x", port_handle, p_port_cb); in PORT_SetDataCallback()
395 if ((port_handle == 0) || (port_handle > MAX_RFC_PORTS)) in PORT_SetDataCallback()
[all …]