/external/bluetooth/bluedroid/bta/include/ |
H A D | bta_hh_co.h | 41 BTA_API extern void bta_hh_co_data(UINT8 dev_handle, UINT8 *p_rpt, UINT16 len, 56 BTA_API extern void bta_hh_co_open(UINT8 dev_handle, UINT8 sub_class, 69 BTA_API extern void bta_hh_co_close(UINT8 dev_handle, UINT8 app_id);
|
H A D | bta_hh_api.h | 330 BTA_API extern void BTA_HhClose(UINT8 dev_handle); 352 BTA_API extern void BTA_HhGetProtoMode(UINT8 dev_handle); 362 BTA_API extern void BTA_HhSetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, 374 BTA_API extern void BTA_HhGetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, 385 BTA_API extern void BTA_HhSendCtrl(UINT8 dev_handle, 397 BTA_API extern void BTA_HhSetIdle(UINT8 dev_handle, UINT16 idle_rate); 409 BTA_API extern void BTA_HhGetIdle(UINT8 dev_handle); 420 BTA_API extern void BTA_HhSendData(UINT8 dev_handle, BD_ADDR dev_bda, BT_HDR *p_buf); 431 BTA_API extern void BTA_HhGetDscpInfo(UINT8 dev_handle); 457 BTA_API extern void BTA_HhRemoveDev(UINT8 dev_handle ); [all...] |
/external/bluetooth/bluedroid/bta/hh/ |
H A D | bta_hh_api.c | 115 void BTA_HhClose(UINT8 dev_handle) argument 123 p_buf->layer_specific = (UINT16) dev_handle; 168 static void bta_hh_snd_write_dev(UINT8 dev_handle, UINT8 t_type, UINT8 param, argument 179 p_buf->hdr.layer_specific = (UINT16) dev_handle; 195 ** Parameter dev_handle: device handle 201 void BTA_HhSetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, BT_HDR *p_data) argument 203 bta_hh_snd_write_dev(dev_handle, HID_TRANS_SET_REPORT, r_type, 0, 0, p_data); 214 void BTA_HhGetReport(UINT8 dev_handle, tBTA_HH_RPT_TYPE r_type, UINT8 rpt_id, UINT16 buf_size) argument 218 bta_hh_snd_write_dev(dev_handle, HID_TRANS_GET_REPORT, param, 230 void BTA_HhSetProtoMode(UINT8 dev_handle, tBTA_HH_PROTO_MOD argument 244 BTA_HhGetProtoMode(UINT8 dev_handle) argument 257 BTA_HhSetIdle(UINT8 dev_handle, UINT16 idle_rate) argument 271 BTA_HhGetIdle(UINT8 dev_handle) argument 284 BTA_HhSendCtrl(UINT8 dev_handle, tBTA_HH_TRANS_CTRL_TYPE c_type) argument 297 BTA_HhSendData(UINT8 dev_handle, BD_ADDR dev_bda, BT_HDR *p_data) argument 311 BTA_HhGetDscpInfo(UINT8 dev_handle) argument [all...] |
H A D | bta_hh_act.c | 45 static void bta_hh_cback (UINT8 dev_handle, UINT8 event, UINT32 data, 522 UINT8 dev_handle = p_data ? (UINT8)p_data->hid_cback.hdr.layer_specific : \ local 526 conn.handle = dev_handle; 544 if ((HID_HostWriteDev(dev_handle, 580 UINT8 dev_handle = p_data ? (UINT8)p_data->hid_cback.hdr.layer_specific : \ local 583 APPL_TRACE_EVENT1 ("bta_hh_open_act: Device[%d] connected", dev_handle); 876 UINT8 dev_handle; local 888 if (HID_HostAddDev(p_dev_info->bda, p_dev_info->attr_mask, &dev_handle)\ 891 dev_info.handle = dev_handle; 901 bta_hh_add_device_to_list(p_cb, dev_handle, 1054 bta_hh_cback(UINT8 dev_handle, UINT8 event, UINT32 data, BT_HDR *pdata) argument [all...] |
/external/libusb/libusb/ |
H A D | sync.c | 53 * \param dev_handle a handle for the device to communicate with 72 API_EXPORTED int libusb_control_transfer(libusb_device_handle *dev_handle, argument 95 libusb_fill_control_transfer(transfer, dev_handle, buffer, 105 r = libusb_handle_events(HANDLE_CTX(dev_handle)); 111 if (libusb_handle_events(HANDLE_CTX(dev_handle)) < 0) 136 usbi_warn(HANDLE_CTX(dev_handle), 153 static int do_sync_bulk_transfer(struct libusb_device_handle *dev_handle, argument 164 libusb_fill_bulk_transfer(transfer, dev_handle, endpoint, buffer, length, 175 r = libusb_handle_events(HANDLE_CTX(dev_handle)); 181 if (libusb_handle_events(HANDLE_CTX(dev_handle)) < 255 libusb_bulk_transfer(struct libusb_device_handle *dev_handle, unsigned char endpoint, unsigned char *data, int length, int *transferred, unsigned int timeout) argument 304 libusb_interrupt_transfer( struct libusb_device_handle *dev_handle, unsigned char endpoint, unsigned char *data, int length, int *transferred, unsigned int timeout) argument [all...] |
H A D | libusb.h | 718 libusb_device_handle *dev_handle; member in struct:libusb_transfer 800 void libusb_close(libusb_device_handle *dev_handle); 801 libusb_device *libusb_get_device(libusb_device_handle *dev_handle); 916 * \param dev_handle handle of the device that will handle the transfer 924 struct libusb_transfer *transfer, libusb_device_handle *dev_handle, 929 transfer->dev_handle = dev_handle; 946 * \param dev_handle handle of the device that will handle the transfer 955 libusb_device_handle *dev_handle, unsigned char endpoint, 959 transfer->dev_handle 923 libusb_fill_control_transfer( struct libusb_transfer *transfer, libusb_device_handle *dev_handle, unsigned char *buffer, libusb_transfer_cb_fn callback, void *user_data, unsigned int timeout) argument 954 libusb_fill_bulk_transfer(struct libusb_transfer *transfer, libusb_device_handle *dev_handle, unsigned char endpoint, unsigned char *buffer, int length, libusb_transfer_cb_fn callback, void *user_data, unsigned int timeout) argument 982 libusb_fill_interrupt_transfer( struct libusb_transfer *transfer, libusb_device_handle *dev_handle, unsigned char endpoint, unsigned char *buffer, int length, libusb_transfer_cb_fn callback, void *user_data, unsigned int timeout) argument 1011 libusb_fill_iso_transfer(struct libusb_transfer *transfer, libusb_device_handle *dev_handle, unsigned char endpoint, unsigned char *buffer, int length, int num_iso_packets, libusb_transfer_cb_fn callback, void *user_data, unsigned int timeout) argument [all...] |
H A D | core.c | 984 struct libusb_device_handle *dev_handle) 987 list_del(&dev_handle->list); 990 usbi_backend->close(dev_handle); 991 libusb_unref_device(dev_handle->dev); 992 free(dev_handle); 1004 * \param dev_handle the handle to close 1006 API_EXPORTED void libusb_close(libusb_device_handle *dev_handle) argument 1012 if (!dev_handle) 1016 ctx = HANDLE_CTX(dev_handle); 1033 do_close(ctx, dev_handle); 983 do_close(struct libusb_context *ctx, struct libusb_device_handle *dev_handle) argument 1067 libusb_get_device(libusb_device_handle *dev_handle) argument [all...] |
H A D | libusbi.h | 137 #define TRANSFER_CTX(transfer) (HANDLE_CTX((transfer)->dev_handle))
|
H A D | io.c | 2294 if (__USBI_TRANSFER_TO_LIBUSB_TRANSFER(cur)->dev_handle == handle) {
|
/external/bluetooth/bluedroid/stack/include/ |
H A D | hidh_api.h | 78 typedef void (tHID_HOST_DEV_CALLBACK) (UINT8 dev_handle, 149 HID_API extern tHID_STATUS HID_HostRemoveDev (UINT8 dev_handle ); 161 HID_API extern tHID_STATUS HID_HostOpenDev (UINT8 dev_handle ); 172 HID_API extern tHID_STATUS HID_HostWriteDev(UINT8 dev_handle, UINT8 t_type, 185 HID_API extern tHID_STATUS HID_HostCloseDev(UINT8 dev_handle );
|
/external/libusb/libusb/os/ |
H A D | darwin_usb.c | 53 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_t *ifcp) { argument 117 struct darwin_device_handle_priv *priv = (struct darwin_device_handle_priv *)dev_handle->os_priv; 124 usbi_info (HANDLE_CTX(dev_handle), "converting ep address 0x%02x to pipeRef and interface", ep); 129 if (dev_handle->claimed_interfaces & (1 << iface)) { 134 usbi_info (HANDLE_CTX(dev_handle), "pipe %d on interface %d matches", *pipep, *ifcp); 142 usbi_warn (HANDLE_CTX(dev_handle), "no pipeRef found with endpoint address 0x%02x.", ep); 577 static int darwin_open (struct libusb_device_handle *dev_handle) { argument 638 darwin_close(struct libusb_device_handle *dev_handle) argument 692 darwin_get_configuration(struct libusb_device_handle *dev_handle, int *config) argument 706 darwin_set_configuration(struct libusb_device_handle *dev_handle, int config) argument 756 get_endpoints(struct libusb_device_handle *dev_handle, int iface) argument 799 darwin_claim_interface(struct libusb_device_handle *dev_handle, int iface) argument 935 darwin_release_interface(struct libusb_device_handle *dev_handle, int iface) argument 968 darwin_set_interface_altsetting(struct libusb_device_handle *dev_handle, int iface, int altsetting) argument 994 darwin_clear_halt(struct libusb_device_handle *dev_handle, unsigned char endpoint) argument 1023 darwin_reset_device(struct libusb_device_handle *dev_handle) argument 1034 darwin_kernel_driver_active(struct libusb_device_handle *dev_handle, int interface) argument 1061 darwin_attach_kernel_driver(struct libusb_device_handle *dev_handle, int interface) argument 1065 darwin_detach_kernel_driver(struct libusb_device_handle *dev_handle, int interface) argument [all...] |
H A D | linux_usbfs.c | 1075 static void op_close(struct libusb_device_handle *dev_handle) argument 1077 int fd = __device_handle_priv(dev_handle)->fd; 1078 usbi_remove_pollfd(HANDLE_CTX(dev_handle), fd); 1342 __device_handle_priv(transfer->dev_handle); 1457 __device_handle_priv(transfer->dev_handle); 1614 __device_handle_priv(transfer->dev_handle); 1678 __device_handle_priv(transfer->dev_handle); 1706 __device_handle_priv(transfer->dev_handle); 1728 __device_handle_priv(transfer->dev_handle); 1890 __device_handle_priv(transfer->dev_handle); [all...] |
/external/bluetooth/bluedroid/stack/hid/ |
H A D | hidh_api.c | 387 tHID_STATUS HID_HostRemoveDev ( UINT8 dev_handle ) 392 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) 395 HID_HostCloseDev( dev_handle ) ; 396 hh_cb.devices[dev_handle].in_use = FALSE; 397 hh_cb.devices[dev_handle].conn.conn_state = HID_CONN_STATE_UNUSED; 398 hh_cb.devices[dev_handle].conn.ctrl_cid = hh_cb.devices[dev_handle].conn.intr_cid = 0; 413 tHID_STATUS HID_HostOpenDev ( UINT8 dev_handle ) 418 if( (dev_handle > 440 HID_HostWriteDev( UINT8 dev_handle, UINT8 t_type, UINT8 param, UINT16 data, UINT8 report_id, BT_HDR *pbuf ) argument [all...] |
/external/bluetooth/bluedroid/btif/co/ |
H A D | bta_hh_co.c | 230 void bta_hh_co_open(UINT8 dev_handle, UINT8 sub_class, tBTA_HH_ATTR_MASK attr_mask, argument 236 if (dev_handle == BTA_HH_INVALID_HANDLE) { 237 APPL_TRACE_WARNING2("%s: Oops, dev_handle (%d) is invalid...", __FUNCTION__, dev_handle); 243 if (p_dev->dev_status != BTHH_CONN_STATE_UNKNOWN && p_dev->dev_handle == dev_handle) { 274 p_dev->dev_handle = dev_handle; 314 ** Parameters dev_handle - device handle 319 void bta_hh_co_close(UINT8 dev_handle, UINT argument 360 bta_hh_co_data(UINT8 dev_handle, UINT8 *p_rpt, UINT16 len, tBTA_HH_PROTO_MODE mode, UINT8 sub_class, UINT8 ctry_code, BD_ADDR peer_addr, UINT8 app_id) argument [all...] |
/external/bluetooth/bluedroid/btif/include/ |
H A D | btif_hh.h | 58 UINT8 dev_handle; member in struct:__anon847 72 UINT8 dev_handle; member in struct:__anon848
|
/external/bluetooth/bluedroid/btif/src/ |
H A D | btif_hh.c | 257 BTIF_TRACE_EVENT3("%s: setting report on dev_handle %d to 0x%x", 258 __FUNCTION__, p_dev->dev_handle, btif_hh_keylockstates); 276 BTA_HhSendData(p_dev->dev_handle, *bda, 332 btif_hh_cb.devices[i].dev_handle == handle) 354 btif_hh_cb.devices[i].dev_handle == handle) 433 btif_hh_cb.added_devices[i].dev_handle = BTA_HH_INVALID_HANDLE; 463 BTA_HhRemoveDev(p_added_dev->dev_handle); 466 p_added_dev->dev_handle = BTA_HH_INVALID_HANDLE; 479 p_dev->dev_handle = BTA_HH_INVALID_HANDLE; 547 BTA_HhSendCtrl(p_dev->dev_handle, BTA_HH_CTRL_VIRTUAL_CABLE_UNPLU [all...] |