Lines Matching refs:port_handle

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()
255 tBTA_JV_RFC_CB * bta_jv_rfc_port_to_cb(UINT16 port_handle) in bta_jv_rfc_port_to_cb() argument
260 if ((port_handle > 0) && (port_handle <= MAX_RFC_PORTS) in bta_jv_rfc_port_to_cb()
261 && bta_jv_cb.port_cb[port_handle - 1].handle) in bta_jv_rfc_port_to_cb()
263 handle = bta_jv_cb.port_cb[port_handle - 1].handle; in bta_jv_rfc_port_to_cb()
272 " FOUND", port_handle, bta_jv_cb.port_cb[port_handle - 1].handle); in bta_jv_rfc_port_to_cb()
324 p_pcb->state, p_cb->scn, p_pcb, p_pcb->handle, p_pcb->port_handle, in bta_jv_free_rfc_cb()
334 port_status = RFCOMM_RemoveConnection(p_pcb->port_handle); in bta_jv_free_rfc_cb()
336 port_status = RFCOMM_RemoveServer(p_pcb->port_handle); in bta_jv_free_rfc_cb()
342 p_pcb->handle, p_pcb->state, port_status, p_pcb->port_handle, in bta_jv_free_rfc_cb()
348 p_pcb->port_handle = 0; in bta_jv_free_rfc_cb()
486 "pm_cb?", __func__, jv_handle, p_pcb->port_handle, i); in bta_jv_free_set_pm_profile_cb()
542 bta_jv_cb.port_cb[j].port_handle, peer_bd_addr, NULL)) in bta_jv_alloc_set_pm_profile_cb()
1437 static int bta_jv_port_data_co_cback(UINT16 port_handle, UINT8 *buf, UINT16 len, int type) in bta_jv_port_data_co_cback() argument
1439 tBTA_JV_RFC_CB *p_cb = bta_jv_rfc_port_to_cb(port_handle); in bta_jv_port_data_co_cback()
1440 tBTA_JV_PCB *p_pcb = bta_jv_rfc_port_to_pcb(port_handle); in bta_jv_port_data_co_cback()
1470 static void bta_jv_port_mgmt_cl_cback(UINT32 code, UINT16 port_handle) in bta_jv_port_mgmt_cl_cback() argument
1472 tBTA_JV_RFC_CB *p_cb = bta_jv_rfc_port_to_cb(port_handle); in bta_jv_port_mgmt_cl_cback()
1473 tBTA_JV_PCB *p_pcb = bta_jv_rfc_port_to_pcb(port_handle); in bta_jv_port_mgmt_cl_cback()
1479 APPL_TRACE_DEBUG( "bta_jv_port_mgmt_cl_cback:code:%d, port_handle%d", code, port_handle); in bta_jv_port_mgmt_cl_cback()
1484 code, port_handle, p_cb->handle); in bta_jv_port_mgmt_cl_cback()
1486 PORT_CheckConnection(port_handle, rem_bda, &lcid); in bta_jv_port_mgmt_cl_cback()
1524 static void bta_jv_port_event_cl_cback(UINT32 code, UINT16 port_handle) in bta_jv_port_event_cl_cback() argument
1526 tBTA_JV_RFC_CB *p_cb = bta_jv_rfc_port_to_cb(port_handle); in bta_jv_port_event_cl_cback()
1527 tBTA_JV_PCB *p_pcb = bta_jv_rfc_port_to_pcb(port_handle); in bta_jv_port_event_cl_cback()
1530 APPL_TRACE_DEBUG( "bta_jv_port_event_cl_cback:%d", port_handle); in bta_jv_port_event_cl_cback()
1535 code, port_handle, p_cb->handle); in bta_jv_port_event_cl_cback()
1704 static void bta_jv_port_mgmt_sr_cback(UINT32 code, UINT16 port_handle) in bta_jv_port_mgmt_sr_cback() argument
1706 tBTA_JV_PCB *p_pcb = bta_jv_rfc_port_to_pcb(port_handle); in bta_jv_port_mgmt_sr_cback()
1707 tBTA_JV_RFC_CB *p_cb = bta_jv_rfc_port_to_cb(port_handle); in bta_jv_port_mgmt_sr_cback()
1711 APPL_TRACE_DEBUG("bta_jv_port_mgmt_sr_cback, code:%d, port_handle:%d", code, port_handle); in bta_jv_port_mgmt_sr_cback()
1720 code, port_handle, p_cb->handle, p_pcb, p_pcb->user_data); in bta_jv_port_mgmt_sr_cback()
1722 PORT_CheckConnection(port_handle, rem_bda, &lcid); in bta_jv_port_mgmt_sr_cback()
1774 static void bta_jv_port_event_sr_cback(UINT32 code, UINT16 port_handle) in bta_jv_port_event_sr_cback() argument
1776 tBTA_JV_PCB *p_pcb = bta_jv_rfc_port_to_pcb(port_handle); in bta_jv_port_event_sr_cback()
1777 tBTA_JV_RFC_CB *p_cb = bta_jv_rfc_port_to_cb(port_handle); in bta_jv_port_event_sr_cback()
1784 code, port_handle, p_cb->handle); in bta_jv_port_event_sr_cback()
1837 p_pcb->port_handle); in bta_jv_add_rfc_port()
1845 listen, p_pcb->port_handle, p_pcb_open->handle); in bta_jv_add_rfc_port()
1868 p_pcb->port_handle = p_cb->rfc_hdl[si]; in bta_jv_add_rfc_port()
1871 PORT_ClearKeepHandleFlag(p_pcb->port_handle); in bta_jv_add_rfc_port()
1872 PORT_SetEventCallback(p_pcb->port_handle, bta_jv_port_event_sr_cback); in bta_jv_add_rfc_port()
1873 PORT_SetDataCOCallback (p_pcb->port_handle, bta_jv_port_data_co_cback); in bta_jv_add_rfc_port()
1874 PORT_SetEventMask(p_pcb->port_handle, event_mask); in bta_jv_add_rfc_port()
1875 PORT_GetState(p_pcb->port_handle, &port_state); in bta_jv_add_rfc_port()
1879 PORT_SetState(p_pcb->port_handle, &port_state); in bta_jv_add_rfc_port()
2009 p_pcb, p_pcb->port_handle); in bta_jv_rfcomm_stop_server()
2038 PORT_WriteDataCO(p_pcb->port_handle, &evt_data.len) == in bta_jv_rfcomm_write()