Lines Matching refs:base
114 int IonAlloc::FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, in FreeBuffer() argument
118 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%u fd:%d handle:0x%x", base, size, fd, in FreeBuffer()
121 if (base) { in FreeBuffer()
122 err = UnmapBuffer(base, size, offset); in FreeBuffer()
134 int IonAlloc::MapBuffer(void **base, unsigned int size, unsigned int offset, int fd) { in MapBuffer() argument
142 *base = addr; in MapBuffer()
165 int IonAlloc::UnmapBuffer(void *base, unsigned int size, unsigned int /*offset*/) { in UnmapBuffer() argument
167 ALOGD_IF(DEBUG, "ion: Unmapping buffer base:%p size:%u", base, size); in UnmapBuffer()
170 if (munmap(base, size)) { in UnmapBuffer()
172 ALOGE("ion: Failed to unmap memory at %p : %s", base, strerror(errno)); in UnmapBuffer()
178 int IonAlloc::CleanBuffer(void *base, unsigned int size, unsigned int offset, int handle, int op) { in CleanBuffer() argument
185 flush_data.vaddr = base; in CleanBuffer()