/kernel/linux/linux-5.10/drivers/misc/habanalabs/common/ |
H A D | hw_queue.c | 51 for (i = 0 ; i < hdev->asic_prop.max_queues ; i++, q++) { in hl_int_hw_queue_update_ci() 491 u32 max_queues; in hl_hw_queue_schedule_cs() local 504 max_queues = hdev->asic_prop.max_queues; in hl_hw_queue_schedule_cs() 507 for (i = 0, cq_cnt = 0 ; i < max_queues ; i++, q++) { in hl_hw_queue_schedule_cs() 585 for (i = 0 ; (i < max_queues) && (cq_cnt > 0) ; i++, q++) { in hl_hw_queue_schedule_cs() 855 hdev->kernel_queues = kcalloc(asic->max_queues, in hl_hw_queues_create() 865 i < asic->max_queues ; i++, q_ready_cnt++, q++) { in hl_hw_queues_create() 892 u32 max_queues = hdev->asic_prop.max_queues; in hl_hw_queues_destroy() local 904 u32 max_queues = hdev->asic_prop.max_queues; hl_hw_queue_reset() local [all...] |
H A D | command_submission.c | 443 cs->jobs_in_queue_cnt = kcalloc(hdev->asic_prop.max_queues, in allocate_cs() 529 if (chunk->queue_index >= asic->max_queues) { in validate_queue_index() 811 if (chunk->queue_index >= hdev->asic_prop.max_queues) { in cs_ioctl_signal_wait() 822 if ((q_idx >= hdev->asic_prop.max_queues) || in cs_ioctl_signal_wait()
|
/kernel/linux/linux-6.6/drivers/accel/habanalabs/common/ |
H A D | hw_queue.c | 53 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 in hl_hw_queues_destroy() local 1124 u32 max_queues = hdev->asic_prop.max_queues; hl_hw_queue_reset() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/google/gve/ |
H A D | gve_main.c | 360 priv->tx_cfg.max_queues = min_t(int, priv->tx_cfg.max_queues, in gve_alloc_notify_blocks() 362 priv->rx_cfg.max_queues = min_t(int, priv->rx_cfg.max_queues, in gve_alloc_notify_blocks() 366 vecs_enabled, priv->tx_cfg.max_queues, in gve_alloc_notify_blocks() 367 priv->rx_cfg.max_queues); in gve_alloc_notify_blocks() 368 if (priv->tx_cfg.num_queues > priv->tx_cfg.max_queues) in gve_alloc_notify_blocks() 369 priv->tx_cfg.num_queues = priv->tx_cfg.max_queues; in gve_alloc_notify_blocks() 370 if (priv->rx_cfg.num_queues > priv->rx_cfg.max_queues) in gve_alloc_notify_blocks() 371 priv->rx_cfg.num_queues = priv->rx_cfg.max_queues; in gve_alloc_notify_blocks() 1090 int max_queues = priv->tx_cfg.max_queues + priv->rx_cfg.max_queues; gve_alloc_qpls() local 1158 int max_queues = priv->tx_cfg.max_queues + priv->rx_cfg.max_queues; gve_free_qpls() local [all...] |
H A D | gve_ethtool.c | 425 cmd->max_rx = priv->rx_cfg.max_queues; in gve_get_channels() 426 cmd->max_tx = priv->tx_cfg.max_queues; in gve_get_channels() 455 (new_tx != new_rx || (2 * new_tx > priv->tx_cfg.max_queues))) { in gve_set_channels()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_vf.c | 40 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()
|
H A D | fm10k_ethtool.c | 170 for (i = 0; i < interface->hw.mac.max_queues; i++) { in fm10k_get_stat_strings() 207 stats_len += hw->mac.max_queues * 2 * FM10K_QUEUE_STATS_LEN; in fm10k_get_sset_count() 282 for (i = 0; i < interface->hw.mac.max_queues; i++) { in fm10k_get_ethtool_stats() 411 if (i < hw->mac.max_queues) in fm10k_get_regs() 1101 unsigned int max_combined = interface->hw.mac.max_queues; in fm10k_max_channels()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_vf.c | 40 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()
|
H A D | fm10k_ethtool.c | 171 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/google/gve/ |
H A D | gve_main.c | 238 priv->tx_cfg.max_queues = min_t(int, priv->tx_cfg.max_queues, in gve_alloc_notify_blocks() 240 priv->rx_cfg.max_queues = min_t(int, priv->rx_cfg.max_queues, in gve_alloc_notify_blocks() 244 vecs_enabled, priv->tx_cfg.max_queues, in gve_alloc_notify_blocks() 245 priv->rx_cfg.max_queues); in gve_alloc_notify_blocks() 246 if (priv->tx_cfg.num_queues > priv->tx_cfg.max_queues) in gve_alloc_notify_blocks() 247 priv->tx_cfg.num_queues = priv->tx_cfg.max_queues; in gve_alloc_notify_blocks() 248 if (priv->rx_cfg.num_queues > priv->rx_cfg.max_queues) in gve_alloc_notify_blocks() 249 priv->rx_cfg.num_queues = priv->rx_cfg.max_queues; in gve_alloc_notify_blocks() [all...] |
H A D | gve_ethtool.c | 366 cmd->max_rx = priv->rx_cfg.max_queues; in gve_get_channels() 367 cmd->max_tx = priv->tx_cfg.max_queues; in gve_get_channels()
|
/kernel/linux/linux-5.10/arch/mips/cavium-octeon/executive/ |
H A D | cvmx-pko.c | 215 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()
|
/kernel/linux/linux-6.6/arch/mips/cavium-octeon/executive/ |
H A D | cvmx-pko.c | 215 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/thunder/ |
H A D | nicvf_ethtool.c | 708 channel->max_rx = nic->max_queues; in nicvf_get_channels() 709 channel->max_tx = nic->max_queues; in nicvf_get_channels() 726 if (channel->rx_count > nic->max_queues) in nicvf_set_channels() 728 if (channel->tx_count > nic->max_queues) in nicvf_set_channels() 732 ((channel->tx_count + channel->rx_count) > nic->max_queues)) { in nicvf_set_channels() 735 nic->max_queues); in nicvf_set_channels()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/cavium/thunder/ |
H A D | nicvf_ethtool.c | 715 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() 738 if (channel->tx_count + channel->rx_count > nic->max_queues) { in nicvf_set_channels() 742 nic->max_queues); in nicvf_set_channels()
|
/kernel/linux/linux-5.10/tools/lib/bpf/ |
H A D | xsk.c | 481 int max_queues; in xsk_create_bpf_maps() local 484 max_queues = xsk_get_max_queues(xsk); in xsk_create_bpf_maps() 485 if (max_queues < 0) in xsk_create_bpf_maps() 486 return max_queues; in xsk_create_bpf_maps() 489 sizeof(int), sizeof(int), max_queues, 0); in xsk_create_bpf_maps()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_process_queue_manager.c | 205 unsigned int max_queues = 127; /* HWS limit */ in pqm_create_queue() local 223 max_queues = dev->device_info->max_no_of_hqd/2; in pqm_create_queue() 225 if (pdd->qpd.queue_count >= max_queues) in pqm_create_queue()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/samsung/sxgbe/ |
H A D | sxgbe_common.h | 194 #define SXGBE_FOR_EACH_QUEUE(max_queues, queue_num) \ 195 for (queue_num = 0; queue_num < max_queues; queue_num++)
|
/kernel/linux/linux-6.6/drivers/net/ethernet/samsung/sxgbe/ |
H A D | sxgbe_common.h | 194 #define SXGBE_FOR_EACH_QUEUE(max_queues, queue_num) \ 195 for (queue_num = 0; queue_num < max_queues; queue_num++)
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microsoft/mana/ |
H A D | mana_en.c | 2422 u32 max_txq, max_rxq, max_queues; in mana_init_port() local 2439 max_queues = min_t(u32, max_txq, max_rxq); in mana_init_port() 2440 if (apc->max_queues > max_queues) in mana_init_port() 2441 apc->max_queues = max_queues; in mana_init_port() 2443 if (apc->num_queues > apc->max_queues) in mana_init_port() 2444 apc->num_queues = apc->max_queues; in mana_init_port() 2655 apc->max_queues = gc->max_num_queues; in mana_probe_port()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_hw_qp.c | 74 u16 num_queues, u16 max_queues) in hinic_qp_prepare_header() 76 u16 max_sqs = max_queues; in hinic_qp_prepare_header() 77 u16 max_rqs = max_queues; in hinic_qp_prepare_header() 72 hinic_qp_prepare_header(struct hinic_qp_ctxt_header *qp_ctxt_hdr, enum hinic_qp_ctxt_type ctxt_type, u16 num_queues, u16 max_queues) hinic_qp_prepare_header() argument
|
H A D | hinic_hw_qp.h | 130 u16 num_queues, u16 max_queues);
|
/kernel/linux/linux-6.6/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_hw_qp.c | 74 u16 num_queues, u16 max_queues) in hinic_qp_prepare_header() 76 u16 max_sqs = max_queues; in hinic_qp_prepare_header() 77 u16 max_rqs = max_queues; in hinic_qp_prepare_header() 72 hinic_qp_prepare_header(struct hinic_qp_ctxt_header *qp_ctxt_hdr, enum hinic_qp_ctxt_type ctxt_type, u16 num_queues, u16 max_queues) hinic_qp_prepare_header() argument
|
H A D | hinic_hw_qp.h | 130 u16 num_queues, u16 max_queues);
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_process_queue_manager.c | 285 unsigned int max_queues = 127; /* HWS limit */ in pqm_create_queue() local 292 max_queues = 255; in pqm_create_queue() 310 max_queues = dev->kfd->device_info.max_no_of_hqd/2; in pqm_create_queue() 312 if (pdd->qpd.queue_count >= max_queues) in pqm_create_queue()
|