Home
last modified time | relevance | path

Searched refs:cpu_node (Results 1 – 25 of 27) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/acpi/
Dpptt.c137 struct acpi_pptt_processor *cpu_node, in acpi_find_cache_level() argument
148 while ((res = acpi_get_pptt_resource(table_hdr, cpu_node, resource))) { in acpi_find_cache_level()
181 struct acpi_pptt_processor *cpu_node) in acpi_count_levels() argument
186 acpi_find_cache_level(table_hdr, cpu_node, &total_levels, 0, 0); in acpi_count_levels()
187 cpu_node = fetch_pptt_node(table_hdr, cpu_node->parent); in acpi_count_levels()
188 } while (cpu_node); in acpi_count_levels()
210 struct acpi_pptt_processor *cpu_node; in acpi_pptt_leaf_node() local
223 cpu_node = (struct acpi_pptt_processor *)entry; in acpi_pptt_leaf_node()
225 cpu_node->parent == node_entry) in acpi_pptt_leaf_node()
255 struct acpi_pptt_processor *cpu_node; in acpi_find_processor_node() local
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-qcom/
Dplatsmp.c82 struct device_node *cpu_node, *acc_node, *saw_node; in kpssv1_release_secondary() local
85 cpu_node = of_get_cpu_node(cpu, NULL); in kpssv1_release_secondary()
86 if (!cpu_node) in kpssv1_release_secondary()
89 acc_node = of_parse_phandle(cpu_node, "qcom,acc", 0); in kpssv1_release_secondary()
95 saw_node = of_parse_phandle(cpu_node, "qcom,saw", 0); in kpssv1_release_secondary()
153 of_node_put(cpu_node); in kpssv1_release_secondary()
160 struct device_node *cpu_node, *l2_node, *acc_node, *saw_node; in kpssv2_release_secondary() local
165 cpu_node = of_get_cpu_node(cpu, NULL); in kpssv2_release_secondary()
166 if (!cpu_node) in kpssv2_release_secondary()
169 acc_node = of_parse_phandle(cpu_node, "qcom,acc", 0); in kpssv2_release_secondary()
[all …]
/kernel/linux/linux-5.10/drivers/cpuidle/
Ddt_idle_states.c101 struct device_node *cpu_node, *curr_state_node; in idle_state_valid() local
113 cpu_node = of_cpu_device_node_get(cpu); in idle_state_valid()
114 curr_state_node = of_get_cpu_state_node(cpu_node, idx); in idle_state_valid()
119 of_node_put(cpu_node); in idle_state_valid()
154 struct device_node *state_node, *cpu_node; in dt_init_idle_driver() local
169 cpu_node = of_cpu_device_node_get(cpumask_first(cpumask)); in dt_init_idle_driver()
172 state_node = of_get_cpu_state_node(cpu_node, i); in dt_init_idle_driver()
211 of_node_put(cpu_node); in dt_init_idle_driver()
Dcpuidle-psci.c179 struct device_node *cpu_node, in psci_dt_cpu_init_idle() argument
194 state_node = of_get_cpu_state_node(cpu_node, i - 1); in psci_dt_cpu_init_idle()
223 struct device_node *cpu_node; in psci_cpu_init_idle() local
233 cpu_node = of_cpu_device_node_get(cpu); in psci_cpu_init_idle()
234 if (!cpu_node) in psci_cpu_init_idle()
237 ret = psci_dt_cpu_init_idle(dev, drv, cpu_node, state_count, cpu); in psci_cpu_init_idle()
239 of_node_put(cpu_node); in psci_cpu_init_idle()
255 struct device_node *cpu_node; in psci_idle_init_cpu() local
259 cpu_node = of_cpu_device_node_get(cpu); in psci_idle_init_cpu()
260 if (!cpu_node) in psci_idle_init_cpu()
[all …]
Dcpuidle-qcom-spm.c236 struct device_node *cpu_node, *saw_node; in spm_get_drv() local
241 cpu_node = of_cpu_device_node_get(cpu); in spm_get_drv()
242 if (!cpu_node) in spm_get_drv()
244 saw_node = of_parse_phandle(cpu_node, "qcom,saw", 0); in spm_get_drv()
247 of_node_put(cpu_node); in spm_get_drv()
/kernel/linux/linux-5.10/arch/arm/mach-vexpress/
Dplatsmp.c27 struct device_node *cpu_node, *cci_node; in vexpress_smp_init_ops() local
39 cpu_node = of_get_cpu_node(cpu, NULL); in vexpress_smp_init_ops()
40 if (WARN(!cpu_node, "Missing cpu device node!")) in vexpress_smp_init_ops()
43 cci_node = of_parse_phandle(cpu_node, "cci-control-port", 0); in vexpress_smp_init_ops()
46 of_node_put(cpu_node); in vexpress_smp_init_ops()
/kernel/linux/linux-5.10/arch/arm/kernel/
Dcpuidle.c136 struct device_node *cpu_node = of_cpu_device_node_get(cpu); in arm_cpuidle_init() local
139 if (!cpu_node) in arm_cpuidle_init()
142 ret = arm_cpuidle_read_ops(cpu_node, cpu); in arm_cpuidle_init()
144 ret = cpuidle_ops[cpu].init(cpu_node, cpu); in arm_cpuidle_init()
146 of_node_put(cpu_node); in arm_cpuidle_init()
/kernel/linux/linux-5.10/drivers/base/
Darch_topology.c166 bool __init topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu) in topology_parse_cpu_capacity() argument
176 ret = of_property_read_u32(cpu_node, "capacity-dmips-mhz", in topology_parse_cpu_capacity()
190 cpu_node, raw_capacity[cpu]); in topology_parse_cpu_capacity()
198 cpu_clk = of_clk_get(cpu_node, 0); in topology_parse_cpu_capacity()
207 cpu_node); in topology_parse_cpu_capacity()
311 struct device_node *cpu_node; in get_cpu_for_node() local
314 cpu_node = of_parse_phandle(node, "cpu", 0); in get_cpu_for_node()
315 if (!cpu_node) in get_cpu_for_node()
318 cpu = of_cpu_node_to_id(cpu_node); in get_cpu_for_node()
320 topology_parse_cpu_capacity(cpu_node, cpu); in get_cpu_for_node()
[all …]
/kernel/linux/linux-5.10/arch/sparc/kernel/
Dsmp_32.c58 int cpu_node; in smp_store_cpu_info() local
63 cpu_find_by_mid(id, &cpu_node); in smp_store_cpu_info()
64 cpu_data(id).clock_tick = prom_getintdefault(cpu_node, in smp_store_cpu_info()
66 cpu_data(id).prom_node = cpu_node; in smp_store_cpu_info()
67 mid = cpu_get_hwmid(cpu_node); in smp_store_cpu_info()
70 printk(KERN_NOTICE "No MID found for CPU%d at node 0x%08x", id, cpu_node); in smp_store_cpu_info()
Ddevices.c122 phandle cpu_node; in device_scan() local
124 err = cpu_find_by_instance(0, &cpu_node, NULL); in device_scan()
130 cpu_data(0).clock_tick = prom_getintdefault(cpu_node, in device_scan()
Dsun4m_smp.c83 int cpu_node; in smp4m_boot_one_cpu() local
85 cpu_find_by_mid(i, &cpu_node); in smp4m_boot_one_cpu()
103 prom_startcpu(cpu_node, &smp_penguin_ctable, 0, (char *)entry); in smp4m_boot_one_cpu()
Dsun4d_smp.c126 int cpu_node; in smp4d_boot_one_cpu() local
128 cpu_find_by_instance(i, &cpu_node, NULL); in smp4d_boot_one_cpu()
142 prom_startcpu(cpu_node, in smp4d_boot_one_cpu()
Dhead_64.S375 stx %l4, [%sp + 2047 + 128 + 0x18] ! arg1, cpu_node
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/
Dcbe_regs.c31 struct device_node *cpu_node; member
42 struct device_node *cpu_node; member
59 if (cbe_regs_maps[i].cpu_node == np || in cbe_find_map()
219 cpu = map->cpu_node; in cbe_fill_regs_map()
244 cbe_thread_map[i].cpu_node = of_get_cpu_node(i, &thread_id); in cbe_regs_init()
264 map->cpu_node = cpu; in cbe_regs_init()
269 if (thread->cpu_node == cpu) { in cbe_regs_init()
/kernel/linux/linux-5.10/drivers/thermal/
Dcpuidle_cooling.c245 struct device_node *cpu_node; in cpuidle_cooling_register() local
250 cpu_node = of_cpu_device_node_get(cpu); in cpuidle_cooling_register()
252 cooling_node = of_get_child_by_name(cpu_node, "thermal-idle"); in cpuidle_cooling_register()
254 of_node_put(cpu_node); in cpuidle_cooling_register()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dcacheinfo.c469 struct device_node *cpu_node; in cache_chain_instantiate() local
474 cpu_node = of_get_cpu_node(cpu_id, NULL); in cache_chain_instantiate()
475 WARN_ONCE(!cpu_node, "no OF node found for CPU %i\n", cpu_id); in cache_chain_instantiate()
476 if (!cpu_node) in cache_chain_instantiate()
479 cpu_cache = cache_lookup_or_instantiate(cpu_node, 1); in cache_chain_instantiate()
487 of_node_put(cpu_node); in cache_chain_instantiate()
839 struct device_node *cpu_node; in cache_lookup_by_cpu() local
842 cpu_node = of_get_cpu_node(cpu_id, NULL); in cache_lookup_by_cpu()
843 WARN_ONCE(!cpu_node, "no OF node found for CPU %i\n", cpu_id); in cache_lookup_by_cpu()
844 if (!cpu_node) in cache_lookup_by_cpu()
[all …]
/kernel/linux/linux-5.10/arch/arm/mach-bcm/
Dplatsmp.c81 struct device_node *cpu_node = of_get_cpu_node(cpu, NULL); in secondary_boot_addr_for() local
83 if (!cpu_node) { in secondary_boot_addr_for()
88 if (of_property_read_u32(cpu_node, in secondary_boot_addr_for()
94 of_node_put(cpu_node); in secondary_boot_addr_for()
/kernel/linux/linux-5.10/sound/soc/meson/
Dmeson-card-utils.c116 struct device_node *cpu_node) in meson_card_parse_daifmt() argument
127 if (!bitclkmaster || bitclkmaster == cpu_node) { in meson_card_parse_daifmt()
128 daifmt |= (!framemaster || framemaster == cpu_node) ? in meson_card_parse_daifmt()
131 daifmt |= (!framemaster || framemaster == cpu_node) ? in meson_card_parse_daifmt()
Dmeson-card.h32 struct device_node *cpu_node);
/kernel/linux/linux-5.10/drivers/perf/
Darm_dsu_pmu.c613 struct device_node *cpu_node; in dsu_pmu_dt_get_cpus() local
619 cpu_node = of_parse_phandle(dev->of_node, "cpus", i); in dsu_pmu_dt_get_cpus()
620 if (!cpu_node) in dsu_pmu_dt_get_cpus()
622 cpu = of_cpu_node_to_id(cpu_node); in dsu_pmu_dt_get_cpus()
623 of_node_put(cpu_node); in dsu_pmu_dt_get_cpus()
/kernel/linux/linux-5.10/arch/arm/mach-omap2/
Dpm33xx-core.c384 static int __init amx3_idle_init(struct device_node *cpu_node, int cpu) in amx3_idle_init() argument
392 state_node = of_parse_phandle(cpu_node, "cpu-idle-states", i); in amx3_idle_init()
/kernel/linux/linux-5.10/include/linux/
Darch_topology.h15 bool topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu);
Dof.h354 extern struct device_node *of_get_cpu_state_node(struct device_node *cpu_node,
777 static inline struct device_node *of_get_cpu_state_node(struct device_node *cpu_node, in of_get_cpu_state_node() argument
/kernel/linux/linux-5.10/drivers/of/
Dbase.c400 int of_cpu_node_to_id(struct device_node *cpu_node) in of_cpu_node_to_id() argument
408 found = (cpu_node == np); in of_cpu_node_to_id()
433 struct device_node *of_get_cpu_state_node(struct device_node *cpu_node, in of_get_cpu_state_node() argument
439 err = of_parse_phandle_with_args(cpu_node, "power-domains", in of_get_cpu_state_node()
450 return of_parse_phandle(cpu_node, "cpu-idle-states", index); in of_get_cpu_state_node()
/kernel/linux/linux-5.10/drivers/irqchip/
Dirq-gic-v3.c1857 struct device_node *cpu_node; in gic_populate_ppi_partitions() local
1864 cpu_node = of_find_node_by_phandle(cpu_phandle); in gic_populate_ppi_partitions()
1865 if (WARN_ON(!cpu_node)) in gic_populate_ppi_partitions()
1868 cpu = of_cpu_node_to_id(cpu_node); in gic_populate_ppi_partitions()
1872 pr_cont("%pOF[%d] ", cpu_node, cpu); in gic_populate_ppi_partitions()

12