Home
last modified time | relevance | path

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

1234

/OK3568_Linux_fs/u-boot/common/
H A Dimage-android-dt.c26 magic = fdt32_to_cpu(hdr->magic); in android_dt_check_header()
52 entry_count = fdt32_to_cpu(hdr->dt_entry_count); in android_dt_get_fdt_by_index()
53 entries_offset = fdt32_to_cpu(hdr->dt_entries_offset); in android_dt_get_fdt_by_index()
54 entry_size = fdt32_to_cpu(hdr->dt_entry_size); in android_dt_get_fdt_by_index()
65 dt_offset = fdt32_to_cpu(e->dt_offset); in android_dt_get_fdt_by_index()
66 dt_size = fdt32_to_cpu(e->dt_size); in android_dt_get_fdt_by_index()
110 entry_count = fdt32_to_cpu(hdr->dt_entry_count); in android_dt_print_contents()
111 entries_offset = fdt32_to_cpu(hdr->dt_entries_offset); in android_dt_print_contents()
112 entry_size = fdt32_to_cpu(hdr->dt_entry_size); in android_dt_print_contents()
116 printf(" magic = %08x\n", fdt32_to_cpu(hdr->magic)); in android_dt_print_contents()
[all …]
/OK3568_Linux_fs/kernel/scripts/dtc/
H A Dfdtdump.c35 printf("0x%08x%s", fdt32_to_cpu(GET_CELL(p)), in print_data()
49 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()
[all …]
H A 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 …]
H A Dfdtget.c94 value = size == 4 ? fdt32_to_cpu(*(const uint32_t *)p) : in show_data()
120 name = fdt_string(blob, fdt32_to_cpu(data->nameoff)); in list_properties()
/OK3568_Linux_fs/u-boot/tools/dtoc/
H A Dfdt_util.py17 def fdt32_to_cpu(val): function
43 out = long(fdt32_to_cpu(val[0]))
45 out = out << 32 | fdt32_to_cpu(val[1])
88 value = fdt32_to_cpu(prop.value)
H A Ddtb_platdata.py101 return '%#x' % fdt_util.fdt32_to_cpu(value)
223 phandle = fdt_util.fdt32_to_cpu(val[i])
233 num_args = fdt_util.fdt32_to_cpu(cells.value)
294 na = fdt_util.fdt32_to_cpu(na_prop.value)
296 ns = fdt_util.fdt32_to_cpu(ns_prop.value)
410 phandle = fdt_util.fdt32_to_cpu(phandle_cell)
480 phandle = fdt_util.fdt32_to_cpu(phandle_cell)
485 arg_values.append(str(fdt_util.fdt32_to_cpu(prop.value[pos + 1 + i])))
/OK3568_Linux_fs/u-boot/scripts/dtc/
H A 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 …]
/OK3568_Linux_fs/kernel/arch/powerpc/mm/nohash/
H A Dkaslr_booke.c129 base = fdt32_to_cpu(reg[0]); in overlaps_reserved_region()
131 base = (base << 32) | fdt32_to_cpu(reg[1]); in overlaps_reserved_region()
136 size = fdt32_to_cpu(reg[0]); in overlaps_reserved_region()
138 size = (size << 32) | fdt32_to_cpu(reg[1]); in overlaps_reserved_region()
253 *addr_cells = fdt32_to_cpu(*prop); in get_cell_sizes()
256 *size_cells = fdt32_to_cpu(*prop); in get_cell_sizes()
/OK3568_Linux_fs/u-boot/drivers/video/
H A Dpwm_backlight.c152 priv->default_level = fdt32_to_cpu(cell[index]); in pwm_backlight_ofdata_to_platdata()
153 priv->max_level = fdt32_to_cpu(cell[count - 1]); in pwm_backlight_ofdata_to_platdata()
155 if(fdt32_to_cpu(cell[0]) > priv->max_level) in pwm_backlight_ofdata_to_platdata()
156 priv->max_level = fdt32_to_cpu(cell[0]); in pwm_backlight_ofdata_to_platdata()
/OK3568_Linux_fs/u-boot/scripts/dtc/libfdt/
H A Dfdt_addresses.c71 val = fdt32_to_cpu(*ac); in fdt_address_cells()
91 val = fdt32_to_cpu(*sc); in fdt_size_cells()
H A 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()
124 adj_val = fdt32_to_cpu(*val); in overlay_phandle_add_offset()
251 poffset = fdt32_to_cpu(fixup_val[i]); in overlay_update_local_node_references()
261 adj_val = cpu_to_fdt32(fdt32_to_cpu(adj_val) + delta); in overlay_update_local_node_references()
H A Dfdt.c105 tag = fdt32_to_cpu(*tagp); in fdt_next_tag()
125 + fdt32_to_cpu(*lenp); in fdt_next_tag()
H A Dfdt_ro.c287 *lenp = fdt32_to_cpu(prop->len); in fdt_get_property_by_offset()
306 if (_fdt_string_eq(fdt, fdt32_to_cpu(prop->nameoff), in fdt_get_property_namelen()
345 *namep = fdt_string(fdt, fdt32_to_cpu(prop->nameoff)); in fdt_getprop_by_offset()
369 return fdt32_to_cpu(*php); in fdt_get_phandle()
/OK3568_Linux_fs/kernel/scripts/dtc/libfdt/
H A Dfdt.c168 tag = fdt32_to_cpu(*tagp); in fdt_next_tag()
188 + fdt32_to_cpu(*lenp); in fdt_next_tag()
190 fdt_version(fdt) < 0x10 && fdt32_to_cpu(*lenp) >= 8 && in fdt_next_tag()
191 ((offset - fdt32_to_cpu(*lenp)) % 8) != 0) in fdt_next_tag()
H A 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()
258 poffset = fdt32_to_cpu(fixup_val[i]); in overlay_update_local_node_references()
268 adj_val = cpu_to_fdt32(fdt32_to_cpu(adj_val) + delta); in overlay_update_local_node_references()
/OK3568_Linux_fs/u-boot/lib/
H A Dfdtdec_common.c31 int val = fdt32_to_cpu(cell[0]); in fdtdec_get_int()
49 unsigned int val = fdt32_to_cpu(cell[0]); in fdtdec_get_uint()
H A Dfdtdec.c215 (ulong)fdt32_to_cpu(cell[0]), in fdtdec_get_pci_addr()
216 (ulong)fdt32_to_cpu(cell[1]), in fdtdec_get_pci_addr()
217 (ulong)fdt32_to_cpu(cell[2])); in fdtdec_get_pci_addr()
218 if ((fdt32_to_cpu(*cell) & type) == type) { in fdtdec_get_pci_addr()
219 addr->phys_hi = fdt32_to_cpu(cell[0]); in fdtdec_get_pci_addr()
220 addr->phys_mid = fdt32_to_cpu(cell[1]); in fdtdec_get_pci_addr()
221 addr->phys_lo = fdt32_to_cpu(cell[1]); in fdtdec_get_pci_addr()
434 path = fdt_string(blob, fdt32_to_cpu(prop->nameoff)); in fdtdec_add_aliases_for_id()
617 lookup = fdt_node_offset_by_phandle(blob, fdt32_to_cpu(*phandle)); in fdtdec_lookup_phandle()
660 array[i] = fdt32_to_cpu(cell[i]); in fdtdec_get_int_array()
[all …]
/OK3568_Linux_fs/u-boot/drivers/core/
H A Dofnode.c36 *outp = fdt32_to_cpu(cell[0]); in ofnode_read_u32()
637 (ulong)fdt32_to_cpu(cell[0]), in ofnode_read_pci_addr()
638 (ulong)fdt32_to_cpu(cell[1]), in ofnode_read_pci_addr()
639 (ulong)fdt32_to_cpu(cell[2])); in ofnode_read_pci_addr()
640 if ((fdt32_to_cpu(*cell) & type) == type) { in ofnode_read_pci_addr()
641 addr->phys_hi = fdt32_to_cpu(cell[0]); in ofnode_read_pci_addr()
642 addr->phys_mid = fdt32_to_cpu(cell[1]); in ofnode_read_pci_addr()
643 addr->phys_lo = fdt32_to_cpu(cell[1]); in ofnode_read_pci_addr()
/OK3568_Linux_fs/u-boot/arch/arm/mach-socfpga/
H A Dpinmux_arria10.c28 offset = fdt32_to_cpu(*cell++); in do_pinctr_pin()
29 value = fdt32_to_cpu(*cell++); in do_pinctr_pin()
H A Dmisc_arria10.c131 offset = fdt32_to_cpu(*cell++); in find_peripheral_uart()
132 value = fdt32_to_cpu(*cell++); in find_peripheral_uart()
/OK3568_Linux_fs/u-boot/drivers/net/fm/
H A Dfdt.c48 length = fdt32_to_cpu(hdr->length); in fdt_fixup_fman_firmware()
64 crc = fdt32_to_cpu(*(u32 *)((void *)fmanfw + length)); in fdt_fixup_fman_firmware()
/OK3568_Linux_fs/u-boot/drivers/pinctrl/
H A Dpinctrl-single.c51 reg = fdt32_to_cpu(pins->reg); in single_configure_pins()
57 val = fdt32_to_cpu(pins->val) & pdata->mask; in single_configure_pins()
/OK3568_Linux_fs/u-boot/arch/x86/cpu/broadwell/
H A Dpinctrl_broadwell.c131 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()
/OK3568_Linux_fs/u-boot/lib/libfdt/
H A Dfdt_ro.c266 *lenp = fdt32_to_cpu(prop->len); in fdt_get_property_by_offset()
285 if (_fdt_string_eq(fdt, fdt32_to_cpu(prop->nameoff), in fdt_get_property_namelen()
324 *namep = fdt_string(fdt, fdt32_to_cpu(prop->nameoff)); in fdt_getprop_by_offset()
348 return fdt32_to_cpu(*php); in fdt_get_phandle()
/OK3568_Linux_fs/u-boot/arch/arm/mach-rockchip/px30/
H A Dpx30.c638 mode = fdt32_to_cpu(*data); in fdt_fixup_rockchip_suspend()
670 fdt32_to_cpu(min[0]), fdt32_to_cpu(max[0])); in fixup_regulators_px30s()
673 if (*min == *max && fdt32_to_cpu(min[0]) == 1000000) { in fixup_regulators_px30s()

1234