/openbmc/linux/drivers/acpi/ |
H A D | pptt.c | 201 cpu_node = fetch_pptt_node(table_hdr, cpu_node->parent); in acpi_count_levels() 202 } while (cpu_node); in acpi_count_levels() 334 while (cpu_node && !found) { in acpi_find_cache_node() 337 *node = cpu_node; in acpi_find_cache_node() 338 cpu_node = fetch_pptt_node(table_hdr, cpu_node->parent); in acpi_find_cache_node() 435 &cpu_node); in cache_setup_acpi_cpu() 516 if (cpu_node) { in topology_get_acpi_cpu_tag() 517 cpu_node = acpi_find_processor_tag(table, cpu_node, in topology_get_acpi_cpu_tag() 600 if (cpu_node) in check_acpi_cpu_flag() 640 if (!cpu_node) in acpi_get_cache_info() [all …]
|
/openbmc/linux/arch/arm/mach-qcom/ |
H A D | platsmp.c | 83 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() 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() 210 of_node_put(cpu_node); in kpssv1_release_secondary() 222 cpu_node = of_get_cpu_node(cpu, NULL); in kpssv2_release_secondary() 223 if (!cpu_node) in kpssv2_release_secondary() [all …]
|
/openbmc/linux/drivers/cpuidle/ |
H A D | cpuidle-qcom-spm.c | 90 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()
|
H A D | dt_idle_states.c | 100 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 D | cpuidle-psci.c | 245 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() 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() 333 enable_method = of_get_property(cpu_node, "enable-method", NULL); in psci_idle_init_cpu() [all …]
|
H A D | cpuidle-riscv-sbi.c | 274 struct device_node *cpu_node __free(device_node) = of_cpu_device_node_get(cpu); in sbi_cpuidle_dt_init_states() 275 if (!cpu_node) in sbi_cpuidle_dt_init_states() 284 state_node = of_get_cpu_state_node(cpu_node, i - 1); in sbi_cpuidle_dt_init_states()
|
/openbmc/linux/arch/arm/mach-versatile/ |
H A D | platsmp-vexpress.c | 24 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()
|
/openbmc/linux/arch/arm/kernel/ |
H A D | cpuidle.c | 135 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()
|
/openbmc/linux/drivers/of/ |
H A D | cpu.c | 158 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()
|
/openbmc/linux/arch/powerpc/platforms/cell/ |
H A D | cbe_regs.c | 30 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()
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | smp_32.c | 58 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 D | devices.c | 122 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 D | sun4m_smp.c | 83 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 D | sun4d_smp.c | 126 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()
|
/openbmc/linux/drivers/base/ |
H A D | arch_topology.c | 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() 493 cpu_node, cpumask_pr_args(cpu_possible_mask)); in get_cpu_for_node() [all …]
|
/openbmc/linux/drivers/thermal/ |
H A D | cpuidle_cooling.c | 244 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()
|
/openbmc/linux/drivers/thermal/qcom/ |
H A D | lmh.c | 99 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()
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | cacheinfo.c | 502 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() 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() 857 cache = cache_lookup_by_node_group(cpu_node, group_id); in cache_lookup_by_cpu() [all …]
|
/openbmc/linux/arch/arm/mach-bcm/ |
H A D | platsmp.c | 81 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()
|
/openbmc/linux/arch/riscv/kernel/ |
H A D | cpufeature.c | 444 struct device_node *cpu_node; in riscv_fill_hwcap_from_ext_list() local 447 cpu_node = of_cpu_device_node_get(cpu); in riscv_fill_hwcap_from_ext_list() 448 if (!cpu_node) { in riscv_fill_hwcap_from_ext_list() 453 if (!of_property_present(cpu_node, "riscv,isa-extensions")) { in riscv_fill_hwcap_from_ext_list() 454 of_node_put(cpu_node); in riscv_fill_hwcap_from_ext_list() 459 if (of_property_match_string(cpu_node, "riscv,isa-extensions", in riscv_fill_hwcap_from_ext_list() 473 of_node_put(cpu_node); in riscv_fill_hwcap_from_ext_list()
|
/openbmc/u-boot/board/freescale/qemu-ppce500/ |
H A D | qemu-ppce500.c | 308 int cpu_node = fdt_first_subnode(fdt, cpus_node); in get_cpu_freq() local 310 return fdt_getprop_u32_default_node(fdt, cpu_node, 0, prop, 0); in get_cpu_freq() 341 int cpu_node = fdt_first_subnode(fdt, cpus_node); in get_tbclk() local 343 return fdt_getprop_u32_default_node(fdt, cpu_node, 0, prop, 0); in get_tbclk()
|
/openbmc/linux/sound/soc/meson/ |
H A D | meson-card-utils.c | 109 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 D | meson-card.h | 32 struct device_node *cpu_node);
|
/openbmc/linux/arch/arm/mach-omap2/ |
H A D | pm33xx-core.c | 379 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()
|
/openbmc/linux/drivers/perf/ |
H A D | arm_dsu_pmu.c | 612 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()
|