| /freebsd-14.2/sys/dev/ixl/ |
| H A D | ixl_pf_qmgr.c | 40 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 D | ixl_pf_qmgr.h | 63 u16 num_queues; member 85 int ixl_pf_qmgr_init(struct ixl_pf_qmgr *qmgr, u16 num_queues);
|
| H A D | ixl_pf_iov.c | 75 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 D | if_ntb.c | 98 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 D | init.c | 106 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 D | netfront.c | 220 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 D | gve_adminq.c | 176 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 D | gve_utils.c | 230 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 D | gve_main.c | 429 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 D | gve_adminq.h | 378 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 D | gve_tx.c | 145 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 D | gve_rx.c | 148 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 D | gve_sysctl.c | 135 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 D | mana_sysctl.c | 58 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 D | mana_en.c | 532 % 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 D | if_epair.c | 118 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 D | nvme_ctrlr_cmd.c | 208 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 D | virtio_pci_modern_var.h | 78 uint16_t num_queues; /* read-only */ member
|
| /freebsd-14.2/sys/dev/virtio/block/ |
| H A D | virtio_blk.h | 91 uint16_t num_queues; member
|
| /freebsd-14.2/sys/dev/sfxge/common/ |
| H A D | ef10_rx.c | 208 __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 D | mpi3mr.c | 870 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 D | ecore_proto_if.h | 115 u8 num_queues; member
|
| H A D | storage_common.h | 159 u8 num_queues /* Number of continuous global queues used */; member
|
| /freebsd-14.2/sys/dev/ice/ |
| H A D | virtchnl.h | 1947 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 D | if_sriov.c | 560 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()
|