/external/dtc/tests/ |
D | nop_node.c | 22 int subnode1_offset, subnode2_offset, subsubnode2_offset; in main() local 28 subnode1_offset = fdt_path_offset(fdt, "/subnode@1"); in main() 29 if (subnode1_offset < 0) in main() 31 fdt_strerror(subnode1_offset)); in main() 32 check_getprop_cell(fdt, subnode1_offset, "prop-int", TEST_VALUE_1); in main() 46 err = fdt_nop_node(fdt, subnode1_offset); in main() 50 subnode1_offset = fdt_path_offset(fdt, "/subnode@1"); in main() 51 if (subnode1_offset != -FDT_ERR_NOTFOUND) in main() 53 fdt_strerror(subnode1_offset), in main() 72 subnode1_offset = fdt_path_offset(fdt, "/subnode@1"); in main() [all …]
|
D | del_node.c | 22 int subnode1_offset, subnode2_offset, subsubnode2_offset; in main() local 33 subnode1_offset = fdt_path_offset(fdt, "/subnode@1"); in main() 34 if (subnode1_offset < 0) in main() 36 fdt_strerror(subnode1_offset)); in main() 37 check_getprop_cell(fdt, subnode1_offset, "prop-int", TEST_VALUE_1); in main() 51 err = fdt_del_node(fdt, subnode1_offset); in main() 55 subnode1_offset = fdt_path_offset(fdt, "/subnode@1"); in main() 56 if (subnode1_offset != -FDT_ERR_NOTFOUND) in main() 58 fdt_strerror(subnode1_offset), in main() 77 subnode1_offset = fdt_path_offset(fdt, "/subnode@1"); in main() [all …]
|
D | path_offset.c | 82 int subnode1_offset, subnode2_offset; in main() local 90 subnode1_offset = check_subnode(fdt, 0, "subnode@1"); in main() 93 check_path_offset(fdt, "/subnode@1", subnode1_offset); in main() 96 subsubnode1_offset = check_subnode(fdt, subnode1_offset, "subsubnode"); in main() 107 check_path_offset(fdt, "//subnode@1", subnode1_offset); in main() 108 check_path_offset(fdt, "/subnode@1/", subnode1_offset); in main() 109 check_path_offset(fdt, "//subnode@1///", subnode1_offset); in main() 114 check_path_offset_namelen(fdt, "/subnode@1/subsubnode", 10, subnode1_offset); in main() 115 check_path_offset_namelen(fdt, "/subnode@1/subsubnode", 11, subnode1_offset); in main()
|
D | subnode_offset.c | 47 int subnode1_offset, subnode2_offset; in main() local 54 subnode1_offset = check_subnode(fdt, 0, "subnode@1"); in main() 57 if (subnode1_offset == subnode2_offset) in main() 60 check_property_cell(fdt, subnode1_offset, "prop-int", TEST_VALUE_1); in main() 63 subsubnode1_offset = check_subnode(fdt, subnode1_offset, "subsubnode"); in main() 74 check_subnode(fdt, subnode1_offset, "ss1"); in main() 79 ss12_off = fdt_subnode_offset(fdt, subnode1_offset, "ss2"); in main()
|
D | notfound.c | 28 int subnode1_offset; in main() local 40 subnode1_offset = fdt_subnode_offset(fdt, 0, "subnode@1"); in main() 41 if (subnode1_offset < 0) in main() 42 FAIL("Couldn't find subnode1: %s", fdt_strerror(subnode1_offset)); in main() 44 fdt_getprop(fdt, subnode1_offset, "prop-str", &lenerr); in main()
|
D | node_offset_by_compatible.c | 42 int subnode1_offset, subnode2_offset; in main() local 48 subnode1_offset = fdt_path_offset(fdt, "/subnode@1"); in main() 53 if ((subnode1_offset < 0) || (subnode2_offset < 0) in main() 58 check_search(fdt, "subnode1", subnode1_offset, -FDT_ERR_NOTFOUND); in main()
|
D | node_offset_by_prop_value.c | 67 int subnode1_offset, subnode2_offset; in main() local 73 subnode1_offset = fdt_path_offset(fdt, "/subnode@1"); in main() 78 if ((subnode1_offset < 0) || (subnode2_offset < 0) in main() 82 check_search_cell(fdt, "prop-int", TEST_VALUE_1, 0, subnode1_offset, in main()
|