Lines Matching refs:npackets
774 unsigned int npackets;
784 npackets = DIV_ROUND_UP(size, psize);
785 if (npackets > UVC_MAX_PACKETS)
786 npackets = UVC_MAX_PACKETS;
789 for (; npackets > 1; npackets /= 2) {
791 stream->urb_size = psize * npackets;
803 "of %ux%u bytes each.\n", UVC_URBS, npackets,
805 return npackets;
844 unsigned int npackets, i, j;
852 npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags);
853 if (npackets == 0)
856 size = npackets * psize;
859 urb = usb_alloc_urb(npackets, gfp_flags);
874 urb->number_of_packets = npackets;
877 for (j = 0; j < npackets; ++j) {
896 unsigned int npackets, pipe, i;
904 npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags);
905 if (npackets == 0)
908 size = npackets * psize;