Lines Matching refs:len1
1154 unsigned int tmo, len1, pipe; in proc_bulk() local
1173 len1 = bulk.len; in proc_bulk()
1174 if (len1 >= (INT_MAX - sizeof(struct urb))) in proc_bulk()
1176 ret = usbfs_increase_memory_usage(len1 + sizeof(struct urb)); in proc_bulk()
1179 tbuf = kmalloc(len1, GFP_KERNEL); in proc_bulk()
1186 if (len1 && !access_ok(VERIFY_WRITE, bulk.data, len1)) { in proc_bulk()
1190 snoop_urb(dev, NULL, pipe, len1, tmo, SUBMIT, NULL, 0); in proc_bulk()
1193 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in proc_bulk()
1204 if (len1) { in proc_bulk()
1205 if (copy_from_user(tbuf, bulk.data, len1)) { in proc_bulk()
1210 snoop_urb(dev, NULL, pipe, len1, tmo, SUBMIT, tbuf, len1); in proc_bulk()
1213 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in proc_bulk()
1220 usbfs_decrease_memory_usage(len1 + sizeof(struct urb)); in proc_bulk()