Searched refs:cpus_offset (Results 1 – 4 of 4) sorted by relevance
/openbmc/u-boot/arch/arm/cpu/armv8/ |
H A D | spin_table.c | 13 int cpus_offset, offset; in spin_table_update_dt() local 20 cpus_offset = fdt_path_offset(fdt, "/cpus"); in spin_table_update_dt() 21 if (cpus_offset < 0) in spin_table_update_dt() 24 for (offset = fdt_first_subnode(fdt, cpus_offset); in spin_table_update_dt() 41 for (offset = fdt_first_subnode(fdt, cpus_offset); in spin_table_update_dt()
|
/openbmc/linux/arch/powerpc/kexec/ |
H A D | file_load_64.c | 1064 int cpus_offset, cpus_subnode_offset, ret = 0; in update_cpus_node() local 1066 cpus_offset = fdt_path_offset(fdt, "/cpus"); in update_cpus_node() 1067 if (cpus_offset < 0 && cpus_offset != -FDT_ERR_NOTFOUND) { in update_cpus_node() 1069 fdt_strerror(cpus_offset)); in update_cpus_node() 1070 return cpus_offset; in update_cpus_node() 1073 if (cpus_offset > 0) { in update_cpus_node() 1074 ret = fdt_del_node(fdt, cpus_offset); in update_cpus_node() 1082 cpus_offset = fdt_add_subnode(fdt, fdt_path_offset(fdt, "/"), "cpus"); in update_cpus_node() 1083 if (cpus_offset < 0) { in update_cpus_node() 1084 pr_err("Error creating /cpus node: %s\n", fdt_strerror(cpus_offset)); in update_cpus_node() [all …]
|
/openbmc/qemu/hw/ppc/ |
H A D | pnv.c | 115 int cpus_offset = fdt_path_offset(fdt, "/cpus"); in get_cpus_node() local 117 if (cpus_offset < 0) { in get_cpus_node() 118 cpus_offset = fdt_add_subnode(fdt, 0, "cpus"); in get_cpus_node() 119 if (cpus_offset) { in get_cpus_node() 120 _FDT((fdt_setprop_cell(fdt, cpus_offset, "#address-cells", 0x1))); in get_cpus_node() 121 _FDT((fdt_setprop_cell(fdt, cpus_offset, "#size-cells", 0x0))); in get_cpus_node() 124 _FDT(cpus_offset); in get_cpus_node() 125 return cpus_offset; in get_cpus_node() 155 int cpus_offset = get_cpus_node(fdt); in pnv_dt_core() local 163 offset = fdt_add_subnode(fdt, cpus_offset, nodename); in pnv_dt_core()
|
H A D | spapr.c | 820 int cpus_offset) in spapr_dt_one_cpu() argument 833 offset = fdt_add_subnode(fdt, cpus_offset, nodename); in spapr_dt_one_cpu() 844 int cpus_offset; in spapr_dt_cpus() local 847 cpus_offset = fdt_add_subnode(fdt, 0, "cpus"); in spapr_dt_cpus() 848 _FDT(cpus_offset); in spapr_dt_cpus() 849 _FDT((fdt_setprop_cell(fdt, cpus_offset, "#address-cells", 0x1))); in spapr_dt_cpus() 850 _FDT((fdt_setprop_cell(fdt, cpus_offset, "#size-cells", 0x0))); in spapr_dt_cpus() 868 spapr_dt_one_cpu(fdt, spapr, rev[i], cpus_offset); in spapr_dt_cpus()
|