Searched refs:ion_fd (Results 1 – 3 of 3) sorted by relevance
/device/amlogic/yukawa/hal/gralloc/ |
D | mali_gralloc_ion.cpp | 154 static int alloc_from_ion_heap(int ion_fd, size_t size, unsigned int heap_mask, unsigned int flags,… in alloc_from_ion_heap() argument 159 if ((ion_fd < 0) || (size <= 0) || (heap_mask == 0) || (min_pgsz == NULL)) in alloc_from_ion_heap() 172 ret = ion_alloc(ion_fd, size, 0, heap_mask, flags, &ion_hnd); in alloc_from_ion_heap() 188 ret = ion_alloc(ion_fd, size, 0, heap_mask, flags, &ion_hnd); in alloc_from_ion_heap() 192 ret = ion_share(ion_fd, ion_hnd, &shared_fd); in alloc_from_ion_heap() 196 AERR("ion_share( %d ) failed", ion_fd); in alloc_from_ion_heap() 200 ret = ion_free(ion_fd, ion_hnd); in alloc_from_ion_heap() 204 AERR("ion_free( %d ) failed", ion_fd); in alloc_from_ion_heap()
|
/device/linaro/hikey/gralloc960/ |
D | mali_gralloc_ion.cpp | 199 static int alloc_ion_fd(int ion_fd, size_t size, unsigned int heap_mask, unsigned int flags, int *s… in alloc_ion_fd() argument 219 return ion_alloc_fd(ion_fd, size, 0, heap, flags, shared_fd); in alloc_ion_fd() 222 static int alloc_from_ion_heap(int ion_fd, size_t size, unsigned int heap_mask, unsigned int flags,… in alloc_from_ion_heap() argument 227 if ((interface_ver != INTERFACE_DMABUF_HEAPS) && (ion_fd < 0)) in alloc_from_ion_heap() 233 ret = alloc_ion_fd(ion_fd, size, heap_mask, flags, &(shared_fd)); in alloc_from_ion_heap() 248 ret = alloc_ion_fd(ion_fd, size, heap_mask, flags, &(shared_fd)); in alloc_from_ion_heap()
|
/device/linaro/hikey/gralloc/ |
D | alloc_device.cpp | 175 static int alloc_ion_fd(int ion_fd, size_t size, unsigned int heap_mask, unsigned int flags, int *s… in alloc_ion_fd() argument 195 return ion_alloc_fd(ion_fd, size, 0, heap, flags, shared_fd); in alloc_ion_fd()
|