Lines Matching refs:npackets
663 int i, ep_size, interval, num_urb, npackets; in em28xx_audio_urb_init() local
734 npackets = EM28XX_MIN_AUDIO_PACKETS; in em28xx_audio_urb_init()
735 if (urb_size > ep_size * npackets) in em28xx_audio_urb_init()
736 npackets = DIV_ROUND_UP(urb_size, ep_size); in em28xx_audio_urb_init()
740 num_urb, npackets, urb_size); in em28xx_audio_urb_init()
743 dev->adev.period = urb_size * npackets; in em28xx_audio_urb_init()
766 urb = usb_alloc_urb(npackets, GFP_KERNEL); in em28xx_audio_urb_init()
773 buf = usb_alloc_coherent(udev, npackets * ep_size, GFP_KERNEL, in em28xx_audio_urb_init()
790 urb->number_of_packets = npackets; in em28xx_audio_urb_init()
791 urb->transfer_buffer_length = ep_size * npackets; in em28xx_audio_urb_init()
793 for (j = k = 0; j < npackets; j++, k += ep_size) { in em28xx_audio_urb_init()