/external/dtc/tests/ |
D | nop_node.c | 35 int subnode1_offset, subnode2_offset, subsubnode2_offset; in main() local 41 subnode1_offset = fdt_path_offset(fdt, "/subnode@1"); in main() 42 if (subnode1_offset < 0) in main() 44 fdt_strerror(subnode1_offset)); in main() 45 check_getprop_cell(fdt, subnode1_offset, "prop-int", TEST_VALUE_1); in main() 59 err = fdt_nop_node(fdt, subnode1_offset); in main() 63 subnode1_offset = fdt_path_offset(fdt, "/subnode@1"); in main() 64 if (subnode1_offset != -FDT_ERR_NOTFOUND) in main() 66 fdt_strerror(subnode1_offset), in main() 85 subnode1_offset = fdt_path_offset(fdt, "/subnode@1"); in main() [all …]
|
D | del_node.c | 35 int subnode1_offset, subnode2_offset, subsubnode2_offset; in main() local 46 subnode1_offset = fdt_path_offset(fdt, "/subnode@1"); in main() 47 if (subnode1_offset < 0) in main() 49 fdt_strerror(subnode1_offset)); in main() 50 check_getprop_cell(fdt, subnode1_offset, "prop-int", TEST_VALUE_1); in main() 64 err = fdt_del_node(fdt, subnode1_offset); in main() 68 subnode1_offset = fdt_path_offset(fdt, "/subnode@1"); in main() 69 if (subnode1_offset != -FDT_ERR_NOTFOUND) in main() 71 fdt_strerror(subnode1_offset), in main() 90 subnode1_offset = fdt_path_offset(fdt, "/subnode@1"); in main() [all …]
|
D | path_offset.c | 95 int subnode1_offset, subnode2_offset; in main() local 103 subnode1_offset = check_subnode(fdt, 0, "subnode@1"); in main() 106 check_path_offset(fdt, "/subnode@1", subnode1_offset); in main() 109 subsubnode1_offset = check_subnode(fdt, subnode1_offset, "subsubnode"); in main() 120 check_path_offset(fdt, "//subnode@1", subnode1_offset); in main() 121 check_path_offset(fdt, "/subnode@1/", subnode1_offset); in main() 122 check_path_offset(fdt, "//subnode@1///", subnode1_offset); in main() 127 check_path_offset_namelen(fdt, "/subnode@1/subsubnode", 10, subnode1_offset); in main() 128 check_path_offset_namelen(fdt, "/subnode@1/subsubnode", 11, subnode1_offset); in main()
|
D | subnode_offset.c | 60 int subnode1_offset, subnode2_offset; in main() local 67 subnode1_offset = check_subnode(fdt, 0, "subnode@1"); in main() 70 if (subnode1_offset == subnode2_offset) in main() 73 check_property_cell(fdt, subnode1_offset, "prop-int", TEST_VALUE_1); in main() 76 subsubnode1_offset = check_subnode(fdt, subnode1_offset, "subsubnode"); in main() 87 check_subnode(fdt, subnode1_offset, "ss1"); in main() 92 ss12_off = fdt_subnode_offset(fdt, subnode1_offset, "ss2"); in main()
|
D | notfound.c | 41 int subnode1_offset; in main() local 53 subnode1_offset = fdt_subnode_offset(fdt, 0, "subnode@1"); in main() 54 if (subnode1_offset < 0) in main() 55 FAIL("Couldn't find subnode1: %s", fdt_strerror(subnode1_offset)); in main() 57 fdt_getprop(fdt, subnode1_offset, "prop-str", &lenerr); in main()
|
D | node_offset_by_compatible.c | 55 int subnode1_offset, subnode2_offset; in main() local 61 subnode1_offset = fdt_path_offset(fdt, "/subnode@1"); in main() 66 if ((subnode1_offset < 0) || (subnode2_offset < 0) in main() 71 check_search(fdt, "subnode1", subnode1_offset, -FDT_ERR_NOTFOUND); in main()
|
D | node_offset_by_prop_value.c | 80 int subnode1_offset, subnode2_offset; in main() local 86 subnode1_offset = fdt_path_offset(fdt, "/subnode@1"); in main() 91 if ((subnode1_offset < 0) || (subnode2_offset < 0) in main() 95 check_search_cell(fdt, "prop-int", TEST_VALUE_1, 0, subnode1_offset, in main()
|