/openbmc/linux/scripts/dtc/ |
H A D | fdtoverlay.c | 56 tmpo = xmalloc(fdt_totalsize(overlay)); in apply_one() 68 memcpy(tmpo, overlay, fdt_totalsize(overlay)); in apply_one() 107 if (fdt_totalsize(blob) > buf_len) { in do_fdtoverlay() 110 (unsigned long)buf_len, fdt_totalsize(blob)); in do_fdtoverlay() 126 if (fdt_totalsize(ovblob[i]) > ov_len) { in do_fdtoverlay() 130 fdt_totalsize(ovblob[i])); in do_fdtoverlay() 135 buf_len = fdt_totalsize(blob); in do_fdtoverlay()
|
/openbmc/linux/scripts/dtc/libfdt/ |
H A D | fdt.c | 20 uint32_t totalsize = fdt_totalsize(fdt); in fdt_ro_probe_() 109 if ((fdt_totalsize(fdt) < hdrsize) in fdt_check_header() 110 || (fdt_totalsize(fdt) > INT_MAX)) in fdt_check_header() 114 if (!check_off_(hdrsize, fdt_totalsize(fdt), in fdt_check_header() 120 if (!check_off_(hdrsize, fdt_totalsize(fdt), in fdt_check_header() 124 if (!check_block_(hdrsize, fdt_totalsize(fdt), in fdt_check_header() 131 if (!check_block_(hdrsize, fdt_totalsize(fdt), in fdt_check_header() 151 || (absoffset + len) > fdt_totalsize(fdt)) in fdt_offset_ptr() 334 if (fdt_totalsize(fdt) > (unsigned int)bufsize) in fdt_move() 337 memmove(buf, fdt, fdt_totalsize(fdt)); in fdt_move()
|
H A D | fdt_sw.c | 71 fdt_off_dt_strings(fdt) != fdt_totalsize(fdt)) in fdt_sw_probe_struct_() 99 spaceleft = fdt_totalsize(fdt) - fdt_off_dt_struct(fdt) in fdt_grab_space_() 162 headsize + tailsize > fdt_totalsize(fdt)) in fdt_resize() 168 oldtail = (char *)fdt + fdt_totalsize(fdt) - tailsize; in fdt_resize() 196 if ((offset + sizeof(*re)) > fdt_totalsize(fdt)) in fdt_add_reservemap_entry() 215 fdt_set_off_dt_strings(fdt, fdt_totalsize(fdt)); in fdt_finish_reservemap() 252 char *strtab = (char *)fdt + fdt_totalsize(fdt); in fdt_add_string_() 259 if (fdt_totalsize(fdt) - offset < struct_top) in fdt_add_string_() 278 char *strtab = (char *)fdt + fdt_totalsize(fdt); in fdt_find_add_string_() 354 oldstroffset = fdt_totalsize(fdt) - fdt_size_dt_strings(fdt); in fdt_finish()
|
H A D | fdt_rw.c | 21 || (fdt_totalsize(fdt) < in fdt_blocks_misordered_() 64 if (dsize - oldlen + newlen > fdt_totalsize(fdt)) in fdt_splice_() 425 const char *fdtend = fdtstart + fdt_totalsize(fdt); in fdt_open_into()
|
/openbmc/u-boot/scripts/dtc/libfdt/ |
H A D | fdt_sw.c | 78 spaceleft = fdt_totalsize(fdt) - fdt_off_dt_struct(fdt) in fdt_grab_space_() 123 oldtail = (char *)fdt + fdt_totalsize(fdt) - tailsize; in fdt_resize() 153 if ((offset + sizeof(*re)) > fdt_totalsize(fdt)) in fdt_add_reservemap_entry() 202 char *strtab = (char *)fdt + fdt_totalsize(fdt); in fdt_find_add_string_() 215 if (fdt_totalsize(fdt) + offset < struct_top) in fdt_find_add_string_() 274 oldstroffset = fdt_totalsize(fdt) - fdt_size_dt_strings(fdt); in fdt_finish()
|
H A D | fdt.c | 83 || (absoffset + len) > fdt_totalsize(fdt)) in fdt_offset_ptr() 249 if (fdt_totalsize(fdt) > bufsize) in fdt_move() 252 memmove(buf, fdt, fdt_totalsize(fdt)); in fdt_move()
|
H A D | fdt_rw.c | 66 || (fdt_totalsize(fdt) < in fdt_blocks_misordered_() 106 if ((end - oldlen + newlen) > ((char *)fdt + fdt_totalsize(fdt))) in fdt_splice_() 435 const char *fdtend = fdtstart + fdt_totalsize(fdt); in fdt_open_into()
|
/openbmc/linux/arch/powerpc/boot/ |
H A D | epapr.c | 42 if (ima_size < fdt_addr + fdt_totalsize((void *)fdt_addr)) in platform_fixups() 45 fdt_addr, fdt_totalsize((void *)fdt_addr), ima_size); in platform_fixups()
|
H A D | libfdt-wrapper.c | 47 int size = fdt_totalsize(fdt); in expand_buf() 174 bufsize = fdt_totalsize(fdt) + EXPAND_GRANULARITY; in fdt_init()
|
/openbmc/u-boot/cmd/ |
H A D | fdt.c | 167 if (len < fdt_totalsize(blob)) { in do_fdt() 170 len, fdt_totalsize(blob)); in do_fdt() 219 len = fdt_totalsize(working_fdt); in do_fdt() 222 if (len < fdt_totalsize(working_fdt)) { in do_fdt() 225 len, fdt_totalsize(working_fdt)); in do_fdt() 533 printf("totalsize:\t\t0x%x (%d)\n", fdt_totalsize(working_fdt), in do_fdt() 534 fdt_totalsize(working_fdt)); in do_fdt()
|
H A D | spl.c | 122 env_set_hex("fdtargslen", fdt_totalsize(images.ft_addr)); in spl_export() 124 if (fdt_totalsize(images.ft_addr) > in spl_export()
|
/openbmc/u-boot/common/ |
H A D | image-fdt.c | 455 if (fdt_totalsize(fdt_blob) != fdt_len) { in boot_get_fdt() 475 if (fdt_totalsize(fdt_blob) != fdt_len) in boot_get_fdt() 486 *of_size = fdt_totalsize(fdt_blob); in boot_get_fdt() 568 (phys_size_t)fdt_totalsize(blob)); in image_setup_libfdt()
|
H A D | boot_fit.c | 63 size = fdt_totalsize(fit); in locate_dtb_in_fit()
|
H A D | splash_source.c | 324 fit_size = fdt_totalsize(img_header); in splash_load_fit() 359 fit_size = fdt_totalsize(fit_header); in splash_load_fit()
|
/openbmc/linux/drivers/firmware/efi/libstub/ |
H A D | fdt.c | 48 if (orig_fdt_size && fdt_totalsize(orig_fdt) > orig_fdt_size) { in update_fdt() 360 efi_enter_kernel(kernel_addr, fdt_addr, fdt_totalsize((void *)fdt_addr)); in efi_boot_kernel() 377 *fdt_size = fdt_totalsize(fdt); in get_fdt()
|
/openbmc/u-boot/tools/ |
H A D | fit_image.c | 351 return fdt_totalsize(fdt); in fit_build_fdt() 426 fit_size = fdt_totalsize(fdt); in fit_extract_data() 476 debug("Size reduced from %x to %x\n", fit_size, fdt_totalsize(fdt)); in fit_extract_data() 478 new_size = fdt_totalsize(fdt); in fit_extract_data() 537 fit_size = fdt_totalsize(old_fdt); in fit_import_data() 592 new_size = fdt_totalsize(fdt); in fit_import_data()
|
/openbmc/linux/drivers/of/ |
H A D | fdt.c | 387 pr_debug("size: %08x\n", fdt_totalsize(blob)); in __unflatten_device_tree() 663 fdt_totalsize(initial_boot_params)); in early_init_fdt_reserve_self() 1182 fdt_totalsize(initial_boot_params)); in early_init_dt_scan_chosen() 1287 fdt_totalsize(initial_boot_params)); in early_init_dt_verify() 1363 size = fdt_totalsize(initial_boot_params); in unflatten_and_copy_device_tree() 1392 fdt_totalsize(initial_boot_params))) { in of_fdt_raw_init() 1396 of_fdt_raw_attr.size = fdt_totalsize(initial_boot_params); in of_fdt_raw_init()
|
H A D | kexec.c | 289 fdt_size = fdt_totalsize(initial_boot_params) + in of_kexec_alloc_and_setup_fdt() 305 fdt_totalsize(initial_boot_params)); in of_kexec_alloc_and_setup_fdt()
|
/openbmc/u-boot/arch/arm/cpu/armv8/fsl-layerscape/ |
H A D | ppa.c | 137 fw_length = fdt_totalsize(fitp); in ppa_init() 204 fw_length = fdt_totalsize(&fit); in ppa_init()
|
/openbmc/u-boot/arch/x86/lib/ |
H A D | zimage.c | 109 size = fdt_totalsize(fdt_blob); in setup_device_tree() 122 sd->len = fdt_totalsize(fdt_blob); in setup_device_tree()
|
/openbmc/u-boot/tools/libfdt/ |
H A D | fdt_rw.c | 9 int size = fdt_totalsize(old); in fdt_remove_unused_strings()
|
/openbmc/linux/arch/mips/boot/compressed/ |
H A D | decompress.c | 122 dtb_size = fdt_totalsize((void *)&__appended_dtb); in decompress_kernel()
|
/openbmc/u-boot/arch/sandbox/cpu/ |
H A D | state.c | 24 size = fdt_totalsize(blob); in state_ensure_space() 282 size = fdt_totalsize(state->state_fdt); in sandbox_write_state()
|
/openbmc/qemu/hw/openrisc/ |
H A D | boot.c | 98 int fdtsize = fdt_totalsize(fdt); in openrisc_load_fdt()
|
/openbmc/linux/arch/powerpc/mm/nohash/ |
H A D | kaslr_booke.c | 70 hash = rotate_xor(hash, fdt, fdt_totalsize(fdt)); in get_boot_seed() 328 regions.dtb_end = __pa(dt_ptr) + fdt_totalsize(dt_ptr); in kaslr_choose_location()
|