Lines Matching refs:base
75 void *base = 0; in alloc_buffer() local
102 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
104 if(base == MAP_FAILED) { in alloc_buffer()
113 data.base = base; in alloc_buffer()
117 data.base, ionAllocData.len, data.fd); in alloc_buffer()
122 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()
145 void *base = 0; in map_buffer() local
152 base = mmap(0, size, PROT_READ| PROT_WRITE, in map_buffer()
154 *pBase = base; in map_buffer()
155 if(base == MAP_FAILED) { in map_buffer()
161 base, size, offset, fd); in map_buffer()
166 int IonAlloc::unmap_buffer(void *base, unsigned int size, in unmap_buffer() argument
170 ALOGD_IF(DEBUG, "ion: Unmapping buffer base:%p size:%u", base, size); in unmap_buffer()
172 if(munmap(base, size)) { in unmap_buffer()
175 base, strerror(errno)); in unmap_buffer()
180 int IonAlloc::clean_buffer(void *base, unsigned int size, unsigned int offset, in clean_buffer() argument
204 flush_data.vaddr = base; in clean_buffer()