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, unsigned int size, unsigned int offset, in free_buffer() argument
128 base, size, fd); in free_buffer()
134 if(base) in free_buffer()
135 err = unmap_buffer(base, size, offset); in free_buffer()
144 void *base = 0; in map_buffer() local
151 base = mmap(0, size, PROT_READ| PROT_WRITE, in map_buffer()
153 *pBase = base; in map_buffer()
154 if(base == MAP_FAILED) { in map_buffer()
160 base, size, offset, fd); in map_buffer()
165 int IonAlloc::unmap_buffer(void *base, unsigned int size, in unmap_buffer() argument
168 ALOGD_IF(DEBUG, "ion: Unmapping buffer base:%p size:%u", base, size); in unmap_buffer()
170 if(munmap(base, size)) { in unmap_buffer()
173 base, strerror(errno)); in unmap_buffer()
178 int IonAlloc::clean_buffer(void *base, unsigned int size, unsigned int offset, in clean_buffer() argument
200 flush_data.vaddr = base; in clean_buffer()