Home
last modified time | relevance | path

Searched refs:num_queues (Results 1 – 25 of 54) sorted by relevance

123

/freebsd-14.2/sys/dev/ixl/
H A Dixl_pf_qmgr.c40 ixl_pf_qmgr_init(struct ixl_pf_qmgr *qmgr, u16 num_queues) in ixl_pf_qmgr_init() argument
42 if (num_queues < 1) in ixl_pf_qmgr_init()
45 qmgr->num_queues = num_queues; in ixl_pf_qmgr_init()
46 qmgr->qinfo = malloc(num_queues * sizeof(struct ixl_pf_qmgr_qinfo), in ixl_pf_qmgr_init()
117 for (i = 0; i < qmgr->num_queues; i++) { in ixl_pf_qmgr_alloc_scattered()
157 return (qmgr->num_queues); in ixl_pf_qmgr_get_num_queues()
169 for (int i = 0; i < qmgr->num_queues; i++) { in ixl_pf_qmgr_get_num_free()
182 if (start > qmgr->num_queues - 1) in ixl_pf_qmgr_get_first_free()
185 for (i = start; i < qmgr->num_queues; i++) { in ixl_pf_qmgr_get_first_free()
305 for (i = 0; i < qmgr->num_queues; i++) { in ixl_pf_qmgr_find_free_contiguous_block()
H A Dixl_pf_qmgr.h63 u16 num_queues; member
85 int ixl_pf_qmgr_init(struct ixl_pf_qmgr *qmgr, u16 num_queues);
H A Dixl_pf_iov.c75 static int ixl_vf_reserve_queues(struct ixl_pf *pf, struct ixl_vf *vf, int num_queues);
1740 ixl_vf_reserve_queues(struct ixl_pf *pf, struct ixl_vf *vf, int num_queues) in ixl_vf_reserve_queues() argument
1746 if (num_queues < 1 || num_queues > 16) in ixl_vf_reserve_queues()
1748 num_queues, vf->vf_num); in ixl_vf_reserve_queues()
1749 if (num_queues < 1) { in ixl_vf_reserve_queues()
1751 num_queues = 1; in ixl_vf_reserve_queues()
1752 } else if (num_queues > IAVF_MAX_QUEUES) { in ixl_vf_reserve_queues()
1754 num_queues = IAVF_MAX_QUEUES; in ixl_vf_reserve_queues()
1756 error = ixl_pf_qmgr_alloc_scattered(&pf->qmgr, num_queues, &vf->qtag); in ixl_vf_reserve_queues()
1759 num_queues, vf->vf_num); in ixl_vf_reserve_queues()
/freebsd-14.2/sys/dev/ntb/if_ntb/
H A Dif_ntb.c98 int num_queues; member
143 sc->num_queues = min(g_if_ntb_num_queues, in ntb_net_attach()
148 for (i = 0; i < sc->num_queues; i++) { in ntb_net_attach()
165 sc->num_queues = i; in ntb_net_attach()
186 for (i = 0; i < sc->num_queues; i++) in ntb_net_attach()
198 for (i = 0; i < sc->num_queues; i++) in ntb_net_detach()
203 for (i = 0; i < sc->num_queues; i++) { in ntb_net_detach()
360 i = m->m_pkthdr.flowid % sc->num_queues; in ntb_transmit()
362 i = curcpu % sc->num_queues; in ntb_transmit()
408 for (i = 0; i < sc->num_queues; i++) { in ntb_qflush()
[all …]
/freebsd-14.2/sys/contrib/dev/iwlwifi/fw/
H A Dinit.c106 int i, num_queues, size, ret; in iwl_configure_rxq() local
124 num_queues = fwrt->trans->num_rx_queues - 1; in iwl_configure_rxq()
126 size = struct_size(cmd, data, num_queues); in iwl_configure_rxq()
132 cmd->num_queues = num_queues; in iwl_configure_rxq()
134 for (i = 0; i < num_queues; i++) { in iwl_configure_rxq()
/freebsd-14.2/sys/dev/xen/netfront/
H A Dnetfront.c220 u_int num_queues; member
595 num_queues = xn_num_queues; in talk_to_backend()
596 if (num_queues > max_queues) in talk_to_backend()
597 num_queues = max_queues; in talk_to_backend()
612 if (info->num_queues == 1) { in talk_to_backend()
765 unsigned long num_queues) in setup_rxqs() argument
881 unsigned long num_queues) in setup_txqs() argument
999 unsigned long num_queues) in setup_device() argument
1010 info->num_queues = 0; in setup_device()
1019 info->num_queues = num_queues; in setup_device()
[all …]
/freebsd-14.2/sys/dev/gve/
H A Dgve_adminq.c176 for (i = 0; i < num_queues; i++) { in gve_adminq_destroy_rx_queues()
187 device_printf(priv->dev, "Destroyed %d rx queues\n", num_queues); in gve_adminq_destroy_rx_queues()
197 for (i = 0; i < num_queues; i++) { in gve_adminq_destroy_tx_queues()
208 device_printf(priv->dev, "Destroyed %d tx queues\n", num_queues); in gve_adminq_destroy_tx_queues()
238 gve_adminq_create_rx_queues(struct gve_priv *priv, uint32_t num_queues) in gve_adminq_create_rx_queues() argument
243 for (i = 0; i < num_queues; i++) { in gve_adminq_create_rx_queues()
253 device_printf(priv->dev, "Created %d rx queues\n", num_queues); in gve_adminq_create_rx_queues()
284 gve_adminq_create_tx_queues(struct gve_priv *priv, uint32_t num_queues) in gve_adminq_create_tx_queues() argument
289 for (i = 0; i < num_queues; i++) { in gve_adminq_create_tx_queues()
299 device_printf(priv->dev, "Created %d tx queues\n", num_queues); in gve_adminq_create_tx_queues()
[all …]
H A Dgve_utils.c230 num_irqs = priv->tx_cfg.num_queues + priv->rx_cfg.num_queues + 1; in gve_free_irqs()
264 int num_tx = priv->tx_cfg.num_queues; in gve_alloc_irqs()
265 int num_rx = priv->rx_cfg.num_queues; in gve_alloc_irqs()
384 for (idx = 0; idx < priv->tx_cfg.num_queues; idx++) { in gve_unmask_all_queue_irqs()
388 for (idx = 0; idx < priv->rx_cfg.num_queues; idx++) { in gve_unmask_all_queue_irqs()
397 for (int idx = 0; idx < priv->tx_cfg.num_queues; idx++) { in gve_mask_all_queue_irqs()
401 for (int idx = 0; idx < priv->rx_cfg.num_queues; idx++) { in gve_mask_all_queue_irqs()
H A Dgve_main.c429 sizeof(struct gve_irq_db) * (priv->num_queues), PAGE_SIZE, in gve_alloc_irq_db_array()
543 priv->tx_cfg.num_queues = priv->tx_cfg.max_queues; in gve_set_queue_cnts()
544 priv->rx_cfg.num_queues = priv->rx_cfg.max_queues; in gve_set_queue_cnts()
547 priv->tx_cfg.num_queues = MIN(priv->default_num_queues, in gve_set_queue_cnts()
548 priv->tx_cfg.num_queues); in gve_set_queue_cnts()
549 priv->rx_cfg.num_queues = MIN(priv->default_num_queues, in gve_set_queue_cnts()
550 priv->rx_cfg.num_queues); in gve_set_queue_cnts()
553 priv->num_queues = priv->tx_cfg.num_queues + priv->rx_cfg.num_queues; in gve_set_queue_cnts()
554 priv->mgmt_msix_idx = priv->num_queues; in gve_set_queue_cnts()
H A Dgve_adminq.h378 int gve_adminq_create_rx_queues(struct gve_priv *priv, uint32_t num_queues);
379 int gve_adminq_create_tx_queues(struct gve_priv *priv, uint32_t num_queues);
380 int gve_adminq_destroy_tx_queues(struct gve_priv *priv, uint32_t num_queues);
381 int gve_adminq_destroy_rx_queues(struct gve_priv *priv, uint32_t num_queues);
H A Dgve_tx.c145 priv->tx = malloc(sizeof(struct gve_tx_ring) * priv->tx_cfg.num_queues, in gve_alloc_tx_rings()
148 for (i = 0; i < priv->tx_cfg.num_queues; i++) { in gve_alloc_tx_rings()
169 for (i = 0; i < priv->tx_cfg.num_queues; i++) in gve_free_tx_rings()
236 for (i = 0; i < priv->tx_cfg.num_queues; i++) in gve_create_tx_rings()
239 err = gve_adminq_create_tx_queues(priv, priv->tx_cfg.num_queues); in gve_create_tx_rings()
246 for (i = 0; i < priv->tx_cfg.num_queues; i++) { in gve_create_tx_rings()
289 for (i = 0; i < priv->tx_cfg.num_queues; i++) in gve_destroy_tx_rings()
293 err = gve_adminq_destroy_tx_queues(priv, priv->tx_cfg.num_queues); in gve_destroy_tx_rings()
749 i = mbuf->m_pkthdr.flowid % priv->tx_cfg.num_queues; in gve_xmit_ifp()
751 i = curcpu % priv->tx_cfg.num_queues; in gve_xmit_ifp()
[all …]
H A Dgve_rx.c148 priv->rx = malloc(sizeof(struct gve_rx_ring) * priv->rx_cfg.num_queues, in gve_alloc_rx_rings()
151 for (i = 0; i < priv->rx_cfg.num_queues; i++) { in gve_alloc_rx_rings()
171 for (i = 0; i < priv->rx_cfg.num_queues; i++) in gve_free_rx_rings()
262 for (i = 0; i < priv->rx_cfg.num_queues; i++) in gve_create_rx_rings()
265 err = gve_adminq_create_rx_queues(priv, priv->rx_cfg.num_queues); in gve_create_rx_rings()
272 for (i = 0; i < priv->rx_cfg.num_queues; i++) { in gve_create_rx_rings()
312 for (i = 0; i < priv->rx_cfg.num_queues; i++) in gve_destroy_rx_rings()
316 err = gve_adminq_destroy_rx_queues(priv, priv->rx_cfg.num_queues); in gve_destroy_rx_rings()
H A Dgve_sysctl.c135 for (i = 0; i < priv->rx_cfg.num_queues; i++) { in gve_setup_queue_stat_sysctl()
138 for (i = 0; i < priv->tx_cfg.num_queues; i++) { in gve_setup_queue_stat_sysctl()
248 for (i = 0; i < priv->rx_cfg.num_queues; i++) { in gve_accum_stats()
255 for (i = 0; i < priv->tx_cfg.num_queues; i++) { in gve_accum_stats()
/freebsd-14.2/sys/dev/mana/
H A Dmana_sysctl.c58 for (i = 0; i < apc->num_queues; i++) { in mana_sysctl_rx_stat_agg_u64()
67 for (i = 0; i < apc->num_queues; i++) { in mana_sysctl_rx_stat_agg_u64()
123 for (i = 0; i < apc->num_queues; i++) { in mana_sysctl_tx_stat_agg_u64()
132 for (i = 0; i < apc->num_queues; i++) { in mana_sysctl_tx_stat_agg_u64()
256 for (i = 0; i < apc->num_queues; i++) { in mana_sysctl_add_queues()
H A Dmana_en.c532 % apc->num_queues; in mana_xmit()
835 apc->num_queues; in mana_start_xmit()
837 txq_id = m->m_pkthdr.flowid % apc->num_queues; in mana_start_xmit()
2005 for (i = 0; i < apc->num_queues; i++) { in mana_destroy_txq()
2050 for (i = 0; i < apc->num_queues; i++) { in mana_create_txq()
2475 for (i = 0; i < apc->num_queues; i++) { in mana_add_rx_queues()
2531 apc->indir_table[i] = i % apc->num_queues; in mana_rss_table_init()
2582 if (apc->num_queues > apc->max_queues) in mana_init_port()
2583 apc->num_queues = apc->max_queues; in mana_init_port()
2682 for (i = 0; i < apc->num_queues; i++) { in mana_dealloc_queues()
[all …]
/freebsd-14.2/sys/net/
H A Dif_epair.c118 int num_queues; member
225 bucket %= sc->num_queues; in epair_select_queue()
521 sc->num_queues = epair_tasks.tasks; in epair_alloc_sc()
522 sc->queues = mallocarray(sc->num_queues, sizeof(struct epair_queue), in epair_alloc_sc()
524 for (int i = 0; i < sc->num_queues; i++) { in epair_alloc_sc()
617 for (int i = 0; i < sc->num_queues; i++) { in epair_free_sc()
758 for (int i = 0; i < sc->num_queues; i++) { in epair_drain_rings()
/freebsd-14.2/sys/dev/nvme/
H A Dnvme_ctrlr_cmd.c208 uint32_t num_queues, nvme_cb_fn_t cb_fn, void *cb_arg) in nvme_ctrlr_cmd_set_num_queues() argument
212 cdw11 = ((num_queues - 1) << 16) | (num_queues - 1); in nvme_ctrlr_cmd_set_num_queues()
/freebsd-14.2/sys/dev/virtio/pci/
H A Dvirtio_pci_modern_var.h78 uint16_t num_queues; /* read-only */ member
/freebsd-14.2/sys/dev/virtio/block/
H A Dvirtio_blk.h91 uint16_t num_queues; member
/freebsd-14.2/sys/dev/sfxge/common/
H A Def10_rx.c208 __in uint32_t num_queues, in efx_mcdi_rss_context_alloc() argument
218 if (num_queues > EFX_MAXRSS) { in efx_mcdi_rss_context_alloc()
251 MCDI_IN_SET_DWORD(req, RSS_CONTEXT_ALLOC_IN_NUM_QUEUES, num_queues); in efx_mcdi_rss_context_alloc()
583 __in uint32_t num_queues, in ef10_rx_scale_context_alloc() argument
588 rc = efx_mcdi_rss_context_alloc(enp, type, num_queues, rss_contextp); in ef10_rx_scale_context_alloc()
/freebsd-14.2/sys/dev/mpi3mr/
H A Dmpi3mr.c870 U16 num_queues = 0, i = 0, qid; in mpi3mr_create_op_queues() local
874 num_queues = min(num_queues, sc->msix_count); in mpi3mr_create_op_queues()
880 if (sc->num_queues) in mpi3mr_create_op_queues()
881 num_queues = sc->num_queues; in mpi3mr_create_op_queues()
884 num_queues); in mpi3mr_create_op_queues()
911 for (i = 0; i < num_queues; i++) { in mpi3mr_create_op_queues()
934 if (!sc->num_queues) { in mpi3mr_create_op_queues()
935 sc->num_queues = i; in mpi3mr_create_op_queues()
937 if (num_queues != i) { in mpi3mr_create_op_queues()
945 sc->num_queues); in mpi3mr_create_op_queues()
[all …]
/freebsd-14.2/sys/dev/qlnx/qlnxe/
H A Decore_proto_if.h115 u8 num_queues; member
H A Dstorage_common.h159 u8 num_queues /* Number of continuous global queues used */; member
/freebsd-14.2/sys/dev/ice/
H A Dvirtchnl.h1947 u16 num_queues; member
1964 u16 num_queues; member
2319 if (q_bw->num_queues == 0) { in virtchnl_vc_validate_vf_msg()
2323 valid_len += (q_bw->num_queues - 1) * in virtchnl_vc_validate_vf_msg()
2333 q_quanta->queue_select.num_queues == 0) { in virtchnl_vc_validate_vf_msg()
/freebsd-14.2/sys/dev/ixgbe/
H A Dif_sriov.c560 int num_queues; in ixgbe_vf_get_queues() local
575 num_queues = ixgbe_vf_queues(sc->iov_mode); in ixgbe_vf_get_queues()
576 resp[IXGBE_VF_TX_QUEUES] = num_queues; in ixgbe_vf_get_queues()
577 resp[IXGBE_VF_RX_QUEUES] = num_queues; in ixgbe_vf_get_queues()

123