Lines Matching refs:npackets
1626 unsigned int npackets; in uvc_alloc_urb_buffers() local
1636 npackets = DIV_ROUND_UP(size, psize); in uvc_alloc_urb_buffers()
1637 if (npackets > UVC_MAX_PACKETS) in uvc_alloc_urb_buffers()
1638 npackets = UVC_MAX_PACKETS; in uvc_alloc_urb_buffers()
1641 for (; npackets > 1; npackets /= 2) { in uvc_alloc_urb_buffers()
1645 stream->urb_size = psize * npackets; in uvc_alloc_urb_buffers()
1664 "of %ux%u bytes each.\n", UVC_URBS, npackets, in uvc_alloc_urb_buffers()
1666 return npackets; in uvc_alloc_urb_buffers()
1739 unsigned int npackets, i; in uvc_init_video_isoc() local
1746 npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags); in uvc_init_video_isoc()
1747 if (npackets == 0) in uvc_init_video_isoc()
1750 size = npackets * psize; in uvc_init_video_isoc()
1753 urb = usb_alloc_urb(npackets, gfp_flags); in uvc_init_video_isoc()
1772 urb->number_of_packets = npackets; in uvc_init_video_isoc()
1775 for (i = 0; i < npackets; ++i) { in uvc_init_video_isoc()
1795 unsigned int npackets, pipe; in uvc_init_video_bulk() local
1803 npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags); in uvc_init_video_bulk()
1804 if (npackets == 0) in uvc_init_video_bulk()
1807 size = npackets * psize; in uvc_init_video_bulk()