Lines Matching refs:nodeoffset

177 static inline int fdt_setprop_uxx(void *fdt, int nodeoffset, const char *name,  in fdt_setprop_uxx()  argument
181 return fdt_setprop_u64(fdt, nodeoffset, name, val); in fdt_setprop_uxx()
183 return fdt_setprop_u32(fdt, nodeoffset, name, (uint32_t)val); in fdt_setprop_uxx()
214 int nodeoffset; in fdt_initrd() local
224 nodeoffset = fdt_find_or_add_subnode(fdt, 0, "chosen"); in fdt_initrd()
225 if (nodeoffset < 0) in fdt_initrd()
226 return nodeoffset; in fdt_initrd()
250 err = fdt_setprop_uxx(fdt, nodeoffset, "linux,initrd-start", in fdt_initrd()
259 err = fdt_setprop_uxx(fdt, nodeoffset, "linux,initrd-end", in fdt_initrd()
274 int nodeoffset; in fdt_chosen() local
285 nodeoffset = fdt_find_or_add_subnode(fdt, 0, "chosen"); in fdt_chosen()
286 if (nodeoffset < 0) in fdt_chosen()
287 return nodeoffset; in fdt_chosen()
291 err = fdt_setprop(fdt, nodeoffset, "bootargs", str, in fdt_chosen()
300 return fdt_fixup_stdout(fdt, nodeoffset); in fdt_chosen()
417 int err, nodeoffset; in fdt_fixup_memory_banks() local
435 nodeoffset = fdt_find_or_add_subnode(blob, 0, "memory"); in fdt_fixup_memory_banks()
436 if (nodeoffset < 0) in fdt_fixup_memory_banks()
437 return nodeoffset; in fdt_fixup_memory_banks()
439 err = fdt_setprop(blob, nodeoffset, "device_type", "memory", in fdt_fixup_memory_banks()
459 err = fdt_setprop(blob, nodeoffset, "reg", tmp, len); in fdt_fixup_memory_banks()
470 int err, nodeoffset; in fdt_set_usable_memory() local
487 nodeoffset = fdt_find_or_add_subnode(blob, 0, "memory"); in fdt_set_usable_memory()
488 if (nodeoffset < 0) in fdt_set_usable_memory()
489 return nodeoffset; in fdt_set_usable_memory()
493 err = fdt_setprop(blob, nodeoffset, "linux,usable-memory", tmp, len); in fdt_set_usable_memory()
1463 int fdt_set_phandle(void *fdt, int nodeoffset, uint32_t phandle) in fdt_set_phandle() argument
1470 if ((off >= 0) && (off != nodeoffset)) { in fdt_set_phandle()
1473 fdt_get_path(fdt, nodeoffset, buf, sizeof(buf)); in fdt_set_phandle()
1483 ret = fdt_setprop_cell(fdt, nodeoffset, "phandle", phandle); in fdt_set_phandle()
1491 ret = fdt_setprop_cell(fdt, nodeoffset, "linux,phandle", phandle); in fdt_set_phandle()
1502 unsigned int fdt_create_phandle(void *fdt, int nodeoffset) in fdt_create_phandle() argument
1505 int phandle = fdt_get_phandle(fdt, nodeoffset); in fdt_create_phandle()
1512 ret = fdt_set_phandle(fdt, nodeoffset, phandle); in fdt_create_phandle()
1532 int fdt_set_node_status(void *fdt, int nodeoffset, in fdt_set_node_status() argument
1538 if (nodeoffset < 0) in fdt_set_node_status()
1539 return nodeoffset; in fdt_set_node_status()
1543 ret = fdt_setprop_string(fdt, nodeoffset, "status", "okay"); in fdt_set_node_status()
1546 ret = fdt_setprop_string(fdt, nodeoffset, "status", "disabled"); in fdt_set_node_status()
1549 ret = fdt_setprop_string(fdt, nodeoffset, "status", "fail"); in fdt_set_node_status()
1553 ret = fdt_setprop_string(fdt, nodeoffset, "status", buf); in fdt_set_node_status()