Lines Matching refs:npackets
977 "frames: %u\npackets: %u\nempty: %u\n"
1711 unsigned int npackets;
1722 npackets = DIV_ROUND_UP(size, psize);
1723 if (npackets > UVC_MAX_PACKETS)
1724 npackets = UVC_MAX_PACKETS;
1727 for (; npackets > 1; npackets /= 2) {
1728 stream->urb_size = psize * npackets;
1744 UVC_URBS, npackets, psize);
1745 return npackets;
1811 unsigned int npackets, i;
1818 npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags);
1819 if (npackets == 0)
1822 size = npackets * psize;
1825 urb = usb_alloc_urb(npackets, gfp_flags);
1840 urb->number_of_packets = npackets;
1843 for (i = 0; i < npackets; ++i) {
1863 unsigned int npackets, pipe;
1871 npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags);
1872 if (npackets == 0)
1875 size = npackets * psize;