MCPcopy Create free account
hub / github.com/coreboot/coreboot / absolute_align

Function absolute_align

util/cbfstool/cbfs_image.c:1950–1958  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1948}
1949
1950static size_t absolute_align(const struct cbfs_image *image, size_t val,
1951 size_t align)
1952{
1953 const size_t region_offset = buffer_offset(&image->buffer);
1954 /* To perform alignment on absolute address, take the region offset */
1955 /* of the image into account. */
1956 return align_up(val + region_offset, align) - region_offset;
1957
1958}
1959
1960int32_t cbfs_locate_entry(struct cbfs_image *image, size_t size,
1961 size_t page_size, size_t align, size_t metadata_size)

Callers 1

cbfs_locate_entryFunction · 0.85

Calls 2

buffer_offsetFunction · 0.85
align_upFunction · 0.70

Tested by

no test coverage detected