/drivers/net/ethernet/freescale/dpaa/ |
D | dpaa_ethtool.c | 220 static void copy_stats(struct dpaa_percpu_priv *percpu_priv, int num_cpus, in copy_stats() argument 223 int num_values = num_cpus + 1; in copy_stats() 228 data[crr++ * num_values + num_cpus] += percpu_priv->in_interrupt; in copy_stats() 231 data[crr++ * num_values + num_cpus] += percpu_priv->stats.rx_packets; in copy_stats() 234 data[crr++ * num_values + num_cpus] += percpu_priv->stats.tx_packets; in copy_stats() 237 data[crr++ * num_values + num_cpus] += percpu_priv->tx_confirm; in copy_stats() 240 data[crr++ * num_values + num_cpus] += percpu_priv->tx_frag_skbuffs; in copy_stats() 243 data[crr++ * num_values + num_cpus] += percpu_priv->stats.tx_errors; in copy_stats() 246 data[crr++ * num_values + num_cpus] += percpu_priv->stats.rx_errors; in copy_stats() 249 data[crr++ * num_values + num_cpus] += percpu_priv->stats.rx_dropped; in copy_stats() [all …]
|
/drivers/acpi/ |
D | acpi_pad.c | 250 static void acpi_pad_idle_cpus(unsigned int num_cpus) in acpi_pad_idle_cpus() argument 254 num_cpus = min_t(unsigned int, num_cpus, num_online_cpus()); in acpi_pad_idle_cpus() 255 set_power_saving_task_num(num_cpus); in acpi_pad_idle_cpus() 389 int num_cpus; in acpi_pad_handle_notify() local 397 num_cpus = acpi_pad_pur(handle); in acpi_pad_handle_notify() 398 if (num_cpus < 0) { in acpi_pad_handle_notify() 402 acpi_pad_idle_cpus(num_cpus); in acpi_pad_handle_notify()
|
/drivers/pci/controller/ |
D | pci-xgene-msi.c | 41 int num_cpus; member 164 return (hwirq % xgene_msi_ctrl.num_cpus); in hwirq_to_cpu() 203 msi->num_cpus, 0); in xgene_irq_domain_alloc() 205 bitmap_set(msi->bitmap, msi_irq, msi->num_cpus); in xgene_irq_domain_alloc() 231 bitmap_clear(msi->bitmap, hwirq, msi->num_cpus); in xgene_irq_domain_free() 379 for (i = cpu; i < NR_HW_IRQS; i += msi->num_cpus) { in xgene_msi_hwirq_alloc() 420 for (i = cpu; i < NR_HW_IRQS; i += msi->num_cpus) { in xgene_msi_hwirq_free() 456 xgene_msi->num_cpus = num_possible_cpus(); in xgene_msi_probe()
|
/drivers/infiniband/sw/siw/ |
D | siw_main.c | 190 int i, num_cpus, cpu, min_use, node = sdev->numa_node, tx_cpu = -1; in siw_get_tx_cpu() local 197 num_cpus = cpumask_weight(tx_cpumask); in siw_get_tx_cpu() 198 if (!num_cpus) { in siw_get_tx_cpu() 201 num_cpus = cpumask_weight(tx_cpumask); in siw_get_tx_cpu() 203 if (!num_cpus) in siw_get_tx_cpu() 208 for (i = 0, min_use = SIW_MAX_QP; i < num_cpus; in siw_get_tx_cpu()
|
/drivers/thermal/ |
D | cpufreq_cooling.c | 276 unsigned int freq, num_cpus, idx; in cpufreq_state2power() local 283 num_cpus = cpumask_weight(cpufreq_cdev->policy->cpus); in cpufreq_state2power() 287 *power = cpu_freq_to_power(cpufreq_cdev, freq) * num_cpus; in cpufreq_state2power() 371 unsigned int num_cpus = cpumask_weight(cpufreq_cdev->policy->related_cpus); in allocate_idle_time() local 373 cpufreq_cdev->idle_time = kcalloc(num_cpus, in allocate_idle_time()
|
/drivers/net/ethernet/huawei/hinic/ |
D | hinic_main.c | 368 u16 num_cpus = 0; in hinic_enable_rss() local 397 num_cpus++; in hinic_enable_rss() 400 if (!num_cpus) in hinic_enable_rss() 401 num_cpus = num_online_cpus(); in hinic_enable_rss() 404 nic_dev->num_qps = min_t(u16, nic_dev->num_qps, num_cpus); in hinic_enable_rss()
|
/drivers/scsi/be2iscsi/ |
D | be_main.c | 795 for (i = 0; i <= phba->num_cpus; i++) { in beiscsi_free_irqs() 813 for (i = 0; i < phba->num_cpus; i++) { in beiscsi_init_irqs() 3009 for (i = 0; i < (phba->num_cpus + eq_for_mcc); i++) { in beiscsi_create_eqs() 3046 for (i = 0; i < (phba->num_cpus + eq_for_mcc); i++) { in beiscsi_create_eqs() 3071 for (i = 0; i < phba->num_cpus; i++) { in beiscsi_create_cqs() 3109 for (i = 0; i < phba->num_cpus; i++) { in beiscsi_create_cqs() 3515 &phwi_context->be_eq[phba->num_cpus].q, in be_mcc_queues_create() 3568 phba->num_cpus = nvec - 1; in be2iscsi_enable_msix() 3573 phba->num_cpus = 1; in be2iscsi_enable_msix() 3595 for (i = 0; i < (phba->num_cpus + eq_msix); i++) { in hwi_purge_eq() [all …]
|
D | be_main.h | 279 unsigned int num_cpus; member
|
D | be_iscsi.c | 1235 for (i = 0; i < phba->num_cpus; i++) { in beiscsi_flush_cq()
|
D | be_mgmt.c | 187 if (phba->nxt_cqid == phba->num_cpus) in mgmt_open_connection()
|
/drivers/net/ethernet/amazon/ena/ |
D | ena_admin_defs.h | 855 u16 num_cpus; member
|
D | ena_netdev.c | 3234 host_info->num_cpus = num_online_cpus(); in ena_config_host_info()
|
/drivers/scsi/ |
D | storvsc_drv.c | 1967 int num_cpus = num_online_cpus(); in storvsc_probe() local 2002 (num_cpus - 1) / storvsc_vcpus_per_sub_channel; in storvsc_probe()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | cxgb3_main.c | 3096 int num_cpus = netif_get_num_default_rss_queues(); in set_nqsets() local 3103 num_cpus >= nqsets / hwports)) in set_nqsets() 3105 if (nqsets > num_cpus) in set_nqsets() 3106 nqsets = num_cpus; in set_nqsets()
|
/drivers/net/ethernet/intel/ice/ |
D | ice_main.c | 3566 int num_cpus, v_left, v_actual, v_other, v_budget = 0; in ice_ena_msix_range() local 3571 num_cpus = num_online_cpus(); in ice_ena_msix_range() 3593 needed = num_cpus; in ice_ena_msix_range() 3602 needed = num_cpus + ICE_RDMA_NUM_AEQ_MSIX; in ice_ena_msix_range()
|
/drivers/gpu/drm/vc4/ |
D | vc4_hdmi.c | 1541 dai_link->num_cpus = 1; in vc4_hdmi_audio_init()
|
/drivers/scsi/smartpqi/ |
D | smartpqi_init.c | 5003 int num_cpus; in pqi_calculate_queue_resources() local 5010 num_cpus = num_online_cpus(); in pqi_calculate_queue_resources() 5011 num_queue_groups = min(num_cpus, ctrl_info->max_msix_vectors); in pqi_calculate_queue_resources()
|