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 if (!(tbuf = kmalloc(len1, GFP_KERNEL))) { in proc_bulk()
1098 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in proc_bulk()
1100 snoop_urb(dev, NULL, pipe, len2, i, COMPLETE, tbuf, len2); in proc_bulk()
1103 if (copy_to_user(bulk.data, tbuf, len2)) { in proc_bulk()
1110 if (copy_from_user(tbuf, bulk.data, len1)) { in proc_bulk()
1115 snoop_urb(dev, NULL, pipe, len1, tmo, SUBMIT, tbuf, len1); in proc_bulk()
1118 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in proc_bulk()
1124 kfree(tbuf); in proc_bulk()