Home
last modified time | relevance | path

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

12

/linux/drivers/acpi/
H A 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/arch/arm/mach-qcom/
H A 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/drivers/cpuidle/
H A 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()
H A Dcpuidle-psci.c252 struct device_node *cpu_node, in psci_dt_cpu_init_idle() argument
267 state_node = of_get_cpu_state_node(cpu_node, i - 1); in psci_dt_cpu_init_idle()
296 struct device_node *cpu_node; in psci_cpu_init_idle() local
306 cpu_node = of_cpu_device_node_get(cpu); in psci_cpu_init_idle()
307 if (!cpu_node) in psci_cpu_init_idle()
310 ret = psci_dt_cpu_init_idle(dev, drv, cpu_node, state_count, cpu); in psci_cpu_init_idle()
312 of_node_put(cpu_node); in psci_cpu_init_idle()
329 struct device_node *cpu_node; in psci_idle_init_cpu() local
333 cpu_node = of_cpu_device_node_get(cpu); in psci_idle_init_cpu()
334 if (!cpu_node) in psci_idle_init_cpu()
[all …]
H A Dcpuidle-riscv-sbi.c244 struct device_node *cpu_node __free(device_node) = of_cpu_device_node_get(cpu); in sbi_cpuidle_dt_init_states()
245 if (!cpu_node) in sbi_cpuidle_dt_init_states()
254 state_node = of_get_cpu_state_node(cpu_node, i - 1); in sbi_cpuidle_dt_init_states()
/linux/arch/arm/mach-versatile/
H A 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/arch/arm/kernel/
H A 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/arch/powerpc/platforms/cell/
H A 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/arch/sparc/kernel/
H A 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()
H A 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()
H A 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()
H A 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/drivers/thermal/qcom/
H A Dlmh.c99 struct device_node *cpu_node; in lmh_probe() local
116 cpu_node = of_parse_phandle(np, "cpus", 0); in lmh_probe()
117 if (!cpu_node) in lmh_probe()
119 cpu_id = of_cpu_node_to_id(cpu_node); in lmh_probe()
120 of_node_put(cpu_node); in lmh_probe()
/linux/drivers/thermal/
H A 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/arch/powerpc/kernel/
H A 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/drivers/base/
H A Darch_topology.c311 bool __init topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu) in topology_parse_cpu_capacity() argument
321 ret = of_property_read_u32(cpu_node, "capacity-dmips-mhz", in topology_parse_cpu_capacity()
335 cpu_node, raw_capacity[cpu]); in topology_parse_cpu_capacity()
343 cpu_clk = of_clk_get(cpu_node, 0); in topology_parse_cpu_capacity()
352 cpu_node); in topology_parse_cpu_capacity()
522 struct device_node *cpu_node __free(device_node) = in get_cpu_for_node()
525 if (!cpu_node) in get_cpu_for_node()
528 cpu = of_cpu_node_to_id(cpu_node); in get_cpu_for_node()
530 topology_parse_cpu_capacity(cpu_node, cpu); in get_cpu_for_node()
533 cpu_node, cpumask_pr_args(cpu_possible_mask)); in get_cpu_for_node()
/linux/arch/riscv/kernel/
H A Dcpufeature.c739 static void __init riscv_fill_cpu_vendor_ext(struct device_node *cpu_node, int cpu) in riscv_fill_cpu_vendor_ext() argument
751 if (of_property_match_string(cpu_node, "riscv,isa-extensions", in riscv_fill_cpu_vendor_ext()
800 struct device_node *cpu_node; in riscv_fill_hwcap_from_ext_list() local
804 cpu_node = of_cpu_device_node_get(cpu); in riscv_fill_hwcap_from_ext_list()
805 if (!cpu_node) { in riscv_fill_hwcap_from_ext_list()
810 if (!of_property_present(cpu_node, "riscv,isa-extensions")) { in riscv_fill_hwcap_from_ext_list()
811 of_node_put(cpu_node); in riscv_fill_hwcap_from_ext_list()
818 if (of_property_match_string(cpu_node, "riscv,isa-extensions", in riscv_fill_hwcap_from_ext_list()
826 riscv_fill_cpu_vendor_ext(cpu_node, cpu); in riscv_fill_hwcap_from_ext_list()
828 of_node_put(cpu_node); in riscv_fill_hwcap_from_ext_list()
/linux/arch/arm/mach-bcm/
H A 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/sound/soc/meson/
H A 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()
H A Dmeson-card.h32 struct device_node *cpu_node);
/linux/drivers/soc/qcom/
H A Dspm.c394 struct device_node *cpu_node, *saw_node; in spm_get_cpu() local
396 cpu_node = of_cpu_device_node_get(cpu); in spm_get_cpu()
397 if (!cpu_node) in spm_get_cpu()
400 saw_node = of_parse_phandle(cpu_node, "qcom,saw", 0); in spm_get_cpu()
403 of_node_put(cpu_node); in spm_get_cpu()
/linux/arch/arm/mach-omap2/
H A 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/drivers/irqchip/
H A Dirq-apple-aic.c911 struct device_node *cpu_node; in build_fiq_affinity() local
918 cpu_node = of_find_node_by_phandle(cpu_phandle); in build_fiq_affinity()
919 if (WARN_ON(!cpu_node)) in build_fiq_affinity()
922 cpu = of_cpu_node_to_id(cpu_node); in build_fiq_affinity()
923 of_node_put(cpu_node); in build_fiq_affinity()
H A Dirq-gic-v3.c2180 struct device_node *cpu_node; in gic_populate_ppi_partitions() local
2187 cpu_node = of_find_node_by_phandle(cpu_phandle); in gic_populate_ppi_partitions()
2188 if (WARN_ON(!cpu_node)) in gic_populate_ppi_partitions()
2191 cpu = of_cpu_node_to_id(cpu_node); in gic_populate_ppi_partitions()
2193 of_node_put(cpu_node); in gic_populate_ppi_partitions()
2197 pr_cont("%pOF[%d] ", cpu_node, cpu); in gic_populate_ppi_partitions()
2200 of_node_put(cpu_node); in gic_populate_ppi_partitions()
/linux/include/linux/
H A Dof.h363 extern struct device_node *of_get_cpu_state_node(const struct device_node *cpu_node,
664 static inline struct device_node *of_get_cpu_state_node(struct device_node *cpu_node, in of_get_cpu_state_node() argument

12