Searched refs:alignmentBytes (Results 1 – 1 of 1) sorted by relevance
/frameworks/av/media/codec2/vndk/ |
D | C2AllocatorIon.cpp | 234 size_t alignmentBytes = offset % PAGE_SIZE; in map() local 235 size_t mapOffset = offset - alignmentBytes; in map() 236 size_t mapSize = size + alignmentBytes; in map() 237 Mapping map = { nullptr, alignmentBytes, mapSize }; in map() 239 … c2_status_t err = mapInternal(mapSize, mapOffset, alignmentBytes, prot, flags, &(map.addr), addr); in map() 252 if (addr != (uint8_t *)it->addr + it->alignmentBytes || in unmap() 253 size + it->alignmentBytes != it->size) { in unmap() 311 virtual c2_status_t mapInternal(size_t mapSize, size_t mapOffset, size_t alignmentBytes, in mapInternal() argument 325 *addr = (uint8_t *)*base + alignmentBytes; in mapInternal() 336 *addr = (uint8_t *)*base + alignmentBytes; in mapInternal() [all …]
|