/linux/drivers/acpi/ |
A D | pptt.c | 187 cpu_node = fetch_pptt_node(table_hdr, cpu_node->parent); in acpi_count_levels() 188 } while (cpu_node); in acpi_count_levels() 335 while (cpu_node && !found) { in acpi_find_cache_node() 338 *node = cpu_node; in acpi_find_cache_node() 339 cpu_node = fetch_pptt_node(table_hdr, cpu_node->parent); in acpi_find_cache_node() 436 &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() 584 if (cpu_node) in check_acpi_cpu_flag() 721 &cpu_node); in find_acpi_cpu_cache_topology() [all …]
|
/linux/arch/arm/mach-qcom/ |
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 …]
|
/linux/drivers/cpuidle/ |
A D | cpuidle-psci.c | 205 struct device_node *cpu_node, in psci_dt_cpu_init_idle() argument 220 state_node = of_get_cpu_state_node(cpu_node, i - 1); in psci_dt_cpu_init_idle() 249 struct device_node *cpu_node; in psci_cpu_init_idle() local 259 cpu_node = of_cpu_device_node_get(cpu); in psci_cpu_init_idle() 260 if (!cpu_node) in psci_cpu_init_idle() 265 of_node_put(cpu_node); in psci_cpu_init_idle() 281 struct device_node *cpu_node; in psci_idle_init_cpu() local 285 cpu_node = of_cpu_device_node_get(cpu); in psci_idle_init_cpu() 286 if (!cpu_node) in psci_idle_init_cpu() 293 enable_method = of_get_property(cpu_node, "enable-method", NULL); in psci_idle_init_cpu() [all …]
|
A D | dt_idle_states.c | 101 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()
|
A D | cpuidle-qcom-spm.c | 91 struct device_node *cpu_node, *saw_node; in spm_cpuidle_register() local 95 cpu_node = of_cpu_device_node_get(cpu); in spm_cpuidle_register() 96 if (!cpu_node) in spm_cpuidle_register() 99 saw_node = of_parse_phandle(cpu_node, "qcom,saw", 0); in spm_cpuidle_register() 105 of_node_put(cpu_node); in spm_cpuidle_register()
|
/linux/arch/arm/mach-vexpress/ |
A D | platsmp.c | 27 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()
|
/linux/arch/arm/kernel/ |
A D | cpuidle.c | 136 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()
|
/linux/drivers/base/ |
A D | arch_topology.c | 267 ret = of_property_read_u32(cpu_node, "capacity-dmips-mhz", in topology_parse_cpu_capacity() 281 cpu_node, raw_capacity[cpu]); in topology_parse_cpu_capacity() 289 cpu_clk = of_clk_get(cpu_node, 0); in topology_parse_cpu_capacity() 298 cpu_node); in topology_parse_cpu_capacity() 402 struct device_node *cpu_node; in get_cpu_for_node() local 405 cpu_node = of_parse_phandle(node, "cpu", 0); in get_cpu_for_node() 406 if (!cpu_node) in get_cpu_for_node() 409 cpu = of_cpu_node_to_id(cpu_node); in get_cpu_for_node() 411 topology_parse_cpu_capacity(cpu_node, cpu); in get_cpu_for_node() 414 cpu_node, cpumask_pr_args(cpu_possible_mask)); in get_cpu_for_node() [all …]
|
/linux/arch/powerpc/platforms/cell/ |
A D | cbe_regs.c | 31 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()
|
/linux/arch/sparc/kernel/ |
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()
|
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()
|
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()
|
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()
|
/linux/arch/mips/generic/ |
A D | board-ingenic.c | 134 struct device_node *cpu_node; in ingenic_pm_init() local 148 cpu_node = of_get_cpu_node(0, NULL); in ingenic_pm_init() 149 if (!cpu_node) { in ingenic_pm_init() 152 cpu0_clk = of_clk_get(cpu_node, 0); in ingenic_pm_init()
|
/linux/drivers/thermal/qcom/ |
A D | lmh.c | 90 struct device_node *cpu_node; in lmh_probe() local 103 cpu_node = of_parse_phandle(np, "cpus", 0); in lmh_probe() 104 if (!cpu_node) in lmh_probe() 106 cpu_id = of_cpu_node_to_id(cpu_node); in lmh_probe() 107 of_node_put(cpu_node); in lmh_probe()
|
/linux/arch/powerpc/kernel/ |
A D | cacheinfo.c | 503 struct device_node *cpu_node; in cache_chain_instantiate() local 509 cpu_node = of_get_cpu_node(cpu_id, NULL); in cache_chain_instantiate() 510 WARN_ONCE(!cpu_node, "no OF node found for CPU %i\n", cpu_id); in cache_chain_instantiate() 511 if (!cpu_node) in cache_chain_instantiate() 524 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 …]
|
/linux/drivers/thermal/ |
A D | cpuidle_cooling.c | 246 struct device_node *cpu_node; in cpuidle_cooling_register() local 251 cpu_node = of_cpu_device_node_get(cpu); in cpuidle_cooling_register() 253 cooling_node = of_get_child_by_name(cpu_node, "thermal-idle"); in cpuidle_cooling_register() 255 of_node_put(cpu_node); in cpuidle_cooling_register()
|
/linux/arch/arm/mach-bcm/ |
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()
|
/linux/sound/soc/meson/ |
A D | meson-card-utils.c | 116 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()
|
A D | meson-card.h | 32 struct device_node *cpu_node);
|
/linux/drivers/perf/ |
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()
|
/linux/arch/arm/mach-omap2/ |
A D | pm33xx-core.c | 384 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()
|
/linux/include/linux/ |
A D | arch_topology.h | 15 bool topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu);
|
/linux/drivers/of/ |
A D | base.c | 423 int of_cpu_node_to_id(struct device_node *cpu_node) in of_cpu_node_to_id() argument 431 found = (cpu_node == np); in of_cpu_node_to_id() 456 struct device_node *of_get_cpu_state_node(struct device_node *cpu_node, in of_get_cpu_state_node() argument 462 err = of_parse_phandle_with_args(cpu_node, "power-domains", in of_get_cpu_state_node() 473 return of_parse_phandle(cpu_node, "cpu-idle-states", index); in of_get_cpu_state_node()
|
/linux/drivers/irqchip/ |
A D | irq-gic-v3.c | 1874 struct device_node *cpu_node; in gic_populate_ppi_partitions() local 1881 cpu_node = of_find_node_by_phandle(cpu_phandle); in gic_populate_ppi_partitions() 1882 if (WARN_ON(!cpu_node)) in gic_populate_ppi_partitions() 1885 cpu = of_cpu_node_to_id(cpu_node); in gic_populate_ppi_partitions() 1889 pr_cont("%pOF[%d] ", cpu_node, cpu); in gic_populate_ppi_partitions()
|