Lines Matching refs:nodeoffset
180 static int mc_fixup_mac_addr(void *blob, int nodeoffset, in mc_fixup_mac_addr() argument
216 if (fdt_get_property(blob, nodeoffset, propname, NULL)) { in mc_fixup_mac_addr()
232 err = fdt_setprop(blob, nodeoffset, propname, val, len); in mc_fixup_mac_addr()
377 int nodeoffset = fdt_path_offset(blob, "/board_info/ports"), noff; in mc_fixup_dpc_mac_addr() local
385 noff = fdt_subnode_offset(blob, nodeoffset, (const char *)mac_name); in mc_fixup_dpc_mac_addr()
394 noff = fdt_add_subnode(blob, nodeoffset, mac_name); in mc_fixup_dpc_mac_addr()
461 int nodeoffset, err = 0; in mc_fixup_dpc() local
464 nodeoffset = fdt_path_offset(blob, "/resources/icid_pools"); in mc_fixup_dpc()
465 if (fdt_del_node(blob, nodeoffset) < 0) in mc_fixup_dpc()
469 nodeoffset = fdt_path_offset(blob, "/resources"); in mc_fixup_dpc()
470 if (nodeoffset < 0) { in mc_fixup_dpc()
474 nodeoffset = fdt_add_subnode(blob, nodeoffset, "icid_pools"); in mc_fixup_dpc()
475 nodeoffset = fdt_add_subnode(blob, nodeoffset, "icid_pool@0"); in mc_fixup_dpc()
484 nodeoffset = fdt_path_offset(blob, "/board_info/ports"); in mc_fixup_dpc()
485 if (nodeoffset < 0) { in mc_fixup_dpc()
492 nodeoffset = fdt_path_offset(blob, "/board_info"); in mc_fixup_dpc()
493 if (nodeoffset < 0) in mc_fixup_dpc()
494 nodeoffset = fdt_add_subnode(blob, 0, "board_info"); in mc_fixup_dpc()
496 nodeoffset = fdt_add_subnode(blob, nodeoffset, "ports"); in mc_fixup_dpc()