Lines Matching refs:base
75 void *base = 0; in alloc_buffer() local
112 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
114 if(base == MAP_FAILED) { in alloc_buffer()
123 data.base = base; in alloc_buffer()
127 data.base, ionAllocData.len, data.fd); in alloc_buffer()
132 int IonAlloc::free_buffer(void* base, unsigned int size, unsigned int offset, in free_buffer() argument
138 base, size, fd); in free_buffer()
144 if(base) in free_buffer()
145 err = unmap_buffer(base, size, offset); in free_buffer()
155 void *base = 0; in map_buffer() local
162 base = mmap(0, size, PROT_READ| PROT_WRITE, in map_buffer()
164 *pBase = base; in map_buffer()
165 if(base == MAP_FAILED) { in map_buffer()
171 base, size, offset, fd); in map_buffer()
176 int IonAlloc::unmap_buffer(void *base, unsigned int size, in unmap_buffer() argument
180 ALOGD_IF(DEBUG, "ion: Unmapping buffer base:%p size:%u", base, size); in unmap_buffer()
182 if(munmap(base, size)) { in unmap_buffer()
185 base, strerror(errno)); in unmap_buffer()
190 int IonAlloc::clean_buffer(void *base, unsigned int size, unsigned int offset, in clean_buffer() argument
214 flush_data.vaddr = base; in clean_buffer()