Home
last modified time | relevance | path

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

/frameworks/av/media/codec2/vndk/
DC2AllocatorIon.cpp198 size_t alignmentBytes = offset % PAGE_SIZE; in map() local
199 size_t mapOffset = offset - alignmentBytes; in map()
200 size_t mapSize = size + alignmentBytes; in map()
201 Mapping map = { nullptr, alignmentBytes, mapSize }; in map()
203 … c2_status_t err = mapInternal(mapSize, mapOffset, alignmentBytes, prot, flags, &(map.addr), addr); in map()
216 if (addr != (uint8_t *)it->addr + it->alignmentBytes || in unmap()
217 size + it->alignmentBytes != it->size) { in unmap()
275 virtual c2_status_t mapInternal(size_t mapSize, size_t mapOffset, size_t alignmentBytes, in mapInternal() argument
289 *addr = (uint8_t *)*base + alignmentBytes; in mapInternal()
300 *addr = (uint8_t *)*base + alignmentBytes; in mapInternal()
[all …]