Searched refs:LIBUSB_CONTROL_SETUP_SIZE (Results 1 – 11 of 11) sorted by relevance
/third_party/libusb/libusb/ |
D | sync.c | 113 buffer = malloc(LIBUSB_CONTROL_SETUP_SIZE + wLength); in libusb_control_transfer() 122 memcpy(buffer + LIBUSB_CONTROL_SETUP_SIZE, data, wLength); in libusb_control_transfer()
|
D | libusb.h | 939 #define LIBUSB_CONTROL_SETUP_SIZE (sizeof(struct libusb_control_setup)) macro 1475 return transfer->buffer + LIBUSB_CONTROL_SETUP_SIZE; in libusb_control_transfer_get_data() 1580 transfer->length = (int) (LIBUSB_CONTROL_SETUP_SIZE in libusb_fill_control_transfer()
|
D | io.c | 1680 rqlen -= LIBUSB_CONTROL_SETUP_SIZE; in usbi_handle_transfer_completion()
|
/third_party/libusb/examples/ |
D | dpfp.c | 316 unsigned char *buf = malloc(LIBUSB_CONTROL_SETUP_SIZE + 1); in set_mode_async() 330 buf[LIBUSB_CONTROL_SETUP_SIZE] = data; in set_mode_async()
|
/third_party/libusb/libusb/os/ |
D | sunos_usb.c | 1286 wLength = transfer->length - LIBUSB_CONTROL_SETUP_SIZE; in solaris_submit_ctrl_on_default() 1297 hpriv->eps[0].statfd, data, LIBUSB_CONTROL_SETUP_SIZE, in solaris_submit_ctrl_on_default() 1307 if (ret < (ssize_t)LIBUSB_CONTROL_SETUP_SIZE) { in solaris_submit_ctrl_on_default() 1313 ret = transfer->length - LIBUSB_CONTROL_SETUP_SIZE; in solaris_submit_ctrl_on_default() 1321 transfer->buffer + LIBUSB_CONTROL_SETUP_SIZE, in solaris_submit_ctrl_on_default()
|
D | netbsd_usb.c | 531 req.ucr_data = transfer->buffer + LIBUSB_CONTROL_SETUP_SIZE; in _sync_control_transfer()
|
D | windows_winusb.c | 2703 size = transfer->length - LIBUSB_CONTROL_SETUP_SIZE; in winusbx_submit_control_transfer() 2735 …_api].ControlTransfer(winusb_handle, *setup, transfer->buffer + LIBUSB_CONTROL_SETUP_SIZE, size, N… in winusbx_submit_control_transfer() 3892 size = transfer->length - LIBUSB_CONTROL_SETUP_SIZE; in hid_submit_control_transfer() 3914 …(setup->Value >> 8) & 0xFF, setup->Value & 0xFF, transfer->buffer + LIBUSB_CONTROL_SETUP_SIZE, &si… in hid_submit_control_transfer() 3920 ((uint8_t *)transfer->buffer)[LIBUSB_CONTROL_SETUP_SIZE] = config; in hid_submit_control_transfer() 3934 ((uint8_t *)transfer->buffer)[LIBUSB_CONTROL_SETUP_SIZE] = 0; in hid_submit_control_transfer() 3949 setup->Index, transfer->buffer + LIBUSB_CONTROL_SETUP_SIZE, transfer_priv, in hid_submit_control_transfer()
|
D | haiku_usb_backend.cpp | 77 command.control.data = fLibusbTransfer->buffer + LIBUSB_CONTROL_SETUP_SIZE; in Do()
|
D | openbsd_usb.c | 581 req.ucr_data = transfer->buffer + LIBUSB_CONTROL_SETUP_SIZE; in _sync_control_transfer()
|
D | darwin_usb.c | 1979 tpriv->req.pData = transfer->buffer + LIBUSB_CONTROL_SETUP_SIZE; in submit_control_transfer()
|
D | linux_usbfs.c | 2209 if (transfer->length - LIBUSB_CONTROL_SETUP_SIZE > MAX_CTRL_BUFFER_LENGTH) in submit_control_transfer()
|