Home
last modified time | relevance | path

Searched refs:ion_fd (Results 1 – 4 of 4) sorted by relevance

/device/google/marlin/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_ionbuf.c66 p_buffer->ion_fd = open("/dev/ion", O_RDONLY); in buffer_allocate()
67 if(p_buffer->ion_fd < 0) { in buffer_allocate()
74 lrc = ioctl(p_buffer->ion_fd, ION_IOC_ALLOC, &p_buffer->alloc); in buffer_allocate()
82 lrc = ioctl(p_buffer->ion_fd, ION_IOC_SHARE, in buffer_allocate()
104 ioctl(p_buffer->ion_fd, ION_IOC_FREE, &lhandle_data); in buffer_allocate()
134 ioctl(p_buffer->ion_fd, ION_IOC_FREE, &lhandle_data); in buffer_deallocate()
136 close(p_buffer->ion_fd); in buffer_deallocate()
167 lrc = ioctl(p_buffer->ion_fd, ION_IOC_CUSTOM, &custom_data); in buffer_invalidate()
Dmm_jpeg.c2658 p_session->work_buffer.ion_fd = -1; in mm_jpeg_create_session()
/device/linaro/hikey/gralloc960/
Dmali_gralloc_ion.cpp154 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/google/marlin/camera/QCamera2/stack/mm-jpeg-interface/inc/
Dmm_jpeg_ionbuf.h44 int ion_fd; member