Lines Matching refs:base
75 void *base = 0; in alloc_buffer() local
106 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
108 if(base == MAP_FAILED) { in alloc_buffer()
117 data.base = base; in alloc_buffer()
121 data.base, ionAllocData.len, data.fd); in alloc_buffer()
126 int IonAlloc::free_buffer(void* base, unsigned int size, unsigned int offset, in free_buffer() argument
132 base, size, fd); in free_buffer()
138 if(base) in free_buffer()
139 err = unmap_buffer(base, size, offset); in free_buffer()
149 void *base = 0; in map_buffer() local
156 base = mmap(0, size, PROT_READ| PROT_WRITE, in map_buffer()
158 *pBase = base; in map_buffer()
159 if(base == MAP_FAILED) { in map_buffer()
165 base, size, offset, fd); in map_buffer()
170 int IonAlloc::unmap_buffer(void *base, unsigned int size, in unmap_buffer() argument
174 ALOGD_IF(DEBUG, "ion: Unmapping buffer base:%p size:%u", base, size); in unmap_buffer()
176 if(munmap(base, size)) { in unmap_buffer()
179 base, strerror(errno)); in unmap_buffer()
184 int IonAlloc::clean_buffer(void *base, unsigned int size, unsigned int offset, in clean_buffer() argument
208 flush_data.vaddr = base; in clean_buffer()