Lines Matching refs:sbuf
261 if (pdev->sbuf[i].data == NULL) { in pwc_allocate_buffers()
268 pdev->sbuf[i].data = kbuf; in pwc_allocate_buffers()
346 if (pdev->sbuf[i].data != NULL) { in pwc_free_buffers()
347 Trace(TRACE_MEMORY, "Freeing ISO buffer at %p.\n", pdev->sbuf[i].data); in pwc_free_buffers()
348 kfree(pdev->sbuf[i].data); in pwc_free_buffers()
349 pdev->sbuf[i].data = NULL; in pwc_free_buffers()
830 pdev->sbuf[i].urb = urb; in pwc_isoc_init()
836 if (pdev->sbuf[i].urb != NULL) in pwc_isoc_init()
837 usb_free_urb(pdev->sbuf[i].urb); in pwc_isoc_init()
838 pdev->sbuf[i].urb = NULL; in pwc_isoc_init()
846 urb = pdev->sbuf[i].urb; in pwc_isoc_init()
848 urb->next = pdev->sbuf[(i + 1) % MAX_ISO_BUFS].urb; in pwc_isoc_init()
852 urb->transfer_buffer = pdev->sbuf[i].data; in pwc_isoc_init()
866 ret = usb_submit_urb(pdev->sbuf[i].urb); in pwc_isoc_init()
870 Trace(TRACE_OPEN, "URB 0x%p submitted.\n", pdev->sbuf[i].urb); in pwc_isoc_init()
891 urb = pdev->sbuf[i].urb; in pwc_isoc_cleanup()
899 pdev->sbuf[i].urb = NULL; in pwc_isoc_cleanup()