Lines Matching refs:ctrl
654 struct usbdevfs_ctrltransfer ctrl; in usb_device_control_transfer() local
660 memset(&ctrl, 0, sizeof(ctrl)); in usb_device_control_transfer()
661 ctrl.bRequestType = requestType; in usb_device_control_transfer()
662 ctrl.bRequest = request; in usb_device_control_transfer()
663 ctrl.wValue = value; in usb_device_control_transfer()
664 ctrl.wIndex = index; in usb_device_control_transfer()
665 ctrl.wLength = length; in usb_device_control_transfer()
666 ctrl.data = buffer; in usb_device_control_transfer()
667 ctrl.timeout = timeout; in usb_device_control_transfer()
668 return ioctl(device->fd, USBDEVFS_CONTROL, &ctrl); in usb_device_control_transfer()
677 struct usbdevfs_bulktransfer ctrl; in usb_device_bulk_transfer() local
679 memset(&ctrl, 0, sizeof(ctrl)); in usb_device_bulk_transfer()
680 ctrl.ep = endpoint; in usb_device_bulk_transfer()
681 ctrl.len = length; in usb_device_bulk_transfer()
682 ctrl.data = buffer; in usb_device_bulk_transfer()
683 ctrl.timeout = timeout; in usb_device_bulk_transfer()
684 return ioctl(device->fd, USBDEVFS_BULK, &ctrl); in usb_device_bulk_transfer()