/system/bt/bta/ag/ |
D | bta_ag_rfc.c | 42 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 …]
|
D | bta_ag_act.c | 563 if (PORT_SUCCESS != (status=PORT_CheckConnection(p_data->rfc.port_handle, dev_addr, &lcid))) in bta_ag_rfc_acp_open() 604 i, p_scb->serv_handle[i], p_data->rfc.port_handle); in bta_ag_rfc_acp_open() 606 if (p_scb->serv_handle[i] == p_data->rfc.port_handle) in bta_ag_rfc_acp_open() 609 p_scb->conn_handle = p_data->rfc.port_handle; in bta_ag_rfc_acp_open()
|
D | bta_ag_int.h | 207 UINT16 port_handle; member
|
/system/bt/bta/hf_client/ |
D | bta_hf_client_rfc.c | 43 static void bta_hf_client_port_cback(UINT32 code, UINT16 port_handle) in bta_hf_client_port_cback() argument 48 if (port_handle != bta_hf_client_cb.scb.conn_handle) in bta_hf_client_port_cback() 51 port_handle, bta_hf_client_cb.scb.conn_handle); in bta_hf_client_port_cback() 71 static void bta_hf_client_mgmt_cback(UINT32 code, UINT16 port_handle) in bta_hf_client_mgmt_cback() argument 76 … code, port_handle, bta_hf_client_cb.scb.conn_handle, bta_hf_client_cb.scb.serv_handle); in bta_hf_client_mgmt_cback() 79 if ((code != PORT_SUCCESS) && (port_handle != bta_hf_client_cb.scb.conn_handle)) in bta_hf_client_mgmt_cback() 81 APPL_TRACE_DEBUG("bta_hf_client_mgmt_cback ignoring handle:%d", port_handle); in bta_hf_client_mgmt_cback() 87 …if ((bta_hf_client_cb.scb.conn_handle && (port_handle == bta_hf_client_cb.scb.conn_handle)) || /* … in bta_hf_client_mgmt_cback() 88 … (port_handle == bta_hf_client_cb.scb.serv_handle)) /* incoming connection */ in bta_hf_client_mgmt_cback() 94 … APPL_TRACE_ERROR ("bta_hf_client_mgmt_cback: PORT_SUCCESS, ignoring handle = %d", port_handle); in bta_hf_client_mgmt_cback() [all …]
|
D | bta_hf_client_act.c | 274 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() 299 bta_hf_client_cb.scb.conn_handle = p_data->rfc.port_handle; in bta_hf_client_rfc_acp_open()
|
D | bta_hf_client_int.h | 111 UINT16 port_handle; member
|
/system/bt/stack/include/ |
D | port_api.h | 99 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/ |
D | bta_jv_act.c | 187 tBTA_JV_RFC_CB * bta_jv_alloc_rfc_cb(UINT16 port_handle, tBTA_JV_PCB **pp_pcb) in bta_jv_alloc_rfc_cb() argument 204 p_cb->rfc_hdl[0] = port_handle; in bta_jv_alloc_rfc_cb() 206 port_handle, p_cb->handle); in bta_jv_alloc_rfc_cb() 208 p_pcb = &bta_jv_cb.port_cb[port_handle - 1]; in bta_jv_alloc_rfc_cb() 210 p_pcb->port_handle = port_handle; in bta_jv_alloc_rfc_cb() 219 "limit:%d", port_handle, BTA_JV_MAX_RFC_CONN); in bta_jv_alloc_rfc_cb() 233 tBTA_JV_PCB * bta_jv_rfc_port_to_pcb(UINT16 port_handle) in bta_jv_rfc_port_to_pcb() argument 237 if ((port_handle > 0) && (port_handle <= MAX_RFC_PORTS) in bta_jv_rfc_port_to_pcb() 238 && bta_jv_cb.port_cb[port_handle - 1].handle) in bta_jv_rfc_port_to_pcb() 240 p_pcb = &bta_jv_cb.port_cb[port_handle - 1]; in bta_jv_rfc_port_to_pcb() [all …]
|
D | bta_jv_int.h | 142 UINT16 port_handle;/* port handle */ member
|
D | bta_jv_api.c | 919 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/ |
D | port_api.c | 328 int PORT_SetEventCallback (UINT16 port_handle, tPORT_CALLBACK *p_port_cb) in PORT_SetEventCallback() argument 333 if ((port_handle == 0) || (port_handle > MAX_RFC_PORTS)) in PORT_SetEventCallback() 338 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_SetEventCallback() 345 RFCOMM_TRACE_API ("PORT_SetEventCallback() handle:%d", port_handle); in PORT_SetEventCallback() 361 int PORT_ClearKeepHandleFlag (UINT16 port_handle) in PORT_ClearKeepHandleFlag() argument 366 if ((port_handle == 0) || (port_handle > MAX_RFC_PORTS)) in PORT_ClearKeepHandleFlag() 371 p_port = &rfc_cb.port.port[port_handle - 1]; in PORT_ClearKeepHandleFlag() 389 int PORT_SetDataCallback (UINT16 port_handle, tPORT_DATA_CALLBACK *p_port_cb) in PORT_SetDataCallback() argument 393 RFCOMM_TRACE_API ("PORT_SetDataCallback() handle:%d cb 0x%x", port_handle, p_port_cb); in PORT_SetDataCallback() 396 if ((port_handle == 0) || (port_handle > MAX_RFC_PORTS)) in PORT_SetDataCallback() [all …]
|