Lines Matching refs:tbuf
974 unsigned char *tbuf; in proc_control() local
991 tbuf = (unsigned char *)__get_free_page(GFP_KERNEL); in proc_control()
992 if (!tbuf) { in proc_control()
1014 tbuf, ctrl.wLength, tmo); in proc_control()
1017 tbuf, max(i, 0)); in proc_control()
1019 if (copy_to_user(ctrl.data, tbuf, i)) { in proc_control()
1026 if (copy_from_user(tbuf, ctrl.data, ctrl.wLength)) { in proc_control()
1033 tbuf, ctrl.wLength); in proc_control()
1038 tbuf, ctrl.wLength, tmo); in proc_control()
1050 free_page((unsigned long) tbuf); in proc_control()
1062 unsigned char *tbuf; in proc_bulk() local
1085 tbuf = kmalloc(len1, GFP_KERNEL); in proc_bulk()
1086 if (!tbuf) { in proc_bulk()
1099 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in proc_bulk()
1101 snoop_urb(dev, NULL, pipe, len2, i, COMPLETE, tbuf, len2); in proc_bulk()
1104 if (copy_to_user(bulk.data, tbuf, len2)) { in proc_bulk()
1111 if (copy_from_user(tbuf, bulk.data, len1)) { in proc_bulk()
1116 snoop_urb(dev, NULL, pipe, len1, tmo, SUBMIT, tbuf, len1); in proc_bulk()
1119 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in proc_bulk()
1125 kfree(tbuf); in proc_bulk()