Lines Matching refs:npackets
1399 unsigned int npackets; in uvc_alloc_urb_buffers() local
1409 npackets = DIV_ROUND_UP(size, psize); in uvc_alloc_urb_buffers()
1410 if (npackets > UVC_MAX_PACKETS) in uvc_alloc_urb_buffers()
1411 npackets = UVC_MAX_PACKETS; in uvc_alloc_urb_buffers()
1414 for (; npackets > 1; npackets /= 2) { in uvc_alloc_urb_buffers()
1416 stream->urb_size = psize * npackets; in uvc_alloc_urb_buffers()
1433 "of %ux%u bytes each.\n", UVC_URBS, npackets, in uvc_alloc_urb_buffers()
1435 return npackets; in uvc_alloc_urb_buffers()
1499 unsigned int npackets, i, j; in uvc_init_video_isoc() local
1506 npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags); in uvc_init_video_isoc()
1507 if (npackets == 0) in uvc_init_video_isoc()
1510 size = npackets * psize; in uvc_init_video_isoc()
1513 urb = usb_alloc_urb(npackets, gfp_flags); in uvc_init_video_isoc()
1532 urb->number_of_packets = npackets; in uvc_init_video_isoc()
1535 for (j = 0; j < npackets; ++j) { in uvc_init_video_isoc()
1554 unsigned int npackets, pipe, i; in uvc_init_video_bulk() local
1562 npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags); in uvc_init_video_bulk()
1563 if (npackets == 0) in uvc_init_video_bulk()
1566 size = npackets * psize; in uvc_init_video_bulk()