Home
last modified time | relevance | path

Searched refs:fdt (Results 1 – 17 of 17) sorted by relevance

/drivers/of/
Dkexec.c38 static int fdt_find_and_del_mem_rsv(void *fdt, unsigned long start, unsigned long size) in fdt_find_and_del_mem_rsv() argument
40 int i, ret, num_rsvs = fdt_num_mem_rsv(fdt); in fdt_find_and_del_mem_rsv()
45 ret = fdt_get_mem_rsv(fdt, i, &rsv_start, &rsv_size); in fdt_find_and_del_mem_rsv()
52 ret = fdt_del_mem_rsv(fdt, i); in fdt_find_and_del_mem_rsv()
203 static void remove_ima_buffer(void *fdt, int chosen_node) in remove_ima_buffer() argument
213 prop = fdt_getprop(fdt, chosen_node, "linux,ima-kexec-buffer", &len); in remove_ima_buffer()
218 fdt_delprop(fdt, chosen_node, "linux,ima-kexec-buffer"); in remove_ima_buffer()
222 ret = fdt_find_and_del_mem_rsv(fdt, addr, size); in remove_ima_buffer()
236 static int setup_ima_buffer(const struct kimage *image, void *fdt, in setup_ima_buffer() argument
244 ret = fdt_appendprop_addrrange(fdt, 0, chosen_node, in setup_ima_buffer()
[all …]
Dfdt.c1014 const void *fdt = initial_boot_params; in early_init_dt_scan_chosen_stdout() local
1016 offset = fdt_path_offset(fdt, "/chosen"); in early_init_dt_scan_chosen_stdout()
1018 offset = fdt_path_offset(fdt, "/chosen@0"); in early_init_dt_scan_chosen_stdout()
1022 p = fdt_getprop(fdt, offset, "stdout-path", &l); in early_init_dt_scan_chosen_stdout()
1024 p = fdt_getprop(fdt, offset, "linux,stdout-path", &l); in early_init_dt_scan_chosen_stdout()
1034 offset = fdt_path_offset_namelen(fdt, p, l); in early_init_dt_scan_chosen_stdout()
1044 if (fdt_node_check_compatible(fdt, offset, match->compatible)) in early_init_dt_scan_chosen_stdout()
1393 __BIN_ATTR(fdt, S_IRUSR, of_fdt_raw_read, NULL, 0); in of_fdt_raw_init()
DMakefile5 obj-$(CONFIG_OF_FLATTREE) += fdt.o
/drivers/firmware/efi/libstub/
Dfdt.c19 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
56 status = fdt_open_into(orig_fdt, fdt, new_fdt_size); in update_fdt()
58 status = fdt_create_empty_tree(fdt, new_fdt_size); in update_fdt()
64 fdt_update_cell_size(fdt); in update_fdt()
75 num_rsv = fdt_num_mem_rsv(fdt); in update_fdt()
77 fdt_del_mem_rsv(fdt, num_rsv); in update_fdt()
[all …]
Driscv-stub.c30 const void *fdt; in get_boot_hartid_from_fdt() local
34 fdt = get_efi_config_table(DEVICE_TREE_GUID); in get_boot_hartid_from_fdt()
35 if (!fdt) in get_boot_hartid_from_fdt()
38 chosen_node = fdt_path_offset(fdt, "/chosen"); in get_boot_hartid_from_fdt()
42 prop = fdt_getprop((void *)fdt, chosen_node, "boot-hartid", &len); in get_boot_hartid_from_fdt()
62 void __noreturn efi_enter_kernel(unsigned long entrypoint, unsigned long fdt, in efi_enter_kernel() argument
76 jump_kernel(hartid, fdt); in efi_enter_kernel()
DMakefile69 efi-deps-y := fdt_rw.c fdt_ro.c fdt_wip.c fdt.c fdt_empty_tree.c fdt_sw.c
74 lib-$(CONFIG_EFI_GENERIC_STUB) += efi-stub.o fdt.o string.o \
Defistub.h85 #define fdt_setprop_inplace_var(fdt, node_offset, name, var) \ argument
86 fdt_setprop_inplace((fdt), (node_offset), (name), &(var), sizeof(var))
90 #define fdt_setprop_var(fdt, node_offset, name, var) \ argument
91 fdt_setprop((fdt), (node_offset), (name), &(var), sizeof(var))
/drivers/firmware/efi/
Dfdtparams.c58 static int __init efi_get_fdt_prop(const void *fdt, int node, const char *pname, in efi_get_fdt_prop() argument
65 prop = fdt_getprop(fdt, node, pname, &len); in efi_get_fdt_prop()
84 const void *fdt = initial_boot_params; in efi_get_fdt_params() local
101 if (!fdt) in efi_get_fdt_params()
105 node = fdt_path_offset(fdt, dt_params[i].path); in efi_get_fdt_params()
116 if (!efi_get_fdt_prop(fdt, node, pname, name[j], in efi_get_fdt_params()
/drivers/dma/bestcomm/
Dbestcomm.c292 bcom_eng->fdt = bcom_sram_alloc(fdt_size, BCOM_FDT_ALIGN, &fdt_pa); in bcom_engine_init()
294 if (!bcom_eng->tdt || !bcom_eng->ctx || !bcom_eng->var || !bcom_eng->fdt) { in bcom_engine_init()
300 bcom_sram_free(bcom_eng->fdt); in bcom_engine_init()
308 memset_io(bcom_eng->fdt, 0x00, fdt_size); in bcom_engine_init()
311 memcpy_toio(&bcom_eng->fdt[48], fdt_ops, sizeof(fdt_ops)); in bcom_engine_init()
321 bcom_eng->tdt[task].fdt = fdt_pa; in bcom_engine_init()
360 bcom_sram_free(bcom_eng->fdt); in bcom_engine_cleanup()
/drivers/pci/hotplug/
Dpnv_php.c174 if (php_slot->fdt) in pnv_php_rmv_devtree()
178 if (php_slot->fdt) { in pnv_php_rmv_devtree()
180 kfree(php_slot->fdt); in pnv_php_rmv_devtree()
183 php_slot->fdt = NULL; in pnv_php_rmv_devtree()
256 void *fdt, *fdt1, *dt; in pnv_php_add_devtree() local
275 fdt = kmemdup(fdt1, fdt_totalsize(fdt1), GFP_KERNEL); in pnv_php_add_devtree()
276 if (!fdt) { in pnv_php_add_devtree()
282 dt = of_fdt_unflatten_tree(fdt, php_slot->dn, NULL); in pnv_php_add_devtree()
309 php_slot->fdt = fdt; in pnv_php_add_devtree()
320 kfree(fdt); in pnv_php_add_devtree()
/drivers/tty/serial/8250/
D8250_ingenic.c75 void *fdt = initial_boot_params; in ingenic_early_console_setup_clock() local
79 offset = fdt_path_offset(fdt, "/ext"); in ingenic_early_console_setup_clock()
83 prop = fdt_getprop(fdt, offset, "clock-frequency", NULL); in ingenic_early_console_setup_clock()
/drivers/scsi/qla2xxx/
Dqla_sup.c954 struct qla_fdt_layout *fdt = (struct qla_fdt_layout *)req->ring; in qla2xxx_get_fdt_info() local
958 ha->isp_ops->read_optrom(vha, fdt, ha->flt_region_fdt << 2, in qla2xxx_get_fdt_info()
962 if (memcmp(fdt->sig, "QLID", 4)) in qla2xxx_get_fdt_info()
965 for (cnt = 0, chksum = 0; cnt < sizeof(*fdt) >> 1; cnt++, wptr++) in qla2xxx_get_fdt_info()
971 fdt->sig[0], le16_to_cpu(fdt->version)); in qla2xxx_get_fdt_info()
973 fdt, sizeof(*fdt)); in qla2xxx_get_fdt_info()
978 mid = le16_to_cpu(fdt->man_id); in qla2xxx_get_fdt_info()
979 fid = le16_to_cpu(fdt->id); in qla2xxx_get_fdt_info()
980 ha->fdt_wrt_disable = fdt->wrt_disable_bits; in qla2xxx_get_fdt_info()
981 ha->fdt_wrt_enable = fdt->wrt_enable_bits; in qla2xxx_get_fdt_info()
[all …]
/drivers/soc/canaan/
Dk210-sysctl.c66 static void __init k210_soc_early_init(const void *fdt) in k210_soc_early_init() argument
/drivers/scsi/qla4xxx/
Dql4_nx.c3816 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/
Dqlcnic_sysfs.c1005 if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { in qlcnic_83xx_sysfs_flash_bulk_write()
1020 if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { in qlcnic_83xx_sysfs_flash_bulk_write()
1038 if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { in qlcnic_83xx_sysfs_flash_bulk_write()
1073 if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { in qlcnic_83xx_sysfs_flash_write()
1085 if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { in qlcnic_83xx_sysfs_flash_write()
1102 if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { in qlcnic_83xx_sysfs_flash_write()
Dqlcnic_83xx_hw.c2728 cmd = adapter->ahw->fdt.write_statusreg_cmd; in qlcnic_83xx_enable_flash_write()
2732 adapter->ahw->fdt.write_enable_bits); in qlcnic_83xx_enable_flash_write()
2748 adapter->ahw->fdt.write_statusreg_cmd)); in qlcnic_83xx_disable_flash_write()
2750 adapter->ahw->fdt.write_disable_bits); in qlcnic_83xx_disable_flash_write()
2800 memset(&adapter->ahw->fdt, 0, fdt_size); in qlcnic_83xx_read_flash_descriptor_table()
2802 (u8 *)&adapter->ahw->fdt, in qlcnic_83xx_read_flash_descriptor_table()
2804 qlcnic_swap32_buffer((u32 *)&adapter->ahw->fdt, count); in qlcnic_83xx_read_flash_descriptor_table()
2818 if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) { in qlcnic_83xx_erase_flash_sector()
2843 cmd = QLC_83XX_FLASH_FDT_ERASE_DEF_SIG | adapter->ahw->fdt.erase_cmd; in qlcnic_83xx_erase_flash_sector()
2844 if (adapter->ahw->fdt.mfg_id == adapter->flash_mfg_id) in qlcnic_83xx_erase_flash_sector()
[all …]
Dqlcnic.h524 struct qlcnic_fdt fdt; member