Lines Matching refs:purb

708 static void dib0700_rc_urb_completion(struct urb *purb)  in dib0700_rc_urb_completion()  argument
710 struct dvb_usb_device *d = purb->context; in dib0700_rc_urb_completion()
719 kfree(purb->transfer_buffer); in dib0700_rc_urb_completion()
720 usb_free_urb(purb); in dib0700_rc_urb_completion()
724 poll_reply = purb->transfer_buffer; in dib0700_rc_urb_completion()
726 if (purb->status < 0) { in dib0700_rc_urb_completion()
728 kfree(purb->transfer_buffer); in dib0700_rc_urb_completion()
729 usb_free_urb(purb); in dib0700_rc_urb_completion()
733 if (purb->actual_length != RC_MSG_SIZE_V1_20) { in dib0700_rc_urb_completion()
734 deb_info("malformed rc msg size=%d\n", purb->actual_length); in dib0700_rc_urb_completion()
742 purb->actual_length); in dib0700_rc_urb_completion()
801 memset(purb->transfer_buffer, 0, RC_MSG_SIZE_V1_20); in dib0700_rc_urb_completion()
804 usb_submit_urb(purb, GFP_ATOMIC); in dib0700_rc_urb_completion()
810 struct urb *purb; in dib0700_rc_setup() local
824 purb = usb_alloc_urb(0, GFP_KERNEL); in dib0700_rc_setup()
825 if (purb == NULL) in dib0700_rc_setup()
828 purb->transfer_buffer = kzalloc(RC_MSG_SIZE_V1_20, GFP_KERNEL); in dib0700_rc_setup()
829 if (purb->transfer_buffer == NULL) { in dib0700_rc_setup()
831 usb_free_urb(purb); in dib0700_rc_setup()
835 purb->status = -EINPROGRESS; in dib0700_rc_setup()
845 usb_fill_bulk_urb(purb, d->udev, pipe, in dib0700_rc_setup()
846 purb->transfer_buffer, in dib0700_rc_setup()
852 usb_fill_int_urb(purb, d->udev, pipe, in dib0700_rc_setup()
853 purb->transfer_buffer, in dib0700_rc_setup()
861 kfree(purb->transfer_buffer); in dib0700_rc_setup()
862 usb_free_urb(purb); in dib0700_rc_setup()
866 ret = usb_submit_urb(purb, GFP_ATOMIC); in dib0700_rc_setup()
869 kfree(purb->transfer_buffer); in dib0700_rc_setup()
870 usb_free_urb(purb); in dib0700_rc_setup()