Lines Matching defs:chosen_off
22 int err, chosen_off;
25 chosen_off = fdt_path_offset(fdt, "/chosen");
26 if (chosen_off == -FDT_ERR_NOTFOUND)
27 chosen_off = fdt_add_subnode(fdt, 0, "chosen");
28 if (chosen_off < 0) {
30 chosen_off);
31 return chosen_off;
34 err = fdt_setprop_string(fdt, chosen_off, "bootargs", fw_getcmdline());
163 int chosen_off, err;
216 chosen_off = fdt_path_offset(fdt, "/chosen");
217 if (chosen_off == -FDT_ERR_NOTFOUND)
218 chosen_off = fdt_add_subnode(fdt, 0, "chosen");
219 if (chosen_off < 0) {
221 chosen_off);
222 return chosen_off;
225 err = fdt_setprop_string(fdt, chosen_off, "stdout-path", path);