/Linux-v5.4/drivers/media/usb/em28xx/ |
D | em28xx-audio.c | 760 int i, ep_size, interval, num_urb, npackets; in em28xx_audio_urb_init() local 831 npackets = EM28XX_MIN_AUDIO_PACKETS; in em28xx_audio_urb_init() 832 if (urb_size > ep_size * npackets) in em28xx_audio_urb_init() 833 npackets = DIV_ROUND_UP(urb_size, ep_size); in em28xx_audio_urb_init() 837 num_urb, npackets, urb_size); in em28xx_audio_urb_init() 840 dev->adev.period = urb_size * npackets; in em28xx_audio_urb_init() 863 urb = usb_alloc_urb(npackets, GFP_KERNEL); in em28xx_audio_urb_init() 870 buf = usb_alloc_coherent(udev, npackets * ep_size, GFP_KERNEL, in em28xx_audio_urb_init() 887 urb->number_of_packets = npackets; in em28xx_audio_urb_init() 888 urb->transfer_buffer_length = ep_size * npackets; in em28xx_audio_urb_init() [all …]
|
/Linux-v5.4/drivers/media/usb/uvc/ |
D | uvc_video.c | 1594 unsigned int npackets; in uvc_alloc_urb_buffers() local 1604 npackets = DIV_ROUND_UP(size, psize); in uvc_alloc_urb_buffers() 1605 if (npackets > UVC_MAX_PACKETS) in uvc_alloc_urb_buffers() 1606 npackets = UVC_MAX_PACKETS; in uvc_alloc_urb_buffers() 1609 for (; npackets > 1; npackets /= 2) { in uvc_alloc_urb_buffers() 1613 stream->urb_size = psize * npackets; in uvc_alloc_urb_buffers() 1632 "of %ux%u bytes each.\n", UVC_URBS, npackets, in uvc_alloc_urb_buffers() 1634 return npackets; in uvc_alloc_urb_buffers() 1707 unsigned int npackets, i; in uvc_init_video_isoc() local 1714 npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags); in uvc_init_video_isoc() [all …]
|
/Linux-v5.4/drivers/net/ethernet/ |
D | dnet.c | 366 int npackets = 0; in dnet_poll() local 374 while (npackets < budget) { in dnet_poll() 402 npackets++; in dnet_poll() 409 if (npackets < budget) { in dnet_poll() 413 napi_complete_done(napi, npackets); in dnet_poll() 419 return npackets; in dnet_poll()
|
/Linux-v5.4/drivers/media/usb/dvb-usb/ |
D | cxusb-analog.c | 688 int *npackets) in cxusb_medion_v_ss_auxbuf_alloc() argument 703 *npackets = min_t(int, (framelen + CXUSB_VIDEO_PKT_SIZE - 1) / in cxusb_medion_v_ss_auxbuf_alloc() 706 urblen = *npackets * CXUSB_VIDEO_PKT_SIZE; in cxusb_medion_v_ss_auxbuf_alloc() 710 *npackets, urblen, (unsigned int)cxdev->width, in cxusb_medion_v_ss_auxbuf_alloc() 778 int npackets, i; in cxusb_medion_v_start_streaming() local 806 ret = cxusb_medion_v_ss_auxbuf_alloc(cxdev, &npackets); in cxusb_medion_v_start_streaming() 820 streambuf = kmalloc(npackets * CXUSB_VIDEO_PKT_SIZE, in cxusb_medion_v_start_streaming() 830 surb = usb_alloc_urb(npackets, GFP_KERNEL); in cxusb_medion_v_start_streaming() 848 surb->number_of_packets = npackets; in cxusb_medion_v_start_streaming() 849 surb->transfer_buffer_length = npackets * CXUSB_VIDEO_PKT_SIZE; in cxusb_medion_v_start_streaming() [all …]
|
/Linux-v5.4/drivers/thunderbolt/ |
D | ctl.h | 86 size_t npackets; member
|
D | icm.c | 256 if (hdr->packet_id < req->npackets) { in icm_copy() 266 void *response, size_t response_size, size_t npackets, in icm_request() argument 286 req->npackets = npackets; in icm_request() 364 size_t npackets = ICM_GET_TOPOLOGY_PACKETS; in icm_fr_get_route() local 368 switches = kcalloc(npackets, sizeof(*switches), GFP_KERNEL); in icm_fr_get_route() 373 sizeof(*switches), npackets, ICM_TIMEOUT); in icm_fr_get_route()
|
/Linux-v5.4/drivers/net/can/mscan/ |
D | mscan.c | 384 int npackets = 0; in mscan_rx_poll() local 390 while (npackets < quota) { in mscan_rx_poll() 411 npackets++; in mscan_rx_poll()
|
/Linux-v5.4/drivers/net/ethernet/smsc/ |
D | smsc911x.c | 1211 int npackets = 0; in smsc911x_poll() local 1213 while (npackets < budget) { in smsc911x_poll() 1233 npackets++; in smsc911x_poll() 1275 return npackets; in smsc911x_poll()
|
/Linux-v5.4/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-v5.4/drivers/net/ethernet/sun/ |
D | cassini.c | 2283 int npackets = 0; in cas_rx_ringN() local 2354 npackets++; in cas_rx_ringN() 2382 if (budget && (npackets >= budget)) in cas_rx_ringN() 2390 return npackets; in cas_rx_ringN()
|
/Linux-v5.4/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_hsi.h | 3174 u16 npackets; member 3192 u16 npackets;
|