Lines Matching refs:err
249 int err; in fdt_add_cpu() local
265 err = fdt_setprop_string(dtb, cpu_offs, "compatible", "arm,armv8"); in fdt_add_cpu()
266 if (err < 0) { in fdt_add_cpu()
269 return err; in fdt_add_cpu()
272 err = fdt_setprop_u64(dtb, cpu_offs, "reg", reg_prop); in fdt_add_cpu()
273 if (err < 0) { in fdt_add_cpu()
276 return err; in fdt_add_cpu()
279 err = fdt_setprop_string(dtb, cpu_offs, "device_type", "cpu"); in fdt_add_cpu()
280 if (err < 0) { in fdt_add_cpu()
283 return err; in fdt_add_cpu()
286 err = fdt_setprop_string(dtb, cpu_offs, "enable-method", "psci"); in fdt_add_cpu()
287 if (err < 0) { in fdt_add_cpu()
290 return err; in fdt_add_cpu()
337 int err; in fdt_add_cpus_node() local
352 err = fdt_setprop_u32(dtb, offs, "#address-cells", 2); in fdt_add_cpus_node()
353 if (err < 0) { in fdt_add_cpus_node()
356 return err; in fdt_add_cpus_node()
359 err = fdt_setprop_u32(dtb, offs, "#size-cells", 0); in fdt_add_cpus_node()
360 if (err < 0) { in fdt_add_cpus_node()
363 return err; in fdt_add_cpus_node()
382 err = fdt_add_cpu(dtb, offs, mpidr); in fdt_add_cpus_node()
383 if (err < 0) { in fdt_add_cpus_node()
387 return err; in fdt_add_cpus_node()