Lines Matching refs:bulk
757 struct usbdevfs_bulktransfer bulk; in proc_bulk() local
763 if (copy_from_user(&bulk, arg, sizeof(bulk))) in proc_bulk()
765 ret = findintfep(ps->dev, bulk.ep); in proc_bulk()
771 if (bulk.ep & USB_DIR_IN) in proc_bulk()
772 pipe = usb_rcvbulkpipe(dev, bulk.ep & 0x7f); in proc_bulk()
774 pipe = usb_sndbulkpipe(dev, bulk.ep & 0x7f); in proc_bulk()
775 if (!usb_maxpacket(dev, pipe, !(bulk.ep & USB_DIR_IN))) in proc_bulk()
777 len1 = bulk.len; in proc_bulk()
782 tmo = bulk.timeout; in proc_bulk()
783 if (bulk.ep & 0x80) { in proc_bulk()
784 if (len1 && !access_ok(VERIFY_WRITE, bulk.data, len1)) { in proc_bulk()
789 bulk.len, bulk.timeout); in proc_bulk()
800 if (copy_to_user(bulk.data, tbuf, len2)) { in proc_bulk()
807 if (copy_from_user(tbuf, bulk.data, len1)) { in proc_bulk()
813 bulk.len, bulk.timeout); in proc_bulk()