Lines Matching refs:isoc_ctl
141 if (!dev->isoc_ctl.cmd) { in copy_streams()
143 if (dev->isoc_ctl.tmp_buf_len > 0) { in copy_streams()
145 header = dev->isoc_ctl.tmp_buf; in copy_streams()
146 if (4 - dev->isoc_ctl.tmp_buf_len > 0) { in copy_streams()
148 dev->isoc_ctl.tmp_buf_len, in copy_streams()
150 4 - dev->isoc_ctl.tmp_buf_len); in copy_streams()
151 ptr += 4 - dev->isoc_ctl.tmp_buf_len; in copy_streams()
153 dev->isoc_ctl.tmp_buf_len = 0; in copy_streams()
157 dev->isoc_ctl.tmp_buf_len = endp - ptr; in copy_streams()
158 memcpy(&dev->isoc_ctl.tmp_buf, ptr, in copy_streams()
159 dev->isoc_ctl.tmp_buf_len); in copy_streams()
190 if ((dev->isoc_ctl.vfield != field) && in copy_streams()
213 dev->isoc_ctl.vfield = field; in copy_streams()
225 cmd = dev->isoc_ctl.cmd; in copy_streams()
226 size = dev->isoc_ctl.size; in copy_streams()
227 pos = dev->isoc_ctl.pos; in copy_streams()
228 pktsize = dev->isoc_ctl.pktsize; in copy_streams()
229 field = dev->isoc_ctl.field; in copy_streams()
266 dev->isoc_ctl.pos = pos + cpysize; in copy_streams()
267 dev->isoc_ctl.size = size - cpysize; in copy_streams()
268 dev->isoc_ctl.cmd = cmd; in copy_streams()
269 dev->isoc_ctl.field = field; in copy_streams()
270 dev->isoc_ctl.pktsize = pktsize - (endp - ptr); in copy_streams()
273 dev->isoc_ctl.cmd = 0; in copy_streams()
288 unsigned int pos = dev->isoc_ctl.pos, cpysize; in copy_multiplexed()
321 dev->isoc_ctl.pos = pos; in copy_multiplexed()
524 dev->isoc_ctl.buf = NULL; in tm6000_uninit_isoc()
525 for (i = 0; i < dev->isoc_ctl.num_bufs; i++) { in tm6000_uninit_isoc()
526 urb = dev->isoc_ctl.urb[i]; in tm6000_uninit_isoc()
531 dev->isoc_ctl.urb[i] = NULL; in tm6000_uninit_isoc()
533 dev->isoc_ctl.transfer_buffer[i] = NULL; in tm6000_uninit_isoc()
539 kfree(dev->isoc_ctl.urb); in tm6000_uninit_isoc()
540 kfree(dev->isoc_ctl.transfer_buffer); in tm6000_uninit_isoc()
542 dev->isoc_ctl.urb = NULL; in tm6000_uninit_isoc()
543 dev->isoc_ctl.transfer_buffer = NULL; in tm6000_uninit_isoc()
544 dev->isoc_ctl.num_bufs = 0; in tm6000_uninit_isoc()
578 dev->isoc_ctl.max_pkt_size = size; in tm6000_prepare_isoc()
584 dev->isoc_ctl.num_bufs = num_bufs; in tm6000_prepare_isoc()
586 dev->isoc_ctl.urb = kmalloc_array(num_bufs, sizeof(void *), in tm6000_prepare_isoc()
588 if (!dev->isoc_ctl.urb) in tm6000_prepare_isoc()
591 dev->isoc_ctl.transfer_buffer = kmalloc_array(num_bufs, in tm6000_prepare_isoc()
594 if (!dev->isoc_ctl.transfer_buffer) { in tm6000_prepare_isoc()
595 kfree(dev->isoc_ctl.urb); in tm6000_prepare_isoc()
609 kfree(dev->isoc_ctl.urb); in tm6000_prepare_isoc()
610 kfree(dev->isoc_ctl.transfer_buffer); in tm6000_prepare_isoc()
615 for (i = 0; i < dev->isoc_ctl.num_bufs; i++) { in tm6000_prepare_isoc()
622 dev->isoc_ctl.urb[i] = urb; in tm6000_prepare_isoc()
625 dev->isoc_ctl.transfer_buffer[i] = dev->urb_buffer[i]; in tm6000_prepare_isoc()
628 dev->isoc_ctl.transfer_buffer[i], sb_size, in tm6000_prepare_isoc()
654 for (i = 0; i < dev->isoc_ctl.num_bufs; i++) { in tm6000_start_thread()
655 int rc = usb_submit_urb(dev->isoc_ctl.urb[i], GFP_ATOMIC); in tm6000_start_thread()
708 if (dev->isoc_ctl.buf == buf) in free_buffer()
709 dev->isoc_ctl.buf = NULL; in free_buffer()
751 if (!dev->isoc_ctl.num_bufs) { in buffer_prepare()