Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/bta/ag/
Dbta_ag_rfc.cc42 void bta_ag_port_cback_1(uint32_t code, uint16_t port_handle);
43 void bta_ag_port_cback_2(uint32_t code, uint16_t port_handle);
44 void bta_ag_port_cback_3(uint32_t code, uint16_t port_handle);
45 void bta_ag_port_cback_4(uint32_t code, uint16_t port_handle);
46 void bta_ag_port_cback_5(uint32_t code, uint16_t port_handle);
47 void bta_ag_port_cback_6(uint32_t code, uint16_t port_handle);
48 void bta_ag_mgmt_cback_1(const tPORT_RESULT code, uint16_t port_handle);
49 void bta_ag_mgmt_cback_2(const tPORT_RESULT code, uint16_t port_handle);
50 void bta_ag_mgmt_cback_3(const tPORT_RESULT code, uint16_t port_handle);
51 void bta_ag_mgmt_cback_4(const tPORT_RESULT code, uint16_t port_handle);
[all …]
Dbta_ag_act.cc566 int status = PORT_CheckConnection(data.rfc.port_handle, &dev_addr, &lcid); in bta_ag_rfc_acp_open()
616 p_scb->serv_handle[i], data.rfc.port_handle); in bta_ag_rfc_acp_open()
618 if (p_scb->serv_handle[i] == data.rfc.port_handle) { in bta_ag_rfc_acp_open()
620 p_scb->conn_handle = data.rfc.port_handle; in bta_ag_rfc_acp_open()
Dbta_ag_int.h180 uint16_t port_handle; member
/packages/modules/Bluetooth/system/bta/hf_client/
Dbta_hf_client_rfc.cc54 uint16_t port_handle) { in bta_hf_client_port_cback() argument
57 bta_hf_client_find_cb_by_rfc_handle(port_handle); in bta_hf_client_port_cback()
59 log::error("cb not found for handle {}", port_handle); in bta_hf_client_port_cback()
81 uint16_t port_handle) { in bta_hf_client_mgmt_cback() argument
83 bta_hf_client_find_cb_by_rfc_handle(port_handle); in bta_hf_client_mgmt_cback()
85 log::verbose("code = {}, port_handle = {} serv = {}", code, port_handle, in bta_hf_client_mgmt_cback()
90 port_handle != client_cb->conn_handle) { in bta_hf_client_mgmt_cback()
91 log::verbose("bta_hf_client_mgmt_cback ignoring handle:{}", port_handle); in bta_hf_client_mgmt_cback()
99 if (client_cb && port_handle == client_cb->conn_handle) { /* out conn */ in bta_hf_client_mgmt_cback()
101 } else if (port_handle == bta_hf_client_cb_arr.serv_handle) { in bta_hf_client_mgmt_cback()
[all …]
Dbta_hf_client_int.h131 uint16_t port_handle; member
/packages/modules/Bluetooth/system/bta/jv/
Dbta_jv_act.cc216 tBTA_JV_RFC_CB* bta_jv_alloc_rfc_cb(uint16_t port_handle, in bta_jv_alloc_rfc_cb() argument
230 p_cb->rfc_hdl[0] = port_handle; in bta_jv_alloc_rfc_cb()
231 log::verbose("port_handle={}, handle=0x{:x}", port_handle, p_cb->handle); in bta_jv_alloc_rfc_cb()
233 p_pcb = &bta_jv_cb.port_cb[port_handle - 1]; in bta_jv_alloc_rfc_cb()
235 p_pcb->port_handle = port_handle; in bta_jv_alloc_rfc_cb()
242 log::error("port_handle={} ctrl block exceeds limit:{}", port_handle, in bta_jv_alloc_rfc_cb()
258 tBTA_JV_PCB* bta_jv_rfc_port_to_pcb(uint16_t port_handle) { in bta_jv_rfc_port_to_pcb() argument
261 if ((port_handle > 0) && (port_handle <= MAX_RFC_PORTS) && in bta_jv_rfc_port_to_pcb()
262 bta_jv_cb.port_cb[port_handle - 1].handle) { in bta_jv_rfc_port_to_pcb()
263 p_pcb = &bta_jv_cb.port_cb[port_handle - 1]; in bta_jv_rfc_port_to_pcb()
[all …]
Dbta_jv_int.h93 uint16_t port_handle; /* port handle */ member
Dbta_jv_api.cc533 return bta_jv_cb.port_cb[bta_jv_cb.rfc_cb[hi].rfc_hdl[si] - 1].port_handle; in BTA_JvRfcommGetPortHdl()
/packages/modules/Bluetooth/system/stack/include/
Dport_api.h80 typedef int(tPORT_DATA_CALLBACK)(uint16_t port_handle, void* p_data,
86 typedef int(tPORT_DATA_CO_CALLBACK)(uint16_t port_handle, uint8_t* p_buf,
89 typedef void(tPORT_CALLBACK)(uint32_t code, uint16_t port_handle);
191 uint16_t port_handle);
294 [[nodiscard]] int PORT_SetEventMaskAndCallback(uint16_t port_handle,
308 [[nodiscard]] int PORT_ClearKeepHandleFlag(uint16_t port_handle);
310 [[nodiscard]] int PORT_SetDataCOCallback(uint16_t port_handle,
/packages/modules/Bluetooth/system/stack/test/rfcomm/
Dstack_rfcomm_test.cc110 void port_mgmt_cback_0(const tPORT_RESULT code, uint16_t port_handle) { in port_mgmt_cback_0() argument
111 rfcomm_callback->PortManagementCallback(code, port_handle, 0); in port_mgmt_cback_0()
114 void port_mgmt_cback_1(const tPORT_RESULT code, uint16_t port_handle) { in port_mgmt_cback_1() argument
115 rfcomm_callback->PortManagementCallback(code, port_handle, 1); in port_mgmt_cback_1()
118 void port_event_cback_0(uint32_t code, uint16_t port_handle) { in port_event_cback_0() argument
119 rfcomm_callback->PortEventCallback(code, port_handle, 0); in port_event_cback_0()
122 void port_event_cback_1(uint32_t code, uint16_t port_handle) { in port_event_cback_1() argument
123 rfcomm_callback->PortEventCallback(code, port_handle, 1); in port_event_cback_1()
188 void ConnectServerPort(const RawAddress& peer_addr, uint16_t port_handle, in ConnectServerPort() argument
227 PortManagementCallback(PORT_SUCCESS, port_handle, port_callback_index)); in ConnectServerPort()
[all …]
Dstack_rfcomm_test_utils.h29 virtual void PortManagementCallback(uint32_t code, uint16_t port_handle,
31 virtual void PortEventCallback(uint32_t code, uint16_t port_handle,
38 MOCK_METHOD3(PortManagementCallback, void(uint32_t code, uint16_t port_handle,
40 MOCK_METHOD3(PortEventCallback, void(uint32_t code, uint16_t port_handle,