Searched refs:npackets (Results 1 – 10 of 10) sorted by relevance
/Linux-v4.19/drivers/media/usb/em28xx/ |
D | em28xx-audio.c | 759 int i, ep_size, interval, num_urb, npackets; in em28xx_audio_urb_init() local 830 npackets = EM28XX_MIN_AUDIO_PACKETS; in em28xx_audio_urb_init() 831 if (urb_size > ep_size * npackets) in em28xx_audio_urb_init() 832 npackets = DIV_ROUND_UP(urb_size, ep_size); in em28xx_audio_urb_init() 836 num_urb, npackets, urb_size); in em28xx_audio_urb_init() 839 dev->adev.period = urb_size * npackets; in em28xx_audio_urb_init() 862 urb = usb_alloc_urb(npackets, GFP_ATOMIC); in em28xx_audio_urb_init() 869 buf = usb_alloc_coherent(udev, npackets * ep_size, GFP_ATOMIC, in em28xx_audio_urb_init() 886 urb->number_of_packets = npackets; in em28xx_audio_urb_init() 887 urb->transfer_buffer_length = ep_size * npackets; in em28xx_audio_urb_init() [all …]
|
/Linux-v4.19/drivers/media/usb/uvc/ |
D | uvc_video.c | 1537 unsigned int npackets; in uvc_alloc_urb_buffers() local 1547 npackets = DIV_ROUND_UP(size, psize); in uvc_alloc_urb_buffers() 1548 if (npackets > UVC_MAX_PACKETS) in uvc_alloc_urb_buffers() 1549 npackets = UVC_MAX_PACKETS; in uvc_alloc_urb_buffers() 1552 for (; npackets > 1; npackets /= 2) { in uvc_alloc_urb_buffers() 1554 stream->urb_size = psize * npackets; in uvc_alloc_urb_buffers() 1571 "of %ux%u bytes each.\n", UVC_URBS, npackets, in uvc_alloc_urb_buffers() 1573 return npackets; in uvc_alloc_urb_buffers() 1640 unsigned int npackets, i, j; in uvc_init_video_isoc() local 1647 npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags); in uvc_init_video_isoc() [all …]
|
/Linux-v4.19/drivers/net/ethernet/ |
D | dnet.c | 371 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()
|
/Linux-v4.19/drivers/thunderbolt/ |
D | ctl.h | 85 size_t npackets; member
|
D | icm.c | 191 if (hdr->packet_id < req->npackets) { in icm_copy() 201 void *response, size_t response_size, size_t npackets, in icm_request() argument 221 req->npackets = npackets; in icm_request() 262 size_t npackets = ICM_GET_TOPOLOGY_PACKETS; in icm_fr_get_route() local 266 switches = kcalloc(npackets, sizeof(*switches), GFP_KERNEL); in icm_fr_get_route() 271 sizeof(*switches), npackets, ICM_TIMEOUT); in icm_fr_get_route()
|
/Linux-v4.19/drivers/net/can/mscan/ |
D | mscan.c | 395 int npackets = 0; in mscan_rx_poll() local 401 while (npackets < quota) { in mscan_rx_poll() 422 npackets++; in mscan_rx_poll()
|
/Linux-v4.19/drivers/net/ethernet/smsc/ |
D | smsc911x.c | 1224 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()
|
/Linux-v4.19/drivers/net/ethernet/amd/ |
D | pcnet32.c | 1290 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()
|
/Linux-v4.19/drivers/net/ethernet/sun/ |
D | cassini.c | 2296 int npackets = 0; in cas_rx_ringN() local 2367 npackets++; in cas_rx_ringN() 2395 if (budget && (npackets >= budget)) in cas_rx_ringN() 2403 return npackets; in cas_rx_ringN()
|
/Linux-v4.19/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_hsi.h | 3169 u16 npackets; member 3187 u16 npackets;
|