Lines Matching refs:npackets
673 int i, ep_size, interval, num_urb, npackets; in em28xx_audio_urb_init() local
744 npackets = EM28XX_MIN_AUDIO_PACKETS; in em28xx_audio_urb_init()
745 if (urb_size > ep_size * npackets) in em28xx_audio_urb_init()
746 npackets = DIV_ROUND_UP(urb_size, ep_size); in em28xx_audio_urb_init()
750 num_urb, npackets, urb_size); in em28xx_audio_urb_init()
753 dev->adev.period = urb_size * npackets; in em28xx_audio_urb_init()
776 urb = usb_alloc_urb(npackets, GFP_KERNEL); in em28xx_audio_urb_init()
783 buf = usb_alloc_coherent(udev, npackets * ep_size, GFP_KERNEL, in em28xx_audio_urb_init()
800 urb->number_of_packets = npackets; in em28xx_audio_urb_init()
801 urb->transfer_buffer_length = ep_size * npackets; in em28xx_audio_urb_init()
803 for (j = k = 0; j < npackets; j++, k += ep_size) { in em28xx_audio_urb_init()