Lines Matching refs:isoc_ctl
71 WARN_ON(dev->isoc_ctl.buf); in stk1160_next_buffer()
87 struct stk1160_buffer *buf = dev->isoc_ctl.buf; in stk1160_buffer_done()
96 dev->isoc_ctl.buf = NULL; in stk1160_buffer_done()
104 struct stk1160_buffer *buf = dev->isoc_ctl.buf; in stk1160_copy_video()
262 if (dev->isoc_ctl.buf != NULL) in stk1160_process_isoc()
265 dev->isoc_ctl.buf = stk1160_next_buffer(dev); in stk1160_process_isoc()
266 if (dev->isoc_ctl.buf == NULL) in stk1160_process_isoc()
274 if (dev->isoc_ctl.buf == NULL) in stk1160_process_isoc()
282 dev->isoc_ctl.buf->odd = *p & 0x40; in stk1160_process_isoc()
283 dev->isoc_ctl.buf->pos = 0; in stk1160_process_isoc()
332 int i, num_bufs = dev->isoc_ctl.num_bufs; in stk1160_cancel_isoc()
350 usb_kill_urb(dev->isoc_ctl.urb[i]); in stk1160_cancel_isoc()
363 int i, num_bufs = dev->isoc_ctl.num_bufs; in stk1160_free_isoc()
369 urb = dev->isoc_ctl.urb[i]; in stk1160_free_isoc()
372 if (dev->isoc_ctl.transfer_buffer[i]) { in stk1160_free_isoc()
376 dev->isoc_ctl.transfer_buffer[i], in stk1160_free_isoc()
379 kfree(dev->isoc_ctl.transfer_buffer[i]); in stk1160_free_isoc()
383 dev->isoc_ctl.urb[i] = NULL; in stk1160_free_isoc()
385 dev->isoc_ctl.transfer_buffer[i] = NULL; in stk1160_free_isoc()
388 kfree(dev->isoc_ctl.urb); in stk1160_free_isoc()
389 kfree(dev->isoc_ctl.transfer_buffer); in stk1160_free_isoc()
391 dev->isoc_ctl.urb = NULL; in stk1160_free_isoc()
392 dev->isoc_ctl.transfer_buffer = NULL; in stk1160_free_isoc()
393 dev->isoc_ctl.num_bufs = 0; in stk1160_free_isoc()
421 if (dev->isoc_ctl.num_bufs) in stk1160_alloc_isoc()
430 dev->isoc_ctl.buf = NULL; in stk1160_alloc_isoc()
431 dev->isoc_ctl.max_pkt_size = dev->max_pkt_size; in stk1160_alloc_isoc()
432 dev->isoc_ctl.urb = kcalloc(num_bufs, sizeof(void *), GFP_KERNEL); in stk1160_alloc_isoc()
433 if (!dev->isoc_ctl.urb) { in stk1160_alloc_isoc()
438 dev->isoc_ctl.transfer_buffer = kcalloc(num_bufs, sizeof(void *), in stk1160_alloc_isoc()
440 if (!dev->isoc_ctl.transfer_buffer) { in stk1160_alloc_isoc()
442 kfree(dev->isoc_ctl.urb); in stk1160_alloc_isoc()
452 dev->isoc_ctl.urb[i] = urb; in stk1160_alloc_isoc()
455 dev->isoc_ctl.transfer_buffer[i] = usb_alloc_coherent(dev->udev, in stk1160_alloc_isoc()
458 dev->isoc_ctl.transfer_buffer[i] = kmalloc(sb_size, GFP_KERNEL); in stk1160_alloc_isoc()
460 if (!dev->isoc_ctl.transfer_buffer[i]) { in stk1160_alloc_isoc()
469 memset(dev->isoc_ctl.transfer_buffer[i], 0, sb_size); in stk1160_alloc_isoc()
476 urb->transfer_buffer = dev->isoc_ctl.transfer_buffer[i]; in stk1160_alloc_isoc()
493 dev->isoc_ctl.max_pkt_size; in stk1160_alloc_isoc()
494 k += dev->isoc_ctl.max_pkt_size; in stk1160_alloc_isoc()
501 dev->isoc_ctl.num_bufs = num_bufs; in stk1160_alloc_isoc()
511 usb_free_urb(dev->isoc_ctl.urb[i]); in stk1160_alloc_isoc()
512 dev->isoc_ctl.urb[i] = NULL; in stk1160_alloc_isoc()
516 dev->isoc_ctl.num_bufs = i - 1; in stk1160_alloc_isoc()
522 dev->isoc_ctl.num_bufs = i+1; in stk1160_alloc_isoc()