/drivers/of/ |
D | kexec.c | 40 static int fdt_find_and_del_mem_rsv(void *fdt, unsigned long start, unsigned long size) in fdt_find_and_del_mem_rsv() argument 42 int i, ret, num_rsvs = fdt_num_mem_rsv(fdt); in fdt_find_and_del_mem_rsv() 47 ret = fdt_get_mem_rsv(fdt, i, &rsv_start, &rsv_size); in fdt_find_and_del_mem_rsv() 54 ret = fdt_del_mem_rsv(fdt, i); in fdt_find_and_del_mem_rsv() 201 static void remove_ima_buffer(void *fdt, int chosen_node) in remove_ima_buffer() argument 211 prop = fdt_getprop(fdt, chosen_node, "linux,ima-kexec-buffer", &len); in remove_ima_buffer() 216 fdt_delprop(fdt, chosen_node, "linux,ima-kexec-buffer"); in remove_ima_buffer() 220 ret = fdt_find_and_del_mem_rsv(fdt, addr, size); in remove_ima_buffer() 234 static int setup_ima_buffer(const struct kimage *image, void *fdt, in setup_ima_buffer() argument 242 ret = fdt_appendprop_addrrange(fdt, 0, chosen_node, in setup_ima_buffer() [all …]
|
D | fdt.c | 572 const void *fdt = initial_boot_params; in fdt_scan_reserved_mem() local 574 node = fdt_path_offset(fdt, "/reserved-memory"); in fdt_scan_reserved_mem() 583 fdt_for_each_subnode(child, fdt, node) { in fdt_scan_reserved_mem() 587 if (!of_fdt_device_is_available(fdt, child)) in fdt_scan_reserved_mem() 590 uname = fdt_get_name(fdt, child, NULL); in fdt_scan_reserved_mem() 1025 const void *fdt = initial_boot_params; in early_init_dt_scan_chosen_stdout() local 1028 offset = fdt_path_offset(fdt, "/chosen"); in early_init_dt_scan_chosen_stdout() 1030 offset = fdt_path_offset(fdt, "/chosen@0"); in early_init_dt_scan_chosen_stdout() 1034 p = fdt_getprop(fdt, offset, "stdout-path", &l); in early_init_dt_scan_chosen_stdout() 1036 p = fdt_getprop(fdt, offset, "linux,stdout-path", &l); in early_init_dt_scan_chosen_stdout() [all …]
|
D | Makefile | 5 obj-$(CONFIG_OF_FLATTREE) += fdt.o
|
/drivers/firmware/efi/libstub/ |
D | fdt.c | 19 static void fdt_update_cell_size(void *fdt) in fdt_update_cell_size() argument 23 offset = fdt_path_offset(fdt, "/"); in fdt_update_cell_size() 26 fdt_setprop_u32(fdt, offset, "#address-cells", EFI_DT_ADDR_CELLS_DEFAULT); in fdt_update_cell_size() 27 fdt_setprop_u32(fdt, offset, "#size-cells", EFI_DT_SIZE_CELLS_DEFAULT); in fdt_update_cell_size() 31 void *fdt, int new_fdt_size, char *cmdline_ptr) in update_fdt() argument 55 status = fdt_open_into(orig_fdt, fdt, new_fdt_size); in update_fdt() 57 status = fdt_create_empty_tree(fdt, new_fdt_size); in update_fdt() 63 fdt_update_cell_size(fdt); in update_fdt() 74 num_rsv = fdt_num_mem_rsv(fdt); in update_fdt() 76 fdt_del_mem_rsv(fdt, num_rsv); in update_fdt() [all …]
|
D | riscv.c | 20 const void *fdt; in get_boot_hartid_from_fdt() local 24 fdt = get_efi_config_table(DEVICE_TREE_GUID); in get_boot_hartid_from_fdt() 25 if (!fdt) in get_boot_hartid_from_fdt() 28 chosen_node = fdt_path_offset(fdt, "/chosen"); in get_boot_hartid_from_fdt() 32 prop = fdt_getprop((void *)fdt, chosen_node, "boot-hartid", &len); in get_boot_hartid_from_fdt() 84 void __noreturn efi_enter_kernel(unsigned long entrypoint, unsigned long fdt, in efi_enter_kernel() argument 97 jump_kernel(hartid, fdt); in efi_enter_kernel()
|
D | Makefile | 76 libfdt-deps := fdt_rw.c fdt_ro.c fdt_wip.c fdt.c \ 79 lib-$(CONFIG_EFI_PARAMS_FROM_FDT) += fdt.o \
|
D | efistub.h | 101 #define fdt_setprop_inplace_var(fdt, node_offset, name, var) \ argument 102 fdt_setprop_inplace((fdt), (node_offset), (name), &(var), sizeof(var)) 106 #define fdt_setprop_var(fdt, node_offset, name, var) \ argument 107 fdt_setprop((fdt), (node_offset), (name), &(var), sizeof(var))
|
/drivers/firmware/efi/ |
D | fdtparams.c | 60 static int __init efi_get_fdt_prop(const void *fdt, int node, const char *pname, in efi_get_fdt_prop() argument 67 prop = fdt_getprop(fdt, node, pname, &len); in efi_get_fdt_prop() 86 const void *fdt = initial_boot_params; in efi_get_fdt_params() local 103 if (!fdt) in efi_get_fdt_params() 107 node = fdt_path_offset(fdt, dt_params[i].path); in efi_get_fdt_params() 118 if (!efi_get_fdt_prop(fdt, node, pname, name[j], in efi_get_fdt_params()
|
/drivers/dma/bestcomm/ |
D | bestcomm.c | 289 bcom_eng->fdt = bcom_sram_alloc(fdt_size, BCOM_FDT_ALIGN, &fdt_pa); in bcom_engine_init() 291 if (!bcom_eng->tdt || !bcom_eng->ctx || !bcom_eng->var || !bcom_eng->fdt) { in bcom_engine_init() 297 bcom_sram_free(bcom_eng->fdt); in bcom_engine_init() 305 memset_io(bcom_eng->fdt, 0x00, fdt_size); in bcom_engine_init() 308 memcpy_toio(&bcom_eng->fdt[48], fdt_ops, sizeof(fdt_ops)); in bcom_engine_init() 318 bcom_eng->tdt[task].fdt = fdt_pa; in bcom_engine_init() 357 bcom_sram_free(bcom_eng->fdt); in bcom_engine_cleanup()
|
/drivers/pci/hotplug/ |
D | pnv_php.c | 175 if (php_slot->fdt) in pnv_php_rmv_devtree() 179 if (php_slot->fdt) { in pnv_php_rmv_devtree() 181 kfree(php_slot->fdt); in pnv_php_rmv_devtree() 184 php_slot->fdt = NULL; in pnv_php_rmv_devtree() 257 void *fdt, *fdt1, *dt; in pnv_php_add_devtree() local 276 fdt = kmemdup(fdt1, fdt_totalsize(fdt1), GFP_KERNEL); in pnv_php_add_devtree() 277 if (!fdt) { in pnv_php_add_devtree() 283 dt = of_fdt_unflatten_tree(fdt, php_slot->dn, NULL); in pnv_php_add_devtree() 310 php_slot->fdt = fdt; in pnv_php_add_devtree() 321 kfree(fdt); in pnv_php_add_devtree()
|
/drivers/tty/serial/8250/ |
D | 8250_ingenic.c | 74 void *fdt = initial_boot_params; in ingenic_early_console_setup_clock() local 78 offset = fdt_path_offset(fdt, "/ext"); in ingenic_early_console_setup_clock() 82 prop = fdt_getprop(fdt, offset, "clock-frequency", NULL); in ingenic_early_console_setup_clock()
|
/drivers/scsi/qla2xxx/ |
D | qla_sup.c | 970 struct qla_fdt_layout *fdt = (struct qla_fdt_layout *)req->ring; in qla2xxx_get_fdt_info() local 974 ha->isp_ops->read_optrom(vha, fdt, ha->flt_region_fdt << 2, in qla2xxx_get_fdt_info() 978 if (memcmp(fdt->sig, "QLID", 4)) in qla2xxx_get_fdt_info() 981 for (cnt = 0, chksum = 0; cnt < sizeof(*fdt) >> 1; cnt++, wptr++) in qla2xxx_get_fdt_info() 987 fdt->sig[0], le16_to_cpu(fdt->version)); in qla2xxx_get_fdt_info() 989 fdt, sizeof(*fdt)); in qla2xxx_get_fdt_info() 994 mid = le16_to_cpu(fdt->man_id); in qla2xxx_get_fdt_info() 995 fid = le16_to_cpu(fdt->id); in qla2xxx_get_fdt_info() 996 ha->fdt_wrt_disable = fdt->wrt_disable_bits; in qla2xxx_get_fdt_info() 997 ha->fdt_wrt_enable = fdt->wrt_enable_bits; in qla2xxx_get_fdt_info() [all …]
|
/drivers/soc/canaan/ |
D | k210-sysctl.c | 66 static void __init k210_soc_early_init(const void *fdt) in k210_soc_early_init() argument
|
/drivers/scsi/qla4xxx/ |
D | ql4_nx.c | 3816 struct qla_fdt_layout *fdt; in qla4_82xx_get_fdt_info() local 3825 fdt = (struct qla_fdt_layout *)ha->request_ring; in qla4_82xx_get_fdt_info() 3832 if (fdt->sig[0] != 'Q' || fdt->sig[1] != 'L' || fdt->sig[2] != 'I' || in qla4_82xx_get_fdt_info() 3833 fdt->sig[3] != 'D') in qla4_82xx_get_fdt_info() 3842 "checksum=0x%x id=%c version=0x%x.\n", chksum, fdt->sig[0], in qla4_82xx_get_fdt_info() 3843 le16_to_cpu(fdt->version))); in qla4_82xx_get_fdt_info() 3848 mid = le16_to_cpu(fdt->man_id); in qla4_82xx_get_fdt_info() 3849 fid = le16_to_cpu(fdt->id); in qla4_82xx_get_fdt_info() 3850 hw->fdt_wrt_disable = fdt->wrt_disable_bits; in qla4_82xx_get_fdt_info() 3851 hw->fdt_erase_cmd = flash_conf_addr(hw, 0x0300 | fdt->erase_cmd); in qla4_82xx_get_fdt_info() [all …]
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_sysfs.c | 1004 if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { in qlcnic_83xx_sysfs_flash_bulk_write() 1019 if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { in qlcnic_83xx_sysfs_flash_bulk_write() 1037 if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { in qlcnic_83xx_sysfs_flash_bulk_write() 1072 if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { in qlcnic_83xx_sysfs_flash_write() 1084 if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { in qlcnic_83xx_sysfs_flash_write() 1101 if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { in qlcnic_83xx_sysfs_flash_write()
|
D | qlcnic_83xx_hw.c | 2727 cmd = adapter->ahw->fdt.write_statusreg_cmd; in qlcnic_83xx_enable_flash_write() 2731 adapter->ahw->fdt.write_enable_bits); in qlcnic_83xx_enable_flash_write() 2747 adapter->ahw->fdt.write_statusreg_cmd)); in qlcnic_83xx_disable_flash_write() 2749 adapter->ahw->fdt.write_disable_bits); in qlcnic_83xx_disable_flash_write() 2799 memset(&adapter->ahw->fdt, 0, fdt_size); in qlcnic_83xx_read_flash_descriptor_table() 2801 (u8 *)&adapter->ahw->fdt, in qlcnic_83xx_read_flash_descriptor_table() 2803 qlcnic_swap32_buffer((u32 *)&adapter->ahw->fdt, count); in qlcnic_83xx_read_flash_descriptor_table() 2817 if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { in qlcnic_83xx_erase_flash_sector() 2842 cmd = QLC_83XX_FLASH_FDT_ERASE_DEF_SIG | adapter->ahw->fdt.erase_cmd; in qlcnic_83xx_erase_flash_sector() 2843 if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) in qlcnic_83xx_erase_flash_sector() [all …]
|
D | qlcnic.h | 524 struct qlcnic_fdt fdt; member
|