Lines Matching refs:tbuf
1068 unsigned char *tbuf; in proc_control() local
1085 tbuf = (unsigned char *)__get_free_page(GFP_KERNEL); in proc_control()
1086 if (!tbuf) { in proc_control()
1108 tbuf, ctrl.wLength, tmo); in proc_control()
1111 tbuf, max(i, 0)); in proc_control()
1113 if (copy_to_user(ctrl.data, tbuf, i)) { in proc_control()
1120 if (copy_from_user(tbuf, ctrl.data, ctrl.wLength)) { in proc_control()
1127 tbuf, ctrl.wLength); in proc_control()
1132 tbuf, ctrl.wLength, tmo); in proc_control()
1144 free_page((unsigned long) tbuf); in proc_control()
1156 unsigned char *tbuf; in proc_bulk() local
1179 tbuf = kmalloc(len1, GFP_KERNEL); in proc_bulk()
1180 if (!tbuf) { in proc_bulk()
1193 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in proc_bulk()
1195 snoop_urb(dev, NULL, pipe, len2, i, COMPLETE, tbuf, len2); in proc_bulk()
1198 if (copy_to_user(bulk.data, tbuf, len2)) { 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()
1219 kfree(tbuf); in proc_bulk()