Home
last modified time | relevance | path

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

/frameworks/av/media/codec2/vndk/
DC2AllocatorIon.cpp205 size_t alignmentBytes = offset % kPageSize; in map() local
206 size_t mapOffset = offset - alignmentBytes; in map()
207 size_t mapSize = size + alignmentBytes; in map()
208 Mapping map = { nullptr, alignmentBytes, mapSize }; in map()
210 … c2_status_t err = mapInternal(mapSize, mapOffset, alignmentBytes, prot, flags, &(map.addr), addr); in map()
224 if (addr != (uint8_t *)it->addr + it->alignmentBytes || in unmap()
225 size + it->alignmentBytes != it->size) { in unmap()
285 virtual c2_status_t mapInternal(size_t mapSize, size_t mapOffset, size_t alignmentBytes, in mapInternal() argument
299 *addr = (uint8_t *)*base + alignmentBytes; in mapInternal()
310 *addr = (uint8_t *)*base + alignmentBytes; in mapInternal()
[all …]
DC2DmaBufAllocator.cpp141 virtual c2_status_t mapInternal(size_t mapSize, size_t mapOffset, size_t alignmentBytes, in mapInternal() argument
152 *addr = (uint8_t*)*base + alignmentBytes; in mapInternal()
162 size_t alignmentBytes; member
196 size_t alignmentBytes = offset % kPageSize; in map() local
197 size_t mapOffset = offset - alignmentBytes; in map()
198 size_t mapSize = size + alignmentBytes; in map()
199 Mapping map = {nullptr, alignmentBytes, mapSize}; in map()
202 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()