Home
last modified time | relevance | path

Searched refs:fdt32_to_cpu (Results 1 – 25 of 35) sorted by relevance

12

/external/dtc/
Dfdtdump.c51 uint32_t off_mem_rsvmap = fdt32_to_cpu(bph->off_mem_rsvmap); in dump_blob()
52 uint32_t off_dt = fdt32_to_cpu(bph->off_dt_struct); in dump_blob()
53 uint32_t off_str = fdt32_to_cpu(bph->off_dt_strings); in dump_blob()
58 uint32_t version = fdt32_to_cpu(bph->version); in dump_blob()
59 uint32_t totalsize = fdt32_to_cpu(bph->totalsize); in dump_blob()
70 printf("// magic:\t\t0x%"PRIx32"\n", fdt32_to_cpu(bph->magic)); in dump_blob()
78 fdt32_to_cpu(bph->last_comp_version)); in dump_blob()
81 fdt32_to_cpu(bph->boot_cpuid_phys)); in dump_blob()
85 fdt32_to_cpu(bph->size_dt_strings)); in dump_blob()
88 fdt32_to_cpu(bph->size_dt_struct)); in dump_blob()
[all …]
Dflattree.c376 padlen = minsize - fdt32_to_cpu(fdt.totalsize); in dt_to_blob()
382 fdt32_to_cpu(fdt.totalsize), minsize); in dt_to_blob()
390 padlen = ALIGN(fdt32_to_cpu(fdt.totalsize) + padlen, alignsize) in dt_to_blob()
391 - fdt32_to_cpu(fdt.totalsize); in dt_to_blob()
394 int tsize = fdt32_to_cpu(fdt.totalsize); in dt_to_blob()
594 return fdt32_to_cpu(val); in flat_read_word()
826 magic = fdt32_to_cpu(magic_buf); in dt_from_blob()
840 totalsize = fdt32_to_cpu(totalsize_buf); in dt_from_blob()
867 off_dt = fdt32_to_cpu(fdt->off_dt_struct); in dt_from_blob()
868 off_str = fdt32_to_cpu(fdt->off_dt_strings); in dt_from_blob()
[all …]
Dchecks.c844 if (fdt32_to_cpu(cells[0]) > fdt32_to_cpu(cells[1])) in check_pci_bridge()
846 if (fdt32_to_cpu(cells[1]) > 0xff) in check_pci_bridge()
866 bus_num = (fdt32_to_cpu(cells[0]) & 0x00ff0000) >> 16; in check_pci_device_bus_num()
873 min_bus = fdt32_to_cpu(cells[0]); in check_pci_device_bus_num()
874 max_bus = fdt32_to_cpu(cells[0]); in check_pci_device_bus_num()
903 reg = fdt32_to_cpu(cells[0]); in check_pci_device_reg()
986 reg = (reg << 32) | fdt32_to_cpu(*(cells++)); in check_simple_bus_reg()
1049 reg = fdt32_to_cpu(*cells); in check_i2c_bus_reg()
1058 reg = fdt32_to_cpu(*(cells++)); in check_i2c_bus_reg()
1140 reg = fdt32_to_cpu(*cells); in check_spi_bus_reg()
/external/dtc/tests/
Dtruncated_string.c35 if (fdt32_to_cpu(good->len) != 0) in main()
37 name = fdt_get_string(fdt, fdt32_to_cpu(good->nameoff), &len); in main()
48 if (fdt32_to_cpu(bad->len) != 0) in main()
50 name = fdt_get_string(fdt, fdt32_to_cpu(bad->nameoff), &len); in main()
59 fdt_set_size_dt_strings(fdt, fdt32_to_cpu(good->nameoff) + 4); in main()
60 name = fdt_get_string(fdt, fdt32_to_cpu(good->nameoff), &len); in main()
Ddtbs_equal_ordered.c113 name1 = fdt_string(fdt1, fdt32_to_cpu(prop1->nameoff)); in compare_structure()
114 name2 = fdt_string(fdt2, fdt32_to_cpu(prop2->nameoff)); in compare_structure()
118 len1 = fdt32_to_cpu(prop1->len); in compare_structure()
119 len2 = fdt32_to_cpu(prop2->len); in compare_structure()
Dreferences.c29 ref = fdt32_to_cpu(*p); in check_ref()
40 ref = fdt32_to_cpu(*p); in check_ref()
58 ref = fdt32_to_cpu(*p); in check_rref()
Dinteger-expressions.c95 if (fdt32_to_cpu(res[i]) != expr_table[i].result) in main()
98 expr_table[i].expr, fdt32_to_cpu(res[i]), in main()
Dtestutils.c105 tag = fdt32_to_cpu(prop->tag); in check_property()
106 nameoff = fdt32_to_cpu(prop->nameoff); in check_property()
107 proplen = fdt32_to_cpu(prop->len); in check_property()
Droot_node.c31 if (fdt32_to_cpu(nh->tag) != FDT_BEGIN_NODE) in main()
Dsubnode_iterate.c35 subnodes = fdt32_to_cpu(*prop); in test_node()
Dproperty_iterate.c38 properties = fdt32_to_cpu(*prop); in test_node()
Dsubnode_offset.c33 tag = fdt32_to_cpu(nh->tag); in check_subnode()
/external/arm-trusted-firmware/drivers/mtd/spi-mem/
Dspi_mem.c216 spi_slave.cs = fdt32_to_cpu(*cuint); in spi_mem_init_slave()
223 spi_slave.max_hz = fdt32_to_cpu(*cuint); in spi_mem_init_slave()
249 switch (fdt32_to_cpu(*cuint)) { in spi_mem_init_slave()
260 fdt32_to_cpu(*cuint)); in spi_mem_init_slave()
267 switch (fdt32_to_cpu(*cuint)) { in spi_mem_init_slave()
278 fdt32_to_cpu(*cuint)); in spi_mem_init_slave()
/external/arm-trusted-firmware/drivers/st/gpio/
Dstm32_gpio.c50 if ((fdt32_to_cpu(*cuint) == bank_offset) && in ckeck_gpio_bank()
85 speed = fdt32_to_cpu(*slewrate); in dt_set_gpio_config()
105 pincfg = fdt32_to_cpu(*cuint); in dt_set_gpio_config()
184 p_node = fdt_node_offset_by_phandle(fdt, fdt32_to_cpu(*cuint)); in dt_set_pinctrl_config()
/external/dtc/libfdt/
Dfdt.c164 tag = fdt32_to_cpu(*tagp); in fdt_next_tag()
184 + fdt32_to_cpu(*lenp); in fdt_next_tag()
186 fdt_version(fdt) < 0x10 && fdt32_to_cpu(*lenp) >= 8 && in fdt_next_tag()
187 ((offset - fdt32_to_cpu(*lenp)) % 8) != 0) in fdt_next_tag()
Dfdt_overlay.c37 if ((len != sizeof(*val)) || (fdt32_to_cpu(*val) == (uint32_t)-1)) in overlay_get_target_phandle()
40 return fdt32_to_cpu(*val); in overlay_get_target_phandle()
130 adj_val = fdt32_to_cpu(*val); in overlay_phandle_add_offset()
257 poffset = fdt32_to_cpu(fixup_val[i]); in overlay_update_local_node_references()
267 adj_val = cpu_to_fdt32(fdt32_to_cpu(adj_val) + delta); in overlay_update_local_node_references()
Dfdt_addresses.c27 val = fdt32_to_cpu(*c); in fdt_cells()
Dlibfdt_env.h47 static inline uint32_t fdt32_to_cpu(fdt32_t x) in fdt32_to_cpu() function
/external/arm-trusted-firmware/drivers/st/fmc/
Dstm32_fmc2_nand.c839 bank = fdt32_to_cpu(*cuint); in stm32_fmc2_init()
844 bank_address[bank] = fdt32_to_cpu(*(cuint + 2)); in stm32_fmc2_init()
870 bank = fdt32_to_cpu(*cuint); in stm32_fmc2_init()
874 stm32_fmc2.cs[i].data_base = fdt32_to_cpu(*(cuint + 1)) + in stm32_fmc2_init()
877 bank = fdt32_to_cpu(*(cuint + 3)); in stm32_fmc2_init()
881 stm32_fmc2.cs[i].cmd_base = fdt32_to_cpu(*(cuint + 4)) + in stm32_fmc2_init()
884 bank = fdt32_to_cpu(*(cuint + 6)); in stm32_fmc2_init()
888 stm32_fmc2.cs[i].addr_base = fdt32_to_cpu(*(cuint + 7)) + in stm32_fmc2_init()
912 stm32_fmc2.cs_sel = fdt32_to_cpu(*cuint); in stm32_fmc2_init()
/external/arm-trusted-firmware/common/
Dfdt_wrappers.c47 value[i] = fdt32_to_cpu(prop[i]); in fdt_read_uint32_array()
232 uint64_t reg = fdt32_to_cpu(prop[0]); in fdt_read_prop_cells()
235 reg = (reg << 32) | fdt32_to_cpu(prop[1]); in fdt_read_prop_cells()
421 length = fdt32_to_cpu(ranges_prop->len); in fdtw_search_all_xlat_entries()
/external/arm-trusted-firmware/drivers/allwinner/axp/
Dcommon.c64 min_volt = fdt32_to_cpu(*prop); in fdt_get_regulator_millivolt()
70 if (fdt32_to_cpu(*prop) != min_volt) in fdt_get_regulator_millivolt()
/external/arm-trusted-firmware/drivers/st/clk/
Dstm32mp_clkfunc.c55 *freq = fdt32_to_cpu(*cuint); in fdt_osc_read_freq()
292 return (int)fdt32_to_cpu(*cuint); in fdt_get_clock_id()
/external/arm-trusted-firmware/drivers/st/mmc/
Dstm32_sdmmc2.c648 if (fdt32_to_cpu(*cuint) == sdmmc2_params.reg_base) { in stm32_sdmmc2_dt_get_config()
674 sdmmc2_params.clock_id = fdt32_to_cpu(*cuint); in stm32_sdmmc2_dt_get_config()
682 sdmmc2_params.reset_id = fdt32_to_cpu(*cuint); in stm32_sdmmc2_dt_get_config()
698 switch (fdt32_to_cpu(*cuint)) { in stm32_sdmmc2_dt_get_config()
714 sdmmc2_params.max_freq = fdt32_to_cpu(*cuint); in stm32_sdmmc2_dt_get_config()
/external/arm-trusted-firmware/drivers/st/pmic/
Dstm32mp_pmic.c91 pmic_i2c_addr = fdt32_to_cpu(*cuint) << 1; in dt_pmic_i2c_config()
168 voltage = (uint16_t)(fdt32_to_cpu(*cuint) / 1000U);
/external/arm-trusted-firmware/include/common/
Dfdt_wrappers.h46 return fdt32_to_cpu(dtb_header[1]); in fdt_blob_size()

12