Home
last modified time | relevance | path

Searched refs:dev_handle (Results 1 – 25 of 30) sorted by relevance

12

/external/bluetooth/bluedroid/bta/hh/
Dbta_hh_api.c114 void BTA_HhClose(UINT8 dev_handle) in BTA_HhClose() argument
122 p_buf->layer_specific = (UINT16) dev_handle; in BTA_HhClose()
167 static void bta_hh_snd_write_dev(UINT8 dev_handle, UINT8 t_type, UINT8 param, in bta_hh_snd_write_dev() argument
178 p_buf->hdr.layer_specific = (UINT16) dev_handle; in bta_hh_snd_write_dev()
200 void BTA_HhSetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, BT_HDR *p_data) in BTA_HhSetReport() argument
202 bta_hh_snd_write_dev(dev_handle, HID_TRANS_SET_REPORT, r_type, 0, 0, p_data); in BTA_HhSetReport()
213 void BTA_HhGetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, UINT8 rpt_id, UINT16 buf_size) in BTA_HhGetReport() argument
217 bta_hh_snd_write_dev(dev_handle, HID_TRANS_GET_REPORT, param, in BTA_HhGetReport()
229 void BTA_HhSetProtoMode(UINT8 dev_handle, tBTA_HH_PROTO_MODE p_type) in BTA_HhSetProtoMode() argument
231 bta_hh_snd_write_dev(dev_handle, HID_TRANS_SET_PROTOCOL, (UINT8)p_type, in BTA_HhSetProtoMode()
[all …]
Dbta_hh_act.c46 static void bta_hh_cback (UINT8 dev_handle, BD_ADDR addr, UINT8 event,
556 UINT8 dev_handle = p_data ? (UINT8)p_data->hid_cback.hdr.layer_specific : \ in bta_hh_open_cmpl_act() local
560 conn.handle = dev_handle; in bta_hh_open_cmpl_act()
588 if ((HID_HostWriteDev(dev_handle, in bta_hh_open_cmpl_act()
624 UINT8 dev_handle = p_data ? (UINT8)p_data->hid_cback.hdr.layer_specific : \ in bta_hh_open_act() local
628 APPL_TRACE_EVENT ("bta_hh_open_act: Device[%d] connected", dev_handle); in bta_hh_open_act()
642 p_cb->incoming_hid_handle = dev_handle; in bta_hh_open_act()
974 UINT8 dev_handle; in bta_hh_maint_dev_act() local
995 if (HID_HostAddDev(p_dev_info->bda, p_dev_info->attr_mask, &dev_handle)\ in bta_hh_maint_dev_act()
998 dev_info.handle = dev_handle; in bta_hh_maint_dev_act()
[all …]
Dbta_hh_utils.c489 UINT8 bta_hh_dev_handle_to_cb_idx(UINT8 dev_handle) in bta_hh_dev_handle_to_cb_idx() argument
494 if (BTA_HH_IS_LE_DEV_HDL(dev_handle)) in bta_hh_dev_handle_to_cb_idx()
496 if (BTA_HH_IS_LE_DEV_HDL_VALID(dev_handle)) in bta_hh_dev_handle_to_cb_idx()
497 index = bta_hh_cb.le_cb_index[BTA_HH_GET_LE_CB_IDX(dev_handle)]; in bta_hh_dev_handle_to_cb_idx()
499 … APPL_TRACE_DEBUG("bta_hh_dev_handle_to_cb_idx dev_handle = %d index = %d", dev_handle, index); in bta_hh_dev_handle_to_cb_idx()
505 if (dev_handle < BTA_HH_MAX_KNOWN ) in bta_hh_dev_handle_to_cb_idx()
506 index = bta_hh_cb.cb_index[dev_handle]; in bta_hh_dev_handle_to_cb_idx()
/external/libusb/libusb/os/
Ddarwin_usb.c53 static int darwin_claim_interface(struct libusb_device_handle *dev_handle, int iface);
54 static int darwin_release_interface(struct libusb_device_handle *dev_handle, int iface);
55 static int darwin_reset_device(struct libusb_device_handle *dev_handle);
116 static int ep_to_pipeRef(struct libusb_device_handle *dev_handle, uint8_t ep, uint8_t *pipep, uint8… in ep_to_pipeRef() argument
117 struct darwin_device_handle_priv *priv = (struct darwin_device_handle_priv *)dev_handle->os_priv; in ep_to_pipeRef()
124 usbi_info (HANDLE_CTX(dev_handle), "converting ep address 0x%02x to pipeRef and interface", ep); in ep_to_pipeRef()
129 if (dev_handle->claimed_interfaces & (1 << iface)) { in ep_to_pipeRef()
134 usbi_info (HANDLE_CTX(dev_handle), "pipe %d on interface %d matches", *pipep, *ifcp); in ep_to_pipeRef()
142 usbi_warn (HANDLE_CTX(dev_handle), "no pipeRef found with endpoint address 0x%02x.", ep); in ep_to_pipeRef()
577 static int darwin_open (struct libusb_device_handle *dev_handle) { in darwin_open() argument
[all …]
Dlinux_usbfs.c1075 static void op_close(struct libusb_device_handle *dev_handle) in op_close() argument
1077 int fd = __device_handle_priv(dev_handle)->fd; in op_close()
1078 usbi_remove_pollfd(HANDLE_CTX(dev_handle), fd); in op_close()
1342 __device_handle_priv(transfer->dev_handle); in submit_bulk_transfer()
1457 __device_handle_priv(transfer->dev_handle); in submit_iso_transfer()
1614 __device_handle_priv(transfer->dev_handle); in submit_control_transfer()
1678 __device_handle_priv(transfer->dev_handle); in cancel_control_transfer()
1706 __device_handle_priv(transfer->dev_handle); in cancel_bulk_transfer()
1728 __device_handle_priv(transfer->dev_handle); in cancel_iso_transfer()
1890 __device_handle_priv(transfer->dev_handle); in handle_bulk_completion()
/external/libusb/libusb/
Dsync.c72 API_EXPORTED int libusb_control_transfer(libusb_device_handle *dev_handle, in libusb_control_transfer() argument
95 libusb_fill_control_transfer(transfer, dev_handle, buffer, in libusb_control_transfer()
105 r = libusb_handle_events(HANDLE_CTX(dev_handle)); in libusb_control_transfer()
111 if (libusb_handle_events(HANDLE_CTX(dev_handle)) < 0) in libusb_control_transfer()
136 usbi_warn(HANDLE_CTX(dev_handle), in libusb_control_transfer()
153 static int do_sync_bulk_transfer(struct libusb_device_handle *dev_handle, in do_sync_bulk_transfer() argument
164 libusb_fill_bulk_transfer(transfer, dev_handle, endpoint, buffer, length, in do_sync_bulk_transfer()
175 r = libusb_handle_events(HANDLE_CTX(dev_handle)); in do_sync_bulk_transfer()
181 if (libusb_handle_events(HANDLE_CTX(dev_handle)) < 0) in do_sync_bulk_transfer()
206 usbi_warn(HANDLE_CTX(dev_handle), in do_sync_bulk_transfer()
[all …]
Dlibusb.h718 libusb_device_handle *dev_handle; member
800 void libusb_close(libusb_device_handle *dev_handle);
801 libusb_device *libusb_get_device(libusb_device_handle *dev_handle);
924 struct libusb_transfer *transfer, libusb_device_handle *dev_handle, in libusb_fill_control_transfer() argument
929 transfer->dev_handle = dev_handle; in libusb_fill_control_transfer()
955 libusb_device_handle *dev_handle, unsigned char endpoint, in libusb_fill_bulk_transfer() argument
959 transfer->dev_handle = dev_handle; in libusb_fill_bulk_transfer()
983 struct libusb_transfer *transfer, libusb_device_handle *dev_handle, in libusb_fill_interrupt_transfer() argument
987 transfer->dev_handle = dev_handle; in libusb_fill_interrupt_transfer()
1012 libusb_device_handle *dev_handle, unsigned char endpoint, in libusb_fill_iso_transfer() argument
[all …]
Dcore.c984 struct libusb_device_handle *dev_handle) in do_close() argument
987 list_del(&dev_handle->list); in do_close()
990 usbi_backend->close(dev_handle); in do_close()
991 libusb_unref_device(dev_handle->dev); in do_close()
992 free(dev_handle); in do_close()
1006 API_EXPORTED void libusb_close(libusb_device_handle *dev_handle) in libusb_close() argument
1012 if (!dev_handle) in libusb_close()
1016 ctx = HANDLE_CTX(dev_handle); in libusb_close()
1033 do_close(ctx, dev_handle); in libusb_close()
1049 do_close(ctx, dev_handle); in libusb_close()
[all …]
/external/bluetooth/bluedroid/stack/hid/
Dhidh_api.c388 tHID_STATUS HID_HostRemoveDev ( UINT8 dev_handle ) in HID_HostRemoveDev() argument
393 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) in HID_HostRemoveDev()
396 HID_HostCloseDev( dev_handle ) ; in HID_HostRemoveDev()
397 hh_cb.devices[dev_handle].in_use = FALSE; in HID_HostRemoveDev()
398 hh_cb.devices[dev_handle].conn.conn_state = HID_CONN_STATE_UNUSED; in HID_HostRemoveDev()
399 hh_cb.devices[dev_handle].conn.ctrl_cid = hh_cb.devices[dev_handle].conn.intr_cid = 0; in HID_HostRemoveDev()
414 tHID_STATUS HID_HostOpenDev ( UINT8 dev_handle ) in HID_HostOpenDev() argument
419 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) in HID_HostOpenDev()
422 if( hh_cb.devices[dev_handle].state != HID_DEV_NO_CONN ) in HID_HostOpenDev()
425 hh_cb.devices[dev_handle].conn_tries = 1; in HID_HostOpenDev()
[all …]
/external/chromium_org/third_party/libusb/src/libusb/os/
Ddarwin_usb.c64 static int darwin_claim_interface(struct libusb_device_handle *dev_handle, int iface);
65 static int darwin_release_interface(struct libusb_device_handle *dev_handle, int iface);
66 static int darwin_reset_device(struct libusb_device_handle *dev_handle);
152 static int ep_to_pipeRef(struct libusb_device_handle *dev_handle, uint8_t ep, uint8_t *pipep, uint8… in ep_to_pipeRef() argument
153 struct darwin_device_handle_priv *priv = (struct darwin_device_handle_priv *)dev_handle->os_priv; in ep_to_pipeRef()
165 if (dev_handle->claimed_interfaces & (1 << iface)) { in ep_to_pipeRef()
178 usbi_warn (HANDLE_CTX(dev_handle), "no pipeRef found with endpoint address 0x%02x.", ep); in ep_to_pipeRef()
922 static int darwin_open (struct libusb_device_handle *dev_handle) { in darwin_open() argument
923 struct darwin_device_handle_priv *priv = (struct darwin_device_handle_priv *)dev_handle->os_priv; in darwin_open()
924 struct darwin_cached_device *dpriv = DARWIN_CACHED_DEVICE(dev_handle->dev); in darwin_open()
[all …]
Dwindows_usb.c50 static int common_configure_endpoints(int sub_api, struct libusb_device_handle *dev_handle, int ifa…
55 static int winusbx_open(int sub_api, struct libusb_device_handle *dev_handle);
56 static void winusbx_close(int sub_api, struct libusb_device_handle *dev_handle);
57 static int winusbx_configure_endpoints(int sub_api, struct libusb_device_handle *dev_handle, int if…
58 static int winusbx_claim_interface(int sub_api, struct libusb_device_handle *dev_handle, int iface);
59 static int winusbx_release_interface(int sub_api, struct libusb_device_handle *dev_handle, int ifac…
61 static int winusbx_set_interface_altsetting(int sub_api, struct libusb_device_handle *dev_handle, i…
63 static int winusbx_clear_halt(int sub_api, struct libusb_device_handle *dev_handle, unsigned char e…
66 static int winusbx_reset_device(int sub_api, struct libusb_device_handle *dev_handle);
71 static int hid_open(int sub_api, struct libusb_device_handle *dev_handle);
[all …]
Dwindows_usb.h114 int (*open)(int sub_api, struct libusb_device_handle *dev_handle);
115 void (*close)(int sub_api, struct libusb_device_handle *dev_handle);
116 int (*configure_endpoints)(int sub_api, struct libusb_device_handle *dev_handle, int iface);
117 int (*claim_interface)(int sub_api, struct libusb_device_handle *dev_handle, int iface);
118 …int (*set_interface_altsetting)(int sub_api, struct libusb_device_handle *dev_handle, int iface, i…
119 int (*release_interface)(int sub_api, struct libusb_device_handle *dev_handle, int iface);
120 int (*clear_halt)(int sub_api, struct libusb_device_handle *dev_handle, unsigned char endpoint);
121 int (*reset_device)(int sub_api, struct libusb_device_handle *dev_handle);
273 HANDLE dev_handle; // WinUSB needs an extra handle for the file member
Dopenbsd_usb.c481 hpriv = (struct handle_priv *)transfer->dev_handle->os_priv; in obsd_submit_transfer()
688 dpriv = (struct device_priv *)transfer->dev_handle->dev->os_priv; in _sync_control_transfer()
697 req.ucr_addr = transfer->dev_handle->dev->device_address; in _sync_control_transfer()
717 if ((fd = _bus_open(transfer->dev_handle->dev->bus_number)) < 0) in _sync_control_transfer()
750 hpriv = (struct handle_priv *)transfer->dev_handle->os_priv; in _access_endpoint()
751 dpriv = (struct device_priv *)transfer->dev_handle->dev->os_priv; in _access_endpoint()
782 dpriv = (struct device_priv *)transfer->dev_handle->dev->os_priv; in _sync_gen_transfer()
Dwince_usb.c608 struct wince_device_priv *priv = _device_priv(transfer->dev_handle->dev); in wince_cancel_transfer()
620 struct libusb_context *ctx = DEVICE_CTX(transfer->dev_handle->dev); in wince_submit_control_or_bulk_transfer()
622 struct wince_device_priv *priv = _device_priv(transfer->dev_handle->dev); in wince_submit_control_or_bulk_transfer()
703 struct wince_device_priv *priv = _device_priv(transfer->dev_handle->dev); in wince_transfer_callback()
Dlinux_usbfs.c1299 static void op_close(struct libusb_device_handle *dev_handle) in op_close() argument
1301 int fd = _device_handle_priv(dev_handle)->fd; in op_close()
1302 usbi_remove_pollfd(HANDLE_CTX(dev_handle), fd); in op_close()
1646 _device_handle_priv(transfer->dev_handle); in discard_urbs()
1696 _device_handle_priv(transfer->dev_handle); in submit_bulk_transfer()
1861 _device_handle_priv(transfer->dev_handle); in submit_iso_transfer()
2015 _device_handle_priv(transfer->dev_handle); in submit_control_transfer()
/external/chromium_org/third_party/libusb/src/libusb/
Dsync.c47 struct libusb_context *ctx = HANDLE_CTX(transfer->dev_handle); in sync_transfer_wait_for_completion()
90 int API_EXPORTED libusb_control_transfer(libusb_device_handle *dev_handle, in libusb_control_transfer() argument
113 libusb_fill_control_transfer(transfer, dev_handle, buffer, in libusb_control_transfer()
149 usbi_warn(HANDLE_CTX(dev_handle), in libusb_control_transfer()
158 static int do_sync_bulk_transfer(struct libusb_device_handle *dev_handle, in do_sync_bulk_transfer() argument
169 libusb_fill_bulk_transfer(transfer, dev_handle, endpoint, buffer, length, in do_sync_bulk_transfer()
203 usbi_warn(HANDLE_CTX(dev_handle), in do_sync_bulk_transfer()
252 int API_EXPORTED libusb_bulk_transfer(struct libusb_device_handle *dev_handle, in libusb_bulk_transfer() argument
256 return do_sync_bulk_transfer(dev_handle, endpoint, data, length, in libusb_bulk_transfer()
302 struct libusb_device_handle *dev_handle, unsigned char endpoint, in libusb_interrupt_transfer() argument
[all …]
Dlibusb.h1212 libusb_device_handle *dev_handle; member
1374 void LIBUSB_CALL libusb_close(libusb_device_handle *dev_handle);
1375 libusb_device * LIBUSB_CALL libusb_get_device(libusb_device_handle *dev_handle);
1509 struct libusb_transfer *transfer, libusb_device_handle *dev_handle, in libusb_fill_control_transfer() argument
1514 transfer->dev_handle = dev_handle; in libusb_fill_control_transfer()
1540 libusb_device_handle *dev_handle, unsigned char endpoint, in libusb_fill_bulk_transfer() argument
1544 transfer->dev_handle = dev_handle; in libusb_fill_bulk_transfer()
1568 struct libusb_transfer *transfer, libusb_device_handle *dev_handle, in libusb_fill_interrupt_transfer() argument
1572 transfer->dev_handle = dev_handle; in libusb_fill_interrupt_transfer()
1597 libusb_device_handle *dev_handle, unsigned char endpoint, in libusb_fill_iso_transfer() argument
[all …]
Dcore.c1184 struct libusb_device_handle *dev_handle) in do_close() argument
1199 if (transfer->dev_handle != dev_handle) in do_close()
1217 transfer->dev_handle = NULL; in do_close()
1225 transfer, dev_handle); in do_close()
1232 list_del(&dev_handle->list); in do_close()
1235 usbi_backend->close(dev_handle); in do_close()
1236 libusb_unref_device(dev_handle->dev); in do_close()
1237 usbi_mutex_destroy(&dev_handle->lock); in do_close()
1238 free(dev_handle); in do_close()
1252 void API_EXPORTED libusb_close(libusb_device_handle *dev_handle) in libusb_close() argument
[all …]
/external/bluetooth/bluedroid/bta/include/
Dbta_hh_api.h369 BTA_API extern void BTA_HhClose(UINT8 dev_handle);
391 BTA_API extern void BTA_HhGetProtoMode(UINT8 dev_handle);
401 BTA_API extern void BTA_HhSetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type,
413 BTA_API extern void BTA_HhGetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type,
424 BTA_API extern void BTA_HhSetIdle(UINT8 dev_handle, UINT16 idle_rate);
435 BTA_API extern void BTA_HhGetIdle(UINT8 dev_handle);
446 BTA_API extern void BTA_HhSendCtrl(UINT8 dev_handle,
458 BTA_API extern void BTA_HhSetIdle(UINT8 dev_handle, UINT16 idle_rate);
470 BTA_API extern void BTA_HhGetIdle(UINT8 dev_handle);
481 BTA_API extern void BTA_HhSendData(UINT8 dev_handle, BD_ADDR dev_bda, BT_HDR *p_buf);
[all …]
Dbta_hh_co.h49 BTA_API extern void bta_hh_co_data(UINT8 dev_handle, UINT8 *p_rpt, UINT16 len,
64 BTA_API extern void bta_hh_co_open(UINT8 dev_handle, UINT8 sub_class,
77 BTA_API extern void bta_hh_co_close(UINT8 dev_handle, UINT8 app_id);
/external/bluetooth/bluedroid/btif/co/
Dbta_hh_co.c237 void bta_hh_co_open(UINT8 dev_handle, UINT8 sub_class, tBTA_HH_ATTR_MASK attr_mask, in bta_hh_co_open() argument
243 if (dev_handle == BTA_HH_INVALID_HANDLE) { in bta_hh_co_open()
244 APPL_TRACE_WARNING("%s: Oops, dev_handle (%d) is invalid...", __FUNCTION__, dev_handle); in bta_hh_co_open()
250 if (p_dev->dev_status != BTHH_CONN_STATE_UNKNOWN && p_dev->dev_handle == dev_handle) { in bta_hh_co_open()
281 p_dev->dev_handle = dev_handle; in bta_hh_co_open()
327 void bta_hh_co_close(UINT8 dev_handle, UINT8 app_id) in bta_hh_co_close() argument
332 APPL_TRACE_WARNING("%s: dev_handle = %d, app_id = %d", __FUNCTION__, dev_handle, app_id); in bta_hh_co_close()
333 if (dev_handle == BTA_HH_INVALID_HANDLE) { in bta_hh_co_close()
334 APPL_TRACE_WARNING("%s: Oops, dev_handle (%d) is invalid...", __FUNCTION__, dev_handle); in bta_hh_co_close()
340 if (p_dev->dev_status != BTHH_CONN_STATE_UNKNOWN && p_dev->dev_handle == dev_handle) { in bta_hh_co_close()
[all …]
/external/bluetooth/bluedroid/stack/include/
Dhidh_api.h79 typedef void (tHID_HOST_DEV_CALLBACK) (UINT8 dev_handle,
151 HID_API extern tHID_STATUS HID_HostRemoveDev (UINT8 dev_handle );
163 HID_API extern tHID_STATUS HID_HostOpenDev (UINT8 dev_handle );
174 HID_API extern tHID_STATUS HID_HostWriteDev(UINT8 dev_handle, UINT8 t_type,
187 HID_API extern tHID_STATUS HID_HostCloseDev(UINT8 dev_handle );
/external/bluetooth/bluedroid/btif/src/
Dbtif_hh.c290 __FUNCTION__, p_dev->dev_handle, btif_hh_keylockstates); in update_keyboard_lockstates()
297 BTA_HhSendData(p_dev->dev_handle, *bda, p_buf); in update_keyboard_lockstates()
351 btif_hh_cb.devices[i].dev_handle == handle) in btif_hh_find_connected_dev_by_handle()
482 btif_hh_cb.added_devices[i].dev_handle = BTA_HH_INVALID_HANDLE; in btif_hh_add_added_dev()
512 BTA_HhRemoveDev(p_added_dev->dev_handle); in btif_hh_remove_device()
515 p_added_dev->dev_handle = BTA_HH_INVALID_HANDLE; in btif_hh_remove_device()
531 p_dev->dev_handle = BTA_HH_INVALID_HANDLE; in btif_hh_remove_device()
600 BTA_HhSendCtrl(p_dev->dev_handle, BTA_HH_CTRL_VIRTUAL_CABLE_UNPLUG); in btif_hh_virtual_unplug()
649 if (added_dev->dev_handle == BTA_HH_INVALID_HANDLE) { in btif_hh_connect()
653 added_dev->dev_handle = BTA_HH_INVALID_HANDLE; in btif_hh_connect()
[all …]
/external/chromium_org/third_party/libusb/
Dupstream-tick147.patch5 @@ -1268,7 +1268,7 @@ static int darwin_release_interface(struct libusb_device_handle *dev_handle, …
7 usbi_warn (HANDLE_CTX (dev_handle), "Release: %s", darwin_error_str(kresult));
/external/bluetooth/bluedroid/btif/include/
Dbtif_hh.h60 UINT8 dev_handle; member
76 UINT8 dev_handle; member

12