Home
last modified time | relevance | path

Searched refs:max_queues (Results 1 – 25 of 40) sorted by relevance

12

/Linux-v6.1/drivers/misc/habanalabs/common/
Dhw_queue.c53 if (!hdev->asic_prop.max_queues || q->queue_type == QUEUE_TYPE_HW) in hl_hw_queue_update_ci()
61 for (i = 0 ; i < hdev->asic_prop.max_queues ; i++, q++) { in hl_hw_queue_update_ci()
635 u32 max_queues; in hl_hw_queue_schedule_cs() local
650 max_queues = hdev->asic_prop.max_queues; in hl_hw_queue_schedule_cs()
653 for (i = 0, cq_cnt = 0 ; i < max_queues ; i++, q++) { in hl_hw_queue_schedule_cs()
784 for (i = 0 ; (i < max_queues) && (cq_cnt > 0) ; i++, q++) { in hl_hw_queue_schedule_cs()
1074 hdev->kernel_queues = kcalloc(asic->max_queues, in hl_hw_queues_create()
1084 i < asic->max_queues ; i++, q_ready_cnt++, q++) { in hl_hw_queues_create()
1112 u32 max_queues = hdev->asic_prop.max_queues; in hl_hw_queues_destroy() local
1115 for (i = 0, q = hdev->kernel_queues ; i < max_queues ; i++, q++) in hl_hw_queues_destroy()
[all …]
Dcommand_submission.c928 cs->jobs_in_queue_cnt = kcalloc(hdev->asic_prop.max_queues, in allocate_cs()
931 cs->jobs_in_queue_cnt = kcalloc(hdev->asic_prop.max_queues, in allocate_cs()
1124 if (chunk->queue_index >= asic->max_queues) { in validate_queue_index()
1930 if (q_idx >= hdev->asic_prop.max_queues) { in cs_ioctl_reserve_signals()
2130 if (chunk->queue_index >= hdev->asic_prop.max_queues) { in cs_ioctl_signal_wait()
/Linux-v6.1/drivers/net/ethernet/google/gve/
Dgve_main.c312 priv->tx_cfg.max_queues = min_t(int, priv->tx_cfg.max_queues, in gve_alloc_notify_blocks()
314 priv->rx_cfg.max_queues = min_t(int, priv->rx_cfg.max_queues, in gve_alloc_notify_blocks()
318 vecs_enabled, priv->tx_cfg.max_queues, in gve_alloc_notify_blocks()
319 priv->rx_cfg.max_queues); in gve_alloc_notify_blocks()
320 if (priv->tx_cfg.num_queues > priv->tx_cfg.max_queues) in gve_alloc_notify_blocks()
321 priv->tx_cfg.num_queues = priv->tx_cfg.max_queues; in gve_alloc_notify_blocks()
322 if (priv->rx_cfg.num_queues > priv->rx_cfg.max_queues) in gve_alloc_notify_blocks()
323 priv->rx_cfg.num_queues = priv->rx_cfg.max_queues; in gve_alloc_notify_blocks()
1404 priv->tx_cfg.max_queues = in gve_init_priv()
1405 min_t(int, priv->tx_cfg.max_queues, priv->num_ntfy_blks / 2); in gve_init_priv()
[all …]
Dgve_ethtool.c384 cmd->max_rx = priv->rx_cfg.max_queues; in gve_get_channels()
385 cmd->max_tx = priv->tx_cfg.max_queues; in gve_get_channels()
/Linux-v6.1/drivers/net/ethernet/intel/fm10k/
Dfm10k_vf.c40 for (i = 0; i < hw->mac.max_queues; i++) { in fm10k_stop_hw_vf()
126 hw->mac.max_queues = i; in fm10k_init_hw_vf()
142 hw->mac.max_queues = 0; in fm10k_init_hw_vf()
454 fm10k_update_hw_stats_q(hw, stats->q, 0, hw->mac.max_queues); in fm10k_update_hw_stats_vf()
468 fm10k_unbind_hw_stats_q(stats->q, 0, hw->mac.max_queues); in fm10k_rebind_hw_stats_vf()
Dfm10k_ethtool.c171 for (i = 0; i < interface->hw.mac.max_queues; i++) { in fm10k_get_stat_strings()
208 stats_len += hw->mac.max_queues * 2 * FM10K_QUEUE_STATS_LEN; in fm10k_get_sset_count()
283 for (i = 0; i < interface->hw.mac.max_queues; i++) { in fm10k_get_ethtool_stats()
412 if (i < hw->mac.max_queues) in fm10k_get_regs()
1110 unsigned int max_combined = interface->hw.mac.max_queues; in fm10k_max_channels()
Dfm10k_common.c241 return fm10k_disable_queues_generic(hw, hw->mac.max_queues); in fm10k_stop_hw_generic()
Dfm10k_pf.c174 hw->mac.max_queues = FM10K_MAX_QUEUES_PF; in fm10k_init_hw_pf()
1487 fm10k_update_hw_stats_q(hw, stats->q, 0, hw->mac.max_queues); in fm10k_update_hw_stats_pf()
1512 fm10k_unbind_hw_stats_q(stats->q, 0, hw->mac.max_queues); in fm10k_rebind_hw_stats_pf()
Dfm10k_type.h546 u16 max_queues; member
/Linux-v6.1/arch/mips/cavium-octeon/executive/
Dcvmx-pko.c215 int max_queues = in cvmx_pko_initialize_global() local
219 if (max_queues <= 32) in cvmx_pko_initialize_global()
221 else if (max_queues <= 64) in cvmx_pko_initialize_global()
224 if (max_queues <= 64) in cvmx_pko_initialize_global()
226 else if (max_queues <= 128) in cvmx_pko_initialize_global()
/Linux-v6.1/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c715 channel->max_rx = nic->max_queues; in nicvf_get_channels()
716 channel->max_tx = nic->max_queues; in nicvf_get_channels()
733 if (channel->rx_count > nic->max_queues) in nicvf_set_channels()
735 if (channel->tx_count > nic->max_queues) in nicvf_set_channels()
739 ((channel->tx_count + channel->rx_count) > nic->max_queues)) { in nicvf_set_channels()
742 nic->max_queues); in nicvf_set_channels()
Dnic.h310 u8 max_queues; member
Dnicvf_main.c1856 if ((nic->rx_queues + nic->tx_queues) > nic->max_queues) { in nicvf_xdp_setup()
1859 nic->max_queues); in nicvf_xdp_setup()
2151 nic->max_queues = qcount; in nicvf_probe()
2156 nic->max_queues *= 2; in nicvf_probe()
/Linux-v6.1/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_common.h194 #define SXGBE_FOR_EACH_QUEUE(max_queues, queue_num) \ argument
195 for (queue_num = 0; queue_num < max_queues; queue_num++)
/Linux-v6.1/drivers/net/ethernet/microsoft/mana/
Dmana_en.c1861 u32 max_txq, max_rxq, max_queues; in mana_init_port() local
1878 max_queues = min_t(u32, max_txq, max_rxq); in mana_init_port()
1879 if (apc->max_queues > max_queues) in mana_init_port()
1880 apc->max_queues = max_queues; in mana_init_port()
1882 if (apc->num_queues > apc->max_queues) in mana_init_port()
1883 apc->num_queues = apc->max_queues; in mana_init_port()
2066 apc->max_queues = gc->max_num_queues; in mana_probe_port()
Dmana_ethtool.c223 channel->max_combined = apc->max_queues; in mana_get_channels()
Dmana.h377 unsigned int max_queues; member
/Linux-v6.1/tools/testing/selftests/bpf/
Dxsk.c583 int max_queues; in xsk_create_bpf_maps() local
586 max_queues = xsk_get_max_queues(xsk); in xsk_create_bpf_maps()
587 if (max_queues < 0) in xsk_create_bpf_maps()
588 return max_queues; in xsk_create_bpf_maps()
591 sizeof(int), sizeof(int), max_queues, NULL); in xsk_create_bpf_maps()
/Linux-v6.1/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_qp.c74 u16 num_queues, u16 max_queues) in hinic_qp_prepare_header() argument
76 u16 max_sqs = max_queues; in hinic_qp_prepare_header()
77 u16 max_rqs = max_queues; in hinic_qp_prepare_header()
Dhinic_hw_qp.h130 u16 num_queues, u16 max_queues);
/Linux-v6.1/drivers/gpu/drm/amd/amdkfd/
Dkfd_process_queue_manager.c243 unsigned int max_queues = 127; /* HWS limit */ in pqm_create_queue() local
261 max_queues = dev->device_info.max_no_of_hqd/2; in pqm_create_queue()
263 if (pdd->qpd.queue_count >= max_queues) in pqm_create_queue()
/Linux-v6.1/drivers/net/ethernet/amazon/ena/
Dena_netdev.c3990 struct ena_admin_queue_feature_desc *max_queues = in ena_calc_max_io_queue_num() local
3991 &get_feat_ctx->max_queues; in ena_calc_max_io_queue_num()
3992 io_tx_sq_num = max_queues->max_sq_num; in ena_calc_max_io_queue_num()
3993 io_tx_cq_num = max_queues->max_cq_num; in ena_calc_max_io_queue_num()
4156 struct ena_admin_queue_feature_desc *max_queues = in ena_calc_io_queue_size() local
4157 &get_feat_ctx->max_queues; in ena_calc_io_queue_size()
4158 max_rx_queue_size = min_t(u32, max_queues->max_cq_depth, in ena_calc_io_queue_size()
4159 max_queues->max_sq_depth); in ena_calc_io_queue_size()
4160 max_tx_queue_size = max_queues->max_cq_depth; in ena_calc_io_queue_size()
4167 max_queues->max_sq_depth); in ena_calc_io_queue_size()
[all …]
Dena_com.h338 struct ena_admin_queue_feature_desc max_queues; member
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_vf.c509 num_vec += NIX_LF_CINT_VEC_START + hw->max_queues; in otx2vf_realloc_msix_vectors()
572 hw->max_queues = qcount; in otx2vf_probe()
/Linux-v6.1/drivers/net/
Dxen-netfront.c65 module_param_named(max_queues, xennet_max_queues, uint, 0644);
66 MODULE_PARM_DESC(max_queues,
2256 unsigned int max_queues = 0; in talk_to_netback() local
2268 max_queues = xenbus_read_unsigned(info->xbdev->otherend, in talk_to_netback()
2270 num_queues = min(max_queues, xennet_max_queues); in talk_to_netback()

12