Home
last modified time | relevance | path

Searched refs:npairs (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/contrib/openzfs/module/zfs/
H A Dfm.c839 nvlist_t *snvl, int npairs, ...) in fm_fmri_hc_set() argument
849 npairs = MIN(npairs, HC_MAXPAIRS); in fm_fmri_hc_set()
851 va_start(ap, npairs); in fm_fmri_hc_set()
852 for (i = 0; i < npairs; i++) { in fm_fmri_hc_set()
869 (const nvlist_t **)pairs, npairs) != 0) { in fm_fmri_hc_set()
873 for (i = 0; i < npairs; i++) in fm_fmri_hc_set()
886 nvlist_t *snvl, nvlist_t *bboard, int npairs, ...) in fm_fmri_hc_create() argument
938 npairs = MIN(npairs, HC_MAXPAIRS); in fm_fmri_hc_create()
940 va_start(ap, npairs); in fm_fmri_hc_create()
941 for (i = n; i < npairs + n; i++) { in fm_fmri_hc_create()
[all …]
/freebsd/sys/dev/virtio/network/
H A Dif_vtnet.c670 uint16_t npairs; in vtnet_negotiate_features() local
672 npairs = virtio_read_dev_config_2(dev, in vtnet_negotiate_features()
674 if (npairs < VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MIN || in vtnet_negotiate_features()
675 npairs > VIRTIO_NET_CTRL_MQ_VQ_PAIRS_MAX) { in vtnet_negotiate_features()
677 "%d. Multiqueue feature disabled.\n", npairs); in vtnet_negotiate_features()
889 int i, npairs, error; in vtnet_alloc_rxtx_queues() local
891 npairs = sc->vtnet_max_vq_pairs; in vtnet_alloc_rxtx_queues()
893 sc->vtnet_rxqs = malloc(sizeof(struct vtnet_rxq) * npairs, M_DEVBUF, in vtnet_alloc_rxtx_queues()
895 sc->vtnet_txqs = malloc(sizeof(struct vtnet_txq) * npairs, M_DEVBUF, in vtnet_alloc_rxtx_queues()
900 for (i = 0; i < npairs; i++) { in vtnet_alloc_rxtx_queues()
[all …]
/freebsd/sys/dev/xen/netfront/
H A Dnetfront.c2241 int i, npairs, error; in xn_txq_mq_start() local
2244 npairs = np->num_queues; in xn_txq_mq_start()
2249 KASSERT(npairs != 0, ("called with 0 available queues")); in xn_txq_mq_start()
2253 i = m->m_pkthdr.flowid % npairs; in xn_txq_mq_start()
2255 i = curcpu % npairs; in xn_txq_mq_start()