Home | History | Annotate | Download | only in tests

Lines Matching defs:fdt

20 static void check_search(void *fdt, uint32_t phandle, int target)
24 offset = fdt_node_offset_by_phandle(fdt, phandle);
33 void *fdt;
37 fdt = load_blob_arg(argc, argv);
39 subnode2_offset = fdt_path_offset(fdt, "/subnode@2");
40 subsubnode2_offset = fdt_path_offset(fdt, "/subnode@2/subsubnode@0");
45 check_search(fdt, PHANDLE_1, subnode2_offset);
46 check_search(fdt, PHANDLE_2, subsubnode2_offset);
47 check_search(fdt, ~PHANDLE_1, -FDT_ERR_NOTFOUND);
48 check_search(fdt, 0, -FDT_ERR_BADPHANDLE);
49 check_search(fdt, -1, -FDT_ERR_BADPHANDLE);