Lines Matching refs:npackets
960 "frames: %u\npackets: %u\nempty: %u\n"
1628 unsigned int npackets;
1638 npackets = DIV_ROUND_UP(size, psize);
1639 if (npackets > UVC_MAX_PACKETS)
1640 npackets = UVC_MAX_PACKETS;
1643 for (; npackets > 1; npackets /= 2) {
1647 stream->urb_size = psize * npackets;
1666 "of %ux%u bytes each.\n", UVC_URBS, npackets,
1668 return npackets;
1741 unsigned int npackets, i;
1748 npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags);
1749 if (npackets == 0)
1752 size = npackets * psize;
1755 urb = usb_alloc_urb(npackets, gfp_flags);
1774 urb->number_of_packets = npackets;
1777 for (i = 0; i < npackets; ++i) {
1797 unsigned int npackets, pipe;
1805 npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags);
1806 if (npackets == 0)
1809 size = npackets * psize;