Lines Matching refs:npackets
1594 unsigned int npackets; in uvc_alloc_urb_buffers() local
1604 npackets = DIV_ROUND_UP(size, psize); in uvc_alloc_urb_buffers()
1605 if (npackets > UVC_MAX_PACKETS) in uvc_alloc_urb_buffers()
1606 npackets = UVC_MAX_PACKETS; in uvc_alloc_urb_buffers()
1609 for (; npackets > 1; npackets /= 2) { in uvc_alloc_urb_buffers()
1613 stream->urb_size = psize * npackets; in uvc_alloc_urb_buffers()
1632 "of %ux%u bytes each.\n", UVC_URBS, npackets, in uvc_alloc_urb_buffers()
1634 return npackets; in uvc_alloc_urb_buffers()
1707 unsigned int npackets, i; in uvc_init_video_isoc() local
1714 npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags); in uvc_init_video_isoc()
1715 if (npackets == 0) in uvc_init_video_isoc()
1718 size = npackets * psize; in uvc_init_video_isoc()
1721 urb = usb_alloc_urb(npackets, gfp_flags); in uvc_init_video_isoc()
1740 urb->number_of_packets = npackets; in uvc_init_video_isoc()
1743 for (i = 0; i < npackets; ++i) { in uvc_init_video_isoc()
1763 unsigned int npackets, pipe; in uvc_init_video_bulk() local
1771 npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags); in uvc_init_video_bulk()
1772 if (npackets == 0) in uvc_init_video_bulk()
1775 size = npackets * psize; in uvc_init_video_bulk()