Lines Matching refs:root
234 root = parse_struct(BytesIO(structs))
236 return root, strblock
279 def compose_structs(root): argument
283 t = compose_structs_r(root)
297 def write_fdt(root, strblock, fp): argument
310 structs = compose_structs(root)
375 def manipulate(root, strblock): argument
380 kernel_node = root[0][0]
391 root[0].children.append(fake_kernel)
394 root[1].props[0].value = b'conf-2\x00'
396 fake_conf = root[1][0].clone()
402 root[1].children.append(fake_conf)
404 return root, strblock
408 root, strblock = read_fdt(fp)
411 pretty_print(root, strblock)
413 root, strblock = manipulate(root, strblock)
415 pretty_print(root, strblock)
418 write_fdt(root, strblock, fp)