Lines Matching refs:tbuf
1171 unsigned char *tbuf; in do_proc_control() local
1190 tbuf = (unsigned char *)__get_free_page(GFP_KERNEL); in do_proc_control()
1191 if (!tbuf) in do_proc_control()
1215 usb_fill_control_urb(urb, dev, pipe, (unsigned char *) dr, tbuf, in do_proc_control()
1226 snoop_urb(dev, NULL, pipe, actlen, i, COMPLETE, tbuf, actlen); in do_proc_control()
1228 if (copy_to_user(ctrl->data, tbuf, actlen)) { in do_proc_control()
1235 if (copy_from_user(tbuf, ctrl->data, wLength)) { in do_proc_control()
1241 usb_fill_control_urb(urb, dev, pipe, (unsigned char *) dr, tbuf, in do_proc_control()
1243 snoop_urb(dev, NULL, pipe, wLength, tmo, SUBMIT, tbuf, wLength); in do_proc_control()
1265 free_page((unsigned long) tbuf); in do_proc_control()
1285 unsigned char *tbuf; in do_proc_bulk() local
1317 tbuf = kmalloc(len1, GFP_KERNEL | __GFP_NOWARN); in do_proc_bulk()
1318 if (!tbuf) in do_proc_bulk()
1327 usb_fill_int_urb(urb, dev, pipe, tbuf, len1, in do_proc_bulk()
1330 usb_fill_bulk_urb(urb, dev, pipe, tbuf, len1, NULL, NULL); in do_proc_bulk()
1340 snoop_urb(dev, NULL, pipe, len2, i, COMPLETE, tbuf, len2); in do_proc_bulk()
1343 if (copy_to_user(bulk->data, tbuf, len2)) { in do_proc_bulk()
1350 if (copy_from_user(tbuf, bulk->data, len1)) { in do_proc_bulk()
1355 snoop_urb(dev, NULL, pipe, len1, tmo, SUBMIT, tbuf, len1); in do_proc_bulk()
1365 kfree(tbuf); in do_proc_bulk()