Home
last modified time | relevance | path

Searched refs:fdt_totalsize (Results 1 – 25 of 26) sorted by relevance

12

/Linux-v6.6/scripts/dtc/
Dfdtoverlay.c56 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()
Dutil.c316 totalsize = fdt_totalsize(blob); in utilfdt_write_err()
/Linux-v6.6/scripts/dtc/libfdt/
Dfdt.c20 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()
Dfdt_sw.c71 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()
Dfdt_rw.c21 || (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()
Dlibfdt.h250 #define fdt_totalsize(fdt) (fdt_get_header(fdt, totalsize)) macro
Dfdt_ro.c168 if (absoffset > fdt_totalsize(fdt) - in fdt_mem_rsv()
/Linux-v6.6/arch/powerpc/boot/
Depapr.c42 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()
Dlibfdt-wrapper.c47 int size = fdt_totalsize(fdt); in expand_buf()
174 bufsize = fdt_totalsize(fdt) + EXPAND_GRANULARITY; in fdt_init()
/Linux-v6.6/drivers/firmware/efi/libstub/
Dfdt.c48 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()
/Linux-v6.6/drivers/of/
Dfdt.c387 pr_debug("size: %08x\n", fdt_totalsize(blob)); in __unflatten_device_tree()
662 fdt_totalsize(initial_boot_params)); in early_init_fdt_reserve_self()
1181 fdt_totalsize(initial_boot_params)); in early_init_dt_scan_chosen()
1285 fdt_totalsize(initial_boot_params)); in early_init_dt_verify()
1361 size = fdt_totalsize(initial_boot_params); in unflatten_and_copy_device_tree()
1390 fdt_totalsize(initial_boot_params))) { in of_fdt_raw_init()
1394 of_fdt_raw_attr.size = fdt_totalsize(initial_boot_params); in of_fdt_raw_init()
Dkexec.c289 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()
Doverlay.c1010 size = fdt_totalsize(overlay_fdt); in of_overlay_fdt_apply()
/Linux-v6.6/arch/mips/boot/compressed/
Ddecompress.c122 dtb_size = fdt_totalsize((void *)&__appended_dtb); in decompress_kernel()
/Linux-v6.6/arch/powerpc/mm/nohash/
Dkaslr_booke.c70 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()
/Linux-v6.6/arch/powerpc/kexec/
Delf_64.c122 kbuf.bufsz = kbuf.memsz = fdt_totalsize(fdt); in elf64_load()
/Linux-v6.6/arch/arm64/mm/
Dfixmap.c159 *size = fdt_totalsize(dt_virt); in fixmap_remap_fdt()
/Linux-v6.6/arch/arm64/kernel/
Dmachine_kexec_file.c166 dtb_len = fdt_totalsize(dtb); in load_other_segments()
/Linux-v6.6/arch/x86/kernel/
Ddevicetree.c292 size = fdt_totalsize(dt); in x86_flattree_get_config()
/Linux-v6.6/arch/mips/kernel/
Drelocate.c377 memcpy(fdt_relocated, fdt, fdt_totalsize(fdt)); in relocate_kernel()
/Linux-v6.6/arch/riscv/kernel/
Delf_kexec.c310 kbuf.bufsz = kbuf.memsz = fdt_totalsize(fdt); in elf_kexec_load()
/Linux-v6.6/arch/powerpc/kernel/
Dprom.c125 size = fdt_totalsize(initial_boot_params); in move_device_tree()
/Linux-v6.6/arch/arm/kernel/
Dsetup.c1115 fdt_totalsize(atags_vaddr)); in setup_arch()
/Linux-v6.6/drivers/pci/hotplug/
Dpnv_php.c276 fdt = kmemdup(fdt1, fdt_totalsize(fdt1), GFP_KERNEL); in pnv_php_add_devtree()
/Linux-v6.6/arch/riscv/mm/
Dinit.c271 memblock_reserve(dtb_early_pa, fdt_totalsize(dtb_early_va)); in setup_bootmem()

12