Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/acpi/
Dpptt.c148 struct acpi_pptt_processor *cpu_node, in acpi_find_cache_level() argument
159 while ((res = acpi_get_pptt_resource(table_hdr, cpu_node, resource))) { in acpi_find_cache_level()
196 struct acpi_pptt_processor *cpu_node, in acpi_count_levels() argument
200 acpi_find_cache_level(table_hdr, cpu_node, levels, split_levels, 0, 0); in acpi_count_levels()
201 cpu_node = fetch_pptt_node(table_hdr, cpu_node->parent); in acpi_count_levels()
202 } while (cpu_node); in acpi_count_levels()
222 struct acpi_pptt_processor *cpu_node; in acpi_pptt_leaf_node() local
235 cpu_node = (struct acpi_pptt_processor *)entry; in acpi_pptt_leaf_node()
237 cpu_node->parent == node_entry) in acpi_pptt_leaf_node()
267 struct acpi_pptt_processor *cpu_node; in acpi_find_processor_node() local
[all …]
/linux-6.6.21/arch/arm/mach-qcom/
Dplatsmp.c83 struct device_node *cpu_node, *acc_node; in cortex_a7_release_secondary() local
86 cpu_node = of_get_cpu_node(cpu, NULL); in cortex_a7_release_secondary()
87 if (!cpu_node) in cortex_a7_release_secondary()
90 acc_node = of_parse_phandle(cpu_node, "qcom,acc", 0); in cortex_a7_release_secondary()
131 of_node_put(cpu_node); in cortex_a7_release_secondary()
139 struct device_node *cpu_node, *acc_node, *saw_node; in kpssv1_release_secondary() local
142 cpu_node = of_get_cpu_node(cpu, NULL); in kpssv1_release_secondary()
143 if (!cpu_node) in kpssv1_release_secondary()
146 acc_node = of_parse_phandle(cpu_node, "qcom,acc", 0); in kpssv1_release_secondary()
152 saw_node = of_parse_phandle(cpu_node, "qcom,saw", 0); in kpssv1_release_secondary()
[all …]
/linux-6.6.21/drivers/cpuidle/
Dcpuidle-qcom-spm.c90 struct device_node *cpu_node, *saw_node; in spm_cpuidle_register() local
94 cpu_node = of_cpu_device_node_get(cpu); in spm_cpuidle_register()
95 if (!cpu_node) in spm_cpuidle_register()
98 saw_node = of_parse_phandle(cpu_node, "qcom,saw", 0); in spm_cpuidle_register()
104 of_node_put(cpu_node); in spm_cpuidle_register()
159 struct device_node *cpu_node, *saw_node; in qcom_spm_find_any_cpu() local
161 for_each_of_cpu_node(cpu_node) { in qcom_spm_find_any_cpu()
162 saw_node = of_parse_phandle(cpu_node, "qcom,saw", 0); in qcom_spm_find_any_cpu()
165 of_node_put(cpu_node); in qcom_spm_find_any_cpu()
Ddt_idle_states.c100 struct device_node *cpu_node, *curr_state_node; in idle_state_valid() local
112 cpu_node = of_cpu_device_node_get(cpu); in idle_state_valid()
113 curr_state_node = of_get_cpu_state_node(cpu_node, idx); in idle_state_valid()
118 of_node_put(cpu_node); in idle_state_valid()
153 struct device_node *state_node, *cpu_node; in dt_init_idle_driver() local
168 cpu_node = of_cpu_device_node_get(cpumask_first(cpumask)); in dt_init_idle_driver()
171 state_node = of_get_cpu_state_node(cpu_node, i); in dt_init_idle_driver()
210 of_node_put(cpu_node); in dt_init_idle_driver()
Dcpuidle-psci.c245 struct device_node *cpu_node, in psci_dt_cpu_init_idle() argument
260 state_node = of_get_cpu_state_node(cpu_node, i - 1); in psci_dt_cpu_init_idle()
289 struct device_node *cpu_node; in psci_cpu_init_idle() local
299 cpu_node = of_cpu_device_node_get(cpu); in psci_cpu_init_idle()
300 if (!cpu_node) in psci_cpu_init_idle()
303 ret = psci_dt_cpu_init_idle(dev, drv, cpu_node, state_count, cpu); in psci_cpu_init_idle()
305 of_node_put(cpu_node); in psci_cpu_init_idle()
321 struct device_node *cpu_node; in psci_idle_init_cpu() local
325 cpu_node = of_cpu_device_node_get(cpu); in psci_idle_init_cpu()
326 if (!cpu_node) in psci_idle_init_cpu()
[all …]
Dcpuidle-riscv-sbi.c270 struct device_node *cpu_node; in sbi_cpuidle_dt_init_states() local
274 cpu_node = of_cpu_device_node_get(cpu); in sbi_cpuidle_dt_init_states()
275 if (!cpu_node) in sbi_cpuidle_dt_init_states()
286 state_node = of_get_cpu_state_node(cpu_node, i - 1); in sbi_cpuidle_dt_init_states()
312 of_node_put(cpu_node); in sbi_cpuidle_dt_init_states()
/linux-6.6.21/arch/arm/mach-versatile/
Dplatsmp-vexpress.c24 struct device_node *cpu_node, *cci_node; in vexpress_smp_init_ops() local
36 cpu_node = of_get_cpu_node(cpu, NULL); in vexpress_smp_init_ops()
37 if (WARN(!cpu_node, "Missing cpu device node!")) in vexpress_smp_init_ops()
40 cci_node = of_parse_phandle(cpu_node, "cci-control-port", 0); in vexpress_smp_init_ops()
43 of_node_put(cpu_node); in vexpress_smp_init_ops()
/linux-6.6.21/arch/arm/kernel/
Dcpuidle.c135 struct device_node *cpu_node = of_cpu_device_node_get(cpu); in arm_cpuidle_init() local
138 if (!cpu_node) in arm_cpuidle_init()
141 ret = arm_cpuidle_read_ops(cpu_node, cpu); in arm_cpuidle_init()
143 ret = cpuidle_ops[cpu].init(cpu_node, cpu); in arm_cpuidle_init()
145 of_node_put(cpu_node); in arm_cpuidle_init()
/linux-6.6.21/drivers/of/
Dcpu.c158 int of_cpu_node_to_id(struct device_node *cpu_node) in of_cpu_node_to_id() argument
166 found = (cpu_node == np); in of_cpu_node_to_id()
191 struct device_node *of_get_cpu_state_node(struct device_node *cpu_node, in of_get_cpu_state_node() argument
197 err = of_parse_phandle_with_args(cpu_node, "power-domains", in of_get_cpu_state_node()
208 return of_parse_phandle(cpu_node, "cpu-idle-states", index); in of_get_cpu_state_node()
/linux-6.6.21/arch/powerpc/platforms/cell/
Dcbe_regs.c30 struct device_node *cpu_node; member
41 struct device_node *cpu_node; member
58 if (cbe_regs_maps[i].cpu_node == np || in cbe_find_map()
234 cpu = map->cpu_node; in cbe_fill_regs_map()
259 cbe_thread_map[i].cpu_node = of_get_cpu_node(i, &thread_id); in cbe_regs_init()
279 of_node_put(map->cpu_node); in cbe_regs_init()
280 map->cpu_node = of_node_get(cpu); in cbe_regs_init()
285 if (thread->cpu_node == cpu) { in cbe_regs_init()
/linux-6.6.21/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()
/linux-6.6.21/drivers/base/
Darch_topology.c297 bool __init topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu) in topology_parse_cpu_capacity() argument
307 ret = of_property_read_u32(cpu_node, "capacity-dmips-mhz", in topology_parse_cpu_capacity()
321 cpu_node, raw_capacity[cpu]); in topology_parse_cpu_capacity()
329 cpu_clk = of_clk_get(cpu_node, 0); in topology_parse_cpu_capacity()
338 cpu_node); in topology_parse_cpu_capacity()
481 struct device_node *cpu_node; in get_cpu_for_node() local
484 cpu_node = of_parse_phandle(node, "cpu", 0); in get_cpu_for_node()
485 if (!cpu_node) in get_cpu_for_node()
488 cpu = of_cpu_node_to_id(cpu_node); in get_cpu_for_node()
490 topology_parse_cpu_capacity(cpu_node, cpu); in get_cpu_for_node()
[all …]
/linux-6.6.21/drivers/thermal/
Dcpuidle_cooling.c244 struct device_node *cpu_node; in cpuidle_cooling_register() local
249 cpu_node = of_cpu_device_node_get(cpu); in cpuidle_cooling_register()
251 cooling_node = of_get_child_by_name(cpu_node, "thermal-idle"); in cpuidle_cooling_register()
253 of_node_put(cpu_node); in cpuidle_cooling_register()
/linux-6.6.21/drivers/thermal/qcom/
Dlmh.c92 struct device_node *cpu_node; in lmh_probe() local
106 cpu_node = of_parse_phandle(np, "cpus", 0); in lmh_probe()
107 if (!cpu_node) in lmh_probe()
109 cpu_id = of_cpu_node_to_id(cpu_node); in lmh_probe()
110 of_node_put(cpu_node); in lmh_probe()
/linux-6.6.21/arch/powerpc/kernel/
Dcacheinfo.c502 struct device_node *cpu_node; in cache_chain_instantiate() local
508 cpu_node = of_get_cpu_node(cpu_id, NULL); in cache_chain_instantiate()
509 WARN_ONCE(!cpu_node, "no OF node found for CPU %i\n", cpu_id); in cache_chain_instantiate()
510 if (!cpu_node) in cache_chain_instantiate()
515 cpu_cache = cache_lookup_or_instantiate(cpu_node, group_id, 1); in cache_chain_instantiate()
523 of_node_put(cpu_node); in cache_chain_instantiate()
847 struct device_node *cpu_node; in cache_lookup_by_cpu() local
851 cpu_node = of_get_cpu_node(cpu_id, NULL); in cache_lookup_by_cpu()
852 WARN_ONCE(!cpu_node, "no OF node found for CPU %i\n", cpu_id); in cache_lookup_by_cpu()
853 if (!cpu_node) in cache_lookup_by_cpu()
[all …]
/linux-6.6.21/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()
/linux-6.6.21/arch/riscv/kernel/
Dcpufeature.c440 struct device_node *cpu_node; in riscv_fill_hwcap_from_ext_list() local
443 cpu_node = of_cpu_device_node_get(cpu); in riscv_fill_hwcap_from_ext_list()
444 if (!cpu_node) { in riscv_fill_hwcap_from_ext_list()
449 if (!of_property_present(cpu_node, "riscv,isa-extensions")) { in riscv_fill_hwcap_from_ext_list()
450 of_node_put(cpu_node); in riscv_fill_hwcap_from_ext_list()
455 if (of_property_match_string(cpu_node, "riscv,isa-extensions", in riscv_fill_hwcap_from_ext_list()
469 of_node_put(cpu_node); in riscv_fill_hwcap_from_ext_list()
/linux-6.6.21/sound/soc/meson/
Dmeson-card-utils.c109 struct device_node *cpu_node) in meson_card_parse_daifmt() argument
120 if (!bitclkmaster || bitclkmaster == cpu_node) { in meson_card_parse_daifmt()
121 daifmt |= (!framemaster || framemaster == cpu_node) ? in meson_card_parse_daifmt()
124 daifmt |= (!framemaster || framemaster == cpu_node) ? in meson_card_parse_daifmt()
Dmeson-card.h32 struct device_node *cpu_node);
/linux-6.6.21/drivers/perf/
Darm_dsu_pmu.c612 struct device_node *cpu_node; in dsu_pmu_dt_get_cpus() local
618 cpu_node = of_parse_phandle(dev->of_node, "cpus", i); in dsu_pmu_dt_get_cpus()
619 if (!cpu_node) in dsu_pmu_dt_get_cpus()
621 cpu = of_cpu_node_to_id(cpu_node); in dsu_pmu_dt_get_cpus()
622 of_node_put(cpu_node); in dsu_pmu_dt_get_cpus()
/linux-6.6.21/arch/arm/mach-omap2/
Dpm33xx-core.c379 static int __init amx3_idle_init(struct device_node *cpu_node, int cpu) in amx3_idle_init() argument
387 state_node = of_parse_phandle(cpu_node, "cpu-idle-states", i); in amx3_idle_init()
/linux-6.6.21/drivers/irqchip/
Dirq-loongson-eiointc.c64 int i, node, cpu_node, route_node; in eiointc_set_irq_route() local
73 cpu_node = cpu_logical_map(cpu) / CORES_PER_EIO_NODE; in eiointc_set_irq_route()
82 route_node = (node == mnode) ? cpu_node : node; in eiointc_set_irq_route()

12