• Home
  • Raw
  • Download

Lines Matching refs:port_handle

201 tBTA_JV_RFC_CB * bta_jv_alloc_rfc_cb(UINT16 port_handle, tBTA_JV_PCB **pp_pcb)  in bta_jv_alloc_rfc_cb()  argument
218 p_cb->rfc_hdl[0] = port_handle; in bta_jv_alloc_rfc_cb()
220 port_handle, p_cb->handle); in bta_jv_alloc_rfc_cb()
222 p_pcb = &bta_jv_cb.port_cb[port_handle - 1]; in bta_jv_alloc_rfc_cb()
224 p_pcb->port_handle = port_handle; in bta_jv_alloc_rfc_cb()
233 "limit:%d", port_handle, BTA_JV_MAX_RFC_CONN); in bta_jv_alloc_rfc_cb()
247 tBTA_JV_PCB * bta_jv_rfc_port_to_pcb(UINT16 port_handle) in bta_jv_rfc_port_to_pcb() argument
251 if ((port_handle > 0) && (port_handle <= MAX_RFC_PORTS) in bta_jv_rfc_port_to_pcb()
252 && bta_jv_cb.port_cb[port_handle - 1].handle) in bta_jv_rfc_port_to_pcb()
254 p_pcb = &bta_jv_cb.port_cb[port_handle - 1]; in bta_jv_rfc_port_to_pcb()
269 tBTA_JV_RFC_CB * bta_jv_rfc_port_to_cb(UINT16 port_handle) in bta_jv_rfc_port_to_cb() argument
274 if ((port_handle > 0) && (port_handle <= MAX_RFC_PORTS) in bta_jv_rfc_port_to_cb()
275 && bta_jv_cb.port_cb[port_handle - 1].handle) in bta_jv_rfc_port_to_cb()
277 handle = bta_jv_cb.port_cb[port_handle - 1].handle; in bta_jv_rfc_port_to_cb()
286 " FOUND", port_handle, bta_jv_cb.port_cb[port_handle - 1].handle); in bta_jv_rfc_port_to_cb()
338 p_pcb->state, p_cb->scn, p_pcb, p_pcb->handle, p_pcb->port_handle, in bta_jv_free_rfc_cb()
348 port_status = RFCOMM_RemoveConnection(p_pcb->port_handle); in bta_jv_free_rfc_cb()
350 port_status = RFCOMM_RemoveServer(p_pcb->port_handle); in bta_jv_free_rfc_cb()
356 p_pcb->handle, p_pcb->state, port_status, p_pcb->port_handle, in bta_jv_free_rfc_cb()
362 p_pcb->port_handle = 0; in bta_jv_free_rfc_cb()
499 "pm_cb?", __func__, jv_handle, p_pcb->port_handle, i); in bta_jv_free_set_pm_profile_cb()
557 bta_jv_cb.port_cb[j].port_handle, peer_bd_addr, NULL)) in bta_jv_alloc_set_pm_profile_cb()
1449 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
1451 tBTA_JV_RFC_CB *p_cb = bta_jv_rfc_port_to_cb(port_handle); in bta_jv_port_data_co_cback()
1452 tBTA_JV_PCB *p_pcb = bta_jv_rfc_port_to_pcb(port_handle); in bta_jv_port_data_co_cback()
1486 static void bta_jv_port_mgmt_cl_cback(UINT32 code, UINT16 port_handle) in bta_jv_port_mgmt_cl_cback() argument
1488 tBTA_JV_RFC_CB *p_cb = bta_jv_rfc_port_to_cb(port_handle); in bta_jv_port_mgmt_cl_cback()
1489 tBTA_JV_PCB *p_pcb = bta_jv_rfc_port_to_pcb(port_handle); in bta_jv_port_mgmt_cl_cback()
1495 APPL_TRACE_DEBUG( "bta_jv_port_mgmt_cl_cback:code:%d, port_handle%d", code, port_handle); in bta_jv_port_mgmt_cl_cback()
1500 code, port_handle, p_cb->handle); in bta_jv_port_mgmt_cl_cback()
1502 PORT_CheckConnection(port_handle, rem_bda, &lcid); in bta_jv_port_mgmt_cl_cback()
1540 static void bta_jv_port_event_cl_cback(UINT32 code, UINT16 port_handle) in bta_jv_port_event_cl_cback() argument
1542 tBTA_JV_RFC_CB *p_cb = bta_jv_rfc_port_to_cb(port_handle); in bta_jv_port_event_cl_cback()
1543 tBTA_JV_PCB *p_pcb = bta_jv_rfc_port_to_pcb(port_handle); in bta_jv_port_event_cl_cback()
1546 APPL_TRACE_DEBUG( "bta_jv_port_event_cl_cback:%d", port_handle); in bta_jv_port_event_cl_cback()
1551 code, port_handle, p_cb->handle); in bta_jv_port_event_cl_cback()
1751 static void bta_jv_port_mgmt_sr_cback(UINT32 code, UINT16 port_handle) in bta_jv_port_mgmt_sr_cback() argument
1753 tBTA_JV_PCB *p_pcb = bta_jv_rfc_port_to_pcb(port_handle); in bta_jv_port_mgmt_sr_cback()
1754 tBTA_JV_RFC_CB *p_cb = bta_jv_rfc_port_to_cb(port_handle); in bta_jv_port_mgmt_sr_cback()
1758 APPL_TRACE_DEBUG("bta_jv_port_mgmt_sr_cback, code:%d, port_handle:%d", code, port_handle); in bta_jv_port_mgmt_sr_cback()
1767 code, port_handle, p_cb->handle, p_pcb, p_pcb->user_data); in bta_jv_port_mgmt_sr_cback()
1769 PORT_CheckConnection(port_handle, rem_bda, &lcid); in bta_jv_port_mgmt_sr_cback()
1821 static void bta_jv_port_event_sr_cback(UINT32 code, UINT16 port_handle) in bta_jv_port_event_sr_cback() argument
1823 tBTA_JV_PCB *p_pcb = bta_jv_rfc_port_to_pcb(port_handle); in bta_jv_port_event_sr_cback()
1824 tBTA_JV_RFC_CB *p_cb = bta_jv_rfc_port_to_cb(port_handle); in bta_jv_port_event_sr_cback()
1831 code, port_handle, p_cb->handle); in bta_jv_port_event_sr_cback()
1884 p_pcb->port_handle); in bta_jv_add_rfc_port()
1892 listen, p_pcb->port_handle, p_pcb_open->handle); in bta_jv_add_rfc_port()
1915 p_pcb->port_handle = p_cb->rfc_hdl[si]; in bta_jv_add_rfc_port()
1918 PORT_ClearKeepHandleFlag(p_pcb->port_handle); in bta_jv_add_rfc_port()
1919 PORT_SetEventCallback(p_pcb->port_handle, bta_jv_port_event_sr_cback); in bta_jv_add_rfc_port()
1920 PORT_SetDataCOCallback (p_pcb->port_handle, bta_jv_port_data_co_cback); in bta_jv_add_rfc_port()
1921 PORT_SetEventMask(p_pcb->port_handle, event_mask); in bta_jv_add_rfc_port()
1922 PORT_GetState(p_pcb->port_handle, &port_state); in bta_jv_add_rfc_port()
1926 PORT_SetState(p_pcb->port_handle, &port_state); in bta_jv_add_rfc_port()
2054 p_pcb, p_pcb->port_handle); in bta_jv_rfcomm_stop_server()
2080 if (PORT_ReadData(rc->p_pcb->port_handle, (char *)rc->p_data, rc->len, &evt_data.len) == in bta_jv_rfcomm_read()
2112 PORT_WriteDataCO(p_pcb->port_handle, &evt_data.len) == in bta_jv_rfcomm_write()