Searched refs:fdt_ptr (Results 1 – 1 of 1) sorted by relevance
/system/libufdt/tests/src/ |
D | extract_dtb.c | 56 char *fdt_ptr = malloc(buf_size); in find_and_write_dtb() local 57 if (!fdt_ptr) { in find_and_write_dtb() 62 memcpy(fdt_ptr, buf + tag_pos, buf_size); in find_and_write_dtb() 65 if (fdt_check_full(fdt_ptr, buf_size) != 0) { in find_and_write_dtb() 71 size_t fdt_size = fdt_totalsize(fdt_ptr); in find_and_write_dtb() 80 int root_node_off = fdt_path_offset(fdt_ptr, "/"); in find_and_write_dtb() 87 (const char *)fdt_getprop(fdt_ptr, root_node_off, "model", NULL); in find_and_write_dtb() 90 (const char *)fdt_getprop(fdt_ptr, root_node_off, "compatible", NULL); in find_and_write_dtb() 94 if (write_fdt_to_file(filename, fdt_ptr) != 0) { in find_and_write_dtb() 99 free(fdt_ptr); in find_and_write_dtb() [all …]
|