Home
last modified time | relevance | path

Searched refs:prop (Results 1 – 7 of 7) sorted by relevance

/DragonStub/apps/lib/libfdt/
H A Dfdt_addresses.c61 uint8_t data[sizeof(fdt64_t) * 2], *prop; in fdt_appendprop_addrrange() local
74 prop = data; in fdt_appendprop_addrrange()
79 fdt32_st(prop, (uint32_t)addr); in fdt_appendprop_addrrange()
81 fdt64_st(prop, addr); in fdt_appendprop_addrrange()
87 prop += addr_cells * sizeof(fdt32_t); in fdt_appendprop_addrrange()
92 fdt32_st(prop, (uint32_t)size); in fdt_appendprop_addrrange()
94 fdt64_st(prop, size); in fdt_appendprop_addrrange()
H A Dfdt_rw.c185 int len, struct fdt_property **prop) in fdt_resize_property_() argument
190 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_resize_property_()
191 if (!*prop) in fdt_resize_property_()
194 if ((err = fdt_splice_struct_(fdt, (*prop)->data, FDT_TAGALIGN(oldlen), in fdt_resize_property_()
198 (*prop)->len = cpu_to_fdt32(len); in fdt_resize_property_()
203 int len, struct fdt_property **prop) in fdt_add_property_() argument
218 *prop = fdt_offset_ptr_w_(fdt, nextoffset); in fdt_add_property_()
219 proplen = sizeof(**prop) + FDT_TAGALIGN(len); in fdt_add_property_()
221 err = fdt_splice_struct_(fdt, *prop, 0, proplen); in fdt_add_property_()
229 (*prop)->tag = cpu_to_fdt32(FDT_PROP); in fdt_add_property_()
[all …]
H A Dfdt_ro.c361 const struct fdt_property *prop; in fdt_get_property_by_offset_() local
370 prop = fdt_offset_ptr_(fdt, offset); in fdt_get_property_by_offset_()
373 *lenp = fdt32_ld_(&prop->len); in fdt_get_property_by_offset_()
375 return prop; in fdt_get_property_by_offset_()
404 const struct fdt_property *prop; in fdt_get_property_namelen_() local
406 prop = fdt_get_property_by_offset_(fdt, offset, lenp); in fdt_get_property_namelen_()
407 if (!can_assume(LIBFDT_FLAWLESS) && !prop) { in fdt_get_property_namelen_()
411 if (fdt_string_eq_(fdt, fdt32_ld_(&prop->nameoff), in fdt_get_property_namelen_()
415 return prop; in fdt_get_property_namelen_()
455 const struct fdt_property *prop; in fdt_getprop_namelen() local
[all …]
H A Dfdt_wip.c61 struct fdt_property *prop; in fdt_nop_property() local
64 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_nop_property()
65 if (!prop) in fdt_nop_property()
68 fdt_nop_region_(prop, len + sizeof(*prop)); in fdt_nop_property()
H A Dfdt_sw.c295 struct fdt_property *prop; in fdt_property_placeholder() local
311 prop = fdt_grab_space_(fdt, sizeof(*prop) + FDT_TAGALIGN(len)); in fdt_property_placeholder()
312 if (! prop) { in fdt_property_placeholder()
318 prop->tag = cpu_to_fdt32(FDT_PROP); in fdt_property_placeholder()
319 prop->nameoff = cpu_to_fdt32(nameoff); in fdt_property_placeholder()
320 prop->len = cpu_to_fdt32(len); in fdt_property_placeholder()
321 *valp = prop->data; in fdt_property_placeholder()
363 struct fdt_property *prop = in fdt_finish() local
367 nameoff = fdt32_to_cpu(prop->nameoff); in fdt_finish()
369 prop->nameoff = cpu_to_fdt32(nameoff); in fdt_finish()
H A Dfdt_overlay.c550 const void *prop; in overlay_apply_node() local
554 prop = fdt_getprop_by_offset(fdto, property, &name, in overlay_apply_node()
561 ret = fdt_setprop(fdt, target, name, prop, prop_len); in overlay_apply_node()
682 int root_sym, ov_sym, prop, path_len, fragment, target; in overlay_symbol_update() local
710 fdt_for_each_property_offset(prop, fdto, ov_sym) { in overlay_symbol_update()
711 path = fdt_getprop_by_offset(fdto, prop, &name, &path_len); in overlay_symbol_update()
/DragonStub/apps/
H A Driscv-stub.c16 const void *prop; in get_boot_hartid_from_fdt() local
31 prop = fdt_getprop((void *)fdt, chosen_node, "boot-hartid", &len); in get_boot_hartid_from_fdt()
32 if (!prop) { in get_boot_hartid_from_fdt()
38 hartid = (unsigned long)fdt32_to_cpu(*(fdt32_t *)prop); in get_boot_hartid_from_fdt()
41 __get_unaligned_t(fdt64_t, prop)); in get_boot_hartid_from_fdt()