npackets 688 drivers/media/usb/dvb-usb/cxusb-analog.c int *npackets) npackets 703 drivers/media/usb/dvb-usb/cxusb-analog.c *npackets = min_t(int, (framelen + CXUSB_VIDEO_PKT_SIZE - 1) / npackets 706 drivers/media/usb/dvb-usb/cxusb-analog.c urblen = *npackets * CXUSB_VIDEO_PKT_SIZE; npackets 710 drivers/media/usb/dvb-usb/cxusb-analog.c *npackets, urblen, (unsigned int)cxdev->width, npackets 778 drivers/media/usb/dvb-usb/cxusb-analog.c int npackets, i; npackets 806 drivers/media/usb/dvb-usb/cxusb-analog.c ret = cxusb_medion_v_ss_auxbuf_alloc(cxdev, &npackets); npackets 820 drivers/media/usb/dvb-usb/cxusb-analog.c streambuf = kmalloc(npackets * CXUSB_VIDEO_PKT_SIZE, npackets 830 drivers/media/usb/dvb-usb/cxusb-analog.c surb = usb_alloc_urb(npackets, GFP_KERNEL); npackets 848 drivers/media/usb/dvb-usb/cxusb-analog.c surb->number_of_packets = npackets; npackets 849 drivers/media/usb/dvb-usb/cxusb-analog.c surb->transfer_buffer_length = npackets * CXUSB_VIDEO_PKT_SIZE; npackets 851 drivers/media/usb/dvb-usb/cxusb-analog.c for (framen = 0; framen < npackets; framen++) { npackets 760 drivers/media/usb/em28xx/em28xx-audio.c int i, ep_size, interval, num_urb, npackets; npackets 831 drivers/media/usb/em28xx/em28xx-audio.c npackets = EM28XX_MIN_AUDIO_PACKETS; npackets 832 drivers/media/usb/em28xx/em28xx-audio.c if (urb_size > ep_size * npackets) npackets 833 drivers/media/usb/em28xx/em28xx-audio.c npackets = DIV_ROUND_UP(urb_size, ep_size); npackets 837 drivers/media/usb/em28xx/em28xx-audio.c num_urb, npackets, urb_size); npackets 840 drivers/media/usb/em28xx/em28xx-audio.c dev->adev.period = urb_size * npackets; npackets 863 drivers/media/usb/em28xx/em28xx-audio.c urb = usb_alloc_urb(npackets, GFP_KERNEL); npackets 870 drivers/media/usb/em28xx/em28xx-audio.c buf = usb_alloc_coherent(udev, npackets * ep_size, GFP_KERNEL, npackets 887 drivers/media/usb/em28xx/em28xx-audio.c urb->number_of_packets = npackets; npackets 888 drivers/media/usb/em28xx/em28xx-audio.c urb->transfer_buffer_length = ep_size * npackets; npackets 890 drivers/media/usb/em28xx/em28xx-audio.c for (j = k = 0; j < npackets; j++, k += ep_size) { npackets 1594 drivers/media/usb/uvc/uvc_video.c unsigned int npackets; npackets 1604 drivers/media/usb/uvc/uvc_video.c npackets = DIV_ROUND_UP(size, psize); npackets 1605 drivers/media/usb/uvc/uvc_video.c if (npackets > UVC_MAX_PACKETS) npackets 1606 drivers/media/usb/uvc/uvc_video.c npackets = UVC_MAX_PACKETS; npackets 1609 drivers/media/usb/uvc/uvc_video.c for (; npackets > 1; npackets /= 2) { npackets 1613 drivers/media/usb/uvc/uvc_video.c stream->urb_size = psize * npackets; npackets 1632 drivers/media/usb/uvc/uvc_video.c "of %ux%u bytes each.\n", UVC_URBS, npackets, npackets 1634 drivers/media/usb/uvc/uvc_video.c return npackets; npackets 1707 drivers/media/usb/uvc/uvc_video.c unsigned int npackets, i; npackets 1714 drivers/media/usb/uvc/uvc_video.c npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags); npackets 1715 drivers/media/usb/uvc/uvc_video.c if (npackets == 0) npackets 1718 drivers/media/usb/uvc/uvc_video.c size = npackets * psize; npackets 1721 drivers/media/usb/uvc/uvc_video.c urb = usb_alloc_urb(npackets, gfp_flags); npackets 1740 drivers/media/usb/uvc/uvc_video.c urb->number_of_packets = npackets; npackets 1743 drivers/media/usb/uvc/uvc_video.c for (i = 0; i < npackets; ++i) { npackets 1763 drivers/media/usb/uvc/uvc_video.c unsigned int npackets, pipe; npackets 1771 drivers/media/usb/uvc/uvc_video.c npackets = uvc_alloc_urb_buffers(stream, size, psize, gfp_flags); npackets 1772 drivers/media/usb/uvc/uvc_video.c if (npackets == 0) npackets 1775 drivers/media/usb/uvc/uvc_video.c size = npackets * psize; npackets 1290 drivers/net/ethernet/amd/pcnet32.c int npackets = 0; npackets 1293 drivers/net/ethernet/amd/pcnet32.c while (npackets < budget && (short)le16_to_cpu(rxp->status) >= 0) { npackets 1295 drivers/net/ethernet/amd/pcnet32.c npackets += 1; npackets 1307 drivers/net/ethernet/amd/pcnet32.c return npackets; npackets 3174 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h u16 npackets; npackets 3192 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h u16 npackets; npackets 366 drivers/net/ethernet/dnet.c int npackets = 0; npackets 374 drivers/net/ethernet/dnet.c while (npackets < budget) { npackets 402 drivers/net/ethernet/dnet.c npackets++; npackets 409 drivers/net/ethernet/dnet.c if (npackets < budget) { npackets 413 drivers/net/ethernet/dnet.c napi_complete_done(napi, npackets); npackets 419 drivers/net/ethernet/dnet.c return npackets; npackets 1211 drivers/net/ethernet/smsc/smsc911x.c int npackets = 0; npackets 1213 drivers/net/ethernet/smsc/smsc911x.c while (npackets < budget) { npackets 1233 drivers/net/ethernet/smsc/smsc911x.c npackets++; npackets 1275 drivers/net/ethernet/smsc/smsc911x.c return npackets; npackets 2283 drivers/net/ethernet/sun/cassini.c int npackets = 0; npackets 2354 drivers/net/ethernet/sun/cassini.c npackets++; npackets 2382 drivers/net/ethernet/sun/cassini.c if (budget && (npackets >= budget)) npackets 2390 drivers/net/ethernet/sun/cassini.c return npackets; npackets 86 drivers/thunderbolt/ctl.h size_t npackets; npackets 256 drivers/thunderbolt/icm.c if (hdr->packet_id < req->npackets) { npackets 266 drivers/thunderbolt/icm.c void *response, size_t response_size, size_t npackets, npackets 286 drivers/thunderbolt/icm.c req->npackets = npackets; npackets 364 drivers/thunderbolt/icm.c size_t npackets = ICM_GET_TOPOLOGY_PACKETS; npackets 368 drivers/thunderbolt/icm.c switches = kcalloc(npackets, sizeof(*switches), GFP_KERNEL); npackets 373 drivers/thunderbolt/icm.c sizeof(*switches), npackets, ICM_TIMEOUT);