Home | History | Annotate | Download | only in jv

Lines Matching refs:handle

69         /* set handle to invalid value by default */
72 bta_jv_cb.pm_cb[i].handle = BTA_JV_PM_HANDLE_CLEAR;
860 tBTA_JV_STATUS BTA_JvUpdateRecord(UINT32 handle, UINT16 *p_ids,
871 p_msg->handle = handle;
896 tBTA_JV_STATUS BTA_JvAddAttribute(UINT32 handle, UINT16 attr_id,
906 p_msg->handle = handle;
928 tBTA_JV_STATUS BTA_JvDeleteAttribute(UINT32 handle, UINT16 attr_id)
937 p_msg->handle = handle;
955 tBTA_JV_STATUS BTA_JvDeleteRecord(UINT32 handle)
964 p_msg->handle = handle;
983 INT32 BTA_JvReadRecord(UINT32 handle, UINT8 *p_data, INT32 *p_data_len)
987 sdp_handle = bta_jv_get_sdp_handle(handle);
1047 tBTA_JV_STATUS BTA_JvL2capClose(UINT32 handle)
1053 if (handle < BTA_JV_MAX_L2C_CONN && bta_jv_cb.l2c_cb[handle].p_cback &&
1057 p_msg->handle = handle;
1058 p_msg->p_cb = &bta_jv_cb.l2c_cb[handle];
1146 tBTA_JV_STATUS BTA_JvL2capRead(UINT32 handle, UINT32 req_id, UINT8 *p_data, UINT16 len)
1158 if(BTA_JV_L2C_FOR_SDP_HDL == handle)
1160 if (bta_jv_cb.l2c_cb[handle].p_cback &&
1164 p_msg->handle = handle;
1168 p_msg->p_cback = bta_jv_cb.l2c_cb[handle].p_cback;
1175 if (handle < BTA_JV_MAX_L2C_CONN && bta_jv_cb.l2c_cb[handle].p_cback)
1179 evt_data.handle = handle;
1184 if (BT_PASS == GAP_ConnReadData((UINT16)handle, p_data, len, &evt_data.len))
1188 bta_jv_cb.l2c_cb[handle].p_cback(BTA_JV_L2CAP_READ_EVT, (tBTA_JV *)&evt_data);
1209 tBTA_JV_STATUS BTA_JvL2capReceive(UINT32 handle, UINT32 req_id, UINT8 *p_data, UINT16 len)
1219 if (handle < BTA_JV_MAX_L2C_CONN && bta_jv_cb.l2c_cb[handle].p_cback)
1223 evt_data.handle = handle;
1228 if (BT_PASS == GAP_ConnReadData((UINT16)handle, p_data, len, &evt_data.len))
1231 GAP_GetRxQueueCnt ((UINT16)handle, &left_over);
1235 GAP_ConnReadData ((UINT16)handle, NULL, max_len, &read_len);
1239 bta_jv_cb.l2c_cb[handle].p_cback(BTA_JV_L2CAP_RECEIVE_EVT, (tBTA_JV *)&evt_data);
1257 tBTA_JV_STATUS BTA_JvL2capReady(UINT32 handle, UINT32 *p_data_size)
1262 APPL_TRACE_API1( "BTA_JvL2capReady: %d", handle);
1263 if (p_data_size && handle < BTA_JV_MAX_L2C_CONN && bta_jv_cb.l2c_cb[handle].p_cback)
1267 if(BTA_JV_L2C_FOR_SDP_HDL == handle)
1274 if(BT_PASS == GAP_GetRxQueueCnt((UINT16)handle, p_data_size) )
1298 tBTA_JV_STATUS BTA_JvL2capWrite(UINT32 handle, UINT32 req_id, UINT8 *p_data, UINT16 len)
1304 if (handle < BTA_JV_MAX_L2C_CONN && bta_jv_cb.l2c_cb[handle].p_cback &&
1308 p_msg->handle = handle;
1311 p_msg->p_cb = &bta_jv_cb.l2c_cb[handle];
1370 tBTA_JV_STATUS BTA_JvRfcommClose(UINT32 handle, void *user_data)
1374 UINT32 hi = ((handle & BTA_JV_RFC_HDL_MASK)&~BTA_JV_RFCOMM_MASK) - 1;
1375 UINT32 si = BTA_JV_RFC_HDL_TO_SIDX(handle);
1383 p_msg->handle = handle;
1452 tBTA_JV_STATUS BTA_JvRfcommStopServer(UINT32 handle, void * user_data)
1460 p_msg->handle = handle;
1480 tBTA_JV_STATUS BTA_JvRfcommRead(UINT32 handle, UINT32 req_id, UINT8 *p_data, UINT16 len)
1484 UINT32 hi = ((handle & BTA_JV_RFC_HDL_MASK)&~BTA_JV_RFCOMM_MASK) - 1;
1485 UINT32 si = BTA_JV_RFC_HDL_TO_SIDX(handle);
1493 p_msg->handle = handle;
1510 ** Description This function fetches the rfcomm port handle
1516 UINT16 BTA_JvRfcommGetPortHdl(UINT32 handle)
1518 UINT32 hi = ((handle & BTA_JV_RFC_HDL_MASK) & ~BTA_JV_RFCOMM_MASK) - 1;
1519 UINT32 si = BTA_JV_RFC_HDL_TO_SIDX(handle);
1540 tBTA_JV_STATUS BTA_JvRfcommReady(UINT32 handle, UINT32 *p_data_size)
1544 UINT32 hi = ((handle & BTA_JV_RFC_HDL_MASK)&~BTA_JV_RFCOMM_MASK) - 1;
1545 UINT32 si = BTA_JV_RFC_HDL_TO_SIDX(handle);
1570 tBTA_JV_STATUS BTA_JvRfcommWrite(UINT32 handle, UINT32 req_id)
1574 UINT32 hi = ((handle & BTA_JV_RFC_HDL_MASK)&~BTA_JV_RFCOMM_MASK) - 1;
1575 UINT32 si = BTA_JV_RFC_HDL_TO_SIDX(handle);
1578 APPL_TRACE_DEBUG3( "handle:0x%x, hi:%d, si:%d", handle, hi, si);
1584 p_msg->handle = handle;
1603 ** Parameters: handle, JV handle from RFCOMM or L2CAP
1605 ** BTA_JV_PM_ID_CLEAR: removes pm management on the handle. init_st is ignored and
1616 tBTA_JV_STATUS BTA_JvSetPmProfile(UINT32 handle, tBTA_JV_PM_ID app_id, tBTA_JV_CONN_STATE init_st)
1621 APPL_TRACE_API2("BTA_JVSetPmProfile handle:0x%x, app_id:%d", handle, app_id);
1626 p_msg->handle = handle;