Lines Matching refs:npackets
747 int i, ep_size, interval, num_urb, npackets; in em28xx_audio_urb_init() local
819 npackets = EM28XX_MIN_AUDIO_PACKETS; in em28xx_audio_urb_init()
820 if (urb_size > ep_size * npackets) in em28xx_audio_urb_init()
821 npackets = DIV_ROUND_UP(urb_size, ep_size); in em28xx_audio_urb_init()
824 num_urb, npackets, urb_size); in em28xx_audio_urb_init()
827 dev->adev.period = urb_size * npackets; in em28xx_audio_urb_init()
851 urb = usb_alloc_urb(npackets, GFP_ATOMIC); in em28xx_audio_urb_init()
859 buf = usb_alloc_coherent(dev->udev, npackets * ep_size, GFP_ATOMIC, in em28xx_audio_urb_init()
875 urb->number_of_packets = npackets; in em28xx_audio_urb_init()
876 urb->transfer_buffer_length = ep_size * npackets; in em28xx_audio_urb_init()
878 for (j = k = 0; j < npackets; j++, k += ep_size) { in em28xx_audio_urb_init()