/drivers/base/ |
D | cacheinfo.c | 25 #define ci_cacheinfo(cpu) (&per_cpu(ci_cpu_cacheinfo, cpu)) argument 26 #define cache_leaves(cpu) (ci_cacheinfo(cpu)->num_leaves) argument 27 #define per_cpu_cacheinfo(cpu) (ci_cacheinfo(cpu)->info_list) argument 28 #define per_cpu_cacheinfo_idx(cpu, idx) \ argument 31 struct cpu_cacheinfo *get_cpu_cacheinfo(unsigned int cpu) in get_cpu_cacheinfo() 53 bool last_level_cache_is_valid(unsigned int cpu) in last_level_cache_is_valid() 196 static int cache_setup_of_node(unsigned int cpu) in cache_setup_of_node() 227 static inline int cache_setup_of_node(unsigned int cpu) { return 0; } in cache_setup_of_node() 230 int __weak cache_setup_acpi(unsigned int cpu) in cache_setup_acpi() 237 static int cache_setup_properties(unsigned int cpu) in cache_setup_properties() [all …]
|
D | arch_topology.c | 73 int cpu; in topology_set_scale_freq_source() local 104 int cpu; in topology_clear_scale_freq_source() local 168 void topology_set_cpu_scale(unsigned int cpu, unsigned long capacity) in topology_set_cpu_scale() 195 int cpu; in topology_update_thermal_pressure() local 229 struct cpu *cpu = container_of(dev, struct cpu, dev); in cpu_capacity_show() local 242 struct device *cpu; in register_cpu_capacity_sysctl() local 295 int cpu; in topology_normalize_cpu_scale() local 317 bool __init topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu) in topology_parse_cpu_capacity() 374 int cpu; in topology_init_cpu_capacity_cppc() local 419 int cpu; in init_cpu_capacity_callback() local [all …]
|
D | arch_numa.c | 64 static void numa_update_cpu(unsigned int cpu, bool remove) in numa_update_cpu() 77 void numa_add_cpu(unsigned int cpu) in numa_add_cpu() 82 void numa_remove_cpu(unsigned int cpu) in numa_remove_cpu() 87 void numa_clear_node(unsigned int cpu) in numa_clear_node() 121 void numa_store_cpu_info(unsigned int cpu) in numa_store_cpu_info() 126 void __init early_map_cpu_to_node(unsigned int cpu, int nid) in early_map_cpu_to_node() 147 int __init early_cpu_to_node(int cpu) in early_cpu_to_node() 160 unsigned int cpu; in setup_per_cpu_areas() local
|
/drivers/cpufreq/ |
D | intel_pstate.c | 229 int cpu; member 344 static void intel_pstate_set_itmt_prio(int cpu) in intel_pstate_set_itmt_prio() 388 static int intel_pstate_get_cppc_guaranteed(int cpu) in intel_pstate_get_cppc_guaranteed() 403 static inline void intel_pstate_set_itmt_prio(int cpu) in intel_pstate_set_itmt_prio() 410 struct cpudata *cpu; in intel_pstate_init_acpi_perf_limits() local 466 struct cpudata *cpu; in intel_pstate_exit_perf_limits() local 490 static inline int intel_pstate_get_cppc_guaranteed(int cpu) in intel_pstate_get_cppc_guaranteed() 496 static int intel_pstate_freq_to_hwp_rel(struct cpudata *cpu, int freq, in intel_pstate_freq_to_hwp_rel() 515 static int intel_pstate_freq_to_hwp(struct cpudata *cpu, int freq) in intel_pstate_freq_to_hwp() 531 static void intel_pstate_hybrid_hwp_adjust(struct cpudata *cpu) in intel_pstate_hybrid_hwp_adjust() [all …]
|
D | cpufreq.c | 126 static inline u64 get_cpu_idle_time_jiffy(unsigned int cpu, u64 *wall) in get_cpu_idle_time_jiffy() 151 u64 get_cpu_idle_time(unsigned int cpu, u64 *wall, int io_busy) in get_cpu_idle_time() 186 struct cpufreq_policy *cpufreq_cpu_get_raw(unsigned int cpu) in cpufreq_cpu_get_raw() 194 unsigned int cpufreq_generic_get(unsigned int cpu) in cpufreq_generic_get() 219 struct cpufreq_policy *cpufreq_cpu_get(unsigned int cpu) in cpufreq_cpu_get() 281 struct cpufreq_policy *cpufreq_cpu_acquire(unsigned int cpu) in cpufreq_cpu_acquire() 350 int cpu; in cpufreq_notify_transition() local 714 __weak unsigned int arch_freq_get_on_cpu(int cpu) in arch_freq_get_on_cpu() 859 unsigned int cpu; in cpufreq_show_cpus() local 1018 static void add_cpu_dev_symlink(struct cpufreq_policy *policy, unsigned int cpu, in add_cpu_dev_symlink() [all …]
|
D | cppc_cpufreq.c | 78 int cpu; member 167 int cpu, ret; in cppc_cpufreq_cpu_fie_init() local 208 int cpu; in cppc_cpufreq_cpu_fie_exit() local 384 unsigned int cpu = policy->cpu; in cppc_cpufreq_set_target() local 413 unsigned int cpu = policy->cpu; in cppc_cpufreq_fast_switch() local 445 static unsigned int cppc_cpufreq_get_transition_delay_us(unsigned int cpu) in cppc_cpufreq_get_transition_delay_us() 461 static unsigned int cppc_cpufreq_get_transition_delay_us(unsigned int cpu) in cppc_cpufreq_get_transition_delay_us() 485 int cpu = policy->cpu; in get_perf_level_count() local 501 static inline unsigned long compute_cost(int cpu, int step) in compute_cost() 604 int class, cpu, index; in populate_efficiency_class() local [all …]
|
D | tegra194-cpufreq.c | 29 #define CORE_OFFSET(cpu) (cpu * 8) argument 31 #define SCRATCH_FREQ_CORE_REG(data, cpu) (data->regs + CMU_CLKS_BASE + CORE_OFFSET(cpu)) argument 36 #define CORE_ACTMON_CNTR_REG(data, cl, cpu) (CLUSTER_ACTMON_BASE(data, cl) + CORE_OFFSET(cpu)) argument 42 u32 cpu; member 79 static void tegra234_get_cpu_cluster_id(u32 cpu, u32 *cpuid, u32 *clusterid) in tegra234_get_cpu_cluster_id() 91 static int tegra234_get_cpu_ndiv(u32 cpu, u32 cpuid, u32 clusterid, u64 *ndiv) in tegra234_get_cpu_ndiv() 110 u32 cpu, cpuid, clusterid; in tegra234_set_cpu_ndiv() local 171 static void tegra194_get_cpu_cluster_id(u32 cpu, u32 *cpuid, u32 *clusterid) in tegra194_get_cpu_cluster_id() 266 static unsigned int tegra194_calculate_speed(u32 cpu) in tegra194_calculate_speed() 315 static int tegra194_get_cpu_ndiv(u32 cpu, u32 cpuid, u32 clusterid, u64 *ndiv) in tegra194_get_cpu_ndiv() [all …]
|
/drivers/acpi/ |
D | processor_thermal.c | 33 #define reduction_pctg(cpu) \ argument 43 static int phys_package_first_cpu(int cpu) in phys_package_first_cpu() 54 static int cpu_has_cpufreq(unsigned int cpu) in cpu_has_cpufreq() 69 static int cpufreq_get_max_state(unsigned int cpu) in cpufreq_get_max_state() 77 static int cpufreq_get_cur_state(unsigned int cpu) in cpufreq_get_cur_state() 85 static int cpufreq_set_cur_state(unsigned int cpu, int state) in cpufreq_set_cur_state() 131 unsigned int cpu; in acpi_thermal_cpufreq_init() local 151 unsigned int cpu; in acpi_thermal_cpufreq_exit() local 161 static int cpufreq_get_max_state(unsigned int cpu) in cpufreq_get_max_state() 166 static int cpufreq_get_cur_state(unsigned int cpu) in cpufreq_get_cur_state() [all …]
|
D | pptt.c | 288 struct acpi_pptt_processor *cpu; in acpi_find_cache_levels() local 422 unsigned int cpu) in cache_setup_acpi_cpu() 448 struct acpi_pptt_processor *cpu) in flag_identical() 470 struct acpi_pptt_processor *cpu, in acpi_find_processor_tag() 511 unsigned int cpu, int level, int flag) in topology_get_acpi_cpu_tag() 558 static int find_acpi_cpu_topology_tag(unsigned int cpu, int level, int flag) in find_acpi_cpu_topology_tag() 587 static int check_acpi_cpu_flag(unsigned int cpu, int rev, u32 flag) in check_acpi_cpu_flag() 617 int acpi_find_last_cache_level(unsigned int cpu) in acpi_find_last_cache_level() 649 int cache_setup_acpi(unsigned int cpu) in cache_setup_acpi() 673 int acpi_pptt_cpu_is_thread(unsigned int cpu) in acpi_pptt_cpu_is_thread() [all …]
|
/drivers/cpuidle/ |
D | coupled.c | 315 int cpu = (unsigned long)info; in cpuidle_coupled_handle_poke() local 332 static void cpuidle_coupled_poke(int cpu) in cpuidle_coupled_poke() 350 int cpu; in cpuidle_coupled_poke_others() local 366 static int cpuidle_coupled_set_waiting(int cpu, in cpuidle_coupled_set_waiting() 385 static void cpuidle_coupled_set_not_waiting(int cpu, in cpuidle_coupled_set_not_waiting() 408 static void cpuidle_coupled_set_done(int cpu, struct cpuidle_coupled *coupled) in cpuidle_coupled_set_done() 427 static int cpuidle_coupled_clear_pokes(int cpu) in cpuidle_coupled_clear_pokes() 644 int cpu; in cpuidle_coupled_register_device() local 711 int cpu = get_cpu(); in cpuidle_coupled_prevent_idle() local 730 int cpu = get_cpu(); in cpuidle_coupled_allow_idle() local [all …]
|
D | cpuidle-psci.c | 120 static int psci_idle_cpuhp_up(unsigned int cpu) in psci_idle_cpuhp_up() 130 static int psci_idle_cpuhp_down(unsigned int cpu) in psci_idle_cpuhp_down() 147 int cpu; in psci_idle_syscore_switch() local 236 unsigned int state_count, int cpu) in psci_dt_cpu_init_topology() 260 unsigned int state_count, int cpu) in psci_dt_cpu_init_idle() 301 unsigned int cpu, unsigned int state_count) in psci_cpu_init_idle() 324 static void psci_cpu_deinit_idle(int cpu) in psci_cpu_deinit_idle() 332 static int psci_idle_init_cpu(struct device *dev, int cpu) in psci_idle_init_cpu() 415 int cpu, ret; in psci_cpuidle_probe() local
|
D | driver.c | 35 static struct cpuidle_driver *__cpuidle_get_cpu_driver(int cpu) in __cpuidle_get_cpu_driver() 50 int cpu; in __cpuidle_unset_driver() local 70 int cpu; in __cpuidle_set_driver() local 97 static inline struct cpuidle_driver *__cpuidle_get_cpu_driver(int cpu) in __cpuidle_get_cpu_driver() 325 int cpu; in cpuidle_get_driver() local 360 unsigned int cpu; in cpuidle_driver_state_disabled() local
|
/drivers/perf/ |
D | arm_pmu_acpi.c | 21 static int arm_pmu_acpi_register_irq(int cpu) in arm_pmu_acpi_register_irq() 59 static void arm_pmu_acpi_unregister_irq(int cpu) in arm_pmu_acpi_unregister_irq() 93 int cpu, hetid, irq, ret; in arm_spe_acpi_register_device() local 143 int irq, cpu, irq_cpu, err; in arm_pmu_acpi_parse_irqs() local 194 int cpu; in arm_pmu_acpi_find_alloc_pmu() local 223 int cpu; in pmu_irq_matches() local 254 static int arm_pmu_acpi_cpu_starting(unsigned int cpu) in arm_pmu_acpi_cpu_starting() 292 int cpu, ret; in arm_pmu_acpi_probe() local
|
D | arm_pmu_platform.c | 29 int cpu = get_cpu(); in probe_current_pmu() local 48 int cpu, ret; in pmu_parse_percpu_irq() local 69 int cpu; in pmu_parse_irq_affinity() local 128 int cpu, irq; in pmu_parse_irqs() local 160 int cpu, err = 0; in armpmu_request_irqs() local 177 int cpu; in armpmu_free_irqs() local
|
D | arm_pmu.c | 37 static void armpmu_free_pmuirq(unsigned int irq, int cpu, void __percpu *devid) in armpmu_free_pmuirq() 48 static void armpmu_free_pmunmi(unsigned int irq, int cpu, void __percpu *devid) in armpmu_free_pmunmi() 64 static void armpmu_free_percpu_pmuirq(unsigned int irq, int cpu, in armpmu_free_percpu_pmuirq() 89 static void armpmu_free_percpu_pmunmi(unsigned int irq, int cpu, in armpmu_free_percpu_pmunmi() 556 unsigned int cpu = smp_processor_id(); in armpmu_filter_match() local 586 int cpu, count = 0; in armpmu_count_irq_users() local 599 int cpu; in armpmu_find_irq_ops() local 613 void armpmu_free_irq(int irq, int cpu) in armpmu_free_irq() 626 int armpmu_request_irq(int irq, int cpu) in armpmu_request_irq() 694 static int armpmu_get_cpu_irq(struct arm_pmu *pmu, int cpu) in armpmu_get_cpu_irq() [all …]
|
/drivers/xen/ |
D | cpu_hotplug.c | 12 static void enable_hotplug_cpu(int cpu) in enable_hotplug_cpu() 20 static void disable_hotplug_cpu(int cpu) in disable_hotplug_cpu() 34 static int vcpu_online(unsigned int cpu) in vcpu_online() 55 static void vcpu_hotplug(unsigned int cpu) in vcpu_hotplug() 75 unsigned int cpu; in handle_vcpu_hotplug_event() local 88 int cpu; in setup_cpu_watcher() local
|
D | time.c | 56 struct vcpu_runstate_info *res, unsigned int cpu) in xen_get_runstate_snapshot_cpu_delta() 75 unsigned int cpu) in xen_get_runstate_snapshot_cpu() 89 int cpu, i; in xen_manage_runstate_time() local 153 u64 xen_steal_clock(int cpu) in xen_steal_clock() 161 void xen_setup_runstate_info(int cpu) in xen_setup_runstate_info()
|
/drivers/xen/events/ |
D | events_fifo.c | 102 static int init_control_block(int cpu, in init_control_block() 188 static void evtchn_fifo_bind_to_cpu(evtchn_port_t evtchn, unsigned int cpu, in evtchn_fifo_bind_to_cpu() 275 static void consume_one_event(unsigned cpu, struct evtchn_loop_ctrl *ctrl, in consume_one_event() 319 static void __evtchn_fifo_handle_events(unsigned cpu, in __evtchn_fifo_handle_events() 337 static void evtchn_fifo_handle_events(unsigned cpu, in evtchn_fifo_handle_events() 345 unsigned cpu; in evtchn_fifo_resume() local 377 static int evtchn_fifo_alloc_control_block(unsigned cpu) in evtchn_fifo_alloc_control_block() 399 static int evtchn_fifo_percpu_init(unsigned int cpu) in evtchn_fifo_percpu_init() 406 static int evtchn_fifo_percpu_deinit(unsigned int cpu) in evtchn_fifo_percpu_deinit() 430 int cpu = smp_processor_id(); in xen_evtchn_fifo_init() local
|
D | events_2l.c | 50 static void evtchn_2l_remove(evtchn_port_t evtchn, unsigned int cpu) in evtchn_2l_remove() 55 static void evtchn_2l_bind_to_cpu(evtchn_port_t evtchn, unsigned int cpu, in evtchn_2l_bind_to_cpu() 89 unsigned int cpu = get_cpu(); in evtchn_2l_unmask() local 147 static inline xen_ulong_t active_evtchns(unsigned int cpu, in active_evtchns() 164 static void evtchn_2l_handle_events(unsigned cpu, struct evtchn_loop_ctrl *ctrl) in evtchn_2l_handle_events() 267 int cpu = smp_processor_id(); in xen_debug_interrupt() local 357 static int evtchn_2l_percpu_deinit(unsigned int cpu) in evtchn_2l_percpu_deinit()
|
/drivers/ps3/ |
D | ps3-lpm.c | 198 u32 ps3_read_phys_ctr(u32 cpu, u32 phys_ctr) in ps3_read_phys_ctr() 242 void ps3_write_phys_ctr(u32 cpu, u32 phys_ctr, u32 val) in ps3_write_phys_ctr() 303 u32 ps3_read_ctr(u32 cpu, u32 ctr) in ps3_read_ctr() 324 void ps3_write_ctr(u32 cpu, u32 ctr, u32 val) in ps3_write_ctr() 350 u32 ps3_read_pm07_control(u32 cpu, u32 ctr) in ps3_read_pm07_control() 362 void ps3_write_pm07_control(u32 cpu, u32 ctr, u32 val) in ps3_write_pm07_control() 387 u32 ps3_read_pm(u32 cpu, enum pm_reg_name reg) in ps3_read_pm() 439 void ps3_write_pm(u32 cpu, enum pm_reg_name reg, u32 val) in ps3_write_pm() 509 u32 ps3_get_ctr_size(u32 cpu, u32 phys_ctr) in ps3_get_ctr_size() 528 void ps3_set_ctr_size(u32 cpu, u32 phys_ctr, u32 ctr_size) in ps3_set_ctr_size() [all …]
|
/drivers/powercap/ |
D | idle_inject.c | 89 unsigned int cpu; in idle_inject_wakeup() local 131 static void idle_inject_fn(unsigned int cpu) in idle_inject_fn() 235 unsigned int cpu; in idle_inject_stop() local 275 static void idle_inject_setup(unsigned int cpu) in idle_inject_setup() 286 static int idle_inject_should_run(unsigned int cpu) in idle_inject_should_run() 308 int cpu, cpu_rb; in idle_inject_register() local 354 unsigned int cpu; in idle_inject_unregister() local
|
/drivers/irqchip/ |
D | irq-bcm2836.c | 27 int cpu) in bcm2836_arm_irqchip_mask_per_cpu_irq() 36 int cpu) in bcm2836_arm_irqchip_unmask_per_cpu_irq() 139 int cpu = smp_processor_id(); in bcm2836_arm_irqchip_handle_irq() local 156 int cpu = smp_processor_id(); in bcm2836_arm_irqchip_handle_ipi() local 172 int cpu = smp_processor_id(); in bcm2836_arm_irqchip_ipi_ack() local 181 int cpu; in bcm2836_arm_irqchip_ipi_send_mask() local 231 static int bcm2836_cpu_starting(unsigned int cpu) in bcm2836_cpu_starting() 238 static int bcm2836_cpu_dying(unsigned int cpu) in bcm2836_cpu_dying()
|
/drivers/infiniband/hw/hfi1/ |
D | affinity.c | 64 int cpu; in cpu_mask_set_get_first() local 83 static void cpu_mask_set_put(struct cpu_mask_set *set, int cpu) in cpu_mask_set_put() 328 int cpu; in _dev_comp_vect_cpu_get() local 366 static void _dev_comp_vect_cpu_put(struct hfi1_devdata *dd, int cpu) in _dev_comp_vect_cpu_put() 379 int i, cpu; in _dev_comp_vect_mappings_destroy() local 405 int i, cpu, ret; in _dev_comp_vect_mappings_create() local 565 int i, cpu; in _dev_comp_vect_cpu_mask_clean_up() local 741 static void hfi1_update_sdma_affinity(struct hfi1_msix_entry *msix, int cpu) in hfi1_update_sdma_affinity() 792 int cpu = cpumask_first(mask); in hfi1_irq_notifier_notify() local 844 int cpu = -1; in get_irq_affinity() local [all …]
|
/drivers/hv/ |
D | hv.c | 120 int cpu; in hv_synic_alloc() local 185 int cpu; in hv_synic_free() local 206 void hv_synic_enable_regs(unsigned int cpu) in hv_synic_enable_regs() 279 int hv_synic_init(unsigned int cpu) in hv_synic_init() 291 void hv_synic_disable_regs(unsigned int cpu) in hv_synic_disable_regs() 380 int hv_synic_cleanup(unsigned int cpu) in hv_synic_cleanup()
|
/drivers/thermal/intel/ |
D | x86_pkg_temp_thermal.c | 49 int cpu; member 98 static struct zone_device *pkg_temp_thermal_get_dev(unsigned int cpu) in pkg_temp_thermal_get_dev() 111 static int get_tj_max(int cpu, u32 *tj_max) in get_tj_max() 266 int cpu = smp_processor_id(); in pkg_temp_thermal_threshold_work_fn() local 302 static void pkg_thermal_schedule_work(int cpu, struct delayed_work *work) in pkg_thermal_schedule_work() 311 int cpu = smp_processor_id(); in pkg_thermal_notify() local 331 static int pkg_temp_thermal_device_add(unsigned int cpu) in pkg_temp_thermal_device_add() 385 static int pkg_thermal_cpu_offline(unsigned int cpu) in pkg_thermal_cpu_offline() 471 static int pkg_thermal_cpu_online(unsigned int cpu) in pkg_thermal_cpu_online()
|