/openbmc/u-boot/common/ |
H A D | image-android-dt.c | 25 magic = fdt32_to_cpu(hdr->magic); in android_dt_check_header() 51 entry_count = fdt32_to_cpu(hdr->dt_entry_count); in android_dt_get_fdt_by_index() 52 entries_offset = fdt32_to_cpu(hdr->dt_entries_offset); in android_dt_get_fdt_by_index() 53 entry_size = fdt32_to_cpu(hdr->dt_entry_size); in android_dt_get_fdt_by_index() 64 dt_offset = fdt32_to_cpu(e->dt_offset); in android_dt_get_fdt_by_index() 65 dt_size = fdt32_to_cpu(e->dt_size); in android_dt_get_fdt_by_index() 109 entry_count = fdt32_to_cpu(hdr->dt_entry_count); in android_dt_print_contents() 111 entry_size = fdt32_to_cpu(hdr->dt_entry_size); in android_dt_print_contents() 135 dt_offset = fdt32_to_cpu(e->dt_offset); in android_dt_print_contents() 136 dt_size = fdt32_to_cpu(e->dt_size); in android_dt_print_contents() [all …]
|
/openbmc/u-boot/drivers/pci/ |
H A D | pci_sandbox.c | 96 fdt32_to_cpu(cell[0]), fdt32_to_cpu(cell[1]), in sandbox_pci_probe() 97 fdt32_to_cpu(cell[2]), fdt32_to_cpu(cell[3])); in sandbox_pci_probe() 99 pdev = fdt32_to_cpu(cell[0]); in sandbox_pci_probe() 100 pfn = fdt32_to_cpu(cell[1]); in sandbox_pci_probe() 104 priv->vendev[devfn].vendor = fdt32_to_cpu(cell[2]); in sandbox_pci_probe() 105 priv->vendev[devfn].device = fdt32_to_cpu(cell[3]); in sandbox_pci_probe()
|
/openbmc/u-boot/tools/dtoc/ |
H A D | fdt_util.py | 27 def fdt32_to_cpu(val): function 52 out = long(fdt32_to_cpu(val[0])) 54 out = out << 32 | fdt32_to_cpu(val[1]) 112 value = fdt32_to_cpu(prop.value) 190 return [fdt32_to_cpu(v) for v in value]
|
H A D | dtb_platdata.py | 100 return '%#x' % fdt_util.fdt32_to_cpu(value) 222 phandle = fdt_util.fdt32_to_cpu(val[i]) 238 num_args = fdt_util.fdt32_to_cpu(cells.value) 299 na = fdt_util.fdt32_to_cpu(na_prop.value) 301 ns = fdt_util.fdt32_to_cpu(ns_prop.value) 414 phandle = fdt_util.fdt32_to_cpu(phandle_cell) 484 phandle = fdt_util.fdt32_to_cpu(phandle_cell) 489 arg_values.append(str(fdt_util.fdt32_to_cpu(prop.value[pos + 1 + i])))
|
H A D | test_fdt.py | 22 from fdt_util import fdt32_to_cpu 200 self.assertEqual(target, dtb.LookupPhandle(fdt32_to_cpu(prop.value))) 226 self.assertTrue(fdt32_to_cpu(prop.value) > 0) 247 self.assertEqual(1, fdt32_to_cpu(prop.value)) 251 val = [fdt32_to_cpu(val) for val in prop.value] 297 self.assertEqual(1, fdt32_to_cpu(prop.value)) 373 self.assertEqual(0, fdt32_to_cpu(data)) 378 self.assertEqual(1, fdt32_to_cpu(data))
|
H A D | test_fdt | 22 from fdt_util import fdt32_to_cpu 200 self.assertEqual(target, dtb.LookupPhandle(fdt32_to_cpu(prop.value))) 226 self.assertTrue(fdt32_to_cpu(prop.value) > 0) 247 self.assertEqual(1, fdt32_to_cpu(prop.value)) 251 val = [fdt32_to_cpu(val) for val in prop.value] 297 self.assertEqual(1, fdt32_to_cpu(prop.value)) 373 self.assertEqual(0, fdt32_to_cpu(data)) 378 self.assertEqual(1, fdt32_to_cpu(data))
|
/openbmc/u-boot/scripts/dtc/ |
H A D | flattree.c | 391 padlen = minsize - fdt32_to_cpu(fdt.totalsize); in dt_to_blob() 397 fdt32_to_cpu(fdt.totalsize), minsize); in dt_to_blob() 406 - fdt32_to_cpu(fdt.totalsize); in dt_to_blob() 409 int tsize = fdt32_to_cpu(fdt.totalsize); in dt_to_blob() 609 return fdt32_to_cpu(val); in flat_read_word() 841 magic = fdt32_to_cpu(magic_buf); in dt_from_blob() 855 totalsize = fdt32_to_cpu(totalsize_buf); in dt_from_blob() 882 off_dt = fdt32_to_cpu(fdt->off_dt_struct); in dt_from_blob() 883 off_str = fdt32_to_cpu(fdt->off_dt_strings); in dt_from_blob() 885 version = fdt32_to_cpu(fdt->version); in dt_from_blob() [all …]
|
/openbmc/u-boot/scripts/dtc/libfdt/ |
H A D | fdt.c | 105 tag = fdt32_to_cpu(*tagp); in fdt_next_tag() 125 + fdt32_to_cpu(*lenp); in fdt_next_tag() 126 if (fdt_version(fdt) < 0x10 && fdt32_to_cpu(*lenp) >= 8 && in fdt_next_tag() 127 ((offset - fdt32_to_cpu(*lenp)) % 8) != 0) in fdt_next_tag()
|
H A D | fdt_addresses.c | 71 val = fdt32_to_cpu(*ac); in fdt_address_cells() 91 val = fdt32_to_cpu(*sc); in fdt_size_cells()
|
H A D | fdt_ro.c | 306 *lenp = fdt32_to_cpu(prop->len); in fdt_get_property_by_offset_() 343 if (fdt_string_eq_(fdt, fdt32_to_cpu(prop->nameoff), in fdt_get_property_namelen_() 396 fdt32_to_cpu(prop->len) >= 8) in fdt_getprop_namelen() 410 *namep = fdt_string(fdt, fdt32_to_cpu(prop->nameoff)); in fdt_getprop_by_offset() 414 fdt32_to_cpu(prop->len) >= 8) in fdt_getprop_by_offset() 439 return fdt32_to_cpu(*php); in fdt_get_phandle()
|
H A D | fdt_overlay.c | 82 if ((len != sizeof(*val)) || (fdt32_to_cpu(*val) == (uint32_t)-1)) in overlay_get_target_phandle() 85 return fdt32_to_cpu(*val); in overlay_get_target_phandle() 175 adj_val = fdt32_to_cpu(*val); in overlay_phandle_add_offset() 302 poffset = fdt32_to_cpu(fixup_val[i]); in overlay_update_local_node_references() 312 adj_val = cpu_to_fdt32(fdt32_to_cpu(adj_val) + delta); in overlay_update_local_node_references()
|
/openbmc/linux/scripts/dtc/ |
H A D | flattree.c | 377 padlen = minsize - fdt32_to_cpu(fdt.totalsize); in dt_to_blob() 383 fdt32_to_cpu(fdt.totalsize), minsize); in dt_to_blob() 392 - fdt32_to_cpu(fdt.totalsize); in dt_to_blob() 395 int tsize = fdt32_to_cpu(fdt.totalsize); in dt_to_blob() 595 return fdt32_to_cpu(val); in flat_read_word() 827 magic = fdt32_to_cpu(magic_buf); in dt_from_blob() 841 totalsize = fdt32_to_cpu(totalsize_buf); in dt_from_blob() 868 off_dt = fdt32_to_cpu(fdt->off_dt_struct); in dt_from_blob() 869 off_str = fdt32_to_cpu(fdt->off_dt_strings); in dt_from_blob() 871 version = fdt32_to_cpu(fdt->version); in dt_from_blob() [all …]
|
/openbmc/linux/arch/powerpc/mm/nohash/ |
H A D | kaslr_booke.c | 127 base = fdt32_to_cpu(reg[0]); in overlaps_reserved_region() 129 base = (base << 32) | fdt32_to_cpu(reg[1]); in overlaps_reserved_region() 134 size = fdt32_to_cpu(reg[0]); in overlaps_reserved_region() 136 size = (size << 32) | fdt32_to_cpu(reg[1]); in overlaps_reserved_region() 251 *addr_cells = fdt32_to_cpu(*prop); in get_cell_sizes() 254 *size_cells = fdt32_to_cpu(*prop); in get_cell_sizes()
|
/openbmc/u-boot/lib/ |
H A D | fdtdec_common.c | 30 int val = fdt32_to_cpu(cell[0]); in fdtdec_get_int() 48 unsigned int val = fdt32_to_cpu(cell[0]); in fdtdec_get_uint()
|
H A D | fdtdec.c | 212 (ulong)fdt32_to_cpu(cell[0]), in fdtdec_get_pci_addr() 213 (ulong)fdt32_to_cpu(cell[1]), in fdtdec_get_pci_addr() 214 (ulong)fdt32_to_cpu(cell[2])); in fdtdec_get_pci_addr() 215 if ((fdt32_to_cpu(*cell) & type) == type) { in fdtdec_get_pci_addr() 216 addr->phys_hi = fdt32_to_cpu(cell[0]); in fdtdec_get_pci_addr() 217 addr->phys_mid = fdt32_to_cpu(cell[1]); in fdtdec_get_pci_addr() 218 addr->phys_lo = fdt32_to_cpu(cell[1]); in fdtdec_get_pci_addr() 692 array[i] = fdt32_to_cpu(cell[i]); in fdtdec_get_int_array() 712 array[i] = fdt32_to_cpu(cell[i]); in fdtdec_get_int_array_count() 1413 addr += fdt32_to_cpu(*cell++); in fdtdec_decode_ram_size() [all …]
|
/openbmc/u-boot/arch/arm/mach-socfpga/ |
H A D | pinmux_arria10.c | 27 offset = fdt32_to_cpu(*cell++); in do_pinctr_pin() 28 value = fdt32_to_cpu(*cell++); in do_pinctr_pin()
|
/openbmc/u-boot/drivers/net/fm/ |
H A D | fdt.c | 47 length = fdt32_to_cpu(hdr->length); in fdt_fixup_fman_firmware() 63 crc = fdt32_to_cpu(*(u32 *)((void *)fmanfw + length)); in fdt_fixup_fman_firmware()
|
/openbmc/u-boot/drivers/core/ |
H A D | ofnode.c | 35 *outp = fdt32_to_cpu(cell[0]); in ofnode_read_u32() 604 (ulong)fdt32_to_cpu(cell[0]), in ofnode_read_pci_addr() 605 (ulong)fdt32_to_cpu(cell[1]), in ofnode_read_pci_addr() 606 (ulong)fdt32_to_cpu(cell[2])); in ofnode_read_pci_addr() 607 if ((fdt32_to_cpu(*cell) & type) == type) { in ofnode_read_pci_addr() 608 addr->phys_hi = fdt32_to_cpu(cell[0]); in ofnode_read_pci_addr() 609 addr->phys_mid = fdt32_to_cpu(cell[1]); in ofnode_read_pci_addr() 610 addr->phys_lo = fdt32_to_cpu(cell[1]); in ofnode_read_pci_addr()
|
/openbmc/u-boot/drivers/pinctrl/ |
H A D | pinctrl-single.c | 50 reg = fdt32_to_cpu(pins->reg); in single_configure_pins() 56 val = fdt32_to_cpu(pins->val) & pdata->mask; in single_configure_pins()
|
/openbmc/linux/scripts/dtc/libfdt/ |
H A D | fdt_overlay.c | 37 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() 115 adj_val = fdt32_to_cpu(*val); in overlay_phandle_add_offset() 243 poffset = fdt32_to_cpu(fixup_val[i]); in overlay_update_local_node_references() 253 adj_val = cpu_to_fdt32(fdt32_to_cpu(adj_val) + delta); in overlay_update_local_node_references()
|
/openbmc/u-boot/arch/x86/cpu/broadwell/ |
H A D | pinctrl_broadwell.c | 131 uint gpio = fdt32_to_cpu(prop[i * 3]); in broadwell_pinctrl_read_pins() 132 uint phandle = fdt32_to_cpu(prop[i * 3 + 1]); in broadwell_pinctrl_read_pins() 148 fdt32_to_cpu(prop[i * 3 + 2]) << PIRQ_SHIFT; in broadwell_pinctrl_read_pins()
|
/openbmc/linux/include/linux/ |
H A D | libfdt_env.h | 17 #define fdt32_to_cpu(x) be32_to_cpu(x) macro
|
/openbmc/u-boot/include/linux/ |
H A D | libfdt_env.h | 20 #define fdt32_to_cpu(x) be32_to_cpu(x) macro
|
/openbmc/linux/arch/powerpc/boot/ |
H A D | libfdt_env.h | 22 #define fdt32_to_cpu(x) be32_to_cpu(x) macro
|
/openbmc/u-boot/cmd/ |
H A D | fdt.c | 58 sprintf(buf, "0x%08X", fdt32_to_cpu(*(fdt32_t *)nodep)); in fdt_value_env_set() 102 val = fdt32_to_cpu(fdtp[i]); in fdt_get_header_value() 965 printf("0x%08x%s", fdt32_to_cpu(p[j]), in print_data() 1068 fdt32_to_cpu(fdt_prop->nameoff)); in fdt_print() 1069 len = fdt32_to_cpu(fdt_prop->len); in fdt_print()
|