/device/linaro/hikey/gralloc/ |
gralloc_priv.h | 204 ion_user_handle_t ion_hnd; member in struct:private_handle_t 241 ion_hnd(ION_INVALID_HANDLE) 274 ion_hnd(ION_INVALID_HANDLE) 310 ion_hnd(ION_INVALID_HANDLE)
|
alloc_device.cpp | 127 ion_user_handle_t ion_hnd; local 152 ret = ion_alloc(m->ion_client, size, 0, ION_HEAP_TYPE_DMA_MASK, 0, &(ion_hnd)); 154 ret = ion_alloc(m->ion_client, size, 0, ION_HEAP_SYSTEM_MASK, 0, &(ion_hnd)); 162 ret = ion_share(m->ion_client, ion_hnd, &shared_fd); 168 if (0 != ion_free(m->ion_client, ion_hnd)) 176 // we do not need ion_hnd once we have shared_fd 177 if (0 != ion_free(m->ion_client, ion_hnd)) 181 ion_hnd = ION_INVALID_HANDLE;
|
/device/linaro/hikey/gralloc960/ |
mali_gralloc_ion.cpp | 156 ion_user_handle_t ion_hnd = -1; local 165 * step 1: ion_alloc new ion_hnd 166 * step 2: ion_share from ion_hnd and get shared_fd 167 * step 3: ion free the given ion_hnd 172 ret = ion_alloc(ion_fd, size, 0, heap_mask, flags, &ion_hnd); 188 ret = ion_alloc(ion_fd, size, 0, heap_mask, flags, &ion_hnd); 192 ret = ion_share(ion_fd, ion_hnd, &shared_fd); 200 ret = ion_free(ion_fd, ion_hnd);
|