/drivers/net/ethernet/freescale/dpaa/ |
D | dpaa_ethtool.c | 237 static void copy_stats(struct dpaa_percpu_priv *percpu_priv, int num_cpus, in copy_stats() argument 240 int num_values = num_cpus + 1; in copy_stats() 245 data[crr++ * num_values + num_cpus] += percpu_priv->in_interrupt; in copy_stats() 248 data[crr++ * num_values + num_cpus] += percpu_priv->stats.rx_packets; in copy_stats() 251 data[crr++ * num_values + num_cpus] += percpu_priv->stats.tx_packets; in copy_stats() 254 data[crr++ * num_values + num_cpus] += percpu_priv->tx_confirm; in copy_stats() 257 data[crr++ * num_values + num_cpus] += percpu_priv->tx_frag_skbuffs; in copy_stats() 260 data[crr++ * num_values + num_cpus] += percpu_priv->stats.tx_errors; in copy_stats() 263 data[crr++ * num_values + num_cpus] += percpu_priv->stats.rx_errors; in copy_stats() 267 data[crr++ * num_values + num_cpus] += bp_count[j]; 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() 392 int num_cpus; in acpi_pad_handle_notify() local 400 num_cpus = acpi_pad_pur(handle); in acpi_pad_handle_notify() 401 if (num_cpus < 0) { in acpi_pad_handle_notify() 405 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() 382 for (i = cpu; i < NR_HW_IRQS; i += msi->num_cpus) { in xgene_msi_hwirq_alloc() 427 for (i = cpu; i < NR_HW_IRQS; i += msi->num_cpus) { in xgene_msi_hwirq_free() 464 xgene_msi->num_cpus = num_possible_cpus(); in xgene_msi_probe()
|
/drivers/thermal/ |
D | cpu_cooling.c | 428 unsigned int freq, num_cpus; in cpufreq_state2power() local 435 num_cpus = cpumask_weight(cpufreq_cdev->policy->cpus); in cpufreq_state2power() 438 *power = cpu_freq_to_power(cpufreq_cdev, freq) * num_cpus; in cpufreq_state2power() 535 unsigned int freq, i, num_cpus; in __cpufreq_cooling_register() local 564 num_cpus = cpumask_weight(policy->related_cpus); in __cpufreq_cooling_register() 565 cpufreq_cdev->idle_time = kcalloc(num_cpus, in __cpufreq_cooling_register()
|
/drivers/infiniband/sw/siw/ |
D | siw_main.c | 188 int i, num_cpus, cpu, min_use, node = sdev->numa_node, tx_cpu = -1; in siw_get_tx_cpu() local 195 num_cpus = cpumask_weight(tx_cpumask); in siw_get_tx_cpu() 196 if (!num_cpus) { in siw_get_tx_cpu() 199 num_cpus = cpumask_weight(tx_cpumask); in siw_get_tx_cpu() 201 if (!num_cpus) in siw_get_tx_cpu() 206 for (i = 0, min_use = SIW_MAX_QP; i < num_cpus; in siw_get_tx_cpu()
|
/drivers/net/ethernet/huawei/hinic/ |
D | hinic_main.c | 323 u16 num_cpus = 0; in hinic_enable_rss() local 353 num_cpus++; in hinic_enable_rss() 356 if (!num_cpus) in hinic_enable_rss() 357 num_cpus = num_online_cpus(); in hinic_enable_rss() 359 nic_dev->num_qps = min_t(u16, nic_dev->max_qps, num_cpus); in hinic_enable_rss()
|
/drivers/scsi/be2iscsi/ |
D | be_main.c | 796 for (i = 0; i <= phba->num_cpus; i++) { in beiscsi_free_irqs() 814 for (i = 0; i < phba->num_cpus; i++) { in beiscsi_init_irqs() 3011 for (i = 0; i < (phba->num_cpus + eq_for_mcc); i++) { in beiscsi_create_eqs() 3049 for (i = 0; i < (phba->num_cpus + eq_for_mcc); i++) { in beiscsi_create_eqs() 3074 for (i = 0; i < phba->num_cpus; i++) { in beiscsi_create_cqs() 3114 for (i = 0; i < phba->num_cpus; i++) { in beiscsi_create_cqs() 3521 &phwi_context->be_eq[phba->num_cpus].q, in be_mcc_queues_create() 3574 phba->num_cpus = nvec - 1; in be2iscsi_enable_msix() 3579 phba->num_cpus = 1; in be2iscsi_enable_msix() 3601 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 | 1221 for (i = 0; i < phba->num_cpus; i++) { in beiscsi_flush_cq()
|
D | be_mgmt.c | 186 if (phba->nxt_cqid == phba->num_cpus) in mgmt_open_connection()
|
/drivers/net/ethernet/amazon/ena/ |
D | ena_admin_defs.h | 808 u16 num_cpus; member
|
D | ena_netdev.c | 2432 host_info->num_cpus = num_online_cpus(); in ena_config_host_info()
|
/drivers/scsi/ |
D | storvsc_drv.c | 1734 int num_cpus = num_online_cpus(); in storvsc_probe() local 1767 (num_cpus - 1) / storvsc_vcpus_per_sub_channel; in storvsc_probe()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | cxgb3_main.c | 3089 int num_cpus = netif_get_num_default_rss_queues(); in set_nqsets() local 3096 num_cpus >= nqsets / hwports)) in set_nqsets() 3098 if (nqsets > num_cpus) in set_nqsets() 3099 nqsets = num_cpus; in set_nqsets()
|
/drivers/gpu/drm/vc4/ |
D | vc4_hdmi.c | 1101 dai_link->num_cpus = 1; in vc4_hdmi_audio_init()
|
/drivers/scsi/smartpqi/ |
D | smartpqi_init.c | 4786 int num_cpus; in pqi_calculate_queue_resources() local 4793 num_cpus = num_online_cpus(); in pqi_calculate_queue_resources() 4794 num_queue_groups = min(num_cpus, ctrl_info->max_msix_vectors); in pqi_calculate_queue_resources()
|