Lines Matching defs:bulk
315 static const char *types[] = {"isoc", "int", "ctrl", "bulk"};
844 struct usbdevfs_bulktransfer bulk;
850 if (copy_from_user(&bulk, arg, sizeof(bulk)))
852 ret = findintfep(ps->dev, bulk.ep);
858 if (bulk.ep & USB_DIR_IN)
859 pipe = usb_rcvbulkpipe(dev, bulk.ep & 0x7f);
861 pipe = usb_sndbulkpipe(dev, bulk.ep & 0x7f);
862 if (!usb_maxpacket(dev, pipe, !(bulk.ep & USB_DIR_IN)))
864 len1 = bulk.len;
869 tmo = bulk.timeout;
870 if (bulk.ep & 0x80) {
871 if (len1 && !access_ok(VERIFY_WRITE, bulk.data, len1)) {
883 if (copy_to_user(bulk.data, tbuf, len2)) {
890 if (copy_from_user(tbuf, bulk.data, len1)) {
1293 /* If this bulk URB is the start of a new transfer, re-enable