Lines Matching refs:base
104 int IonAlloc::FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, in FreeBuffer() argument
108 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%u fd:%d handle:0x%x", base, size, fd, in FreeBuffer()
111 if (base) { in FreeBuffer()
112 err = UnmapBuffer(base, size, offset); in FreeBuffer()
124 int IonAlloc::MapBuffer(void **base, unsigned int size, unsigned int offset, int fd) { in MapBuffer() argument
132 *base = addr; in MapBuffer()
155 int IonAlloc::UnmapBuffer(void *base, unsigned int size, unsigned int /*offset*/) { in UnmapBuffer() argument
157 ALOGD_IF(DEBUG, "ion: Unmapping buffer base:%p size:%u", base, size); in UnmapBuffer()
160 if (munmap(base, size)) { in UnmapBuffer()
162 ALOGE("ion: Failed to unmap memory at %p : %s", base, strerror(errno)); in UnmapBuffer()
168 int IonAlloc::CleanBuffer(void *base, unsigned int size, unsigned int offset, int handle, int op) { in CleanBuffer() argument
175 flush_data.vaddr = base; in CleanBuffer()