Lines Matching refs:extents

349 _libelf_release_extents(struct _Elf_Extent_List *extents)  in _libelf_release_extents()  argument
353 while ((ex = SLIST_FIRST(extents)) != NULL) { in _libelf_release_extents()
354 SLIST_REMOVE_HEAD(extents, ex_next); in _libelf_release_extents()
366 _libelf_extent_is_unused(struct _Elf_Extent_List *extents, in _libelf_extent_is_unused() argument
375 SLIST_FOREACH(t, extents, ex_next) { in _libelf_extent_is_unused()
408 _libelf_insert_extent(struct _Elf_Extent_List *extents, int type, in _libelf_insert_extent() argument
421 if (!_libelf_extent_is_unused(extents, start, size, &prevt)) { in _libelf_insert_extent()
440 SLIST_INSERT_HEAD(extents, ex, ex_next); in _libelf_insert_extent()
449 _libelf_resync_sections(Elf *e, off_t rc, struct _Elf_Extent_List *extents) in _libelf_resync_sections() argument
476 if (!_libelf_insert_extent(extents, ELF_EXTENT_SECTION, in _libelf_resync_sections()
510 _libelf_resync_elf(Elf *e, struct _Elf_Extent_List *extents) in _libelf_resync_elf() argument
604 if (!_libelf_insert_extent(extents, ELF_EXTENT_EHDR, 0, (uint64_t) rc, in _libelf_resync_elf()
638 if (!_libelf_insert_extent(extents, ELF_EXTENT_PHDR, in _libelf_resync_elf()
654 if ((rc = _libelf_resync_sections(e, rc, extents)) < 0) in _libelf_resync_elf()
684 if (!_libelf_insert_extent(extents, ELF_EXTENT_SHDR, in _libelf_resync_elf()
1035 _libelf_write_elf(Elf *e, off_t newsize, struct _Elf_Extent_List *extents) in _libelf_write_elf() argument
1052 SLIST_FOREACH(ex, extents, ex_next) { in _libelf_write_elf()
1204 struct _Elf_Extent_List extents; in elf_update() local
1227 SLIST_INIT(&extents); in elf_update()
1229 if ((rc = _libelf_resync_elf(e, &extents)) < 0) in elf_update()
1241 rc = _libelf_write_elf(e, rc, &extents); in elf_update()
1244 _libelf_release_extents(&extents); in elf_update()