Home
last modified time | relevance | path

Searched refs:npackets (Results 1 – 9 of 9) sorted by relevance

/drivers/media/usb/uvc/
Duvc_video.c1407 unsigned int npackets; in uvc_alloc_urb_buffers() local
1417 npackets = DIV_ROUND_UP(size, psize); in uvc_alloc_urb_buffers()
1418 if (npackets > UVC_MAX_PACKETS) in uvc_alloc_urb_buffers()
1419 npackets = UVC_MAX_PACKETS; in uvc_alloc_urb_buffers()
1422 for (; npackets > 1; npackets /= 2) { in uvc_alloc_urb_buffers()
1424 stream->urb_size = psize * npackets; in uvc_alloc_urb_buffers()
1441 "of %ux%u bytes each.\n", UVC_URBS, npackets, in uvc_alloc_urb_buffers()
1443 return npackets; in uvc_alloc_urb_buffers()
1510 unsigned int npackets, i, j; in uvc_init_video_isoc() local
1517 npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags); in uvc_init_video_isoc()
[all …]
/drivers/media/usb/em28xx/
Dem28xx-audio.c752 int i, ep_size, interval, num_urb, npackets; in em28xx_audio_urb_init() local
823 npackets = EM28XX_MIN_AUDIO_PACKETS; in em28xx_audio_urb_init()
824 if (urb_size > ep_size * npackets) in em28xx_audio_urb_init()
825 npackets = DIV_ROUND_UP(urb_size, ep_size); in em28xx_audio_urb_init()
829 num_urb, npackets, urb_size); in em28xx_audio_urb_init()
832 dev->adev.period = urb_size * npackets; in em28xx_audio_urb_init()
856 urb = usb_alloc_urb(npackets, GFP_ATOMIC); in em28xx_audio_urb_init()
863 buf = usb_alloc_coherent(udev, npackets * ep_size, GFP_ATOMIC, in em28xx_audio_urb_init()
880 urb->number_of_packets = npackets; in em28xx_audio_urb_init()
881 urb->transfer_buffer_length = ep_size * npackets; in em28xx_audio_urb_init()
[all …]
/drivers/net/ethernet/
Ddnet.c371 int npackets = 0; in dnet_poll() local
379 while (npackets < budget) { in dnet_poll()
407 npackets++; in dnet_poll()
414 if (npackets < budget) { in dnet_poll()
418 napi_complete_done(napi, npackets); in dnet_poll()
424 return npackets; in dnet_poll()
/drivers/thunderbolt/
Dicm.c123 if (hdr->packet_id < req->npackets) { in icm_copy()
133 void *response, size_t response_size, size_t npackets, in icm_request() argument
153 req->npackets = npackets; in icm_request()
194 size_t npackets = ICM_GET_TOPOLOGY_PACKETS; in icm_fr_get_route() local
198 switches = kcalloc(npackets, sizeof(*switches), GFP_KERNEL); in icm_fr_get_route()
203 sizeof(*switches), npackets, ICM_TIMEOUT); in icm_fr_get_route()
Dctl.h84 size_t npackets; member
/drivers/net/ethernet/smsc/
Dsmsc911x.c1224 int npackets = 0; in smsc911x_poll() local
1226 while (npackets < budget) { in smsc911x_poll()
1246 npackets++; in smsc911x_poll()
1288 return npackets; in smsc911x_poll()
/drivers/net/ethernet/amd/
Dpcnet32.c1290 int npackets = 0; in pcnet32_rx() local
1293 while (npackets < budget && (short)le16_to_cpu(rxp->status) >= 0) { in pcnet32_rx()
1295 npackets += 1; in pcnet32_rx()
1307 return npackets; in pcnet32_rx()
/drivers/net/ethernet/sun/
Dcassini.c2295 int npackets = 0; in cas_rx_ringN() local
2366 npackets++; in cas_rx_ringN()
2394 if (budget && (npackets >= budget)) in cas_rx_ringN()
2402 return npackets; in cas_rx_ringN()
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_hsi.h3169 u16 npackets; member
3187 u16 npackets;