Lines Matching refs:base
72 void *base = 0; in alloc_buffer() local
103 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
105 if(base == MAP_FAILED) { in alloc_buffer()
114 data.base = base; in alloc_buffer()
118 data.base, ionAllocData.len, data.fd); in alloc_buffer()
123 int IonAlloc::free_buffer(void* base, size_t size, size_t offset, int fd) in free_buffer() argument
127 base, size, fd); in free_buffer()
133 if(base) in free_buffer()
134 err = unmap_buffer(base, size, offset); in free_buffer()
142 void *base = 0; in map_buffer() local
149 base = mmap(0, size, PROT_READ| PROT_WRITE, in map_buffer()
151 *pBase = base; in map_buffer()
152 if(base == MAP_FAILED) { in map_buffer()
158 base, size, offset, fd); in map_buffer()
163 int IonAlloc::unmap_buffer(void *base, size_t size, size_t /*offset*/) in unmap_buffer() argument
165 ALOGD_IF(DEBUG, "ion: Unmapping buffer base:%p size:%zu", base, size); in unmap_buffer()
167 if(munmap(base, size)) { in unmap_buffer()
170 base, strerror(errno)); in unmap_buffer()
175 int IonAlloc::clean_buffer(void *base, size_t size, size_t offset, int fd, int op) in clean_buffer() argument
196 flush_data.vaddr = base; in clean_buffer()