Lines Matching refs:tbuf
551 unsigned char *tbuf; in proc_control() local
560 if (!(tbuf = (unsigned char *)__get_free_page(GFP_KERNEL))) in proc_control()
565 free_page((unsigned long)tbuf); in proc_control()
569 ctrl.value, ctrl.index, tbuf, ctrl.length, tmo); in proc_control()
571 if (copy_to_user(ctrl.data, tbuf, ctrl.length)) { in proc_control()
572 free_page((unsigned long)tbuf); in proc_control()
578 if (copy_from_user(tbuf, ctrl.data, ctrl.length)) { in proc_control()
579 free_page((unsigned long)tbuf); in proc_control()
584 ctrl.value, ctrl.index, tbuf, ctrl.length, tmo); in proc_control()
586 free_page((unsigned long)tbuf); in proc_control()
600 unsigned char *tbuf; in proc_bulk() local
618 if (!(tbuf = (unsigned char *)__get_free_page(GFP_KERNEL))) in proc_bulk()
623 free_page((unsigned long)tbuf); in proc_bulk()
627 free_page((unsigned long)tbuf); in proc_bulk()
630 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in proc_bulk()
633 if (copy_to_user(bulk.data, tbuf, len2)) { in proc_bulk()
634 free_page((unsigned long)tbuf); in proc_bulk()
640 if (copy_from_user(tbuf, bulk.data, len1)) { in proc_bulk()
641 free_page((unsigned long)tbuf); in proc_bulk()
646 free_page((unsigned long)tbuf); in proc_bulk()
649 i = usb_bulk_msg(dev, pipe, tbuf, len1, &len2, tmo); in proc_bulk()
652 free_page((unsigned long)tbuf); in proc_bulk()