Lines Matching refs:tbuf
1110 unsigned char *tbuf; in do_proc_control() local
1125 tbuf = (unsigned char *)__get_free_page(GFP_KERNEL); in do_proc_control()
1126 if (!tbuf) { in do_proc_control()
1143 tbuf, ctrl->wLength, tmo); in do_proc_control()
1146 tbuf, max(i, 0)); in do_proc_control()
1148 if (copy_to_user(ctrl->data, tbuf, i)) { in do_proc_control()
1155 if (copy_from_user(tbuf, ctrl->data, ctrl->wLength)) { in do_proc_control()
1162 tbuf, ctrl->wLength); in do_proc_control()
1167 tbuf, ctrl->wLength, tmo); in do_proc_control()
1179 free_page((unsigned long) tbuf); in do_proc_control()
1200 unsigned char *tbuf; in do_proc_bulk() local
1226 tbuf = kmalloc(len1, GFP_KERNEL | __GFP_NOWARN); in do_proc_bulk()
1227 if (!tbuf) { in do_proc_bulk()
1236 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in do_proc_bulk()
1238 snoop_urb(dev, NULL, pipe, len2, i, COMPLETE, tbuf, len2); in do_proc_bulk()
1241 if (copy_to_user(bulk->data, tbuf, len2)) { in do_proc_bulk()
1248 if (copy_from_user(tbuf, bulk->data, len1)) { in do_proc_bulk()
1253 snoop_urb(dev, NULL, pipe, len1, tmo, SUBMIT, tbuf, len1); in do_proc_bulk()
1256 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in do_proc_bulk()
1262 kfree(tbuf); in do_proc_bulk()