Lines Matching refs:bulk_urb
100 dev->dvb->bulk_urb = NULL; in tm6000_urb_received()
118 dvb->bulk_urb = usb_alloc_urb(0, GFP_KERNEL); in tm6000_start_stream()
119 if (!dvb->bulk_urb) in tm6000_start_stream()
128 dvb->bulk_urb->transfer_buffer = kzalloc(size, GFP_KERNEL); in tm6000_start_stream()
129 if (!dvb->bulk_urb->transfer_buffer) { in tm6000_start_stream()
130 usb_free_urb(dvb->bulk_urb); in tm6000_start_stream()
131 dvb->bulk_urb = NULL; in tm6000_start_stream()
135 usb_fill_bulk_urb(dvb->bulk_urb, dev->udev, pipe, in tm6000_start_stream()
136 dvb->bulk_urb->transfer_buffer, in tm6000_start_stream()
145 kfree(dvb->bulk_urb->transfer_buffer); in tm6000_start_stream()
146 usb_free_urb(dvb->bulk_urb); in tm6000_start_stream()
147 dvb->bulk_urb = NULL; in tm6000_start_stream()
153 ret = usb_submit_urb(dvb->bulk_urb, GFP_ATOMIC); in tm6000_start_stream()
160 kfree(dvb->bulk_urb->transfer_buffer); in tm6000_start_stream()
161 usb_free_urb(dvb->bulk_urb); in tm6000_start_stream()
162 dvb->bulk_urb = NULL; in tm6000_start_stream()
173 if (dvb->bulk_urb) { in tm6000_stop_stream()
175 usb_kill_urb(dvb->bulk_urb); in tm6000_stop_stream()
177 kfree(dvb->bulk_urb->transfer_buffer); in tm6000_stop_stream()
178 usb_free_urb(dvb->bulk_urb); in tm6000_stop_stream()
179 dvb->bulk_urb = NULL; in tm6000_stop_stream()
367 if (dvb->bulk_urb) { in unregister_dvb()
368 struct urb *bulk_urb = dvb->bulk_urb; in unregister_dvb() local
370 kfree(bulk_urb->transfer_buffer); in unregister_dvb()
371 bulk_urb->transfer_buffer = NULL; in unregister_dvb()
372 usb_unlink_urb(bulk_urb); in unregister_dvb()
373 usb_free_urb(bulk_urb); in unregister_dvb()