Lines Matching refs:len1
1060 unsigned int tmo, len1, pipe; in proc_bulk() local
1079 len1 = bulk.len; in proc_bulk()
1080 if (len1 >= USBFS_XFER_MAX) in proc_bulk()
1082 ret = usbfs_increase_memory_usage(len1 + sizeof(struct urb)); in proc_bulk()
1085 tbuf = kmalloc(len1, GFP_KERNEL); in proc_bulk()
1092 if (len1 && !access_ok(VERIFY_WRITE, bulk.data, len1)) { in proc_bulk()
1096 snoop_urb(dev, NULL, pipe, len1, tmo, SUBMIT, NULL, 0); in proc_bulk()
1099 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in proc_bulk()
1110 if (len1) { in proc_bulk()
1111 if (copy_from_user(tbuf, bulk.data, len1)) { in proc_bulk()
1116 snoop_urb(dev, NULL, pipe, len1, tmo, SUBMIT, tbuf, len1); in proc_bulk()
1119 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in proc_bulk()
1126 usbfs_decrease_memory_usage(len1 + sizeof(struct urb)); in proc_bulk()