Lines Matching refs:tbuf
1088 unsigned char *tbuf; in proc_control() local
1105 tbuf = (unsigned char *)__get_free_page(GFP_KERNEL); in proc_control()
1106 if (!tbuf) { in proc_control()
1128 tbuf, ctrl.wLength, tmo); in proc_control()
1131 tbuf, max(i, 0)); in proc_control()
1133 if (copy_to_user(ctrl.data, tbuf, i)) { in proc_control()
1140 if (copy_from_user(tbuf, ctrl.data, ctrl.wLength)) { in proc_control()
1147 tbuf, ctrl.wLength); in proc_control()
1152 tbuf, ctrl.wLength, tmo); in proc_control()
1164 free_page((unsigned long) tbuf); in proc_control()
1176 unsigned char *tbuf; in proc_bulk() local
1199 tbuf = kmalloc(len1, GFP_KERNEL); in proc_bulk()
1200 if (!tbuf) { in proc_bulk()
1213 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in proc_bulk()
1215 snoop_urb(dev, NULL, pipe, len2, i, COMPLETE, tbuf, len2); in proc_bulk()
1218 if (copy_to_user(bulk.data, tbuf, len2)) { in proc_bulk()
1225 if (copy_from_user(tbuf, bulk.data, len1)) { in proc_bulk()
1230 snoop_urb(dev, NULL, pipe, len1, tmo, SUBMIT, tbuf, len1); in proc_bulk()
1233 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in proc_bulk()
1239 kfree(tbuf); in proc_bulk()