• Home
  • Raw
  • Download

Lines Matching refs:port_handle

170 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()
185 VLOG(2) << __func__ << "port_handle=" << +port_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()
197 …LOG(ERROR) << __func__ << "port_handle=" << port_handle << " ctrl block exceeds limit:" << BTA_JV_… in bta_jv_alloc_rfc_cb()
212 tBTA_JV_PCB* bta_jv_rfc_port_to_pcb(uint16_t port_handle) { in bta_jv_rfc_port_to_pcb() argument
215 if ((port_handle > 0) && (port_handle <= MAX_RFC_PORTS) && in bta_jv_rfc_port_to_pcb()
216 bta_jv_cb.port_cb[port_handle - 1].handle) { in bta_jv_rfc_port_to_pcb()
217 p_pcb = &bta_jv_cb.port_cb[port_handle - 1]; in bta_jv_rfc_port_to_pcb()
233 tBTA_JV_RFC_CB* bta_jv_rfc_port_to_cb(uint16_t port_handle) { in bta_jv_rfc_port_to_cb() argument
237 if ((port_handle > 0) && (port_handle <= MAX_RFC_PORTS) && in bta_jv_rfc_port_to_cb()
238 bta_jv_cb.port_cb[port_handle - 1].handle) { in bta_jv_rfc_port_to_cb()
239 handle = bta_jv_cb.port_cb[port_handle - 1].handle; in bta_jv_rfc_port_to_cb()
245 << ": jv handle not found port_handle:" << port_handle; in bta_jv_rfc_port_to_cb()
297 << ", port_handle=" << p_pcb->port_handle in bta_jv_free_rfc_cb()
306 port_status = RFCOMM_RemoveConnection(p_pcb->port_handle); in bta_jv_free_rfc_cb()
308 port_status = RFCOMM_RemoveServer(p_pcb->port_handle); in bta_jv_free_rfc_cb()
314 << ", port_handle=" << p_pcb->port_handle in bta_jv_free_rfc_cb()
319 p_pcb->port_handle = 0; in bta_jv_free_rfc_cb()
446 << ", port_handle=" << p_pcb->port_handle in bta_jv_free_set_pm_profile_cb()
494 PORT_CheckConnection(bta_jv_cb.port_cb[j].port_handle, in bta_jv_alloc_set_pm_profile_cb()
1220 static int bta_jv_port_data_co_cback(uint16_t port_handle, uint8_t* buf, in bta_jv_port_data_co_cback() argument
1222 tBTA_JV_RFC_CB* p_cb = bta_jv_rfc_port_to_cb(port_handle); in bta_jv_port_data_co_cback()
1223 tBTA_JV_PCB* p_pcb = bta_jv_rfc_port_to_pcb(port_handle); in bta_jv_port_data_co_cback()
1252 static void bta_jv_port_mgmt_cl_cback(uint32_t code, uint16_t port_handle) { in bta_jv_port_mgmt_cl_cback() argument
1253 tBTA_JV_RFC_CB* p_cb = bta_jv_rfc_port_to_cb(port_handle); in bta_jv_port_mgmt_cl_cback()
1254 tBTA_JV_PCB* p_pcb = bta_jv_rfc_port_to_pcb(port_handle); in bta_jv_port_mgmt_cl_cback()
1260 VLOG(2) << __func__ << ": code=" << code << ", port_handle=" << port_handle; in bta_jv_port_mgmt_cl_cback()
1263 VLOG(2) << __func__ << ": code=" << code << ", port_handle=" << port_handle in bta_jv_port_mgmt_cl_cback()
1266 PORT_CheckConnection(port_handle, &rem_bda, &lcid); in bta_jv_port_mgmt_cl_cback()
1299 static void bta_jv_port_event_cl_cback(uint32_t code, uint16_t port_handle) { in bta_jv_port_event_cl_cback() argument
1300 tBTA_JV_RFC_CB* p_cb = bta_jv_rfc_port_to_cb(port_handle); in bta_jv_port_event_cl_cback()
1301 tBTA_JV_PCB* p_pcb = bta_jv_rfc_port_to_pcb(port_handle); in bta_jv_port_event_cl_cback()
1304 VLOG(2) << __func__ << ": port_handle=" << port_handle; in bta_jv_port_event_cl_cback()
1308 << ", port_handle=" << port_handle << ", handle=" << p_cb->handle; in bta_jv_port_event_cl_cback()
1449 static void bta_jv_port_mgmt_sr_cback(uint32_t code, uint16_t port_handle) { in bta_jv_port_mgmt_sr_cback() argument
1450 tBTA_JV_PCB* p_pcb = bta_jv_rfc_port_to_pcb(port_handle); in bta_jv_port_mgmt_sr_cback()
1451 tBTA_JV_RFC_CB* p_cb = bta_jv_rfc_port_to_cb(port_handle); in bta_jv_port_mgmt_sr_cback()
1455 VLOG(2) << __func__ << ": code=" << code << ", port_handle=" << port_handle; in bta_jv_port_mgmt_sr_cback()
1463 << ", port_handle=" << loghex(port_handle) in bta_jv_port_mgmt_sr_cback()
1467 int status = PORT_CheckConnection(port_handle, &rem_bda, &lcid); in bta_jv_port_mgmt_sr_cback()
1522 static void bta_jv_port_event_sr_cback(uint32_t code, uint16_t port_handle) { in bta_jv_port_event_sr_cback() argument
1523 tBTA_JV_PCB* p_pcb = bta_jv_rfc_port_to_pcb(port_handle); in bta_jv_port_event_sr_cback()
1524 tBTA_JV_RFC_CB* p_cb = bta_jv_rfc_port_to_cb(port_handle); in bta_jv_port_event_sr_cback()
1534 << ", port_handle=" << port_handle << ", handle=" << p_cb->handle; in bta_jv_port_event_sr_cback()
1578 VLOG(2) << __func__ << ": port_handle=" << p_pcb->port_handle in bta_jv_add_rfc_port()
1585 << ", listen pcb handle=" << p_pcb->port_handle in bta_jv_add_rfc_port()
1608 p_pcb->port_handle = p_cb->rfc_hdl[si]; in bta_jv_add_rfc_port()
1611 PORT_ClearKeepHandleFlag(p_pcb->port_handle); in bta_jv_add_rfc_port()
1612 PORT_SetEventCallback(p_pcb->port_handle, bta_jv_port_event_sr_cback); in bta_jv_add_rfc_port()
1613 PORT_SetDataCOCallback(p_pcb->port_handle, bta_jv_port_data_co_cback); in bta_jv_add_rfc_port()
1614 PORT_SetEventMask(p_pcb->port_handle, event_mask); in bta_jv_add_rfc_port()
1615 PORT_GetState(p_pcb->port_handle, &port_state); in bta_jv_add_rfc_port()
1619 PORT_SetState(p_pcb->port_handle, &port_state); in bta_jv_add_rfc_port()
1723 << ", p_pcb->port_handle=" << p_pcb->port_handle; in bta_jv_rfcomm_stop_server()
1747 PORT_WriteDataCO(p_pcb->port_handle, &evt_data.len) == PORT_SUCCESS) { in bta_jv_rfcomm_write()