Lines Matching refs:fdt
27 static void *fdt; variable
35 offs = fdt_path_offset(fdt, "/firmware/optee"); in optee_fdt_firmware()
42 prop = fdt_getprop(fdt, offs, "compatible", &len); in optee_fdt_firmware()
45 prop = fdt_getprop(fdt, offs, "method", &len); in optee_fdt_firmware()
57 offs = fdt_path_offset(fdt, "/firmware/optee"); in optee_fdt_protected_memory()
65 offs = fdt_subnode_offset(fdt, 0, "reserved-memory"); in optee_fdt_protected_memory()
68 subnode = fdt_first_subnode(fdt, offs); in optee_fdt_protected_memory()
73 const char *name = fdt_get_name(fdt, subnode, NULL); in optee_fdt_protected_memory()
85 ut_assertok(fdt_get_resource(fdt, subnode, "reg", 0, &res)); in optee_fdt_protected_memory()
86 subnode = fdt_next_subnode(fdt, subnode); in optee_fdt_protected_memory()
114 fdt = malloc(FDT_COPY_SIZE); in do_ut_optee()
115 if (!fdt) in do_ut_optee()
124 ut_assertok(fdt_open_into(fdt_base, fdt, FDT_COPY_SIZE)); in do_ut_optee()
130 ut_assertok(optee_copy_fdt_nodes(fdt_no_optee, fdt)); in do_ut_optee()
136 ut_assertok(optee_copy_fdt_nodes(fdt_optee, fdt)); in do_ut_optee()
142 ut_assertok(fdt_open_into(fdt_optee, fdt, FDT_COPY_SIZE)); in do_ut_optee()
143 ut_assertok(optee_copy_fdt_nodes(fdt_optee, fdt)); in do_ut_optee()
148 free(fdt); in do_ut_optee()