Home
last modified time | relevance | path

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

/system/bt/bta/ag/
Dbta_ag_rfc.cc44 void bta_ag_port_cback_1(uint32_t code, uint16_t port_handle);
45 void bta_ag_port_cback_2(uint32_t code, uint16_t port_handle);
46 void bta_ag_port_cback_3(uint32_t code, uint16_t port_handle);
48 void bta_ag_mgmt_cback_1(uint32_t code, uint16_t port_handle);
49 void bta_ag_mgmt_cback_2(uint32_t code, uint16_t port_handle);
50 void bta_ag_mgmt_cback_3(uint32_t code, uint16_t port_handle);
52 int bta_ag_data_cback_1(uint16_t port_handle, void* p_data, uint16_t len);
53 int bta_ag_data_cback_2(uint16_t port_handle, void* p_data, uint16_t len);
54 int bta_ag_data_cback_3(uint16_t port_handle, void* p_data, uint16_t len);
78 static void bta_ag_port_cback(UNUSED_ATTR uint32_t code, uint16_t port_handle, in bta_ag_port_cback() argument
[all …]
Dbta_ag_act.cc514 if (PORT_SUCCESS != (status = PORT_CheckConnection(p_data->rfc.port_handle, in bta_ag_rfc_acp_open()
552 p_scb->serv_handle[i], p_data->rfc.port_handle); in bta_ag_rfc_acp_open()
554 if (p_scb->serv_handle[i] == p_data->rfc.port_handle) { in bta_ag_rfc_acp_open()
556 p_scb->conn_handle = p_data->rfc.port_handle; in bta_ag_rfc_acp_open()
Dbta_ag_int.h183 uint16_t port_handle; member
/system/bt/bta/hf_client/
Dbta_hf_client_rfc.cc47 uint16_t port_handle) { in bta_hf_client_port_cback() argument
50 bta_hf_client_find_cb_by_rfc_handle(port_handle); in bta_hf_client_port_cback()
52 APPL_TRACE_ERROR("%s: cb not found for handle %d", __func__, port_handle); in bta_hf_client_port_cback()
73 static void bta_hf_client_mgmt_cback(uint32_t code, uint16_t port_handle) { in bta_hf_client_mgmt_cback() argument
75 bta_hf_client_find_cb_by_rfc_handle(port_handle); in bta_hf_client_mgmt_cback()
78 port_handle, bta_hf_client_cb_arr.serv_handle); in bta_hf_client_mgmt_cback()
82 port_handle != client_cb->conn_handle) { in bta_hf_client_mgmt_cback()
84 port_handle); in bta_hf_client_mgmt_cback()
92 if (client_cb && port_handle == client_cb->conn_handle) { /* out conn */ in bta_hf_client_mgmt_cback()
94 } else if (port_handle == bta_hf_client_cb_arr.serv_handle) { in bta_hf_client_mgmt_cback()
[all …]
Dbta_hf_client_int.h122 uint16_t port_handle; member
/system/bt/stack/include/
Dport_api.h96 typedef int(tPORT_DATA_CALLBACK)(uint16_t port_handle, void* p_data,
102 typedef int(tPORT_DATA_CO_CALLBACK)(uint16_t port_handle, uint8_t* p_buf,
105 typedef void(tPORT_CALLBACK)(uint32_t code, uint16_t port_handle);
255 extern int PORT_SetEventCallback(uint16_t port_handle,
268 int PORT_ClearKeepHandleFlag(uint16_t port_handle);
282 extern int PORT_SetDataCallback(uint16_t port_handle,
285 extern int PORT_SetDataCOCallback(uint16_t port_handle,
298 extern int PORT_SetEventMask(uint16_t port_handle, uint32_t mask);
/system/bt/bta/jv/
Dbta_jv_act.cc170 tBTA_JV_RFC_CB* bta_jv_alloc_rfc_cb(uint16_t port_handle, in bta_jv_alloc_rfc_cb() argument
184 p_cb->rfc_hdl[0] = port_handle; in bta_jv_alloc_rfc_cb()
186 port_handle, p_cb->handle); in bta_jv_alloc_rfc_cb()
188 p_pcb = &bta_jv_cb.port_cb[port_handle - 1]; in bta_jv_alloc_rfc_cb()
190 p_pcb->port_handle = port_handle; in bta_jv_alloc_rfc_cb()
200 port_handle, BTA_JV_MAX_RFC_CONN); in bta_jv_alloc_rfc_cb()
215 tBTA_JV_PCB* bta_jv_rfc_port_to_pcb(uint16_t port_handle) { in bta_jv_rfc_port_to_pcb() argument
218 if ((port_handle > 0) && (port_handle <= MAX_RFC_PORTS) && in bta_jv_rfc_port_to_pcb()
219 bta_jv_cb.port_cb[port_handle - 1].handle) { in bta_jv_rfc_port_to_pcb()
220 p_pcb = &bta_jv_cb.port_cb[port_handle - 1]; in bta_jv_rfc_port_to_pcb()
[all …]
Dbta_jv_int.h135 uint16_t port_handle; /* port handle */ member
Dbta_jv_api.cc910 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.cc328 int PORT_SetEventCallback(uint16_t port_handle, tPORT_CALLBACK* p_port_cb) { in PORT_SetEventCallback() argument
332 if ((port_handle == 0) || (port_handle > MAX_RFC_PORTS)) { in PORT_SetEventCallback()
336 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetEventCallback()
342 RFCOMM_TRACE_API("PORT_SetEventCallback() handle:%d", port_handle); in PORT_SetEventCallback()
358 int PORT_ClearKeepHandleFlag(uint16_t port_handle) { in PORT_ClearKeepHandleFlag() argument
362 if ((port_handle == 0) || (port_handle > MAX_RFC_PORTS)) { in PORT_ClearKeepHandleFlag()
366 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_ClearKeepHandleFlag()
384 int PORT_SetDataCallback(uint16_t port_handle, tPORT_DATA_CALLBACK* p_port_cb) { in PORT_SetDataCallback() argument
387 RFCOMM_TRACE_API("PORT_SetDataCallback() handle:%d cb 0x%x", port_handle, in PORT_SetDataCallback()
391 if ((port_handle == 0) || (port_handle > MAX_RFC_PORTS)) { in PORT_SetDataCallback()
[all …]