Lines Matching refs:npackets
1388 unsigned int npackets; in uvc_alloc_urb_buffers() local
1398 npackets = DIV_ROUND_UP(size, psize); in uvc_alloc_urb_buffers()
1399 if (npackets > UVC_MAX_PACKETS) in uvc_alloc_urb_buffers()
1400 npackets = UVC_MAX_PACKETS; in uvc_alloc_urb_buffers()
1403 for (; npackets > 1; npackets /= 2) { in uvc_alloc_urb_buffers()
1405 stream->urb_size = psize * npackets; in uvc_alloc_urb_buffers()
1422 "of %ux%u bytes each.\n", UVC_URBS, npackets, in uvc_alloc_urb_buffers()
1424 return npackets; in uvc_alloc_urb_buffers()
1488 unsigned int npackets, i, j; in uvc_init_video_isoc() local
1495 npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags); in uvc_init_video_isoc()
1496 if (npackets == 0) in uvc_init_video_isoc()
1499 size = npackets * psize; in uvc_init_video_isoc()
1502 urb = usb_alloc_urb(npackets, gfp_flags); in uvc_init_video_isoc()
1521 urb->number_of_packets = npackets; in uvc_init_video_isoc()
1524 for (j = 0; j < npackets; ++j) { in uvc_init_video_isoc()
1543 unsigned int npackets, pipe, i; in uvc_init_video_bulk() local
1551 npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags); in uvc_init_video_bulk()
1552 if (npackets == 0) in uvc_init_video_bulk()
1555 size = npackets * psize; in uvc_init_video_bulk()