Home
last modified time | relevance | path

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

1234

/external/dtc/
Dfdtdump.c49 uint32_t off_mem_rsvmap = fdt32_to_cpu(bph->off_mem_rsvmap); in dump_blob()
50 uint32_t off_dt = fdt32_to_cpu(bph->off_dt_struct); in dump_blob()
51 uint32_t off_str = fdt32_to_cpu(bph->off_dt_strings); in dump_blob()
56 uint32_t version = fdt32_to_cpu(bph->version); in dump_blob()
57 uint32_t totalsize = fdt32_to_cpu(bph->totalsize); in dump_blob()
68 printf("// magic:\t\t0x%x\n", fdt32_to_cpu(bph->magic)); in dump_blob()
75 fdt32_to_cpu(bph->last_comp_version)); in dump_blob()
78 fdt32_to_cpu(bph->boot_cpuid_phys)); in dump_blob()
82 fdt32_to_cpu(bph->size_dt_strings)); in dump_blob()
85 fdt32_to_cpu(bph->size_dt_struct)); in dump_blob()
[all …]
Dflattree.c174 asm_emit_cell(e, fdt32_to_cpu(*((fdt32_t *)(d.val+off)))); in asm_emit_data()
391 padlen = minsize - fdt32_to_cpu(fdt.totalsize); in dt_to_blob()
397 fdt32_to_cpu(fdt.totalsize), minsize); in dt_to_blob()
405 padlen = ALIGN(fdt32_to_cpu(fdt.totalsize) + padlen, alignsize) 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()
[all …]
/external/u-boot/tools/dtoc/
Dfdt_util.py16 def fdt32_to_cpu(val): function
42 out = long(fdt32_to_cpu(val[0]))
44 out = out << 32 | fdt32_to_cpu(val[1])
89 value = fdt32_to_cpu(prop.value)
Ddtb_platdata.py100 return '%#x' % fdt_util.fdt32_to_cpu(value)
222 phandle = fdt_util.fdt32_to_cpu(val[i])
232 num_args = fdt_util.fdt32_to_cpu(cells.value)
293 na = fdt_util.fdt32_to_cpu(na_prop.value)
295 ns = fdt_util.fdt32_to_cpu(ns_prop.value)
409 phandle = fdt_util.fdt32_to_cpu(phandle_cell)
479 phandle = fdt_util.fdt32_to_cpu(phandle_cell)
484 arg_values.append(str(fdt_util.fdt32_to_cpu(prop.value[pos + 1 + i])))
/external/u-boot/scripts/dtc/
Dflattree.c174 asm_emit_cell(e, fdt32_to_cpu(*((fdt32_t *)(d.val+off)))); in asm_emit_data()
391 padlen = minsize - fdt32_to_cpu(fdt.totalsize); in dt_to_blob()
397 fdt32_to_cpu(fdt.totalsize), minsize); in dt_to_blob()
405 padlen = ALIGN(fdt32_to_cpu(fdt.totalsize) + padlen, alignsize) 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()
[all …]
/external/dtc/tests/
Ddtbs_equal_ordered.c126 name1 = fdt_string(fdt1, fdt32_to_cpu(prop1->nameoff)); in compare_structure()
127 name2 = fdt_string(fdt2, fdt32_to_cpu(prop2->nameoff)); in compare_structure()
131 len1 = fdt32_to_cpu(prop1->len); in compare_structure()
132 len2 = fdt32_to_cpu(prop2->len); in compare_structure()
Dreferences.c42 ref = fdt32_to_cpu(*p); in check_ref()
53 ref = fdt32_to_cpu(*p); in check_ref()
71 ref = fdt32_to_cpu(*p); in check_rref()
Dtestutils.c102 tag = fdt32_to_cpu(prop->tag); in check_property()
103 nameoff = fdt32_to_cpu(prop->nameoff); in check_property()
104 proplen = fdt32_to_cpu(prop->len); in check_property()
Dinteger-expressions.c108 if (fdt32_to_cpu(res[i]) != expr_table[i].result) in main()
111 expr_table[i].expr, fdt32_to_cpu(res[i]), in main()
/external/u-boot/scripts/dtc/libfdt/
Dfdt.c105 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()
Dfdt_addresses.c71 val = fdt32_to_cpu(*ac); in fdt_address_cells()
91 val = fdt32_to_cpu(*sc); in fdt_size_cells()
Dfdt_ro.c306 *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()
Dfdt_overlay.c82 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()
/external/dtc/libfdt/
Dfdt_addresses.c71 val = fdt32_to_cpu(*ac); in fdt_address_cells()
91 val = fdt32_to_cpu(*sc); in fdt_size_cells()
Dfdt_overlay.c31 if ((len != sizeof(*val)) || (fdt32_to_cpu(*val) == (uint32_t)-1)) in overlay_get_target_phandle()
34 return fdt32_to_cpu(*val); in overlay_get_target_phandle()
113 adj_val = fdt32_to_cpu(*val); in overlay_phandle_add_offset()
240 poffset = fdt32_to_cpu(fixup_val[i]); in overlay_update_local_node_references()
250 adj_val = cpu_to_fdt32(fdt32_to_cpu(adj_val) + delta); in overlay_update_local_node_references()
Dfdt.c105 tag = fdt32_to_cpu(*tagp); in fdt_next_tag()
125 + fdt32_to_cpu(*lenp); in fdt_next_tag()
/external/u-boot/drivers/core/
Dofnode.c35 *outp = fdt32_to_cpu(cell[0]); in ofnode_read_u32()
565 (ulong)fdt32_to_cpu(cell[0]), in ofnode_read_pci_addr()
566 (ulong)fdt32_to_cpu(cell[1]), in ofnode_read_pci_addr()
567 (ulong)fdt32_to_cpu(cell[2])); in ofnode_read_pci_addr()
568 if ((fdt32_to_cpu(*cell) & type) == type) { in ofnode_read_pci_addr()
569 addr->phys_hi = fdt32_to_cpu(cell[0]); in ofnode_read_pci_addr()
570 addr->phys_mid = fdt32_to_cpu(cell[1]); in ofnode_read_pci_addr()
571 addr->phys_lo = fdt32_to_cpu(cell[1]); in ofnode_read_pci_addr()
/external/u-boot/lib/
Dfdtdec_common.c30 int val = fdt32_to_cpu(cell[0]); in fdtdec_get_int()
48 unsigned int val = fdt32_to_cpu(cell[0]); in fdtdec_get_uint()
Dfdtdec.c228 (ulong)fdt32_to_cpu(cell[0]), in fdtdec_get_pci_addr()
229 (ulong)fdt32_to_cpu(cell[1]), in fdtdec_get_pci_addr()
230 (ulong)fdt32_to_cpu(cell[2])); in fdtdec_get_pci_addr()
231 if ((fdt32_to_cpu(*cell) & type) == type) { in fdtdec_get_pci_addr()
232 addr->phys_hi = fdt32_to_cpu(cell[0]); in fdtdec_get_pci_addr()
233 addr->phys_mid = fdt32_to_cpu(cell[1]); in fdtdec_get_pci_addr()
234 addr->phys_lo = fdt32_to_cpu(cell[1]); in fdtdec_get_pci_addr()
446 path = fdt_string(blob, fdt32_to_cpu(prop->nameoff)); in fdtdec_add_aliases_for_id()
629 lookup = fdt_node_offset_by_phandle(blob, fdt32_to_cpu(*phandle)); in fdtdec_lookup_phandle()
675 array[i] = fdt32_to_cpu(cell[i]); in fdtdec_get_int_array()
[all …]
/external/u-boot/arch/arm/mach-socfpga/
Dpinmux_arria10.c27 offset = fdt32_to_cpu(*cell++); in do_pinctr_pin()
28 value = fdt32_to_cpu(*cell++); in do_pinctr_pin()
Dmisc_arria10.c136 offset = fdt32_to_cpu(*cell++); in find_peripheral_uart()
137 value = fdt32_to_cpu(*cell++); in find_peripheral_uart()
/external/u-boot/drivers/net/fm/
Dfdt.c47 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()
/external/u-boot/drivers/pinctrl/
Dpinctrl-single.c50 reg = fdt32_to_cpu(pins->reg); in single_configure_pins()
56 val = fdt32_to_cpu(pins->val) & pdata->mask; in single_configure_pins()
/external/u-boot/arch/x86/cpu/broadwell/
Dpinctrl_broadwell.c130 uint gpio = fdt32_to_cpu(prop[i * 3]); in broadwell_pinctrl_read_pins()
131 uint phandle = fdt32_to_cpu(prop[i * 3 + 1]); in broadwell_pinctrl_read_pins()
147 fdt32_to_cpu(prop[i * 3 + 2]) << PIRQ_SHIFT; in broadwell_pinctrl_read_pins()
/external/u-boot/drivers/video/
Dpwm_backlight.c99 priv->default_level = fdt32_to_cpu(cell[index]); in pwm_backlight_ofdata_to_platdata()
100 priv->max_level = fdt32_to_cpu(cell[count - 1]); in pwm_backlight_ofdata_to_platdata()

1234