Home | History | Annotate | Download | only in jv

Lines Matching full:handle

59     uint16_t             handle;
163 if(bta_jv_cb.rfc_cb[i].handle )
196 ** Description allocate a control block for the given port handle
208 if (0 == bta_jv_cb.rfc_cb[i].handle )
211 /* mask handle to distinguish it with L2CAP handle */
212 p_cb->handle = (i + 1) | BTA_JV_RFCOMM_MASK;
219 APPL_TRACE_DEBUG( "bta_jv_alloc_rfc_cb port_handle:%d handle:0x%2x",
220 port_handle, p_cb->handle);
223 p_pcb->handle = p_cb->handle;
242 ** Description find the port control block associated with the given port handle
252 && bta_jv_cb.port_cb[port_handle - 1].handle)
264 ** Description find the RFCOMM control block associated with the given port handle
272 UINT32 handle;
275 && bta_jv_cb.port_cb[port_handle - 1].handle)
277 handle = bta_jv_cb.port_cb[port_handle - 1].handle;
278 handle &= BTA_JV_RFC_HDL_MASK;
279 handle &= ~BTA_JV_RFCOMM_MASK;
280 if (handle)
281 p_cb = &bta_jv_cb.rfc_cb[handle - 1];
285 APPL_TRACE_WARNING("bta_jv_rfc_port_to_cb(port_handle:0x%x):jv handle:0x%x not"
286 " FOUND", port_handle, bta_jv_cb.port_cb[port_handle - 1].handle);
303 "%p, state:%d, jv handle: 0x%x" ,p_cb->max_sess, p_cb->curr_sess, p_pcb,
304 p_pcb->user_data, p_pcb->state, p_pcb->handle);
337 "%d, p_pcb:%p, jv handle: 0x%x, port_handle: %d, user_data:%p",
338 p_pcb->state, p_cb->scn, p_pcb, p_pcb->handle, p_pcb->port_handle,
354 APPL_TRACE_WARNING("bta_jv_free_rfc_cb(jv handle: 0x%x, state %d)::"
356 p_pcb->handle, p_pcb->state, port_status, p_pcb->port_handle,
364 bta_jv_free_set_pm_profile_cb(p_pcb->handle);
369 int si = BTA_JV_RFC_HDL_TO_SIDX(p_pcb->handle);
372 p_pcb->handle = 0;
379 p_cb->handle = 0;
404 bta_jv_free_set_pm_profile_cb((UINT32)p_cb->handle);
405 if (GAP_ConnClose(p_cb->handle) != BT_PASS)
434 p_pm_cb->handle = BTA_JV_PM_HANDLE_CLEAR;
458 (jv_handle == bta_jv_cb.pm_cb[i].handle))
546 /* rfc handle bd addr retrieval requires core stack handle */
553 if (jv_handle == bta_jv_cb.port_cb[j].handle)
565 /* use jv handle for l2cap bd address retrieval */
568 if (jv_handle == bta_jv_cb.l2c_cb[j].handle)
580 APPL_TRACE_API("bta_jv_alloc_set_pm_profile_cb(handle 0x%2x, app_id %d): "
590 bta_jv_cb.pm_cb[i].handle = jv_handle;
988 if(dr->handle)
991 SDP_DeleteRecord(dr->handle);
1014 evt_data.l2c_open.handle = gap_handle;
1034 evt_data.data_ind.handle = gap_handle;
1066 UINT16 handle=GAP_INVALID_HANDLE;
1088 /* We need to use this value for MTU to be able to handle cases where cfg is not set in req. */
1104 if ((handle = GAP_ConnOpen("", sec_id, 0, cc->peer_bd_addr, cc->remote_psm,
1115 p_cb = &bta_jv_cb.l2c_cb[handle];
1116 p_cb->handle = handle;
1128 evt_data.handle = handle;
1149 evt_data.handle = cc->handle;
1178 evt_data.l2c_open.handle = gap_handle;
1191 evt_data.l2c_close.handle = p_cb->handle;
1199 evt_data.data_ind.handle = gap_handle;
1231 UINT16 handle;
1270 (handle = GAP_ConnOpen("JV L2CAP", sec_id, 1, 0, ls->local_psm, &cfg, ertm_info,
1278 p_cb = &bta_jv_cb.l2c_cb[handle];
1280 evt_data.handle = handle;
1284 p_cb->handle = handle;
1316 evt_data.handle = p_cb->handle;
1342 evt_data.handle = rc->handle;
1347 if (BT_PASS == GAP_ConnReadData(rc->handle, rc->p_data, rc->len, &evt_data.len))
1380 * RISK: The caller must handle any cleanup based on another signal than BTA_JV_L2CAP_WRITE_EVT,
1385 evt_data.handle = ls->handle;
1391 BT_PASS == GAP_ConnWriteData(ls->handle, ls->p_data, ls->len, &evt_data.len))
1499 APPL_TRACE_DEBUG( "bta_jv_port_mgmt_cl_cback code=%d port_handle:%d handle:%d",
1500 code, port_handle, p_cb->handle);
1506 evt_data.rfc_open.handle = p_cb->handle;
1514 evt_data.rfc_close.handle = p_cb->handle;
1550 APPL_TRACE_DEBUG( "bta_jv_port_event_cl_cback code=x%x port_handle:%d handle:%d",
1551 code, port_handle, p_cb->handle);
1554 evt_data.data_ind.handle = p_cb->handle;
1562 evt_data.rfc_cong.handle = p_cb->handle;
1584 UINT16 handle = 0;
1610 BTA_JV_DEF_RFC_MTU, cc->peer_bd_addr, &handle, bta_jv_port_mgmt_cl_cback) != PORT_SUCCESS)
1617 p_cb = bta_jv_alloc_rfc_cb(handle, &p_pcb);
1627 PORT_SetEventCallback(handle, bta_jv_port_event_cl_cback);
1628 PORT_SetEventMask(handle, event_mask);
1629 PORT_SetDataCOCallback (handle, bta_jv_port_data_co_cback);
1631 PORT_GetState(handle, &port_state);
1637 PORT_SetState(handle, &port_state);
1639 evt_data.handle = p_cb->handle;
1652 if(handle)
1653 RFCOMM_RemoveConnection(handle);
1664 UINT32 rfc_handle = bta_jv_cb.port_cb[i].handle & BTA_JV_RFC_HDL_MASK;
1671 " 0x%x, state: %d, rfc_cb->handle: 0x%x", rfc_handle, (*pcb)->handle,
1672 (*pcb)->state, (*cb)->handle);
1694 APPL_TRACE_DEBUG("bta_jv_rfcomm_close, rfc handle:%d", cc->handle);
1695 if (!cc->handle)
1697 APPL_TRACE_ERROR("bta_jv_rfcomm_close, rfc handle is null");
1766 APPL_TRACE_DEBUG( "bta_jv_port_mgmt_sr_cback code=%d port_handle:0x%x handle:0x%x, p_pcb:%p, user:%d",
1767 code, port_handle, p_cb->handle, p_pcb, p_pcb->user_data);
1773 evt_data.rfc_srv_open.handle = p_pcb->handle;
1779 evt_data.rfc_srv_open.new_listen_handle = p_pcb_new_listen->handle;
1789 evt_data.rfc_close.handle = p_cb->handle;
1830 APPL_TRACE_DEBUG( "bta_jv_port_event_sr_cback code=x%x port_handle:%d handle:%d",
1831 code, port_handle, p_cb->handle);
1836 evt_data.data_ind.handle = p_cb->handle;
1844 evt_data.rfc_cong.handle = p_cb->handle;
1891 "listen count:%d, listen pcb handle:%d, open pcb:%d",
1892 listen, p_pcb->port_handle, p_pcb_open->handle);
1927 p_pcb->handle = BTA_JV_RFC_H_S_TO_HDL(p_cb->handle, si);
1928 APPL_TRACE_DEBUG("bta_jv_add_rfc_port: p_pcb->handle:0x%x, curr_sess:%d",
1929 p_pcb->handle, p_cb->curr_sess);
1952 UINT16 handle = 0;
1980 BTA_JV_DEF_RFC_MTU, (UINT8 *) bd_addr_any, &handle, bta_jv_port_mgmt_sr_cback) != PORT_SUCCESS)
1987 p_cb = bta_jv_alloc_rfc_cb(handle, &p_pcb);
2001 evt_data.handle = p_cb->handle;
2005 PORT_ClearKeepHandleFlag(handle);
2006 PORT_SetEventCallback(handle, bta_jv_port_event_sr_cback);
2007 PORT_SetEventMask(handle, event_mask);
2008 PORT_GetState(handle, &port_state);
2012 PORT_SetState(handle, &port_state);
2018 PORT_SetDataCOCallback (handle, bta_jv_port_data_co_cback);
2024 if (handle)
2025 RFCOMM_RemoveConnection(handle);
2045 if (!ls->handle)
2047 APPL_TRACE_ERROR("bta_jv_rfcomm_stop_server, jv handle is null");
2077 evt_data.handle = p_cb->handle;
2106 evt_data.handle = p_cb->handle;
2143 APPL_TRACE_API("bta_jv_set_pm_profile(handle: 0x%x, app_id: %d, init_st: %d)",
2144 p_data->set_pm.handle, p_data->set_pm.app_id, p_data->set_pm.init_st);
2149 status = bta_jv_free_set_pm_profile_cb(p_data->set_pm.handle);
2159 p_cb = bta_jv_alloc_set_pm_profile_cb(p_data->set_pm.handle,
2209 APPL_TRACE_API("bta_jv_set_pm_conn_state(handle:0x%x, state: %d)", p_cb->handle,
2270 APPL_TRACE_API("bta_jv_pm_state_change(p_cb: 0x%x, handle: 0x%x, busy/idle_state: %d"
2271 ", app_id: %d, conn_state: %d)", p_cb, p_cb->handle, p_cb->state,
2527 init_evt.l2c_cl_init.handle = t->id;
2532 open_evt.l2c_open.handle = t->id;
2578 evt_data.le_data_ind.handle = t->id;
2603 evt.l2c_cl_init.handle = GAP_INVALID_HANDLE;
2621 evt.l2c_cl_init.handle = id;
2658 evt.l2c_close.handle = GAP_INVALID_HANDLE;
2666 evt.l2c_close.handle = fcclient->id;
2692 uint16_t handle;
2694 evt_data.handle = GAP_INVALID_HANDLE;
2707 evt_data.handle = t->id;
2728 t = fcclient_find_by_id(cc->handle);