/DragonStub/apps/lib/libfdt/ |
H A D | fdt_ro.c | 13 static int fdt_nodename_eq_(const void *fdt, int offset, in fdt_nodename_eq_() argument 17 const char *p = fdt_get_name(fdt, offset, &olen); in fdt_nodename_eq_() 117 int offset = -1; in fdt_find_max_phandle() local 122 offset = fdt_next_node(fdt, offset, NULL); in fdt_find_max_phandle() 123 if (offset < 0) { in fdt_find_max_phandle() 124 if (offset == -FDT_ERR_NOTFOUND) in fdt_find_max_phandle() 127 return offset; in fdt_find_max_phandle() 130 value = fdt_get_phandle(fdt, offset); in fdt_find_max_phandle() 162 unsigned int offset = n * sizeof(struct fdt_reserve_entry); in fdt_mem_rsv() local 163 unsigned int absoffset = fdt_off_mem_rsvmap(fdt) + offset; in fdt_mem_rsv() [all …]
|
H A D | fdt.c | 141 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int len) in fdt_offset_ptr() argument 143 unsigned int uoffset = offset; in fdt_offset_ptr() 144 unsigned int absoffset = offset + fdt_off_dt_struct(fdt); in fdt_offset_ptr() 146 if (offset < 0) in fdt_offset_ptr() 157 || ((offset + len) > fdt_size_dt_struct(fdt))) in fdt_offset_ptr() 160 return fdt_offset_ptr_(fdt, offset); in fdt_offset_ptr() 167 int offset = startoffset; in fdt_next_tag() local 171 tagp = fdt_offset_ptr(fdt, offset, FDT_TAGSIZE); in fdt_next_tag() 175 offset += FDT_TAGSIZE; in fdt_next_tag() 182 p = fdt_offset_ptr(fdt, offset++, 1); in fdt_next_tag() [all …]
|
H A D | fdt_sw.c | 96 unsigned int offset = fdt_size_dt_struct(fdt); in fdt_grab_space_() local 102 if ((offset + len < offset) || (offset + len > spaceleft)) in fdt_grab_space_() 105 fdt_set_size_dt_struct(fdt, offset + len); in fdt_grab_space_() 106 return fdt_offset_ptr_w_(fdt, offset); in fdt_grab_space_() 191 int offset; in fdt_add_reservemap_entry() local 195 offset = fdt_off_dt_struct(fdt); in fdt_add_reservemap_entry() 196 if ((offset + sizeof(*re)) > fdt_totalsize(fdt)) in fdt_add_reservemap_entry() 199 re = (struct fdt_reserve_entry *)((char *)fdt + offset); in fdt_add_reservemap_entry() 203 fdt_set_off_dt_struct(fdt, offset + sizeof(*re)); in fdt_add_reservemap_entry() 255 unsigned int struct_top, offset; in fdt_add_string_() local [all …]
|
H A D | libfdt_internal.h | 21 int fdt_check_node_offset_(const void *fdt, int offset); 22 int fdt_check_prop_offset_(const void *fdt, int offset); 26 static inline const void *fdt_offset_ptr_(const void *fdt, int offset) in fdt_offset_ptr_() argument 28 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset; in fdt_offset_ptr_() 31 static inline void *fdt_offset_ptr_w_(void *fdt, int offset) in fdt_offset_ptr_w_() argument 33 return (void *)(uintptr_t)fdt_offset_ptr_(fdt, offset); in fdt_offset_ptr_w_()
|
H A D | fdt_wip.c | 73 int fdt_node_end_offset_(void *fdt, int offset) in fdt_node_end_offset_() argument 77 while ((offset >= 0) && (depth >= 0)) in fdt_node_end_offset_() 78 offset = fdt_next_node(fdt, offset, &depth); in fdt_node_end_offset_() 80 return offset; in fdt_node_end_offset_()
|
H A D | libfdt.h | 120 const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int checklen); 122 static inline void *fdt_offset_ptr_w(void *fdt, int offset, int checklen) in fdt_offset_ptr_w() argument 124 return (void *)(uintptr_t)fdt_offset_ptr(fdt, offset, checklen); in fdt_offset_ptr_w() 127 uint32_t fdt_next_tag(const void *fdt, int offset, int *nextoffset); 193 int fdt_next_node(const void *fdt, int offset, int *depth); 202 int fdt_first_subnode(const void *fdt, int offset); 215 int fdt_next_subnode(const void *fdt, int offset); 604 int fdt_next_property_offset(const void *fdt, int offset); 661 int offset, 664 int offset, in fdt_get_property_by_offset_w() argument [all …]
|
H A D | fdt_rw.c | 337 int offset, nextoffset; in fdt_add_subnode_namelen() local 345 offset = fdt_subnode_offset_namelen(fdt, parentoffset, name, namelen); in fdt_add_subnode_namelen() 346 if (offset >= 0) in fdt_add_subnode_namelen() 348 else if (offset != -FDT_ERR_NOTFOUND) in fdt_add_subnode_namelen() 349 return offset; in fdt_add_subnode_namelen() 357 offset = nextoffset; in fdt_add_subnode_namelen() 358 tag = fdt_next_tag(fdt, offset, &nextoffset); in fdt_add_subnode_namelen() 361 nh = fdt_offset_ptr_w_(fdt, offset); in fdt_add_subnode_namelen() 374 return offset; in fdt_add_subnode_namelen()
|
/DragonStub/apps/ |
H A D | fdt.c | 20 int offset; in fdt_update_cell_size() local 22 offset = fdt_path_offset(fdt, "/"); in fdt_update_cell_size() 25 fdt_setprop_u32(fdt, offset, "#address-cells", in fdt_update_cell_size() 27 fdt_setprop_u32(fdt, offset, "#size-cells", EFI_DT_SIZE_CELLS_DEFAULT); in fdt_update_cell_size()
|
/DragonStub/docs/ |
H A D | README.gnuefi | 250 global offset tables, the uninitialized data segment (bss) and 271 22-bit offset that the "addl" instruction affords. Specifically, 307 normally require relocation of the global offset table.
|
/DragonStub/ |
H A D | ChangeLog | 1048 regarding physical disk layout, including alingment offset at the 1276 offset.
|