Lines Matching refs:ump_mem_handle
282 ump_handle ump_mem_handle; in gralloc_alloc_buffer() local
303 ump_mem_handle = UMP_INVALID_MEMORY_HANDLE; in gralloc_alloc_buffer()
314 ump_mem_handle = ump_ref_drv_allocate(size, constraints); in gralloc_alloc_buffer()
316 if (UMP_INVALID_MEMORY_HANDLE != ump_mem_handle) in gralloc_alloc_buffer()
318 cpu_ptr = ump_mapped_pointer_get(ump_mem_handle); in gralloc_alloc_buffer()
322 ump_id = ump_secure_id_get(ump_mem_handle); in gralloc_alloc_buffer()
327 private_handle_t::LOCK_STATE_MAPPED, ump_id, ump_mem_handle); in gralloc_alloc_buffer()
336 …c_alloc_buffer() failed to allocate handle. ump_handle = %p, ump_id = %d", ump_mem_handle, ump_id); in gralloc_alloc_buffer()
341 …AERR("gralloc_alloc_buffer() failed to retrieve valid secure id. ump_handle = %p", ump_mem_handle); in gralloc_alloc_buffer()
344 ump_mapped_pointer_release(ump_mem_handle); in gralloc_alloc_buffer()
348 AERR("gralloc_alloc_buffer() failed to map UMP memory. ump_handle = %p", ump_mem_handle); in gralloc_alloc_buffer()
351 ump_reference_release(ump_mem_handle); in gralloc_alloc_buffer()
428 hnd->ump_mem_handle = (int)ump_handle_create_from_secure_id(hnd->ump_id); in gralloc_alloc_framebuffer_locked()
430 if ((int)UMP_INVALID_MEMORY_HANDLE == hnd->ump_mem_handle) in gralloc_alloc_framebuffer_locked()
657 if ((int)UMP_INVALID_MEMORY_HANDLE != hnd->ump_mem_handle) in alloc_device_free()
659 ump_reference_release((ump_handle)hnd->ump_mem_handle); in alloc_device_free()
669 if ((int)UMP_INVALID_MEMORY_HANDLE != hnd->ump_mem_handle) in alloc_device_free()
671 ump_mapped_pointer_release((ump_handle)hnd->ump_mem_handle); in alloc_device_free()
672 ump_reference_release((ump_handle)hnd->ump_mem_handle); in alloc_device_free()