fdt 106 arch/arc/plat-hsdk/platform.c void *fdt = initial_boot_params; fdt 111 arch/arc/plat-hsdk/platform.c node = fdt_path_offset(fdt, path); fdt 115 arch/arc/plat-hsdk/platform.c prop = fdt_getprop(fdt, node, "dma-coherent", &ret); fdt 124 arch/arc/plat-hsdk/platform.c ret = fdt_delprop(fdt, node, "dma-coherent"); fdt 128 arch/arc/plat-hsdk/platform.c ret = fdt_setprop(fdt, node, "dma-coherent", NULL, 0); fdt 13 arch/arm/boot/compressed/atags_to_fdt.c static int node_offset(void *fdt, const char *node_path) fdt 15 arch/arm/boot/compressed/atags_to_fdt.c int offset = fdt_path_offset(fdt, node_path); fdt 17 arch/arm/boot/compressed/atags_to_fdt.c offset = fdt_add_subnode(fdt, 0, node_path); fdt 21 arch/arm/boot/compressed/atags_to_fdt.c static int setprop(void *fdt, const char *node_path, const char *property, fdt 24 arch/arm/boot/compressed/atags_to_fdt.c int offset = node_offset(fdt, node_path); fdt 27 arch/arm/boot/compressed/atags_to_fdt.c return fdt_setprop(fdt, offset, property, val_array, size); fdt 30 arch/arm/boot/compressed/atags_to_fdt.c static int setprop_string(void *fdt, const char *node_path, fdt 33 arch/arm/boot/compressed/atags_to_fdt.c int offset = node_offset(fdt, node_path); fdt 36 arch/arm/boot/compressed/atags_to_fdt.c return fdt_setprop_string(fdt, offset, property, string); fdt 39 arch/arm/boot/compressed/atags_to_fdt.c static int setprop_cell(void *fdt, const char *node_path, fdt 42 arch/arm/boot/compressed/atags_to_fdt.c int offset = node_offset(fdt, node_path); fdt 45 arch/arm/boot/compressed/atags_to_fdt.c return fdt_setprop_cell(fdt, offset, property, val); fdt 48 arch/arm/boot/compressed/atags_to_fdt.c static const void *getprop(const void *fdt, const char *node_path, fdt 51 arch/arm/boot/compressed/atags_to_fdt.c int offset = fdt_path_offset(fdt, node_path); fdt 56 arch/arm/boot/compressed/atags_to_fdt.c return fdt_getprop(fdt, offset, property, len); fdt 59 arch/arm/boot/compressed/atags_to_fdt.c static uint32_t get_cell_size(const void *fdt) fdt 63 arch/arm/boot/compressed/atags_to_fdt.c const uint32_t *size_len = getprop(fdt, "/", "#size-cells", &len); fdt 70 arch/arm/boot/compressed/atags_to_fdt.c static void merge_fdt_bootargs(void *fdt, const char *fdt_cmdline) fdt 78 arch/arm/boot/compressed/atags_to_fdt.c fdt_bootargs = getprop(fdt, "/chosen", "bootargs", &len); fdt 98 arch/arm/boot/compressed/atags_to_fdt.c setprop_string(fdt, "/chosen", "bootargs", cmdline); fdt 127 arch/arm/boot/compressed/atags_to_fdt.c int atags_to_fdt(void *atag_list, void *fdt, int total_space) fdt 151 arch/arm/boot/compressed/atags_to_fdt.c ret = fdt_open_into(fdt, fdt, total_space); fdt 164 arch/arm/boot/compressed/atags_to_fdt.c merge_fdt_bootargs(fdt, fdt 167 arch/arm/boot/compressed/atags_to_fdt.c setprop_string(fdt, "/chosen", "bootargs", fdt 174 arch/arm/boot/compressed/atags_to_fdt.c memsize = get_cell_size(fdt); fdt 197 arch/arm/boot/compressed/atags_to_fdt.c setprop_cell(fdt, "/chosen", "linux,initrd-start", fdt 199 arch/arm/boot/compressed/atags_to_fdt.c setprop_cell(fdt, "/chosen", "linux,initrd-end", fdt 205 arch/arm/boot/compressed/atags_to_fdt.c setprop_string(fdt, "/", "serial-number", serno); fdt 210 arch/arm/boot/compressed/atags_to_fdt.c setprop(fdt, "/memory", "reg", mem_reg_property, fdt 214 arch/arm/boot/compressed/atags_to_fdt.c return fdt_pack(fdt); fdt 25 arch/arm64/kernel/kaslr.c static __init u64 get_kaslr_seed(void *fdt) fdt 31 arch/arm64/kernel/kaslr.c node = fdt_path_offset(fdt, "/chosen"); fdt 35 arch/arm64/kernel/kaslr.c prop = fdt_getprop_w(fdt, node, "kaslr-seed", &len); fdt 44 arch/arm64/kernel/kaslr.c static __init const u8 *kaslr_get_cmdline(void *fdt) fdt 52 arch/arm64/kernel/kaslr.c node = fdt_path_offset(fdt, "/chosen"); fdt 56 arch/arm64/kernel/kaslr.c prop = fdt_getprop(fdt, node, "bootargs", NULL); fdt 75 arch/arm64/kernel/kaslr.c void *fdt; fdt 93 arch/arm64/kernel/kaslr.c fdt = fixmap_remap_fdt(dt_phys, &size, PAGE_KERNEL); fdt 94 arch/arm64/kernel/kaslr.c if (!fdt) fdt 100 arch/arm64/kernel/kaslr.c seed = get_kaslr_seed(fdt); fdt 108 arch/arm64/kernel/kaslr.c cmdline = kaslr_get_cmdline(fdt); fdt 264 arch/c6x/kernel/setup.c void *fdt = __dtb_start; fdt 279 arch/c6x/kernel/setup.c if (dtb && dtb != fdt) fdt 280 arch/c6x/kernel/setup.c fdt = dtb; fdt 283 arch/c6x/kernel/setup.c early_init_dt_scan(fdt); fdt 60 arch/h8300/kernel/setup.c void __init h8300_fdt_init(void *fdt, char *bootargs) fdt 62 arch/h8300/kernel/setup.c if (!fdt) fdt 63 arch/h8300/kernel/setup.c fdt = __dtb_start; fdt 67 arch/h8300/kernel/setup.c early_init_dt_scan(fdt); fdt 29 arch/microblaze/include/asm/setup.h unsigned int fdt, unsigned int msr, unsigned int tlb0, fdt 95 arch/microblaze/kernel/setup.c unsigned int fdt, unsigned int msr, unsigned int tlb0, fdt 138 arch/microblaze/kernel/setup.c if (fdt) fdt 139 arch/microblaze/kernel/setup.c pr_info("FDT at 0x%08x\n", fdt); fdt 1161 arch/mips/cavium-octeon/setup.c const void *fdt; fdt 1166 arch/mips/cavium-octeon/setup.c fdt = (void *)fw_passed_dtb; fdt 1171 arch/mips/cavium-octeon/setup.c fdt = phys_to_virt(octeon_bootinfo->fdt_addr); fdt 1172 arch/mips/cavium-octeon/setup.c if (fdt_check_header(fdt)) fdt 1178 arch/mips/cavium-octeon/setup.c fdt = &__dtb_octeon_68xx_begin; fdt 1182 arch/mips/cavium-octeon/setup.c fdt = &__dtb_octeon_3xxx_begin; fdt 1187 arch/mips/cavium-octeon/setup.c initial_boot_params = (void *)fdt; fdt 63 arch/mips/generic/board-ocelot.c static __init const void *ocelot_fixup_fdt(const void *fdt, fdt 69 arch/mips/generic/board-ocelot.c return fdt; fdt 75 arch/mips/generic/board-ocelot.c .fdt = __dtb_ocelot_pcb123_begin, fdt 43 arch/mips/generic/board-sead3.c static __init int append_memory(void *fdt) fdt 45 arch/mips/generic/board-sead3.c return yamon_dt_append_memory(fdt, mem_regions); fdt 48 arch/mips/generic/board-sead3.c static __init int remove_gic(void *fdt) fdt 61 arch/mips/generic/board-sead3.c gic_off = fdt_node_offset_by_compatible(fdt, -1, "mti,gic"); fdt 67 arch/mips/generic/board-sead3.c err = fdt_nop_node(fdt, gic_off); fdt 73 arch/mips/generic/board-sead3.c cpu_off = fdt_node_offset_by_compatible(fdt, -1, fdt 80 arch/mips/generic/board-sead3.c cpu_phandle = fdt_get_phandle(fdt, cpu_off); fdt 86 arch/mips/generic/board-sead3.c uart_off = fdt_node_offset_by_compatible(fdt, -1, "ns16550a"); fdt 88 arch/mips/generic/board-sead3.c err = fdt_setprop_u32(fdt, uart_off, "interrupt-parent", fdt 96 arch/mips/generic/board-sead3.c err = fdt_setprop_u32(fdt, uart_off, "interrupts", fdt 104 arch/mips/generic/board-sead3.c uart_off = fdt_node_offset_by_compatible(fdt, uart_off, fdt 112 arch/mips/generic/board-sead3.c eth_off = fdt_node_offset_by_compatible(fdt, -1, "smsc,lan9115"); fdt 118 arch/mips/generic/board-sead3.c err = fdt_setprop_u32(fdt, eth_off, "interrupt-parent", cpu_phandle); fdt 124 arch/mips/generic/board-sead3.c err = fdt_setprop_u32(fdt, eth_off, "interrupts", cpu_eth_int); fdt 130 arch/mips/generic/board-sead3.c ehci_off = fdt_node_offset_by_compatible(fdt, -1, "generic-ehci"); fdt 136 arch/mips/generic/board-sead3.c err = fdt_setprop_u32(fdt, ehci_off, "interrupt-parent", cpu_phandle); fdt 142 arch/mips/generic/board-sead3.c err = fdt_setprop_u32(fdt, ehci_off, "interrupts", cpu_ehci_int); fdt 159 arch/mips/generic/board-sead3.c static __init const void *sead3_fixup_fdt(const void *fdt, fdt 165 arch/mips/generic/board-sead3.c if (fdt_check_header(fdt)) fdt 169 arch/mips/generic/board-sead3.c BUG_ON(fdt_node_check_compatible(fdt, 0, "mti,sead-3")); fdt 174 arch/mips/generic/board-sead3.c fdt, sead3_fdt_fixups); fdt 216 arch/mips/generic/board-sead3.c .fdt = __dtb_sead3_begin, fdt 23 arch/mips/generic/init.c static __initdata const void *fdt; fdt 30 arch/mips/generic/init.c BUG_ON(!fdt); fdt 38 arch/mips/generic/init.c if (fdt) fdt 40 arch/mips/generic/init.c return (void *)fdt; fdt 49 arch/mips/generic/init.c fdt = (void *)fw_passed_dtb; fdt 52 arch/mips/generic/init.c match = mips_machine_is_compatible(check_mach, fdt); fdt 82 arch/mips/generic/init.c fdt = mach->fdt; fdt 84 arch/mips/generic/init.c return (void *)fdt; fdt 96 arch/mips/generic/init.c fdt = NULL; fdt 107 arch/mips/generic/init.c fdt = mach->fixup_fdt(fdt, mach_match_data); fdt 110 arch/mips/generic/init.c __dt_setup_arch((void *)fdt); fdt 20 arch/mips/generic/yamon-dt.c __init int yamon_dt_append_cmdline(void *fdt) fdt 25 arch/mips/generic/yamon-dt.c chosen_off = fdt_path_offset(fdt, "/chosen"); fdt 27 arch/mips/generic/yamon-dt.c chosen_off = fdt_add_subnode(fdt, 0, "chosen"); fdt 34 arch/mips/generic/yamon-dt.c err = fdt_setprop_string(fdt, chosen_off, "bootargs", fw_getcmdline()); fdt 75 arch/mips/generic/yamon-dt.c __init int yamon_dt_append_memory(void *fdt, fdt 122 arch/mips/generic/yamon-dt.c mem_off = fdt_path_offset(fdt, "/memory"); fdt 124 arch/mips/generic/yamon-dt.c mem_off = fdt_add_subnode(fdt, 0, "memory"); fdt 130 arch/mips/generic/yamon-dt.c err = fdt_setprop_string(fdt, mem_off, "device_type", "memory"); fdt 138 arch/mips/generic/yamon-dt.c err = fdt_setprop(fdt, mem_off, "reg", fdt 147 arch/mips/generic/yamon-dt.c err = fdt_setprop(fdt, mem_off, "linux,usable-memory", fdt 157 arch/mips/generic/yamon-dt.c __init int yamon_dt_serial_config(void *fdt) fdt 216 arch/mips/generic/yamon-dt.c chosen_off = fdt_path_offset(fdt, "/chosen"); fdt 218 arch/mips/generic/yamon-dt.c chosen_off = fdt_add_subnode(fdt, 0, "chosen"); fdt 225 arch/mips/generic/yamon-dt.c err = fdt_setprop_string(fdt, chosen_off, "stdout-path", path); fdt 14 arch/mips/include/asm/mach-malta/malta-dtshim.h extern void __init *malta_dt_shim(void *fdt); fdt 18 arch/mips/include/asm/mach-malta/malta-dtshim.h static inline void *malta_dt_shim(void *fdt) fdt 20 arch/mips/include/asm/mach-malta/malta-dtshim.h return fdt; fdt 15 arch/mips/include/asm/machine.h const void *fdt; fdt 17 arch/mips/include/asm/machine.h const void *(*fixup_fdt)(const void *fdt, const void *match_data); fdt 44 arch/mips/include/asm/machine.h mips_machine_is_compatible(const struct mips_machine *mach, const void *fdt) fdt 52 arch/mips/include/asm/machine.h if (fdt_node_check_compatible(fdt, 0, match->compatible) == 0) fdt 69 arch/mips/include/asm/machine.h int (*apply)(void *fdt); fdt 33 arch/mips/include/asm/yamon-dt.h extern __init int yamon_dt_append_cmdline(void *fdt); fdt 45 arch/mips/include/asm/yamon-dt.h extern __init int yamon_dt_append_memory(void *fdt, fdt 58 arch/mips/include/asm/yamon-dt.h extern __init int yamon_dt_serial_config(void *fdt); fdt 45 arch/mips/jz4740/setup.c static unsigned long __init get_board_mach_type(const void *fdt) fdt 47 arch/mips/jz4740/setup.c if (!fdt_node_check_compatible(fdt, 0, "ingenic,x1000")) fdt 49 arch/mips/jz4740/setup.c if (!fdt_node_check_compatible(fdt, 0, "ingenic,jz4780")) fdt 51 arch/mips/jz4740/setup.c if (!fdt_node_check_compatible(fdt, 0, "ingenic,jz4770")) fdt 65 arch/mips/kernel/machine_kexec.c struct fdt_header fdt; fdt 67 arch/mips/kernel/machine_kexec.c if (kimage->segment[i].memsz <= sizeof(fdt)) fdt 70 arch/mips/kernel/machine_kexec.c if (copy_from_user(&fdt, kimage->segment[i].buf, sizeof(fdt))) fdt 73 arch/mips/kernel/machine_kexec.c if (fdt_check_header(&fdt)) fdt 306 arch/mips/kernel/relocate.c void *fdt = NULL; fdt 312 arch/mips/kernel/relocate.c fdt = plat_get_fdt(); fdt 313 arch/mips/kernel/relocate.c early_init_dt_scan(fdt); fdt 335 arch/mips/kernel/relocate.c unsigned long fdt_phys = virt_to_phys(fdt); fdt 350 arch/mips/kernel/relocate.c memcpy(fdt_relocated, fdt, fdt_totalsize(fdt)); fdt 351 arch/mips/kernel/relocate.c fdt = fdt_relocated; fdt 384 arch/mips/kernel/relocate.c fdt_relocated_(fdt); fdt 131 arch/mips/mti-malta/malta-dtshim.c static void __init append_memory(void *fdt, int root_off) fdt 144 arch/mips/mti-malta/malta-dtshim.c mem_off = fdt_path_offset(fdt, "/memory"); fdt 206 arch/mips/mti-malta/malta-dtshim.c mem_off = fdt_add_subnode(fdt, root_off, "memory"); fdt 210 arch/mips/mti-malta/malta-dtshim.c err = fdt_setprop_string(fdt, mem_off, "device_type", "memory"); fdt 215 arch/mips/mti-malta/malta-dtshim.c err = fdt_setprop(fdt, mem_off, "reg", mem_array, fdt 221 arch/mips/mti-malta/malta-dtshim.c err = fdt_setprop(fdt, mem_off, "linux,usable-memory", mem_array, fdt 227 arch/mips/mti-malta/malta-dtshim.c static void __init remove_gic(void *fdt) fdt 254 arch/mips/mti-malta/malta-dtshim.c gic_off = fdt_node_offset_by_compatible(fdt, -1, "mti,gic"); fdt 261 arch/mips/mti-malta/malta-dtshim.c err = fdt_nop_node(fdt, gic_off); fdt 265 arch/mips/mti-malta/malta-dtshim.c i8259_off = fdt_node_offset_by_compatible(fdt, -1, "intel,i8259"); fdt 272 arch/mips/mti-malta/malta-dtshim.c cpu_off = fdt_node_offset_by_compatible(fdt, -1, fdt 280 arch/mips/mti-malta/malta-dtshim.c cpu_phandle = fdt_get_phandle(fdt, cpu_off); fdt 286 arch/mips/mti-malta/malta-dtshim.c err = fdt_setprop_u32(fdt, i8259_off, "interrupt-parent", cpu_phandle); fdt 293 arch/mips/mti-malta/malta-dtshim.c err = fdt_setprop_u32(fdt, i8259_off, "interrupts", 2); fdt 301 arch/mips/mti-malta/malta-dtshim.c void __init *malta_dt_shim(void *fdt) fdt 306 arch/mips/mti-malta/malta-dtshim.c if (fdt_check_header(fdt)) fdt 309 arch/mips/mti-malta/malta-dtshim.c err = fdt_open_into(fdt, fdt_buf, sizeof(fdt_buf)); fdt 323 arch/mips/mti-malta/malta-dtshim.c return fdt; fdt 216 arch/mips/mti-malta/malta-setup.c void *fdt = plat_get_fdt(); fdt 218 arch/mips/mti-malta/malta-setup.c fdt = malta_dt_shim(fdt); fdt 219 arch/mips/mti-malta/malta-setup.c __dt_setup_arch(fdt); fdt 216 arch/openrisc/kernel/setup.c void __init or32_early_setup(void *fdt) fdt 218 arch/openrisc/kernel/setup.c if (fdt) fdt 219 arch/openrisc/kernel/setup.c pr_info("FDT at %p\n", fdt); fdt 221 arch/openrisc/kernel/setup.c fdt = __dtb_start; fdt 222 arch/openrisc/kernel/setup.c pr_info("Compiled-in FDT at %p\n", fdt); fdt 224 arch/openrisc/kernel/setup.c early_init_devtree(fdt); fdt 40 arch/powerpc/boot/libfdt-wrapper.c static void *fdt; fdt 47 arch/powerpc/boot/libfdt-wrapper.c int size = fdt_totalsize(fdt); fdt 54 arch/powerpc/boot/libfdt-wrapper.c rc = fdt_open_into(fdt, buf, size); fdt 59 arch/powerpc/boot/libfdt-wrapper.c fdt = buf; fdt 64 arch/powerpc/boot/libfdt-wrapper.c return offset_devp(fdt_path_offset(fdt, path)); fdt 73 arch/powerpc/boot/libfdt-wrapper.c p = fdt_getprop(fdt, devp_offset(devp), name, &len); fdt 85 arch/powerpc/boot/libfdt-wrapper.c rc = fdt_setprop(fdt, devp_offset(devp), name, buf, len); fdt 88 arch/powerpc/boot/libfdt-wrapper.c rc = fdt_setprop(fdt, devp_offset(devp), name, buf, len); fdt 96 arch/powerpc/boot/libfdt-wrapper.c return fdt_del_node(fdt, devp_offset(devp)); fdt 101 arch/powerpc/boot/libfdt-wrapper.c return offset_devp(fdt_parent_offset(fdt, devp_offset(devp))); fdt 108 arch/powerpc/boot/libfdt-wrapper.c offset = fdt_add_subnode(fdt, devp_offset(devp), name); fdt 111 arch/powerpc/boot/libfdt-wrapper.c offset = fdt_add_subnode(fdt, devp_offset(devp), name); fdt 122 arch/powerpc/boot/libfdt-wrapper.c int offset = fdt_node_offset_by_prop_value(fdt, devp_offset_find(prev), fdt 130 arch/powerpc/boot/libfdt-wrapper.c int offset = fdt_node_offset_by_compatible(fdt, devp_offset_find(prev), fdt 139 arch/powerpc/boot/libfdt-wrapper.c rc = fdt_get_path(fdt, devp_offset(devp), buf, len); fdt 149 arch/powerpc/boot/libfdt-wrapper.c rc = fdt_pack(fdt); fdt 153 arch/powerpc/boot/libfdt-wrapper.c return (unsigned long)fdt; fdt 173 arch/powerpc/boot/libfdt-wrapper.c fdt = blob; fdt 174 arch/powerpc/boot/libfdt-wrapper.c bufsize = fdt_totalsize(fdt) + EXPAND_GRANULARITY; fdt 179 arch/powerpc/boot/libfdt-wrapper.c err = fdt_open_into(fdt, buf, bufsize); fdt 184 arch/powerpc/boot/libfdt-wrapper.c fdt = buf; fdt 16 arch/powerpc/include/asm/dt_cpu_ftrs.h bool dt_cpu_ftrs_init(void *fdt); fdt 20 arch/powerpc/include/asm/dt_cpu_ftrs.h static inline bool dt_cpu_ftrs_init(void *fdt) { return false; } fdt 11 arch/powerpc/include/asm/ima.h void remove_ima_buffer(void *fdt, int chosen_node); fdt 13 arch/powerpc/include/asm/ima.h static inline void remove_ima_buffer(void *fdt, int chosen_node) {} fdt 20 arch/powerpc/include/asm/ima.h int setup_ima_buffer(const struct kimage *image, void *fdt, int chosen_node); fdt 22 arch/powerpc/include/asm/ima.h static inline int setup_ima_buffer(const struct kimage *image, void *fdt, fdt 25 arch/powerpc/include/asm/ima.h remove_ima_buffer(fdt, chosen_node); fdt 113 arch/powerpc/include/asm/kexec.h const void *fdt, unsigned long kernel_load_addr, fdt 115 arch/powerpc/include/asm/kexec.h int setup_new_fdt(const struct kimage *image, void *fdt, fdt 118 arch/powerpc/include/asm/kexec.h int delete_fdt_mem_rsv(void *fdt, unsigned long start, unsigned long size); fdt 65 arch/powerpc/include/asm/pnv-pci.h void *fdt; fdt 810 arch/powerpc/kernel/dt_cpu_ftrs.c bool __init dt_cpu_ftrs_init(void *fdt) fdt 815 arch/powerpc/kernel/dt_cpu_ftrs.c if (!early_init_dt_verify(fdt)) fdt 109 arch/powerpc/kernel/ima_kexec.c void remove_ima_buffer(void *fdt, int chosen_node) fdt 116 arch/powerpc/kernel/ima_kexec.c prop = fdt_getprop(fdt, chosen_node, "linux,ima-kexec-buffer", &len); fdt 121 arch/powerpc/kernel/ima_kexec.c fdt_delprop(fdt, chosen_node, "linux,ima-kexec-buffer"); fdt 125 arch/powerpc/kernel/ima_kexec.c ret = delete_fdt_mem_rsv(fdt, addr, size); fdt 177 arch/powerpc/kernel/ima_kexec.c int setup_ima_buffer(const struct kimage *image, void *fdt, int chosen_node) fdt 182 arch/powerpc/kernel/ima_kexec.c remove_ima_buffer(fdt, chosen_node); fdt 204 arch/powerpc/kernel/ima_kexec.c ret = fdt_setprop(fdt, chosen_node, "linux,ima-kexec-buffer", value, fdt 209 arch/powerpc/kernel/ima_kexec.c ret = fdt_add_mem_rsv(fdt, image->arch.ima_buffer_addr, fdt 35 arch/powerpc/kernel/kexec_elf_64.c void *fdt; fdt 78 arch/powerpc/kernel/kexec_elf_64.c fdt = kmalloc(fdt_size, GFP_KERNEL); fdt 79 arch/powerpc/kernel/kexec_elf_64.c if (!fdt) { fdt 84 arch/powerpc/kernel/kexec_elf_64.c ret = fdt_open_into(initial_boot_params, fdt, fdt_size); fdt 91 arch/powerpc/kernel/kexec_elf_64.c ret = setup_new_fdt(image, fdt, initrd_load_addr, initrd_len, cmdline); fdt 95 arch/powerpc/kernel/kexec_elf_64.c fdt_pack(fdt); fdt 97 arch/powerpc/kernel/kexec_elf_64.c kbuf.buffer = fdt; fdt 110 arch/powerpc/kernel/kexec_elf_64.c ret = setup_purgatory(image, slave_code, fdt, kernel_load_addr, fdt 119 arch/powerpc/kernel/kexec_elf_64.c return ret ? ERR_PTR(ret) : fdt; fdt 51 arch/powerpc/kernel/machine_kexec_file_64.c const void *fdt, unsigned long kernel_load_addr, fdt 95 arch/powerpc/kernel/machine_kexec_file_64.c int delete_fdt_mem_rsv(void *fdt, unsigned long start, unsigned long size) fdt 97 arch/powerpc/kernel/machine_kexec_file_64.c int i, ret, num_rsvs = fdt_num_mem_rsv(fdt); fdt 102 arch/powerpc/kernel/machine_kexec_file_64.c ret = fdt_get_mem_rsv(fdt, i, &rsv_start, &rsv_size); fdt 109 arch/powerpc/kernel/machine_kexec_file_64.c ret = fdt_del_mem_rsv(fdt, i); fdt 133 arch/powerpc/kernel/machine_kexec_file_64.c int setup_new_fdt(const struct kimage *image, void *fdt, fdt 141 arch/powerpc/kernel/machine_kexec_file_64.c ret = delete_fdt_mem_rsv(fdt, __pa(initial_boot_params), fdt 148 arch/powerpc/kernel/machine_kexec_file_64.c chosen_node = fdt_path_offset(fdt, "/chosen"); fdt 150 arch/powerpc/kernel/machine_kexec_file_64.c chosen_node = fdt_add_subnode(fdt, fdt_path_offset(fdt, "/"), fdt 162 arch/powerpc/kernel/machine_kexec_file_64.c prop = fdt_getprop(fdt, chosen_node, "linux,initrd-start", NULL); fdt 168 arch/powerpc/kernel/machine_kexec_file_64.c prop = fdt_getprop(fdt, chosen_node, "linux,initrd-end", NULL); fdt 180 arch/powerpc/kernel/machine_kexec_file_64.c ret = delete_fdt_mem_rsv(fdt, tmp_start, tmp_size); fdt 182 arch/powerpc/kernel/machine_kexec_file_64.c ret = delete_fdt_mem_rsv(fdt, tmp_start, fdt 191 arch/powerpc/kernel/machine_kexec_file_64.c ret = fdt_delprop(fdt, chosen_node, fdt 198 arch/powerpc/kernel/machine_kexec_file_64.c ret = fdt_delprop(fdt, chosen_node, "linux,initrd-end"); fdt 207 arch/powerpc/kernel/machine_kexec_file_64.c ret = fdt_setprop_u64(fdt, chosen_node, fdt 214 arch/powerpc/kernel/machine_kexec_file_64.c ret = fdt_setprop_u64(fdt, chosen_node, "linux,initrd-end", fdt 219 arch/powerpc/kernel/machine_kexec_file_64.c ret = fdt_add_mem_rsv(fdt, initrd_load_addr, initrd_len); fdt 228 arch/powerpc/kernel/machine_kexec_file_64.c ret = fdt_setprop_string(fdt, chosen_node, "bootargs", cmdline); fdt 232 arch/powerpc/kernel/machine_kexec_file_64.c ret = fdt_delprop(fdt, chosen_node, "bootargs"); fdt 239 arch/powerpc/kernel/machine_kexec_file_64.c ret = setup_ima_buffer(image, fdt, chosen_node); fdt 245 arch/powerpc/kernel/machine_kexec_file_64.c ret = fdt_setprop(fdt, chosen_node, "linux,booted-from-kexec", NULL, 0); fdt 3231 arch/powerpc/kernel/prom_init.c static int enter_secure_mode(unsigned long kbase, unsigned long fdt) fdt 3235 arch/powerpc/kernel/prom_init.c register unsigned long r5 asm("r5") = fdt; fdt 3245 arch/powerpc/kernel/prom_init.c static void setup_secure_guest(unsigned long kbase, unsigned long fdt) fdt 3263 arch/powerpc/kernel/prom_init.c ret = enter_secure_mode(kbase, fdt); fdt 3275 arch/powerpc/kernel/prom_init.c static void setup_secure_guest(unsigned long kbase, unsigned long fdt) fdt 292 drivers/dma/bestcomm/bestcomm.c bcom_eng->fdt = bcom_sram_alloc(fdt_size, BCOM_FDT_ALIGN, &fdt_pa); fdt 294 drivers/dma/bestcomm/bestcomm.c if (!bcom_eng->tdt || !bcom_eng->ctx || !bcom_eng->var || !bcom_eng->fdt) { fdt 300 drivers/dma/bestcomm/bestcomm.c bcom_sram_free(bcom_eng->fdt); fdt 308 drivers/dma/bestcomm/bestcomm.c memset(bcom_eng->fdt, 0x00, fdt_size); fdt 311 drivers/dma/bestcomm/bestcomm.c memcpy(&bcom_eng->fdt[48], fdt_ops, sizeof(fdt_ops)); fdt 321 drivers/dma/bestcomm/bestcomm.c bcom_eng->tdt[task].fdt = fdt_pa; fdt 360 drivers/dma/bestcomm/bestcomm.c bcom_sram_free(bcom_eng->fdt); fdt 72 drivers/firmware/efi/libstub/efistub.h #define fdt_setprop_inplace_var(fdt, node_offset, name, var) \ fdt 73 drivers/firmware/efi/libstub/efistub.h fdt_setprop_inplace((fdt), (node_offset), (name), &(var), sizeof(var)) fdt 77 drivers/firmware/efi/libstub/efistub.h #define fdt_setprop_var(fdt, node_offset, name, var) \ fdt 78 drivers/firmware/efi/libstub/efistub.h fdt_setprop((fdt), (node_offset), (name), &(var), sizeof(var)) fdt 19 drivers/firmware/efi/libstub/fdt.c static void fdt_update_cell_size(efi_system_table_t *sys_table, void *fdt) fdt 23 drivers/firmware/efi/libstub/fdt.c offset = fdt_path_offset(fdt, "/"); fdt 26 drivers/firmware/efi/libstub/fdt.c fdt_setprop_u32(fdt, offset, "#address-cells", EFI_DT_ADDR_CELLS_DEFAULT); fdt 27 drivers/firmware/efi/libstub/fdt.c fdt_setprop_u32(fdt, offset, "#size-cells", EFI_DT_SIZE_CELLS_DEFAULT); fdt 32 drivers/firmware/efi/libstub/fdt.c void *fdt, int new_fdt_size, char *cmdline_ptr, fdt 57 drivers/firmware/efi/libstub/fdt.c status = fdt_open_into(orig_fdt, fdt, new_fdt_size); fdt 59 drivers/firmware/efi/libstub/fdt.c status = fdt_create_empty_tree(fdt, new_fdt_size); fdt 65 drivers/firmware/efi/libstub/fdt.c fdt_update_cell_size(sys_table, fdt); fdt 76 drivers/firmware/efi/libstub/fdt.c num_rsv = fdt_num_mem_rsv(fdt); fdt 78 drivers/firmware/efi/libstub/fdt.c fdt_del_mem_rsv(fdt, num_rsv); fdt 80 drivers/firmware/efi/libstub/fdt.c node = fdt_subnode_offset(fdt, 0, "chosen"); fdt 82 drivers/firmware/efi/libstub/fdt.c node = fdt_add_subnode(fdt, 0, "chosen"); fdt 91 drivers/firmware/efi/libstub/fdt.c status = fdt_setprop(fdt, node, "bootargs", cmdline_ptr, fdt 102 drivers/firmware/efi/libstub/fdt.c status = fdt_setprop_var(fdt, node, "linux,initrd-start", initrd_image_start); fdt 107 drivers/firmware/efi/libstub/fdt.c status = fdt_setprop_var(fdt, node, "linux,initrd-end", initrd_image_end); fdt 113 drivers/firmware/efi/libstub/fdt.c node = fdt_subnode_offset(fdt, 0, "chosen"); fdt 116 drivers/firmware/efi/libstub/fdt.c status = fdt_setprop_var(fdt, node, "linux,uefi-system-table", fdt_val64); fdt 122 drivers/firmware/efi/libstub/fdt.c status = fdt_setprop_var(fdt, node, "linux,uefi-mmap-start", fdt_val64); fdt 128 drivers/firmware/efi/libstub/fdt.c status = fdt_setprop_var(fdt, node, "linux,uefi-mmap-size", fdt_val32); fdt 132 drivers/firmware/efi/libstub/fdt.c status = fdt_setprop_var(fdt, node, "linux,uefi-mmap-desc-size", fdt_val32); fdt 136 drivers/firmware/efi/libstub/fdt.c status = fdt_setprop_var(fdt, node, "linux,uefi-mmap-desc-ver", fdt_val32); fdt 146 drivers/firmware/efi/libstub/fdt.c status = fdt_setprop_var(fdt, node, "kaslr-seed", fdt_val64); fdt 155 drivers/firmware/efi/libstub/fdt.c fdt_pack(fdt); fdt 166 drivers/firmware/efi/libstub/fdt.c static efi_status_t update_fdt_memmap(void *fdt, struct efi_boot_memmap *map) fdt 168 drivers/firmware/efi/libstub/fdt.c int node = fdt_path_offset(fdt, "/chosen"); fdt 178 drivers/firmware/efi/libstub/fdt.c err = fdt_setprop_inplace_var(fdt, node, "linux,uefi-mmap-start", fdt_val64); fdt 184 drivers/firmware/efi/libstub/fdt.c err = fdt_setprop_inplace_var(fdt, node, "linux,uefi-mmap-size", fdt_val32); fdt 190 drivers/firmware/efi/libstub/fdt.c err = fdt_setprop_inplace_var(fdt, node, "linux,uefi-mmap-desc-size", fdt_val32); fdt 196 drivers/firmware/efi/libstub/fdt.c err = fdt_setprop_inplace_var(fdt, node, "linux,uefi-mmap-desc-ver", fdt_val32); fdt 366 drivers/firmware/efi/libstub/fdt.c void *fdt; fdt 368 drivers/firmware/efi/libstub/fdt.c fdt = get_efi_config_table(sys_table, DEVICE_TREE_GUID); fdt 370 drivers/firmware/efi/libstub/fdt.c if (!fdt) fdt 373 drivers/firmware/efi/libstub/fdt.c if (fdt_check_header(fdt) != 0) { fdt 377 drivers/firmware/efi/libstub/fdt.c *fdt_size = fdt_totalsize(fdt); fdt 378 drivers/firmware/efi/libstub/fdt.c return fdt; fdt 525 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h struct qlcnic_fdt fdt; fdt 2724 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c cmd = adapter->ahw->fdt.write_statusreg_cmd; fdt 2728 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c adapter->ahw->fdt.write_enable_bits); fdt 2744 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c adapter->ahw->fdt.write_statusreg_cmd)); fdt 2746 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c adapter->ahw->fdt.write_disable_bits); fdt 2796 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c memset(&adapter->ahw->fdt, 0, fdt_size); fdt 2798 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c (u8 *)&adapter->ahw->fdt, fdt 2800 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c qlcnic_swap32_buffer((u32 *)&adapter->ahw->fdt, count); fdt 2814 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { fdt 2839 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c cmd = QLC_83XX_FLASH_FDT_ERASE_DEF_SIG | adapter->ahw->fdt.erase_cmd; fdt 2840 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) fdt 2856 drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { fdt 1006 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { fdt 1021 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { fdt 1039 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { fdt 1074 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { fdt 1086 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { fdt 1103 drivers/net/ethernet/qlogic/qlcnic/qlcnic_sysfs.c if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { fdt 914 drivers/of/fdt.c const void *fdt = initial_boot_params; fdt 916 drivers/of/fdt.c offset = fdt_path_offset(fdt, "/chosen"); fdt 918 drivers/of/fdt.c offset = fdt_path_offset(fdt, "/chosen@0"); fdt 922 drivers/of/fdt.c p = fdt_getprop(fdt, offset, "stdout-path", &l); fdt 924 drivers/of/fdt.c p = fdt_getprop(fdt, offset, "linux,stdout-path", &l); fdt 934 drivers/of/fdt.c offset = fdt_path_offset_namelen(fdt, p, l); fdt 947 drivers/of/fdt.c if (fdt_node_check_compatible(fdt, offset, match->compatible)) fdt 1280 drivers/of/fdt.c __BIN_ATTR(fdt, S_IRUSR, of_fdt_raw_read, NULL, 0); fdt 70 drivers/of/overlay.c const void *fdt; fdt 733 drivers/of/overlay.c const void *fdt, struct device_node *tree) fdt 754 drivers/of/overlay.c ovcs->fdt = fdt; fdt 868 drivers/of/overlay.c kfree(ovcs->fdt); fdt 915 drivers/of/overlay.c static int of_overlay_apply(const void *fdt, struct device_node *tree, fdt 928 drivers/of/overlay.c kfree(fdt); fdt 936 drivers/of/overlay.c kfree(fdt); fdt 949 drivers/of/overlay.c ret = init_overlay_changeset(ovcs, fdt, tree); fdt 1000 drivers/of/overlay.c kfree(fdt); fdt 177 drivers/pci/hotplug/pnv_php.c if (php_slot->fdt) fdt 181 drivers/pci/hotplug/pnv_php.c if (php_slot->fdt) { fdt 183 drivers/pci/hotplug/pnv_php.c kfree(php_slot->fdt); fdt 186 drivers/pci/hotplug/pnv_php.c php_slot->fdt = NULL; fdt 259 drivers/pci/hotplug/pnv_php.c void *fdt, *fdt1, *dt; fdt 278 drivers/pci/hotplug/pnv_php.c fdt = kmemdup(fdt1, fdt_totalsize(fdt1), GFP_KERNEL); fdt 279 drivers/pci/hotplug/pnv_php.c if (!fdt) { fdt 285 drivers/pci/hotplug/pnv_php.c dt = of_fdt_unflatten_tree(fdt, php_slot->dn, NULL); fdt 312 drivers/pci/hotplug/pnv_php.c php_slot->fdt = fdt; fdt 323 drivers/pci/hotplug/pnv_php.c kfree(fdt); fdt 953 drivers/scsi/qla2xxx/qla_sup.c struct qla_fdt_layout *fdt = (struct qla_fdt_layout *)req->ring; fdt 957 drivers/scsi/qla2xxx/qla_sup.c ha->isp_ops->read_optrom(vha, fdt, ha->flt_region_fdt << 2, fdt 961 drivers/scsi/qla2xxx/qla_sup.c if (memcmp(fdt->sig, "QLID", 4)) fdt 964 drivers/scsi/qla2xxx/qla_sup.c for (cnt = 0, chksum = 0; cnt < sizeof(*fdt) >> 1; cnt++, wptr++) fdt 970 drivers/scsi/qla2xxx/qla_sup.c fdt->sig[0], le16_to_cpu(fdt->version)); fdt 972 drivers/scsi/qla2xxx/qla_sup.c fdt, sizeof(*fdt)); fdt 977 drivers/scsi/qla2xxx/qla_sup.c mid = le16_to_cpu(fdt->man_id); fdt 978 drivers/scsi/qla2xxx/qla_sup.c fid = le16_to_cpu(fdt->id); fdt 979 drivers/scsi/qla2xxx/qla_sup.c ha->fdt_wrt_disable = fdt->wrt_disable_bits; fdt 980 drivers/scsi/qla2xxx/qla_sup.c ha->fdt_wrt_enable = fdt->wrt_enable_bits; fdt 981 drivers/scsi/qla2xxx/qla_sup.c ha->fdt_wrt_sts_reg_cmd = fdt->wrt_sts_reg_cmd; fdt 983 drivers/scsi/qla2xxx/qla_sup.c ha->fdt_erase_cmd = fdt->erase_cmd; fdt 986 drivers/scsi/qla2xxx/qla_sup.c flash_conf_addr(ha, 0x0300 | fdt->erase_cmd); fdt 987 drivers/scsi/qla2xxx/qla_sup.c ha->fdt_block_size = le32_to_cpu(fdt->block_size); fdt 988 drivers/scsi/qla2xxx/qla_sup.c if (fdt->unprotect_sec_cmd) { fdt 990 drivers/scsi/qla2xxx/qla_sup.c fdt->unprotect_sec_cmd); fdt 991 drivers/scsi/qla2xxx/qla_sup.c ha->fdt_protect_sec_cmd = fdt->protect_sec_cmd ? fdt 992 drivers/scsi/qla2xxx/qla_sup.c flash_conf_addr(ha, 0x0300 | fdt->protect_sec_cmd) : fdt 3838 drivers/scsi/qla4xxx/ql4_nx.c struct qla_fdt_layout *fdt; fdt 3847 drivers/scsi/qla4xxx/ql4_nx.c fdt = (struct qla_fdt_layout *)ha->request_ring; fdt 3854 drivers/scsi/qla4xxx/ql4_nx.c if (fdt->sig[0] != 'Q' || fdt->sig[1] != 'L' || fdt->sig[2] != 'I' || fdt 3855 drivers/scsi/qla4xxx/ql4_nx.c fdt->sig[3] != 'D') fdt 3864 drivers/scsi/qla4xxx/ql4_nx.c "checksum=0x%x id=%c version=0x%x.\n", chksum, fdt->sig[0], fdt 3865 drivers/scsi/qla4xxx/ql4_nx.c le16_to_cpu(fdt->version))); fdt 3870 drivers/scsi/qla4xxx/ql4_nx.c mid = le16_to_cpu(fdt->man_id); fdt 3871 drivers/scsi/qla4xxx/ql4_nx.c fid = le16_to_cpu(fdt->id); fdt 3872 drivers/scsi/qla4xxx/ql4_nx.c hw->fdt_wrt_disable = fdt->wrt_disable_bits; fdt 3873 drivers/scsi/qla4xxx/ql4_nx.c hw->fdt_erase_cmd = flash_conf_addr(hw, 0x0300 | fdt->erase_cmd); fdt 3874 drivers/scsi/qla4xxx/ql4_nx.c hw->fdt_block_size = le32_to_cpu(fdt->block_size); fdt 3876 drivers/scsi/qla4xxx/ql4_nx.c if (fdt->unprotect_sec_cmd) { fdt 3878 drivers/scsi/qla4xxx/ql4_nx.c fdt->unprotect_sec_cmd); fdt 3879 drivers/scsi/qla4xxx/ql4_nx.c hw->fdt_protect_sec_cmd = fdt->protect_sec_cmd ? fdt 3880 drivers/scsi/qla4xxx/ql4_nx.c flash_conf_addr(hw, 0x0300 | fdt->protect_sec_cmd) : fdt 75 drivers/tty/serial/8250/8250_ingenic.c void *fdt = initial_boot_params; fdt 79 drivers/tty/serial/8250/8250_ingenic.c offset = fdt_path_offset(fdt, "/ext"); fdt 83 drivers/tty/serial/8250/8250_ingenic.c prop = fdt_getprop(fdt, offset, "clock-frequency", NULL); fdt 1791 fs/exec.c if (close_on_exec(fd, rcu_dereference_raw(current->files->fdt))) fdt 29 fs/file.c static void __free_fdtable(struct fdtable *fdt) fdt 31 fs/file.c kvfree(fdt->fd); fdt 32 fs/file.c kvfree(fdt->open_fds); fdt 33 fs/file.c kfree(fdt); fdt 87 fs/file.c struct fdtable *fdt; fdt 111 fs/file.c fdt = kmalloc(sizeof(struct fdtable), GFP_KERNEL_ACCOUNT); fdt 112 fs/file.c if (!fdt) fdt 114 fs/file.c fdt->max_fds = nr; fdt 118 fs/file.c fdt->fd = data; fdt 125 fs/file.c fdt->open_fds = data; fdt 127 fs/file.c fdt->close_on_exec = data; fdt 129 fs/file.c fdt->full_fds_bits = data; fdt 131 fs/file.c return fdt; fdt 134 fs/file.c kvfree(fdt->fd); fdt 136 fs/file.c kfree(fdt); fdt 177 fs/file.c rcu_assign_pointer(files->fdt, new_fdt); fdt 197 fs/file.c struct fdtable *fdt; fdt 201 fs/file.c fdt = files_fdtable(files); fdt 204 fs/file.c if (nr < fdt->max_fds) fdt 228 fs/file.c static inline void __set_close_on_exec(unsigned int fd, struct fdtable *fdt) fdt 230 fs/file.c __set_bit(fd, fdt->close_on_exec); fdt 233 fs/file.c static inline void __clear_close_on_exec(unsigned int fd, struct fdtable *fdt) fdt 235 fs/file.c if (test_bit(fd, fdt->close_on_exec)) fdt 236 fs/file.c __clear_bit(fd, fdt->close_on_exec); fdt 239 fs/file.c static inline void __set_open_fd(unsigned int fd, struct fdtable *fdt) fdt 241 fs/file.c __set_bit(fd, fdt->open_fds); fdt 243 fs/file.c if (!~fdt->open_fds[fd]) fdt 244 fs/file.c __set_bit(fd, fdt->full_fds_bits); fdt 247 fs/file.c static inline void __clear_open_fd(unsigned int fd, struct fdtable *fdt) fdt 249 fs/file.c __clear_bit(fd, fdt->open_fds); fdt 250 fs/file.c __clear_bit(fd / BITS_PER_LONG, fdt->full_fds_bits); fdt 253 fs/file.c static unsigned int count_open_files(struct fdtable *fdt) fdt 255 fs/file.c unsigned int size = fdt->max_fds; fdt 260 fs/file.c if (fdt->open_fds[--i]) fdt 358 fs/file.c rcu_assign_pointer(newf->fdt, new_fdt); fdt 375 fs/file.c struct fdtable *fdt = rcu_dereference_raw(files->fdt); fdt 381 fs/file.c if (i >= fdt->max_fds) fdt 383 fs/file.c set = fdt->open_fds[j++]; fdt 386 fs/file.c struct file * file = xchg(&fdt->fd[i], NULL); fdt 397 fs/file.c return fdt; fdt 416 fs/file.c struct fdtable *fdt = close_files(files); fdt 419 fs/file.c if (fdt != &files->fdtab) fdt 420 fs/file.c __free_fdtable(fdt); fdt 451 fs/file.c .fdt = &init_files.fdtab, fdt 463 fs/file.c static unsigned int find_next_fd(struct fdtable *fdt, unsigned int start) fdt 465 fs/file.c unsigned int maxfd = fdt->max_fds; fdt 469 fs/file.c bitbit = find_next_zero_bit(fdt->full_fds_bits, maxbit, bitbit) * BITS_PER_LONG; fdt 474 fs/file.c return find_next_zero_bit(fdt->open_fds, maxfd, start); fdt 485 fs/file.c struct fdtable *fdt; fdt 489 fs/file.c fdt = files_fdtable(files); fdt 494 fs/file.c if (fd < fdt->max_fds) fdt 495 fs/file.c fd = find_next_fd(fdt, fd); fdt 519 fs/file.c __set_open_fd(fd, fdt); fdt 521 fs/file.c __set_close_on_exec(fd, fdt); fdt 523 fs/file.c __clear_close_on_exec(fd, fdt); fdt 527 fs/file.c if (rcu_access_pointer(fdt->fd[fd]) != NULL) { fdt 529 fs/file.c rcu_assign_pointer(fdt->fd[fd], NULL); fdt 551 fs/file.c struct fdtable *fdt = files_fdtable(files); fdt 552 fs/file.c __clear_open_fd(fd, fdt); fdt 590 fs/file.c struct fdtable *fdt; fdt 597 fs/file.c fdt = files_fdtable(files); fdt 598 fs/file.c BUG_ON(fdt->fd[fd] != NULL); fdt 599 fs/file.c rcu_assign_pointer(fdt->fd[fd], file); fdt 605 fs/file.c fdt = rcu_dereference_sched(files->fdt); fdt 606 fs/file.c BUG_ON(fdt->fd[fd] != NULL); fdt 607 fs/file.c rcu_assign_pointer(fdt->fd[fd], file); fdt 624 fs/file.c struct fdtable *fdt; fdt 627 fs/file.c fdt = files_fdtable(files); fdt 628 fs/file.c if (fd >= fdt->max_fds) fdt 630 fs/file.c file = fdt->fd[fd]; fdt 633 fs/file.c rcu_assign_pointer(fdt->fd[fd], NULL); fdt 651 fs/file.c struct fdtable *fdt; fdt 654 fs/file.c fdt = files_fdtable(files); fdt 655 fs/file.c if (fd >= fdt->max_fds) fdt 657 fs/file.c file = fdt->fd[fd]; fdt 660 fs/file.c rcu_assign_pointer(fdt->fd[fd], NULL); fdt 676 fs/file.c struct fdtable *fdt; fdt 683 fs/file.c fdt = files_fdtable(files); fdt 684 fs/file.c if (fd >= fdt->max_fds) fdt 686 fs/file.c set = fdt->close_on_exec[i]; fdt 689 fs/file.c fdt->close_on_exec[i] = 0; fdt 694 fs/file.c file = fdt->fd[fd]; fdt 697 fs/file.c rcu_assign_pointer(fdt->fd[fd], NULL); fdt 821 fs/file.c struct fdtable *fdt; fdt 823 fs/file.c fdt = files_fdtable(files); fdt 825 fs/file.c __set_close_on_exec(fd, fdt); fdt 827 fs/file.c __clear_close_on_exec(fd, fdt); fdt 834 fs/file.c struct fdtable *fdt; fdt 837 fs/file.c fdt = files_fdtable(files); fdt 838 fs/file.c res = close_on_exec(fd, fdt); fdt 848 fs/file.c struct fdtable *fdt; fdt 864 fs/file.c fdt = files_fdtable(files); fdt 865 fs/file.c tofree = fdt->fd[fd]; fdt 866 fs/file.c if (!tofree && fd_is_open(fd, fdt)) fdt 869 fs/file.c rcu_assign_pointer(fdt->fd[fd], file); fdt 870 fs/file.c __set_open_fd(fd, fdt); fdt 872 fs/file.c __set_close_on_exec(fd, fdt); fdt 874 fs/file.c __clear_close_on_exec(fd, fdt); fdt 1000 fs/file.c struct fdtable *fdt; fdt 1005 fs/file.c for (fdt = files_fdtable(files); n < fdt->max_fds; n++) { fdt 1007 fs/file.c file = rcu_dereference_check_fdtable(files, fdt->fd[n]); fdt 40 fs/proc/fd.c struct fdtable *fdt = files_fdtable(files); fdt 43 fs/proc/fd.c if (close_on_exec(fd, fdt)) fdt 424 fs/select.c struct fdtable *fdt; fdt 429 fs/select.c fdt = files_fdtable(current->files); fdt 430 fs/select.c open_fds = fdt->open_fds + n; fdt 628 fs/select.c struct fdtable *fdt; fdt 638 fs/select.c fdt = files_fdtable(current->files); fdt 639 fs/select.c max_fds = fdt->max_fds; fdt 1181 fs/select.c struct fdtable *fdt; fdt 1189 fs/select.c fdt = files_fdtable(current->files); fdt 1190 fs/select.c max_fds = fdt->max_fds; fdt 35 include/linux/fdtable.h static inline bool close_on_exec(unsigned int fd, const struct fdtable *fdt) fdt 37 include/linux/fdtable.h return test_bit(fd, fdt->close_on_exec); fdt 40 include/linux/fdtable.h static inline bool fd_is_open(unsigned int fd, const struct fdtable *fdt) fdt 42 include/linux/fdtable.h return test_bit(fd, fdt->open_fds); fdt 56 include/linux/fdtable.h struct fdtable __rcu *fdt; fdt 77 include/linux/fdtable.h rcu_dereference_check_fdtable((files), (files)->fdt) fdt 84 include/linux/fdtable.h struct fdtable *fdt = rcu_dereference_raw(files->fdt); fdt 86 include/linux/fdtable.h if (fd < fdt->max_fds) { fdt 87 include/linux/fdtable.h fd = array_index_nospec(fd, fdt->max_fds); fdt 88 include/linux/fdtable.h return rcu_dereference_raw(fdt->fd[fd]); fdt 56 include/linux/fsl/bestcomm/bestcomm_priv.h u32 fdt; fdt 76 include/linux/fsl/bestcomm/bestcomm_priv.h u32 *fdt; fdt 330 include/linux/fsl/bestcomm/bestcomm_priv.h u32 *fdt = &bcom_eng->tdt[task].fdt; fdt 331 include/linux/fsl/bestcomm/bestcomm_priv.h *fdt = (*fdt & ~0xff) | pragma; fdt 313 scripts/dtc/flattree.c static void make_fdt_header(struct fdt_header *fdt, fdt 322 scripts/dtc/flattree.c memset(fdt, 0xff, sizeof(*fdt)); fdt 324 scripts/dtc/flattree.c fdt->magic = cpu_to_fdt32(FDT_MAGIC); fdt 325 scripts/dtc/flattree.c fdt->version = cpu_to_fdt32(vi->version); fdt 326 scripts/dtc/flattree.c fdt->last_comp_version = cpu_to_fdt32(vi->last_comp_version); fdt 331 scripts/dtc/flattree.c fdt->off_mem_rsvmap = cpu_to_fdt32(reserve_off); fdt 332 scripts/dtc/flattree.c fdt->off_dt_struct = cpu_to_fdt32(reserve_off + reservesize); fdt 333 scripts/dtc/flattree.c fdt->off_dt_strings = cpu_to_fdt32(reserve_off + reservesize fdt 335 scripts/dtc/flattree.c fdt->totalsize = cpu_to_fdt32(reserve_off + reservesize + dtsize + strsize); fdt 338 scripts/dtc/flattree.c fdt->boot_cpuid_phys = cpu_to_fdt32(boot_cpuid_phys); fdt 340 scripts/dtc/flattree.c fdt->size_dt_strings = cpu_to_fdt32(strsize); fdt 342 scripts/dtc/flattree.c fdt->size_dt_struct = cpu_to_fdt32(dtsize); fdt 353 scripts/dtc/flattree.c struct fdt_header fdt; fdt 369 scripts/dtc/flattree.c make_fdt_header(&fdt, vi, reservebuf.len, dtbuf.len, strbuf.len, fdt 376 scripts/dtc/flattree.c padlen = minsize - fdt32_to_cpu(fdt.totalsize); fdt 382 scripts/dtc/flattree.c fdt32_to_cpu(fdt.totalsize), minsize); fdt 390 scripts/dtc/flattree.c padlen = ALIGN(fdt32_to_cpu(fdt.totalsize) + padlen, alignsize) fdt 391 scripts/dtc/flattree.c - fdt32_to_cpu(fdt.totalsize); fdt 394 scripts/dtc/flattree.c int tsize = fdt32_to_cpu(fdt.totalsize); fdt 396 scripts/dtc/flattree.c fdt.totalsize = cpu_to_fdt32(tsize); fdt 404 scripts/dtc/flattree.c blob = data_append_data(blob, &fdt, vi->hdr_size); fdt 803 scripts/dtc/flattree.c struct fdt_header *fdt; fdt 846 scripts/dtc/flattree.c fdt = (struct fdt_header *)blob; fdt 847 scripts/dtc/flattree.c fdt->magic = cpu_to_fdt32(magic); fdt 848 scripts/dtc/flattree.c fdt->totalsize = cpu_to_fdt32(totalsize); fdt 867 scripts/dtc/flattree.c off_dt = fdt32_to_cpu(fdt->off_dt_struct); fdt 868 scripts/dtc/flattree.c off_str = fdt32_to_cpu(fdt->off_dt_strings); fdt 869 scripts/dtc/flattree.c off_mem_rsvmap = fdt32_to_cpu(fdt->off_mem_rsvmap); fdt 870 scripts/dtc/flattree.c version = fdt32_to_cpu(fdt->version); fdt 871 scripts/dtc/flattree.c boot_cpuid_phys = fdt32_to_cpu(fdt->boot_cpuid_phys); fdt 883 scripts/dtc/flattree.c uint32_t size_str = fdt32_to_cpu(fdt->size_dt_strings); fdt 892 scripts/dtc/flattree.c size_dt = fdt32_to_cpu(fdt->size_dt_struct); fdt 18 scripts/dtc/libfdt/fdt.c int fdt_ro_probe_(const void *fdt) fdt 20 scripts/dtc/libfdt/fdt.c if (fdt_magic(fdt) == FDT_MAGIC) { fdt 22 scripts/dtc/libfdt/fdt.c if (fdt_version(fdt) < FDT_FIRST_SUPPORTED_VERSION) fdt 24 scripts/dtc/libfdt/fdt.c if (fdt_last_comp_version(fdt) > FDT_LAST_SUPPORTED_VERSION) fdt 26 scripts/dtc/libfdt/fdt.c } else if (fdt_magic(fdt) == FDT_SW_MAGIC) { fdt 28 scripts/dtc/libfdt/fdt.c if (fdt_size_dt_struct(fdt) == 0) fdt 68 scripts/dtc/libfdt/fdt.c int fdt_check_header(const void *fdt) fdt 72 scripts/dtc/libfdt/fdt.c if (fdt_magic(fdt) != FDT_MAGIC) fdt 74 scripts/dtc/libfdt/fdt.c hdrsize = fdt_header_size(fdt); fdt 75 scripts/dtc/libfdt/fdt.c if ((fdt_version(fdt) < FDT_FIRST_SUPPORTED_VERSION) fdt 76 scripts/dtc/libfdt/fdt.c || (fdt_last_comp_version(fdt) > FDT_LAST_SUPPORTED_VERSION)) fdt 78 scripts/dtc/libfdt/fdt.c if (fdt_version(fdt) < fdt_last_comp_version(fdt)) fdt 81 scripts/dtc/libfdt/fdt.c if ((fdt_totalsize(fdt) < hdrsize) fdt 82 scripts/dtc/libfdt/fdt.c || (fdt_totalsize(fdt) > INT_MAX)) fdt 86 scripts/dtc/libfdt/fdt.c if (!check_off_(hdrsize, fdt_totalsize(fdt), fdt_off_mem_rsvmap(fdt))) fdt 90 scripts/dtc/libfdt/fdt.c if (fdt_version(fdt) < 17) { fdt 91 scripts/dtc/libfdt/fdt.c if (!check_off_(hdrsize, fdt_totalsize(fdt), fdt 92 scripts/dtc/libfdt/fdt.c fdt_off_dt_struct(fdt))) fdt 95 scripts/dtc/libfdt/fdt.c if (!check_block_(hdrsize, fdt_totalsize(fdt), fdt 96 scripts/dtc/libfdt/fdt.c fdt_off_dt_struct(fdt), fdt 97 scripts/dtc/libfdt/fdt.c fdt_size_dt_struct(fdt))) fdt 102 scripts/dtc/libfdt/fdt.c if (!check_block_(hdrsize, fdt_totalsize(fdt), fdt 103 scripts/dtc/libfdt/fdt.c fdt_off_dt_strings(fdt), fdt_size_dt_strings(fdt))) fdt 109 scripts/dtc/libfdt/fdt.c const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len) fdt 111 scripts/dtc/libfdt/fdt.c unsigned absoffset = offset + fdt_off_dt_struct(fdt); fdt 115 scripts/dtc/libfdt/fdt.c || (absoffset + len) > fdt_totalsize(fdt)) fdt 118 scripts/dtc/libfdt/fdt.c if (fdt_version(fdt) >= 0x11) fdt 120 scripts/dtc/libfdt/fdt.c || ((offset + len) > fdt_size_dt_struct(fdt))) fdt 123 scripts/dtc/libfdt/fdt.c return fdt_offset_ptr_(fdt, offset); fdt 126 scripts/dtc/libfdt/fdt.c uint32_t fdt_next_tag(const void *fdt, int startoffset, int *nextoffset) fdt 134 scripts/dtc/libfdt/fdt.c tagp = fdt_offset_ptr(fdt, offset, FDT_TAGSIZE); fdt 145 scripts/dtc/libfdt/fdt.c p = fdt_offset_ptr(fdt, offset++, 1); fdt 152 scripts/dtc/libfdt/fdt.c lenp = fdt_offset_ptr(fdt, offset, sizeof(*lenp)); fdt 158 scripts/dtc/libfdt/fdt.c if (fdt_version(fdt) < 0x10 && fdt32_to_cpu(*lenp) >= 8 && fdt 172 scripts/dtc/libfdt/fdt.c if (!fdt_offset_ptr(fdt, startoffset, offset - startoffset)) fdt 179 scripts/dtc/libfdt/fdt.c int fdt_check_node_offset_(const void *fdt, int offset) fdt 182 scripts/dtc/libfdt/fdt.c || (fdt_next_tag(fdt, offset, &offset) != FDT_BEGIN_NODE)) fdt 188 scripts/dtc/libfdt/fdt.c int fdt_check_prop_offset_(const void *fdt, int offset) fdt 191 scripts/dtc/libfdt/fdt.c || (fdt_next_tag(fdt, offset, &offset) != FDT_PROP)) fdt 197 scripts/dtc/libfdt/fdt.c int fdt_next_node(const void *fdt, int offset, int *depth) fdt 203 scripts/dtc/libfdt/fdt.c if ((nextoffset = fdt_check_node_offset_(fdt, offset)) < 0) fdt 208 scripts/dtc/libfdt/fdt.c tag = fdt_next_tag(fdt, offset, &nextoffset); fdt 237 scripts/dtc/libfdt/fdt.c int fdt_first_subnode(const void *fdt, int offset) fdt 241 scripts/dtc/libfdt/fdt.c offset = fdt_next_node(fdt, offset, &depth); fdt 248 scripts/dtc/libfdt/fdt.c int fdt_next_subnode(const void *fdt, int offset) fdt 257 scripts/dtc/libfdt/fdt.c offset = fdt_next_node(fdt, offset, &depth); fdt 277 scripts/dtc/libfdt/fdt.c int fdt_move(const void *fdt, void *buf, int bufsize) fdt 279 scripts/dtc/libfdt/fdt.c FDT_RO_PROBE(fdt); fdt 281 scripts/dtc/libfdt/fdt.c if (fdt_totalsize(fdt) > bufsize) fdt 284 scripts/dtc/libfdt/fdt.c memmove(buf, fdt, fdt_totalsize(fdt)); fdt 14 scripts/dtc/libfdt/fdt_addresses.c static int fdt_cells(const void *fdt, int nodeoffset, const char *name) fdt 20 scripts/dtc/libfdt/fdt_addresses.c c = fdt_getprop(fdt, nodeoffset, name, &len); fdt 34 scripts/dtc/libfdt/fdt_addresses.c int fdt_address_cells(const void *fdt, int nodeoffset) fdt 38 scripts/dtc/libfdt/fdt_addresses.c val = fdt_cells(fdt, nodeoffset, "#address-cells"); fdt 44 scripts/dtc/libfdt/fdt_addresses.c int fdt_size_cells(const void *fdt, int nodeoffset) fdt 48 scripts/dtc/libfdt/fdt_addresses.c val = fdt_cells(fdt, nodeoffset, "#size-cells"); fdt 55 scripts/dtc/libfdt/fdt_addresses.c int fdt_appendprop_addrrange(void *fdt, int parent, int nodeoffset, fdt 61 scripts/dtc/libfdt/fdt_addresses.c ret = fdt_address_cells(fdt, parent); fdt 66 scripts/dtc/libfdt/fdt_addresses.c ret = fdt_size_cells(fdt, parent); fdt 97 scripts/dtc/libfdt/fdt_addresses.c return fdt_appendprop(fdt, nodeoffset, name, data, fdt 58 scripts/dtc/libfdt/fdt_overlay.c static int overlay_get_target(const void *fdt, const void *fdto, fdt 75 scripts/dtc/libfdt/fdt_overlay.c ret = fdt_path_offset(fdt, path); fdt 79 scripts/dtc/libfdt/fdt_overlay.c ret = fdt_node_offset_by_phandle(fdt, phandle); fdt 116 scripts/dtc/libfdt/fdt_overlay.c static int overlay_phandle_add_offset(void *fdt, int node, fdt 123 scripts/dtc/libfdt/fdt_overlay.c val = fdt_getprop(fdt, node, name, &len); fdt 138 scripts/dtc/libfdt/fdt_overlay.c return fdt_setprop_inplace_u32(fdt, node, name, adj_val); fdt 367 scripts/dtc/libfdt/fdt_overlay.c static int overlay_fixup_one_phandle(void *fdt, void *fdto, fdt 382 scripts/dtc/libfdt/fdt_overlay.c symbol_path = fdt_getprop(fdt, symbols_off, label, fdt 387 scripts/dtc/libfdt/fdt_overlay.c symbol_off = fdt_path_offset(fdt, symbol_path); fdt 391 scripts/dtc/libfdt/fdt_overlay.c phandle = fdt_get_phandle(fdt, symbol_off); fdt 427 scripts/dtc/libfdt/fdt_overlay.c static int overlay_fixup_phandle(void *fdt, void *fdto, int symbols_off, fdt 482 scripts/dtc/libfdt/fdt_overlay.c ret = overlay_fixup_one_phandle(fdt, fdto, symbols_off, fdt 509 scripts/dtc/libfdt/fdt_overlay.c static int overlay_fixup_phandles(void *fdt, void *fdto) fdt 522 scripts/dtc/libfdt/fdt_overlay.c symbols_off = fdt_path_offset(fdt, "/__symbols__"); fdt 529 scripts/dtc/libfdt/fdt_overlay.c ret = overlay_fixup_phandle(fdt, fdto, symbols_off, property); fdt 556 scripts/dtc/libfdt/fdt_overlay.c static int overlay_apply_node(void *fdt, int target, fdt 575 scripts/dtc/libfdt/fdt_overlay.c ret = fdt_setprop(fdt, target, name, prop, prop_len); fdt 585 scripts/dtc/libfdt/fdt_overlay.c nnode = fdt_add_subnode(fdt, target, name); fdt 587 scripts/dtc/libfdt/fdt_overlay.c nnode = fdt_subnode_offset(fdt, target, name); fdt 595 scripts/dtc/libfdt/fdt_overlay.c ret = overlay_apply_node(fdt, nnode, fdto, subnode); fdt 618 scripts/dtc/libfdt/fdt_overlay.c static int overlay_merge(void *fdt, void *fdto) fdt 638 scripts/dtc/libfdt/fdt_overlay.c target = overlay_get_target(fdt, fdto, fragment, NULL); fdt 642 scripts/dtc/libfdt/fdt_overlay.c ret = overlay_apply_node(fdt, target, fdto, overlay); fdt 650 scripts/dtc/libfdt/fdt_overlay.c static int get_path_len(const void *fdt, int nodeoffset) fdt 655 scripts/dtc/libfdt/fdt_overlay.c FDT_RO_PROBE(fdt); fdt 658 scripts/dtc/libfdt/fdt_overlay.c name = fdt_get_name(fdt, nodeoffset, &namelen); fdt 666 scripts/dtc/libfdt/fdt_overlay.c nodeoffset = fdt_parent_offset(fdt, nodeoffset); fdt 694 scripts/dtc/libfdt/fdt_overlay.c static int overlay_symbol_update(void *fdt, void *fdto) fdt 713 scripts/dtc/libfdt/fdt_overlay.c root_sym = fdt_subnode_offset(fdt, 0, "__symbols__"); fdt 717 scripts/dtc/libfdt/fdt_overlay.c root_sym = fdt_add_subnode(fdt, 0, "__symbols__"); fdt 771 scripts/dtc/libfdt/fdt_overlay.c ret = overlay_get_target(fdt, fdto, fragment, &target_path); fdt 778 scripts/dtc/libfdt/fdt_overlay.c ret = get_path_len(fdt, target); fdt 786 scripts/dtc/libfdt/fdt_overlay.c ret = fdt_setprop_placeholder(fdt, root_sym, name, fdt 793 scripts/dtc/libfdt/fdt_overlay.c ret = overlay_get_target(fdt, fdto, fragment, &target_path); fdt 802 scripts/dtc/libfdt/fdt_overlay.c ret = fdt_get_path(fdt, target, buf, len + 1); fdt 819 scripts/dtc/libfdt/fdt_overlay.c int fdt_overlay_apply(void *fdt, void *fdto) fdt 824 scripts/dtc/libfdt/fdt_overlay.c FDT_RO_PROBE(fdt); fdt 827 scripts/dtc/libfdt/fdt_overlay.c ret = fdt_find_max_phandle(fdt, &delta); fdt 839 scripts/dtc/libfdt/fdt_overlay.c ret = overlay_fixup_phandles(fdt, fdto); fdt 843 scripts/dtc/libfdt/fdt_overlay.c ret = overlay_merge(fdt, fdto); fdt 847 scripts/dtc/libfdt/fdt_overlay.c ret = overlay_symbol_update(fdt, fdto); fdt 868 scripts/dtc/libfdt/fdt_overlay.c fdt_set_magic(fdt, ~0); fdt 13 scripts/dtc/libfdt/fdt_ro.c static int fdt_nodename_eq_(const void *fdt, int offset, fdt 17 scripts/dtc/libfdt/fdt_ro.c const char *p = fdt_get_name(fdt, offset, &olen); fdt 34 scripts/dtc/libfdt/fdt_ro.c const char *fdt_get_string(const void *fdt, int stroffset, int *lenp) fdt 36 scripts/dtc/libfdt/fdt_ro.c uint32_t absoffset = stroffset + fdt_off_dt_strings(fdt); fdt 41 scripts/dtc/libfdt/fdt_ro.c err = fdt_ro_probe_(fdt); fdt 46 scripts/dtc/libfdt/fdt_ro.c if (absoffset >= fdt_totalsize(fdt)) fdt 48 scripts/dtc/libfdt/fdt_ro.c len = fdt_totalsize(fdt) - absoffset; fdt 50 scripts/dtc/libfdt/fdt_ro.c if (fdt_magic(fdt) == FDT_MAGIC) { fdt 53 scripts/dtc/libfdt/fdt_ro.c if (fdt_version(fdt) >= 17) { fdt 54 scripts/dtc/libfdt/fdt_ro.c if (stroffset >= fdt_size_dt_strings(fdt)) fdt 56 scripts/dtc/libfdt/fdt_ro.c if ((fdt_size_dt_strings(fdt) - stroffset) < len) fdt 57 scripts/dtc/libfdt/fdt_ro.c len = fdt_size_dt_strings(fdt) - stroffset; fdt 59 scripts/dtc/libfdt/fdt_ro.c } else if (fdt_magic(fdt) == FDT_SW_MAGIC) { fdt 61 scripts/dtc/libfdt/fdt_ro.c || (stroffset < -fdt_size_dt_strings(fdt))) fdt 70 scripts/dtc/libfdt/fdt_ro.c s = (const char *)fdt + absoffset; fdt 88 scripts/dtc/libfdt/fdt_ro.c const char *fdt_string(const void *fdt, int stroffset) fdt 90 scripts/dtc/libfdt/fdt_ro.c return fdt_get_string(fdt, stroffset, NULL); fdt 93 scripts/dtc/libfdt/fdt_ro.c static int fdt_string_eq_(const void *fdt, int stroffset, fdt 97 scripts/dtc/libfdt/fdt_ro.c const char *p = fdt_get_string(fdt, stroffset, &slen); fdt 102 scripts/dtc/libfdt/fdt_ro.c int fdt_find_max_phandle(const void *fdt, uint32_t *phandle) fdt 110 scripts/dtc/libfdt/fdt_ro.c offset = fdt_next_node(fdt, offset, NULL); fdt 118 scripts/dtc/libfdt/fdt_ro.c value = fdt_get_phandle(fdt, offset); fdt 130 scripts/dtc/libfdt/fdt_ro.c int fdt_generate_phandle(const void *fdt, uint32_t *phandle) fdt 135 scripts/dtc/libfdt/fdt_ro.c err = fdt_find_max_phandle(fdt, &max); fdt 148 scripts/dtc/libfdt/fdt_ro.c static const struct fdt_reserve_entry *fdt_mem_rsv(const void *fdt, int n) fdt 151 scripts/dtc/libfdt/fdt_ro.c int absoffset = fdt_off_mem_rsvmap(fdt) + offset; fdt 153 scripts/dtc/libfdt/fdt_ro.c if (absoffset < fdt_off_mem_rsvmap(fdt)) fdt 155 scripts/dtc/libfdt/fdt_ro.c if (absoffset > fdt_totalsize(fdt) - sizeof(struct fdt_reserve_entry)) fdt 157 scripts/dtc/libfdt/fdt_ro.c return fdt_mem_rsv_(fdt, n); fdt 160 scripts/dtc/libfdt/fdt_ro.c int fdt_get_mem_rsv(const void *fdt, int n, uint64_t *address, uint64_t *size) fdt 164 scripts/dtc/libfdt/fdt_ro.c FDT_RO_PROBE(fdt); fdt 165 scripts/dtc/libfdt/fdt_ro.c re = fdt_mem_rsv(fdt, n); fdt 174 scripts/dtc/libfdt/fdt_ro.c int fdt_num_mem_rsv(const void *fdt) fdt 179 scripts/dtc/libfdt/fdt_ro.c for (i = 0; (re = fdt_mem_rsv(fdt, i)) != NULL; i++) { fdt 186 scripts/dtc/libfdt/fdt_ro.c static int nextprop_(const void *fdt, int offset) fdt 192 scripts/dtc/libfdt/fdt_ro.c tag = fdt_next_tag(fdt, offset, &nextoffset); fdt 210 scripts/dtc/libfdt/fdt_ro.c int fdt_subnode_offset_namelen(const void *fdt, int offset, fdt 215 scripts/dtc/libfdt/fdt_ro.c FDT_RO_PROBE(fdt); fdt 219 scripts/dtc/libfdt/fdt_ro.c offset = fdt_next_node(fdt, offset, &depth)) fdt 221 scripts/dtc/libfdt/fdt_ro.c && fdt_nodename_eq_(fdt, offset, name, namelen)) fdt 229 scripts/dtc/libfdt/fdt_ro.c int fdt_subnode_offset(const void *fdt, int parentoffset, fdt 232 scripts/dtc/libfdt/fdt_ro.c return fdt_subnode_offset_namelen(fdt, parentoffset, name, strlen(name)); fdt 235 scripts/dtc/libfdt/fdt_ro.c int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen) fdt 241 scripts/dtc/libfdt/fdt_ro.c FDT_RO_PROBE(fdt); fdt 250 scripts/dtc/libfdt/fdt_ro.c p = fdt_get_alias_namelen(fdt, p, q - p); fdt 253 scripts/dtc/libfdt/fdt_ro.c offset = fdt_path_offset(fdt, p); fdt 270 scripts/dtc/libfdt/fdt_ro.c offset = fdt_subnode_offset_namelen(fdt, offset, p, q-p); fdt 280 scripts/dtc/libfdt/fdt_ro.c int fdt_path_offset(const void *fdt, const char *path) fdt 282 scripts/dtc/libfdt/fdt_ro.c return fdt_path_offset_namelen(fdt, path, strlen(path)); fdt 285 scripts/dtc/libfdt/fdt_ro.c const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) fdt 287 scripts/dtc/libfdt/fdt_ro.c const struct fdt_node_header *nh = fdt_offset_ptr_(fdt, nodeoffset); fdt 291 scripts/dtc/libfdt/fdt_ro.c if (((err = fdt_ro_probe_(fdt)) != 0) fdt 292 scripts/dtc/libfdt/fdt_ro.c || ((err = fdt_check_node_offset_(fdt, nodeoffset)) < 0)) fdt 297 scripts/dtc/libfdt/fdt_ro.c if (fdt_version(fdt) < 0x10) { fdt 323 scripts/dtc/libfdt/fdt_ro.c int fdt_first_property_offset(const void *fdt, int nodeoffset) fdt 327 scripts/dtc/libfdt/fdt_ro.c if ((offset = fdt_check_node_offset_(fdt, nodeoffset)) < 0) fdt 330 scripts/dtc/libfdt/fdt_ro.c return nextprop_(fdt, offset); fdt 333 scripts/dtc/libfdt/fdt_ro.c int fdt_next_property_offset(const void *fdt, int offset) fdt 335 scripts/dtc/libfdt/fdt_ro.c if ((offset = fdt_check_prop_offset_(fdt, offset)) < 0) fdt 338 scripts/dtc/libfdt/fdt_ro.c return nextprop_(fdt, offset); fdt 341 scripts/dtc/libfdt/fdt_ro.c static const struct fdt_property *fdt_get_property_by_offset_(const void *fdt, fdt 348 scripts/dtc/libfdt/fdt_ro.c if ((err = fdt_check_prop_offset_(fdt, offset)) < 0) { fdt 354 scripts/dtc/libfdt/fdt_ro.c prop = fdt_offset_ptr_(fdt, offset); fdt 362 scripts/dtc/libfdt/fdt_ro.c const struct fdt_property *fdt_get_property_by_offset(const void *fdt, fdt 369 scripts/dtc/libfdt/fdt_ro.c if (fdt_version(fdt) < 0x10) { fdt 375 scripts/dtc/libfdt/fdt_ro.c return fdt_get_property_by_offset_(fdt, offset, lenp); fdt 378 scripts/dtc/libfdt/fdt_ro.c static const struct fdt_property *fdt_get_property_namelen_(const void *fdt, fdt 385 scripts/dtc/libfdt/fdt_ro.c for (offset = fdt_first_property_offset(fdt, offset); fdt 387 scripts/dtc/libfdt/fdt_ro.c (offset = fdt_next_property_offset(fdt, offset))) { fdt 390 scripts/dtc/libfdt/fdt_ro.c if (!(prop = fdt_get_property_by_offset_(fdt, offset, lenp))) { fdt 394 scripts/dtc/libfdt/fdt_ro.c if (fdt_string_eq_(fdt, fdt32_ld(&prop->nameoff), fdt 408 scripts/dtc/libfdt/fdt_ro.c const struct fdt_property *fdt_get_property_namelen(const void *fdt, fdt 415 scripts/dtc/libfdt/fdt_ro.c if (fdt_version(fdt) < 0x10) { fdt 421 scripts/dtc/libfdt/fdt_ro.c return fdt_get_property_namelen_(fdt, offset, name, namelen, lenp, fdt 426 scripts/dtc/libfdt/fdt_ro.c const struct fdt_property *fdt_get_property(const void *fdt, fdt 430 scripts/dtc/libfdt/fdt_ro.c return fdt_get_property_namelen(fdt, nodeoffset, name, fdt 434 scripts/dtc/libfdt/fdt_ro.c const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, fdt 440 scripts/dtc/libfdt/fdt_ro.c prop = fdt_get_property_namelen_(fdt, nodeoffset, name, namelen, lenp, fdt 446 scripts/dtc/libfdt/fdt_ro.c if (fdt_version(fdt) < 0x10 && (poffset + sizeof(*prop)) % 8 && fdt 452 scripts/dtc/libfdt/fdt_ro.c const void *fdt_getprop_by_offset(const void *fdt, int offset, fdt 457 scripts/dtc/libfdt/fdt_ro.c prop = fdt_get_property_by_offset_(fdt, offset, lenp); fdt 463 scripts/dtc/libfdt/fdt_ro.c name = fdt_get_string(fdt, fdt32_ld(&prop->nameoff), fdt 474 scripts/dtc/libfdt/fdt_ro.c if (fdt_version(fdt) < 0x10 && (offset + sizeof(*prop)) % 8 && fdt 480 scripts/dtc/libfdt/fdt_ro.c const void *fdt_getprop(const void *fdt, int nodeoffset, fdt 483 scripts/dtc/libfdt/fdt_ro.c return fdt_getprop_namelen(fdt, nodeoffset, name, strlen(name), lenp); fdt 486 scripts/dtc/libfdt/fdt_ro.c uint32_t fdt_get_phandle(const void *fdt, int nodeoffset) fdt 493 scripts/dtc/libfdt/fdt_ro.c php = fdt_getprop(fdt, nodeoffset, "phandle", &len); fdt 495 scripts/dtc/libfdt/fdt_ro.c php = fdt_getprop(fdt, nodeoffset, "linux,phandle", &len); fdt 503 scripts/dtc/libfdt/fdt_ro.c const char *fdt_get_alias_namelen(const void *fdt, fdt 508 scripts/dtc/libfdt/fdt_ro.c aliasoffset = fdt_path_offset(fdt, "/aliases"); fdt 512 scripts/dtc/libfdt/fdt_ro.c return fdt_getprop_namelen(fdt, aliasoffset, name, namelen, NULL); fdt 515 scripts/dtc/libfdt/fdt_ro.c const char *fdt_get_alias(const void *fdt, const char *name) fdt 517 scripts/dtc/libfdt/fdt_ro.c return fdt_get_alias_namelen(fdt, name, strlen(name)); fdt 520 scripts/dtc/libfdt/fdt_ro.c int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen) fdt 526 scripts/dtc/libfdt/fdt_ro.c FDT_RO_PROBE(fdt); fdt 533 scripts/dtc/libfdt/fdt_ro.c offset = fdt_next_node(fdt, offset, &depth)) { fdt 542 scripts/dtc/libfdt/fdt_ro.c name = fdt_get_name(fdt, offset, &namelen); fdt 572 scripts/dtc/libfdt/fdt_ro.c int fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset, fdt 578 scripts/dtc/libfdt/fdt_ro.c FDT_RO_PROBE(fdt); fdt 585 scripts/dtc/libfdt/fdt_ro.c offset = fdt_next_node(fdt, offset, &depth)) { fdt 608 scripts/dtc/libfdt/fdt_ro.c int fdt_node_depth(const void *fdt, int nodeoffset) fdt 613 scripts/dtc/libfdt/fdt_ro.c err = fdt_supernode_atdepth_offset(fdt, nodeoffset, 0, &nodedepth); fdt 619 scripts/dtc/libfdt/fdt_ro.c int fdt_parent_offset(const void *fdt, int nodeoffset) fdt 621 scripts/dtc/libfdt/fdt_ro.c int nodedepth = fdt_node_depth(fdt, nodeoffset); fdt 625 scripts/dtc/libfdt/fdt_ro.c return fdt_supernode_atdepth_offset(fdt, nodeoffset, fdt 629 scripts/dtc/libfdt/fdt_ro.c int fdt_node_offset_by_prop_value(const void *fdt, int startoffset, fdt 637 scripts/dtc/libfdt/fdt_ro.c FDT_RO_PROBE(fdt); fdt 644 scripts/dtc/libfdt/fdt_ro.c for (offset = fdt_next_node(fdt, startoffset, NULL); fdt 646 scripts/dtc/libfdt/fdt_ro.c offset = fdt_next_node(fdt, offset, NULL)) { fdt 647 scripts/dtc/libfdt/fdt_ro.c val = fdt_getprop(fdt, offset, propname, &len); fdt 656 scripts/dtc/libfdt/fdt_ro.c int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle) fdt 663 scripts/dtc/libfdt/fdt_ro.c FDT_RO_PROBE(fdt); fdt 671 scripts/dtc/libfdt/fdt_ro.c for (offset = fdt_next_node(fdt, -1, NULL); fdt 673 scripts/dtc/libfdt/fdt_ro.c offset = fdt_next_node(fdt, offset, NULL)) { fdt 674 scripts/dtc/libfdt/fdt_ro.c if (fdt_get_phandle(fdt, offset) == phandle) fdt 698 scripts/dtc/libfdt/fdt_ro.c int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property) fdt 703 scripts/dtc/libfdt/fdt_ro.c list = fdt_getprop(fdt, nodeoffset, property, &length); fdt 723 scripts/dtc/libfdt/fdt_ro.c int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property, fdt 729 scripts/dtc/libfdt/fdt_ro.c list = fdt_getprop(fdt, nodeoffset, property, &length); fdt 753 scripts/dtc/libfdt/fdt_ro.c const char *fdt_stringlist_get(const void *fdt, int nodeoffset, fdt 760 scripts/dtc/libfdt/fdt_ro.c list = fdt_getprop(fdt, nodeoffset, property, &length); fdt 798 scripts/dtc/libfdt/fdt_ro.c int fdt_node_check_compatible(const void *fdt, int nodeoffset, fdt 804 scripts/dtc/libfdt/fdt_ro.c prop = fdt_getprop(fdt, nodeoffset, "compatible", &len); fdt 811 scripts/dtc/libfdt/fdt_ro.c int fdt_node_offset_by_compatible(const void *fdt, int startoffset, fdt 816 scripts/dtc/libfdt/fdt_ro.c FDT_RO_PROBE(fdt); fdt 823 scripts/dtc/libfdt/fdt_ro.c for (offset = fdt_next_node(fdt, startoffset, NULL); fdt 825 scripts/dtc/libfdt/fdt_ro.c offset = fdt_next_node(fdt, offset, NULL)) { fdt 826 scripts/dtc/libfdt/fdt_ro.c err = fdt_node_check_compatible(fdt, offset, compatible); fdt 836 scripts/dtc/libfdt/fdt_ro.c int fdt_check_full(const void *fdt, size_t bufsize) fdt 848 scripts/dtc/libfdt/fdt_ro.c err = fdt_check_header(fdt); fdt 851 scripts/dtc/libfdt/fdt_ro.c if (bufsize < fdt_totalsize(fdt)) fdt 854 scripts/dtc/libfdt/fdt_ro.c num_memrsv = fdt_num_mem_rsv(fdt); fdt 860 scripts/dtc/libfdt/fdt_ro.c tag = fdt_next_tag(fdt, offset, &nextoffset); fdt 887 scripts/dtc/libfdt/fdt_ro.c prop = fdt_getprop_by_offset(fdt, offset, &propname, fdt 13 scripts/dtc/libfdt/fdt_rw.c static int fdt_blocks_misordered_(const void *fdt, fdt 16 scripts/dtc/libfdt/fdt_rw.c return (fdt_off_mem_rsvmap(fdt) < FDT_ALIGN(sizeof(struct fdt_header), 8)) fdt 17 scripts/dtc/libfdt/fdt_rw.c || (fdt_off_dt_struct(fdt) < fdt 18 scripts/dtc/libfdt/fdt_rw.c (fdt_off_mem_rsvmap(fdt) + mem_rsv_size)) fdt 19 scripts/dtc/libfdt/fdt_rw.c || (fdt_off_dt_strings(fdt) < fdt 20 scripts/dtc/libfdt/fdt_rw.c (fdt_off_dt_struct(fdt) + struct_size)) fdt 21 scripts/dtc/libfdt/fdt_rw.c || (fdt_totalsize(fdt) < fdt 22 scripts/dtc/libfdt/fdt_rw.c (fdt_off_dt_strings(fdt) + fdt_size_dt_strings(fdt))); fdt 25 scripts/dtc/libfdt/fdt_rw.c static int fdt_rw_probe_(void *fdt) fdt 27 scripts/dtc/libfdt/fdt_rw.c FDT_RO_PROBE(fdt); fdt 29 scripts/dtc/libfdt/fdt_rw.c if (fdt_version(fdt) < 17) fdt 31 scripts/dtc/libfdt/fdt_rw.c if (fdt_blocks_misordered_(fdt, sizeof(struct fdt_reserve_entry), fdt 32 scripts/dtc/libfdt/fdt_rw.c fdt_size_dt_struct(fdt))) fdt 34 scripts/dtc/libfdt/fdt_rw.c if (fdt_version(fdt) > 17) fdt 35 scripts/dtc/libfdt/fdt_rw.c fdt_set_version(fdt, 17); fdt 40 scripts/dtc/libfdt/fdt_rw.c #define FDT_RW_PROBE(fdt) \ fdt 43 scripts/dtc/libfdt/fdt_rw.c if ((err_ = fdt_rw_probe_(fdt)) != 0) \ fdt 47 scripts/dtc/libfdt/fdt_rw.c static inline int fdt_data_size_(void *fdt) fdt 49 scripts/dtc/libfdt/fdt_rw.c return fdt_off_dt_strings(fdt) + fdt_size_dt_strings(fdt); fdt 52 scripts/dtc/libfdt/fdt_rw.c static int fdt_splice_(void *fdt, void *splicepoint, int oldlen, int newlen) fdt 55 scripts/dtc/libfdt/fdt_rw.c char *end = (char *)fdt + fdt_data_size_(fdt); fdt 59 scripts/dtc/libfdt/fdt_rw.c if ((p < (char *)fdt) || ((end - oldlen + newlen) < (char *)fdt)) fdt 61 scripts/dtc/libfdt/fdt_rw.c if ((end - oldlen + newlen) > ((char *)fdt + fdt_totalsize(fdt))) fdt 67 scripts/dtc/libfdt/fdt_rw.c static int fdt_splice_mem_rsv_(void *fdt, struct fdt_reserve_entry *p, fdt 72 scripts/dtc/libfdt/fdt_rw.c err = fdt_splice_(fdt, p, oldn * sizeof(*p), newn * sizeof(*p)); fdt 75 scripts/dtc/libfdt/fdt_rw.c fdt_set_off_dt_struct(fdt, fdt_off_dt_struct(fdt) + delta); fdt 76 scripts/dtc/libfdt/fdt_rw.c fdt_set_off_dt_strings(fdt, fdt_off_dt_strings(fdt) + delta); fdt 80 scripts/dtc/libfdt/fdt_rw.c static int fdt_splice_struct_(void *fdt, void *p, fdt 86 scripts/dtc/libfdt/fdt_rw.c if ((err = fdt_splice_(fdt, p, oldlen, newlen))) fdt 89 scripts/dtc/libfdt/fdt_rw.c fdt_set_size_dt_struct(fdt, fdt_size_dt_struct(fdt) + delta); fdt 90 scripts/dtc/libfdt/fdt_rw.c fdt_set_off_dt_strings(fdt, fdt_off_dt_strings(fdt) + delta); fdt 95 scripts/dtc/libfdt/fdt_rw.c static void fdt_del_last_string_(void *fdt, const char *s) fdt 99 scripts/dtc/libfdt/fdt_rw.c fdt_set_size_dt_strings(fdt, fdt_size_dt_strings(fdt) - newlen); fdt 102 scripts/dtc/libfdt/fdt_rw.c static int fdt_splice_string_(void *fdt, int newlen) fdt 104 scripts/dtc/libfdt/fdt_rw.c void *p = (char *)fdt fdt 105 scripts/dtc/libfdt/fdt_rw.c + fdt_off_dt_strings(fdt) + fdt_size_dt_strings(fdt); fdt 108 scripts/dtc/libfdt/fdt_rw.c if ((err = fdt_splice_(fdt, p, 0, newlen))) fdt 111 scripts/dtc/libfdt/fdt_rw.c fdt_set_size_dt_strings(fdt, fdt_size_dt_strings(fdt) + newlen); fdt 115 scripts/dtc/libfdt/fdt_rw.c static int fdt_find_add_string_(void *fdt, const char *s, int *allocated) fdt 117 scripts/dtc/libfdt/fdt_rw.c char *strtab = (char *)fdt + fdt_off_dt_strings(fdt); fdt 125 scripts/dtc/libfdt/fdt_rw.c p = fdt_find_string_(strtab, fdt_size_dt_strings(fdt), s); fdt 130 scripts/dtc/libfdt/fdt_rw.c new = strtab + fdt_size_dt_strings(fdt); fdt 131 scripts/dtc/libfdt/fdt_rw.c err = fdt_splice_string_(fdt, len); fdt 141 scripts/dtc/libfdt/fdt_rw.c int fdt_add_mem_rsv(void *fdt, uint64_t address, uint64_t size) fdt 146 scripts/dtc/libfdt/fdt_rw.c FDT_RW_PROBE(fdt); fdt 148 scripts/dtc/libfdt/fdt_rw.c re = fdt_mem_rsv_w_(fdt, fdt_num_mem_rsv(fdt)); fdt 149 scripts/dtc/libfdt/fdt_rw.c err = fdt_splice_mem_rsv_(fdt, re, 0, 1); fdt 158 scripts/dtc/libfdt/fdt_rw.c int fdt_del_mem_rsv(void *fdt, int n) fdt 160 scripts/dtc/libfdt/fdt_rw.c struct fdt_reserve_entry *re = fdt_mem_rsv_w_(fdt, n); fdt 162 scripts/dtc/libfdt/fdt_rw.c FDT_RW_PROBE(fdt); fdt 164 scripts/dtc/libfdt/fdt_rw.c if (n >= fdt_num_mem_rsv(fdt)) fdt 167 scripts/dtc/libfdt/fdt_rw.c return fdt_splice_mem_rsv_(fdt, re, 1, 0); fdt 170 scripts/dtc/libfdt/fdt_rw.c static int fdt_resize_property_(void *fdt, int nodeoffset, const char *name, fdt 176 scripts/dtc/libfdt/fdt_rw.c *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); fdt 180 scripts/dtc/libfdt/fdt_rw.c if ((err = fdt_splice_struct_(fdt, (*prop)->data, FDT_TAGALIGN(oldlen), fdt 188 scripts/dtc/libfdt/fdt_rw.c static int fdt_add_property_(void *fdt, int nodeoffset, const char *name, fdt 197 scripts/dtc/libfdt/fdt_rw.c if ((nextoffset = fdt_check_node_offset_(fdt, nodeoffset)) < 0) fdt 200 scripts/dtc/libfdt/fdt_rw.c namestroff = fdt_find_add_string_(fdt, name, &allocated); fdt 204 scripts/dtc/libfdt/fdt_rw.c *prop = fdt_offset_ptr_w_(fdt, nextoffset); fdt 207 scripts/dtc/libfdt/fdt_rw.c err = fdt_splice_struct_(fdt, *prop, 0, proplen); fdt 210 scripts/dtc/libfdt/fdt_rw.c fdt_del_last_string_(fdt, name); fdt 220 scripts/dtc/libfdt/fdt_rw.c int fdt_set_name(void *fdt, int nodeoffset, const char *name) fdt 226 scripts/dtc/libfdt/fdt_rw.c FDT_RW_PROBE(fdt); fdt 228 scripts/dtc/libfdt/fdt_rw.c namep = (char *)(uintptr_t)fdt_get_name(fdt, nodeoffset, &oldlen); fdt 234 scripts/dtc/libfdt/fdt_rw.c err = fdt_splice_struct_(fdt, namep, FDT_TAGALIGN(oldlen+1), fdt 243 scripts/dtc/libfdt/fdt_rw.c int fdt_setprop_placeholder(void *fdt, int nodeoffset, const char *name, fdt 249 scripts/dtc/libfdt/fdt_rw.c FDT_RW_PROBE(fdt); fdt 251 scripts/dtc/libfdt/fdt_rw.c err = fdt_resize_property_(fdt, nodeoffset, name, len, &prop); fdt 253 scripts/dtc/libfdt/fdt_rw.c err = fdt_add_property_(fdt, nodeoffset, name, len, &prop); fdt 261 scripts/dtc/libfdt/fdt_rw.c int fdt_setprop(void *fdt, int nodeoffset, const char *name, fdt 267 scripts/dtc/libfdt/fdt_rw.c err = fdt_setprop_placeholder(fdt, nodeoffset, name, len, &prop_data); fdt 276 scripts/dtc/libfdt/fdt_rw.c int fdt_appendprop(void *fdt, int nodeoffset, const char *name, fdt 282 scripts/dtc/libfdt/fdt_rw.c FDT_RW_PROBE(fdt); fdt 284 scripts/dtc/libfdt/fdt_rw.c prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); fdt 287 scripts/dtc/libfdt/fdt_rw.c err = fdt_splice_struct_(fdt, prop->data, fdt 295 scripts/dtc/libfdt/fdt_rw.c err = fdt_add_property_(fdt, nodeoffset, name, len, &prop); fdt 303 scripts/dtc/libfdt/fdt_rw.c int fdt_delprop(void *fdt, int nodeoffset, const char *name) fdt 308 scripts/dtc/libfdt/fdt_rw.c FDT_RW_PROBE(fdt); fdt 310 scripts/dtc/libfdt/fdt_rw.c prop = fdt_get_property_w(fdt, nodeoffset, name, &len); fdt 315 scripts/dtc/libfdt/fdt_rw.c return fdt_splice_struct_(fdt, prop, proplen, 0); fdt 318 scripts/dtc/libfdt/fdt_rw.c int fdt_add_subnode_namelen(void *fdt, int parentoffset, fdt 328 scripts/dtc/libfdt/fdt_rw.c FDT_RW_PROBE(fdt); fdt 330 scripts/dtc/libfdt/fdt_rw.c offset = fdt_subnode_offset_namelen(fdt, parentoffset, name, namelen); fdt 337 scripts/dtc/libfdt/fdt_rw.c fdt_next_tag(fdt, parentoffset, &nextoffset); /* skip the BEGIN_NODE */ fdt 340 scripts/dtc/libfdt/fdt_rw.c tag = fdt_next_tag(fdt, offset, &nextoffset); fdt 343 scripts/dtc/libfdt/fdt_rw.c nh = fdt_offset_ptr_w_(fdt, offset); fdt 346 scripts/dtc/libfdt/fdt_rw.c err = fdt_splice_struct_(fdt, nh, 0, nodelen); fdt 359 scripts/dtc/libfdt/fdt_rw.c int fdt_add_subnode(void *fdt, int parentoffset, const char *name) fdt 361 scripts/dtc/libfdt/fdt_rw.c return fdt_add_subnode_namelen(fdt, parentoffset, name, strlen(name)); fdt 364 scripts/dtc/libfdt/fdt_rw.c int fdt_del_node(void *fdt, int nodeoffset) fdt 368 scripts/dtc/libfdt/fdt_rw.c FDT_RW_PROBE(fdt); fdt 370 scripts/dtc/libfdt/fdt_rw.c endoffset = fdt_node_end_offset_(fdt, nodeoffset); fdt 374 scripts/dtc/libfdt/fdt_rw.c return fdt_splice_struct_(fdt, fdt_offset_ptr_w_(fdt, nodeoffset), fdt 400 scripts/dtc/libfdt/fdt_rw.c int fdt_open_into(const void *fdt, void *buf, int bufsize) fdt 405 scripts/dtc/libfdt/fdt_rw.c const char *fdtstart = fdt; fdt 406 scripts/dtc/libfdt/fdt_rw.c const char *fdtend = fdtstart + fdt_totalsize(fdt); fdt 409 scripts/dtc/libfdt/fdt_rw.c FDT_RO_PROBE(fdt); fdt 411 scripts/dtc/libfdt/fdt_rw.c mem_rsv_size = (fdt_num_mem_rsv(fdt)+1) fdt 414 scripts/dtc/libfdt/fdt_rw.c if (fdt_version(fdt) >= 17) { fdt 415 scripts/dtc/libfdt/fdt_rw.c struct_size = fdt_size_dt_struct(fdt); fdt 418 scripts/dtc/libfdt/fdt_rw.c while (fdt_next_tag(fdt, struct_size, &struct_size) != FDT_END) fdt 424 scripts/dtc/libfdt/fdt_rw.c if (!fdt_blocks_misordered_(fdt, mem_rsv_size, struct_size)) { fdt 426 scripts/dtc/libfdt/fdt_rw.c err = fdt_move(fdt, buf, bufsize); fdt 437 scripts/dtc/libfdt/fdt_rw.c + struct_size + fdt_size_dt_strings(fdt); fdt 452 scripts/dtc/libfdt/fdt_rw.c fdt_packblocks_(fdt, tmp, mem_rsv_size, struct_size); fdt 459 scripts/dtc/libfdt/fdt_rw.c fdt_set_boot_cpuid_phys(buf, fdt_boot_cpuid_phys(fdt)); fdt 464 scripts/dtc/libfdt/fdt_rw.c int fdt_pack(void *fdt) fdt 468 scripts/dtc/libfdt/fdt_rw.c FDT_RW_PROBE(fdt); fdt 470 scripts/dtc/libfdt/fdt_rw.c mem_rsv_size = (fdt_num_mem_rsv(fdt)+1) fdt 472 scripts/dtc/libfdt/fdt_rw.c fdt_packblocks_(fdt, fdt, mem_rsv_size, fdt_size_dt_struct(fdt)); fdt 473 scripts/dtc/libfdt/fdt_rw.c fdt_set_totalsize(fdt, fdt_data_size_(fdt)); fdt 13 scripts/dtc/libfdt/fdt_sw.c static int fdt_sw_probe_(void *fdt) fdt 15 scripts/dtc/libfdt/fdt_sw.c if (fdt_magic(fdt) == FDT_MAGIC) fdt 17 scripts/dtc/libfdt/fdt_sw.c else if (fdt_magic(fdt) != FDT_SW_MAGIC) fdt 22 scripts/dtc/libfdt/fdt_sw.c #define FDT_SW_PROBE(fdt) \ fdt 25 scripts/dtc/libfdt/fdt_sw.c if ((err = fdt_sw_probe_(fdt)) != 0) \ fdt 35 scripts/dtc/libfdt/fdt_sw.c static int fdt_sw_probe_memrsv_(void *fdt) fdt 37 scripts/dtc/libfdt/fdt_sw.c int err = fdt_sw_probe_(fdt); fdt 41 scripts/dtc/libfdt/fdt_sw.c if (fdt_off_dt_strings(fdt) != 0) fdt 46 scripts/dtc/libfdt/fdt_sw.c #define FDT_SW_PROBE_MEMRSV(fdt) \ fdt 49 scripts/dtc/libfdt/fdt_sw.c if ((err = fdt_sw_probe_memrsv_(fdt)) != 0) \ fdt 61 scripts/dtc/libfdt/fdt_sw.c static int fdt_sw_probe_struct_(void *fdt) fdt 63 scripts/dtc/libfdt/fdt_sw.c int err = fdt_sw_probe_(fdt); fdt 67 scripts/dtc/libfdt/fdt_sw.c if (fdt_off_dt_strings(fdt) != fdt_totalsize(fdt)) fdt 72 scripts/dtc/libfdt/fdt_sw.c #define FDT_SW_PROBE_STRUCT(fdt) \ fdt 75 scripts/dtc/libfdt/fdt_sw.c if ((err = fdt_sw_probe_struct_(fdt)) != 0) \ fdt 79 scripts/dtc/libfdt/fdt_sw.c static inline uint32_t sw_flags(void *fdt) fdt 82 scripts/dtc/libfdt/fdt_sw.c return fdt_last_comp_version(fdt); fdt 90 scripts/dtc/libfdt/fdt_sw.c static void *fdt_grab_space_(void *fdt, size_t len) fdt 92 scripts/dtc/libfdt/fdt_sw.c int offset = fdt_size_dt_struct(fdt); fdt 95 scripts/dtc/libfdt/fdt_sw.c spaceleft = fdt_totalsize(fdt) - fdt_off_dt_struct(fdt) fdt 96 scripts/dtc/libfdt/fdt_sw.c - fdt_size_dt_strings(fdt); fdt 101 scripts/dtc/libfdt/fdt_sw.c fdt_set_size_dt_struct(fdt, offset + len); fdt 102 scripts/dtc/libfdt/fdt_sw.c return fdt_offset_ptr_w_(fdt, offset); fdt 109 scripts/dtc/libfdt/fdt_sw.c void *fdt = buf; fdt 126 scripts/dtc/libfdt/fdt_sw.c fdt_set_magic(fdt, FDT_SW_MAGIC); fdt 127 scripts/dtc/libfdt/fdt_sw.c fdt_set_version(fdt, FDT_LAST_SUPPORTED_VERSION); fdt 128 scripts/dtc/libfdt/fdt_sw.c fdt_set_last_comp_version(fdt, flags); fdt 130 scripts/dtc/libfdt/fdt_sw.c fdt_set_totalsize(fdt, bufsize); fdt 132 scripts/dtc/libfdt/fdt_sw.c fdt_set_off_mem_rsvmap(fdt, hdrsize); fdt 133 scripts/dtc/libfdt/fdt_sw.c fdt_set_off_dt_struct(fdt, fdt_off_mem_rsvmap(fdt)); fdt 134 scripts/dtc/libfdt/fdt_sw.c fdt_set_off_dt_strings(fdt, 0); fdt 144 scripts/dtc/libfdt/fdt_sw.c int fdt_resize(void *fdt, void *buf, int bufsize) fdt 149 scripts/dtc/libfdt/fdt_sw.c FDT_SW_PROBE(fdt); fdt 151 scripts/dtc/libfdt/fdt_sw.c headsize = fdt_off_dt_struct(fdt) + fdt_size_dt_struct(fdt); fdt 152 scripts/dtc/libfdt/fdt_sw.c tailsize = fdt_size_dt_strings(fdt); fdt 154 scripts/dtc/libfdt/fdt_sw.c if ((headsize + tailsize) > fdt_totalsize(fdt)) fdt 160 scripts/dtc/libfdt/fdt_sw.c oldtail = (char *)fdt + fdt_totalsize(fdt) - tailsize; fdt 165 scripts/dtc/libfdt/fdt_sw.c if (buf <= fdt) { fdt 166 scripts/dtc/libfdt/fdt_sw.c memmove(buf, fdt, headsize); fdt 170 scripts/dtc/libfdt/fdt_sw.c memmove(buf, fdt, headsize); fdt 180 scripts/dtc/libfdt/fdt_sw.c int fdt_add_reservemap_entry(void *fdt, uint64_t addr, uint64_t size) fdt 185 scripts/dtc/libfdt/fdt_sw.c FDT_SW_PROBE_MEMRSV(fdt); fdt 187 scripts/dtc/libfdt/fdt_sw.c offset = fdt_off_dt_struct(fdt); fdt 188 scripts/dtc/libfdt/fdt_sw.c if ((offset + sizeof(*re)) > fdt_totalsize(fdt)) fdt 191 scripts/dtc/libfdt/fdt_sw.c re = (struct fdt_reserve_entry *)((char *)fdt + offset); fdt 195 scripts/dtc/libfdt/fdt_sw.c fdt_set_off_dt_struct(fdt, offset + sizeof(*re)); fdt 200 scripts/dtc/libfdt/fdt_sw.c int fdt_finish_reservemap(void *fdt) fdt 202 scripts/dtc/libfdt/fdt_sw.c int err = fdt_add_reservemap_entry(fdt, 0, 0); fdt 207 scripts/dtc/libfdt/fdt_sw.c fdt_set_off_dt_strings(fdt, fdt_totalsize(fdt)); fdt 211 scripts/dtc/libfdt/fdt_sw.c int fdt_begin_node(void *fdt, const char *name) fdt 216 scripts/dtc/libfdt/fdt_sw.c FDT_SW_PROBE_STRUCT(fdt); fdt 219 scripts/dtc/libfdt/fdt_sw.c nh = fdt_grab_space_(fdt, sizeof(*nh) + FDT_TAGALIGN(namelen)); fdt 228 scripts/dtc/libfdt/fdt_sw.c int fdt_end_node(void *fdt) fdt 232 scripts/dtc/libfdt/fdt_sw.c FDT_SW_PROBE_STRUCT(fdt); fdt 234 scripts/dtc/libfdt/fdt_sw.c en = fdt_grab_space_(fdt, FDT_TAGSIZE); fdt 242 scripts/dtc/libfdt/fdt_sw.c static int fdt_add_string_(void *fdt, const char *s) fdt 244 scripts/dtc/libfdt/fdt_sw.c char *strtab = (char *)fdt + fdt_totalsize(fdt); fdt 245 scripts/dtc/libfdt/fdt_sw.c int strtabsize = fdt_size_dt_strings(fdt); fdt 250 scripts/dtc/libfdt/fdt_sw.c struct_top = fdt_off_dt_struct(fdt) + fdt_size_dt_struct(fdt); fdt 251 scripts/dtc/libfdt/fdt_sw.c if (fdt_totalsize(fdt) + offset < struct_top) fdt 255 scripts/dtc/libfdt/fdt_sw.c fdt_set_size_dt_strings(fdt, strtabsize + len); fdt 260 scripts/dtc/libfdt/fdt_sw.c static void fdt_del_last_string_(void *fdt, const char *s) fdt 262 scripts/dtc/libfdt/fdt_sw.c int strtabsize = fdt_size_dt_strings(fdt); fdt 265 scripts/dtc/libfdt/fdt_sw.c fdt_set_size_dt_strings(fdt, strtabsize - len); fdt 268 scripts/dtc/libfdt/fdt_sw.c static int fdt_find_add_string_(void *fdt, const char *s, int *allocated) fdt 270 scripts/dtc/libfdt/fdt_sw.c char *strtab = (char *)fdt + fdt_totalsize(fdt); fdt 271 scripts/dtc/libfdt/fdt_sw.c int strtabsize = fdt_size_dt_strings(fdt); fdt 282 scripts/dtc/libfdt/fdt_sw.c return fdt_add_string_(fdt, s); fdt 285 scripts/dtc/libfdt/fdt_sw.c int fdt_property_placeholder(void *fdt, const char *name, int len, void **valp) fdt 291 scripts/dtc/libfdt/fdt_sw.c FDT_SW_PROBE_STRUCT(fdt); fdt 294 scripts/dtc/libfdt/fdt_sw.c if (sw_flags(fdt) & FDT_CREATE_FLAG_NO_NAME_DEDUP) { fdt 296 scripts/dtc/libfdt/fdt_sw.c nameoff = fdt_add_string_(fdt, name); fdt 298 scripts/dtc/libfdt/fdt_sw.c nameoff = fdt_find_add_string_(fdt, name, &allocated); fdt 303 scripts/dtc/libfdt/fdt_sw.c prop = fdt_grab_space_(fdt, sizeof(*prop) + FDT_TAGALIGN(len)); fdt 306 scripts/dtc/libfdt/fdt_sw.c fdt_del_last_string_(fdt, name); fdt 317 scripts/dtc/libfdt/fdt_sw.c int fdt_property(void *fdt, const char *name, const void *val, int len) fdt 322 scripts/dtc/libfdt/fdt_sw.c ret = fdt_property_placeholder(fdt, name, len, &ptr); fdt 329 scripts/dtc/libfdt/fdt_sw.c int fdt_finish(void *fdt) fdt 331 scripts/dtc/libfdt/fdt_sw.c char *p = (char *)fdt; fdt 337 scripts/dtc/libfdt/fdt_sw.c FDT_SW_PROBE_STRUCT(fdt); fdt 340 scripts/dtc/libfdt/fdt_sw.c end = fdt_grab_space_(fdt, sizeof(*end)); fdt 346 scripts/dtc/libfdt/fdt_sw.c oldstroffset = fdt_totalsize(fdt) - fdt_size_dt_strings(fdt); fdt 347 scripts/dtc/libfdt/fdt_sw.c newstroffset = fdt_off_dt_struct(fdt) + fdt_size_dt_struct(fdt); fdt 348 scripts/dtc/libfdt/fdt_sw.c memmove(p + newstroffset, p + oldstroffset, fdt_size_dt_strings(fdt)); fdt 349 scripts/dtc/libfdt/fdt_sw.c fdt_set_off_dt_strings(fdt, newstroffset); fdt 353 scripts/dtc/libfdt/fdt_sw.c while ((tag = fdt_next_tag(fdt, offset, &nextoffset)) != FDT_END) { fdt 356 scripts/dtc/libfdt/fdt_sw.c fdt_offset_ptr_w_(fdt, offset); fdt 360 scripts/dtc/libfdt/fdt_sw.c nameoff += fdt_size_dt_strings(fdt); fdt 369 scripts/dtc/libfdt/fdt_sw.c fdt_set_totalsize(fdt, newstroffset + fdt_size_dt_strings(fdt)); fdt 372 scripts/dtc/libfdt/fdt_sw.c fdt_set_last_comp_version(fdt, FDT_FIRST_SUPPORTED_VERSION); fdt 373 scripts/dtc/libfdt/fdt_sw.c fdt_set_magic(fdt, FDT_MAGIC); fdt 13 scripts/dtc/libfdt/fdt_wip.c int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset, fdt 21 scripts/dtc/libfdt/fdt_wip.c propval = fdt_getprop_namelen_w(fdt, nodeoffset, name, namelen, fdt 33 scripts/dtc/libfdt/fdt_wip.c int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, fdt 39 scripts/dtc/libfdt/fdt_wip.c propval = fdt_getprop(fdt, nodeoffset, name, &proplen); fdt 46 scripts/dtc/libfdt/fdt_wip.c return fdt_setprop_inplace_namelen_partial(fdt, nodeoffset, name, fdt 59 scripts/dtc/libfdt/fdt_wip.c int fdt_nop_property(void *fdt, int nodeoffset, const char *name) fdt 64 scripts/dtc/libfdt/fdt_wip.c prop = fdt_get_property_w(fdt, nodeoffset, name, &len); fdt 73 scripts/dtc/libfdt/fdt_wip.c int fdt_node_end_offset_(void *fdt, int offset) fdt 78 scripts/dtc/libfdt/fdt_wip.c offset = fdt_next_node(fdt, offset, &depth); fdt 83 scripts/dtc/libfdt/fdt_wip.c int fdt_nop_node(void *fdt, int nodeoffset) fdt 87 scripts/dtc/libfdt/fdt_wip.c endoffset = fdt_node_end_offset_(fdt, nodeoffset); fdt 91 scripts/dtc/libfdt/fdt_wip.c fdt_nop_region_(fdt_offset_ptr_w(fdt, nodeoffset, 0), fdt 111 scripts/dtc/libfdt/libfdt.h const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int checklen); fdt 113 scripts/dtc/libfdt/libfdt.h static inline void *fdt_offset_ptr_w(void *fdt, int offset, int checklen) fdt 115 scripts/dtc/libfdt/libfdt.h return (void *)(uintptr_t)fdt_offset_ptr(fdt, offset, checklen); fdt 118 scripts/dtc/libfdt/libfdt.h uint32_t fdt_next_tag(const void *fdt, int offset, int *nextoffset); fdt 179 scripts/dtc/libfdt/libfdt.h int fdt_next_node(const void *fdt, int offset, int *depth); fdt 188 scripts/dtc/libfdt/libfdt.h int fdt_first_subnode(const void *fdt, int offset); fdt 201 scripts/dtc/libfdt/libfdt.h int fdt_next_subnode(const void *fdt, int offset); fdt 226 scripts/dtc/libfdt/libfdt.h #define fdt_for_each_subnode(node, fdt, parent) \ fdt 227 scripts/dtc/libfdt/libfdt.h for (node = fdt_first_subnode(fdt, parent); \ fdt 229 scripts/dtc/libfdt/libfdt.h node = fdt_next_subnode(fdt, node)) fdt 234 scripts/dtc/libfdt/libfdt.h #define fdt_get_header(fdt, field) \ fdt 235 scripts/dtc/libfdt/libfdt.h (fdt32_ld(&((const struct fdt_header *)(fdt))->field)) fdt 236 scripts/dtc/libfdt/libfdt.h #define fdt_magic(fdt) (fdt_get_header(fdt, magic)) fdt 237 scripts/dtc/libfdt/libfdt.h #define fdt_totalsize(fdt) (fdt_get_header(fdt, totalsize)) fdt 238 scripts/dtc/libfdt/libfdt.h #define fdt_off_dt_struct(fdt) (fdt_get_header(fdt, off_dt_struct)) fdt 239 scripts/dtc/libfdt/libfdt.h #define fdt_off_dt_strings(fdt) (fdt_get_header(fdt, off_dt_strings)) fdt 240 scripts/dtc/libfdt/libfdt.h #define fdt_off_mem_rsvmap(fdt) (fdt_get_header(fdt, off_mem_rsvmap)) fdt 241 scripts/dtc/libfdt/libfdt.h #define fdt_version(fdt) (fdt_get_header(fdt, version)) fdt 242 scripts/dtc/libfdt/libfdt.h #define fdt_last_comp_version(fdt) (fdt_get_header(fdt, last_comp_version)) fdt 243 scripts/dtc/libfdt/libfdt.h #define fdt_boot_cpuid_phys(fdt) (fdt_get_header(fdt, boot_cpuid_phys)) fdt 244 scripts/dtc/libfdt/libfdt.h #define fdt_size_dt_strings(fdt) (fdt_get_header(fdt, size_dt_strings)) fdt 245 scripts/dtc/libfdt/libfdt.h #define fdt_size_dt_struct(fdt) (fdt_get_header(fdt, size_dt_struct)) fdt 248 scripts/dtc/libfdt/libfdt.h static inline void fdt_set_##name(void *fdt, uint32_t val) \ fdt 250 scripts/dtc/libfdt/libfdt.h struct fdt_header *fdth = (struct fdt_header *)fdt; \ fdt 270 scripts/dtc/libfdt/libfdt.h static inline size_t fdt_header_size(const void *fdt) fdt 272 scripts/dtc/libfdt/libfdt.h return fdt_header_size_(fdt_version(fdt)); fdt 292 scripts/dtc/libfdt/libfdt.h int fdt_check_header(const void *fdt); fdt 313 scripts/dtc/libfdt/libfdt.h int fdt_move(const void *fdt, void *buf, int bufsize); fdt 319 scripts/dtc/libfdt/libfdt.h int fdt_check_full(const void *fdt, size_t bufsize); fdt 335 scripts/dtc/libfdt/libfdt.h const char *fdt_get_string(const void *fdt, int stroffset, int *lenp); fdt 349 scripts/dtc/libfdt/libfdt.h const char *fdt_string(const void *fdt, int stroffset); fdt 363 scripts/dtc/libfdt/libfdt.h int fdt_find_max_phandle(const void *fdt, uint32_t *phandle); fdt 380 scripts/dtc/libfdt/libfdt.h static inline uint32_t fdt_get_max_phandle(const void *fdt) fdt 385 scripts/dtc/libfdt/libfdt.h err = fdt_find_max_phandle(fdt, &phandle); fdt 405 scripts/dtc/libfdt/libfdt.h int fdt_generate_phandle(const void *fdt, uint32_t *phandle); fdt 418 scripts/dtc/libfdt/libfdt.h int fdt_num_mem_rsv(const void *fdt); fdt 435 scripts/dtc/libfdt/libfdt.h int fdt_get_mem_rsv(const void *fdt, int n, uint64_t *address, uint64_t *size); fdt 450 scripts/dtc/libfdt/libfdt.h int fdt_subnode_offset_namelen(const void *fdt, int parentoffset, fdt 477 scripts/dtc/libfdt/libfdt.h int fdt_subnode_offset(const void *fdt, int parentoffset, const char *name); fdt 489 scripts/dtc/libfdt/libfdt.h int fdt_path_offset_namelen(const void *fdt, const char *path, int namelen); fdt 515 scripts/dtc/libfdt/libfdt.h int fdt_path_offset(const void *fdt, const char *path); fdt 540 scripts/dtc/libfdt/libfdt.h const char *fdt_get_name(const void *fdt, int nodeoffset, int *lenp); fdt 560 scripts/dtc/libfdt/libfdt.h int fdt_first_property_offset(const void *fdt, int nodeoffset); fdt 581 scripts/dtc/libfdt/libfdt.h int fdt_next_property_offset(const void *fdt, int offset); fdt 605 scripts/dtc/libfdt/libfdt.h #define fdt_for_each_property_offset(property, fdt, node) \ fdt 606 scripts/dtc/libfdt/libfdt.h for (property = fdt_first_property_offset(fdt, node); \ fdt 608 scripts/dtc/libfdt/libfdt.h property = fdt_next_property_offset(fdt, property)) fdt 637 scripts/dtc/libfdt/libfdt.h const struct fdt_property *fdt_get_property_by_offset(const void *fdt, fdt 653 scripts/dtc/libfdt/libfdt.h const struct fdt_property *fdt_get_property_namelen(const void *fdt, fdt 687 scripts/dtc/libfdt/libfdt.h const struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset, fdt 689 scripts/dtc/libfdt/libfdt.h static inline struct fdt_property *fdt_get_property_w(void *fdt, int nodeoffset, fdt 694 scripts/dtc/libfdt/libfdt.h fdt_get_property(fdt, nodeoffset, name, lenp); fdt 729 scripts/dtc/libfdt/libfdt.h const void *fdt_getprop_by_offset(const void *fdt, int offset, fdt 745 scripts/dtc/libfdt/libfdt.h const void *fdt_getprop_namelen(const void *fdt, int nodeoffset, fdt 747 scripts/dtc/libfdt/libfdt.h static inline void *fdt_getprop_namelen_w(void *fdt, int nodeoffset, fdt 751 scripts/dtc/libfdt/libfdt.h return (void *)(uintptr_t)fdt_getprop_namelen(fdt, nodeoffset, name, fdt 784 scripts/dtc/libfdt/libfdt.h const void *fdt_getprop(const void *fdt, int nodeoffset, fdt 786 scripts/dtc/libfdt/libfdt.h static inline void *fdt_getprop_w(void *fdt, int nodeoffset, fdt 789 scripts/dtc/libfdt/libfdt.h return (void *)(uintptr_t)fdt_getprop(fdt, nodeoffset, name, lenp); fdt 804 scripts/dtc/libfdt/libfdt.h uint32_t fdt_get_phandle(const void *fdt, int nodeoffset); fdt 816 scripts/dtc/libfdt/libfdt.h const char *fdt_get_alias_namelen(const void *fdt, fdt 832 scripts/dtc/libfdt/libfdt.h const char *fdt_get_alias(const void *fdt, const char *name); fdt 859 scripts/dtc/libfdt/libfdt.h int fdt_get_path(const void *fdt, int nodeoffset, char *buf, int buflen); fdt 891 scripts/dtc/libfdt/libfdt.h int fdt_supernode_atdepth_offset(const void *fdt, int nodeoffset, fdt 913 scripts/dtc/libfdt/libfdt.h int fdt_node_depth(const void *fdt, int nodeoffset); fdt 936 scripts/dtc/libfdt/libfdt.h int fdt_parent_offset(const void *fdt, int nodeoffset); fdt 976 scripts/dtc/libfdt/libfdt.h int fdt_node_offset_by_prop_value(const void *fdt, int startoffset, fdt 999 scripts/dtc/libfdt/libfdt.h int fdt_node_offset_by_phandle(const void *fdt, uint32_t phandle); fdt 1023 scripts/dtc/libfdt/libfdt.h int fdt_node_check_compatible(const void *fdt, int nodeoffset, fdt 1060 scripts/dtc/libfdt/libfdt.h int fdt_node_offset_by_compatible(const void *fdt, int startoffset, fdt 1087 scripts/dtc/libfdt/libfdt.h int fdt_stringlist_count(const void *fdt, int nodeoffset, const char *property); fdt 1108 scripts/dtc/libfdt/libfdt.h int fdt_stringlist_search(const void *fdt, int nodeoffset, const char *property, fdt 1135 scripts/dtc/libfdt/libfdt.h const char *fdt_stringlist_get(const void *fdt, int nodeoffset, fdt 1172 scripts/dtc/libfdt/libfdt.h int fdt_address_cells(const void *fdt, int nodeoffset); fdt 1193 scripts/dtc/libfdt/libfdt.h int fdt_size_cells(const void *fdt, int nodeoffset); fdt 1217 scripts/dtc/libfdt/libfdt.h int fdt_setprop_inplace_namelen_partial(void *fdt, int nodeoffset, fdt 1252 scripts/dtc/libfdt/libfdt.h int fdt_setprop_inplace(void *fdt, int nodeoffset, const char *name, fdt 1284 scripts/dtc/libfdt/libfdt.h static inline int fdt_setprop_inplace_u32(void *fdt, int nodeoffset, fdt 1288 scripts/dtc/libfdt/libfdt.h return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp)); fdt 1319 scripts/dtc/libfdt/libfdt.h static inline int fdt_setprop_inplace_u64(void *fdt, int nodeoffset, fdt 1323 scripts/dtc/libfdt/libfdt.h return fdt_setprop_inplace(fdt, nodeoffset, name, &tmp, sizeof(tmp)); fdt 1331 scripts/dtc/libfdt/libfdt.h static inline int fdt_setprop_inplace_cell(void *fdt, int nodeoffset, fdt 1334 scripts/dtc/libfdt/libfdt.h return fdt_setprop_inplace_u32(fdt, nodeoffset, name, val); fdt 1361 scripts/dtc/libfdt/libfdt.h int fdt_nop_property(void *fdt, int nodeoffset, const char *name); fdt 1385 scripts/dtc/libfdt/libfdt.h int fdt_nop_node(void *fdt, int nodeoffset); fdt 1430 scripts/dtc/libfdt/libfdt.h int fdt_resize(void *fdt, void *buf, int bufsize); fdt 1431 scripts/dtc/libfdt/libfdt.h int fdt_add_reservemap_entry(void *fdt, uint64_t addr, uint64_t size); fdt 1432 scripts/dtc/libfdt/libfdt.h int fdt_finish_reservemap(void *fdt); fdt 1433 scripts/dtc/libfdt/libfdt.h int fdt_begin_node(void *fdt, const char *name); fdt 1434 scripts/dtc/libfdt/libfdt.h int fdt_property(void *fdt, const char *name, const void *val, int len); fdt 1435 scripts/dtc/libfdt/libfdt.h static inline int fdt_property_u32(void *fdt, const char *name, uint32_t val) fdt 1438 scripts/dtc/libfdt/libfdt.h return fdt_property(fdt, name, &tmp, sizeof(tmp)); fdt 1440 scripts/dtc/libfdt/libfdt.h static inline int fdt_property_u64(void *fdt, const char *name, uint64_t val) fdt 1443 scripts/dtc/libfdt/libfdt.h return fdt_property(fdt, name, &tmp, sizeof(tmp)); fdt 1447 scripts/dtc/libfdt/libfdt.h static inline int fdt_property_cell(void *fdt, const char *name, uint32_t val) fdt 1449 scripts/dtc/libfdt/libfdt.h return fdt_property_u32(fdt, name, val); fdt 1466 scripts/dtc/libfdt/libfdt.h int fdt_property_placeholder(void *fdt, const char *name, int len, void **valp); fdt 1468 scripts/dtc/libfdt/libfdt.h #define fdt_property_string(fdt, name, str) \ fdt 1469 scripts/dtc/libfdt/libfdt.h fdt_property(fdt, name, str, strlen(str)+1) fdt 1470 scripts/dtc/libfdt/libfdt.h int fdt_end_node(void *fdt); fdt 1471 scripts/dtc/libfdt/libfdt.h int fdt_finish(void *fdt); fdt 1478 scripts/dtc/libfdt/libfdt.h int fdt_open_into(const void *fdt, void *buf, int bufsize); fdt 1479 scripts/dtc/libfdt/libfdt.h int fdt_pack(void *fdt); fdt 1503 scripts/dtc/libfdt/libfdt.h int fdt_add_mem_rsv(void *fdt, uint64_t address, uint64_t size); fdt 1527 scripts/dtc/libfdt/libfdt.h int fdt_del_mem_rsv(void *fdt, int n); fdt 1553 scripts/dtc/libfdt/libfdt.h int fdt_set_name(void *fdt, int nodeoffset, const char *name); fdt 1583 scripts/dtc/libfdt/libfdt.h int fdt_setprop(void *fdt, int nodeoffset, const char *name, fdt 1614 scripts/dtc/libfdt/libfdt.h int fdt_setprop_placeholder(void *fdt, int nodeoffset, const char *name, fdt 1645 scripts/dtc/libfdt/libfdt.h static inline int fdt_setprop_u32(void *fdt, int nodeoffset, const char *name, fdt 1649 scripts/dtc/libfdt/libfdt.h return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); fdt 1680 scripts/dtc/libfdt/libfdt.h static inline int fdt_setprop_u64(void *fdt, int nodeoffset, const char *name, fdt 1684 scripts/dtc/libfdt/libfdt.h return fdt_setprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); fdt 1692 scripts/dtc/libfdt/libfdt.h static inline int fdt_setprop_cell(void *fdt, int nodeoffset, const char *name, fdt 1695 scripts/dtc/libfdt/libfdt.h return fdt_setprop_u32(fdt, nodeoffset, name, val); fdt 1726 scripts/dtc/libfdt/libfdt.h #define fdt_setprop_string(fdt, nodeoffset, name, str) \ fdt 1727 scripts/dtc/libfdt/libfdt.h fdt_setprop((fdt), (nodeoffset), (name), (str), strlen(str)+1) fdt 1756 scripts/dtc/libfdt/libfdt.h #define fdt_setprop_empty(fdt, nodeoffset, name) \ fdt 1757 scripts/dtc/libfdt/libfdt.h fdt_setprop((fdt), (nodeoffset), (name), NULL, 0) fdt 1786 scripts/dtc/libfdt/libfdt.h int fdt_appendprop(void *fdt, int nodeoffset, const char *name, fdt 1817 scripts/dtc/libfdt/libfdt.h static inline int fdt_appendprop_u32(void *fdt, int nodeoffset, fdt 1821 scripts/dtc/libfdt/libfdt.h return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); fdt 1852 scripts/dtc/libfdt/libfdt.h static inline int fdt_appendprop_u64(void *fdt, int nodeoffset, fdt 1856 scripts/dtc/libfdt/libfdt.h return fdt_appendprop(fdt, nodeoffset, name, &tmp, sizeof(tmp)); fdt 1864 scripts/dtc/libfdt/libfdt.h static inline int fdt_appendprop_cell(void *fdt, int nodeoffset, fdt 1867 scripts/dtc/libfdt/libfdt.h return fdt_appendprop_u32(fdt, nodeoffset, name, val); fdt 1897 scripts/dtc/libfdt/libfdt.h #define fdt_appendprop_string(fdt, nodeoffset, name, str) \ fdt 1898 scripts/dtc/libfdt/libfdt.h fdt_appendprop((fdt), (nodeoffset), (name), (str), strlen(str)+1) fdt 1934 scripts/dtc/libfdt/libfdt.h int fdt_appendprop_addrrange(void *fdt, int parent, int nodeoffset, fdt 1959 scripts/dtc/libfdt/libfdt.h int fdt_delprop(void *fdt, int nodeoffset, const char *name); fdt 1974 scripts/dtc/libfdt/libfdt.h int fdt_add_subnode_namelen(void *fdt, int parentoffset, fdt 2009 scripts/dtc/libfdt/libfdt.h int fdt_add_subnode(void *fdt, int parentoffset, const char *name); fdt 2032 scripts/dtc/libfdt/libfdt.h int fdt_del_node(void *fdt, int nodeoffset); fdt 2063 scripts/dtc/libfdt/libfdt.h int fdt_overlay_apply(void *fdt, void *fdto); fdt 13 scripts/dtc/libfdt/libfdt_internal.h int fdt_ro_probe_(const void *fdt); fdt 14 scripts/dtc/libfdt/libfdt_internal.h #define FDT_RO_PROBE(fdt) \ fdt 17 scripts/dtc/libfdt/libfdt_internal.h if ((err_ = fdt_ro_probe_(fdt)) != 0) \ fdt 21 scripts/dtc/libfdt/libfdt_internal.h int fdt_check_node_offset_(const void *fdt, int offset); fdt 22 scripts/dtc/libfdt/libfdt_internal.h int fdt_check_prop_offset_(const void *fdt, int offset); fdt 24 scripts/dtc/libfdt/libfdt_internal.h int fdt_node_end_offset_(void *fdt, int nodeoffset); fdt 26 scripts/dtc/libfdt/libfdt_internal.h static inline const void *fdt_offset_ptr_(const void *fdt, int offset) fdt 28 scripts/dtc/libfdt/libfdt_internal.h return (const char *)fdt + fdt_off_dt_struct(fdt) + offset; fdt 31 scripts/dtc/libfdt/libfdt_internal.h static inline void *fdt_offset_ptr_w_(void *fdt, int offset) fdt 33 scripts/dtc/libfdt/libfdt_internal.h return (void *)(uintptr_t)fdt_offset_ptr_(fdt, offset); fdt 36 scripts/dtc/libfdt/libfdt_internal.h static inline const struct fdt_reserve_entry *fdt_mem_rsv_(const void *fdt, int n) fdt 40 scripts/dtc/libfdt/libfdt_internal.h ((const char *)fdt + fdt_off_mem_rsvmap(fdt)); fdt 44 scripts/dtc/libfdt/libfdt_internal.h static inline struct fdt_reserve_entry *fdt_mem_rsv_w_(void *fdt, int n) fdt 46 scripts/dtc/libfdt/libfdt_internal.h return (void *)(uintptr_t)fdt_mem_rsv_(fdt, n); fdt 514 tools/testing/selftests/bpf/test_flow_dissector.c int fdt = -1, fdr = -1, len, tx = 0, rx = 0; fdt 519 tools/testing/selftests/bpf/test_flow_dissector.c fdt = setup_tx(); fdt 529 tools/testing/selftests/bpf/test_flow_dissector.c tx += do_tx(fdt, buf, len); fdt 567 tools/testing/selftests/bpf/test_flow_dissector.c if (fdt != -1 && close(fdt)) fdt 187 tools/testing/selftests/net/ipv6_flowlabel.c int fdt, fdr; fdt 191 tools/testing/selftests/net/ipv6_flowlabel.c fdt = socket(PF_INET6, SOCK_DGRAM, 0); fdt 192 tools/testing/selftests/net/ipv6_flowlabel.c if (fdt == -1) fdt 199 tools/testing/selftests/net/ipv6_flowlabel.c if (connect(fdt, (void *)&addr, sizeof(addr))) fdt 204 tools/testing/selftests/net/ipv6_flowlabel.c flowlabel_get(fdt, cfg_label, IPV6_FL_S_EXCL, IPV6_FL_F_CREATE); fdt 211 tools/testing/selftests/net/ipv6_flowlabel.c do_send(fdt, false, 0); fdt 215 tools/testing/selftests/net/ipv6_flowlabel.c do_send(fdt, false, 0); fdt 220 tools/testing/selftests/net/ipv6_flowlabel.c do_send(fdt, true, cfg_label); fdt 225 tools/testing/selftests/net/ipv6_flowlabel.c if (close(fdt)) fdt 63 tools/testing/selftests/net/so_txtime.c static void do_send_one(int fdt, struct timed_send *ts) fdt 92 tools/testing/selftests/net/so_txtime.c ret = sendmsg(fdt, &msg, 0); fdt 139 tools/testing/selftests/net/so_txtime.c static void do_recv_errqueue_timeout(int fdt) fdt 162 tools/testing/selftests/net/so_txtime.c ret = recvmsg(fdt, &msg, MSG_ERRQUEUE); fdt 252 tools/testing/selftests/net/so_txtime.c int fdt, fdr, i; fdt 258 tools/testing/selftests/net/so_txtime.c fdt = setup_tx(addr, alen); fdt 264 tools/testing/selftests/net/so_txtime.c do_send_one(fdt, &cfg_in[i]); fdt 267 tools/testing/selftests/net/so_txtime.c do_recv_errqueue_timeout(fdt); fdt 273 tools/testing/selftests/net/so_txtime.c if (close(fdt)) fdt 90 tools/testing/selftests/net/txring_overwrite.c int fdt; fdt 92 tools/testing/selftests/net/txring_overwrite.c fdt = socket(PF_PACKET, SOCK_RAW, 0); fdt 93 tools/testing/selftests/net/txring_overwrite.c if (fdt == -1) fdt 102 tools/testing/selftests/net/txring_overwrite.c if (bind(fdt, (void *)&laddr, sizeof(laddr))) fdt 110 tools/testing/selftests/net/txring_overwrite.c if (setsockopt(fdt, SOL_PACKET, PACKET_TX_RING, fdt 115 tools/testing/selftests/net/txring_overwrite.c PROT_READ | PROT_WRITE, MAP_SHARED, fdt, 0); fdt 119 tools/testing/selftests/net/txring_overwrite.c return fdt; fdt 122 tools/testing/selftests/net/txring_overwrite.c static void send_pkt(int fdt, void *slot, char payload_char) fdt 135 tools/testing/selftests/net/txring_overwrite.c ret = sendto(fdt, NULL, 0, 0, NULL, 0); fdt 162 tools/testing/selftests/net/txring_overwrite.c int fdr, fdt, ret = 0; fdt 165 tools/testing/selftests/net/txring_overwrite.c fdt = setup_tx(&ring); fdt 167 tools/testing/selftests/net/txring_overwrite.c send_pkt(fdt, ring, payload_patterns[0]); fdt 168 tools/testing/selftests/net/txring_overwrite.c send_pkt(fdt, ring, payload_patterns[1]); fdt 173 tools/testing/selftests/net/txring_overwrite.c if (close(fdt)) fdt 505 tools/testing/selftests/net/udpgso.c static void run_one(struct testcase *test, int fdt, int fdr, fdt 518 tools/testing/selftests/net/udpgso.c if (setsockopt(fdt, SOL_UDP, UDP_SEGMENT, &val, sizeof(val))) fdt 522 tools/testing/selftests/net/udpgso.c sent = send_one(fdt, test->tlen, test->gso_len, addr, alen); fdt 557 tools/testing/selftests/net/udpgso.c static void run_all(int fdt, int fdr, struct sockaddr *addr, socklen_t alen) fdt 567 tools/testing/selftests/net/udpgso.c run_one(test, fdt, fdr, addr, alen); fdt 574 tools/testing/selftests/net/udpgso.c int fdr, fdt, val; fdt 587 tools/testing/selftests/net/udpgso.c fdt = socket(addr->sa_family, SOCK_DGRAM, 0); fdt 588 tools/testing/selftests/net/udpgso.c if (fdt == -1) fdt 592 tools/testing/selftests/net/udpgso.c set_pmtu_discover(fdt, addr->sa_family == AF_INET); fdt 595 tools/testing/selftests/net/udpgso.c set_device_mtu(fdt, CONST_MTU_TEST); fdt 596 tools/testing/selftests/net/udpgso.c run_all(fdt, fdr, addr, alen); fdt 600 tools/testing/selftests/net/udpgso.c set_device_mtu(fdt, CONST_MTU_TEST + 100); fdt 603 tools/testing/selftests/net/udpgso.c if (connect(fdt, addr, alen)) fdt 606 tools/testing/selftests/net/udpgso.c val = get_path_mtu(fdt, addr->sa_family == AF_INET); fdt 610 tools/testing/selftests/net/udpgso.c run_all(fdt, fdr, addr, 0 /* use connected addr */); fdt 613 tools/testing/selftests/net/udpgso.c if (close(fdt))