Searched refs:ump_mem_handle (Results 1 – 3 of 3) sorted by relevance
/device/linaro/hikey/gralloc/ |
D | alloc_device.cpp | 247 ump_handle ump_mem_handle; in gralloc_alloc_buffer() local 268 ump_mem_handle = UMP_INVALID_MEMORY_HANDLE; in gralloc_alloc_buffer() 279 ump_mem_handle = ump_ref_drv_allocate(size, constraints); in gralloc_alloc_buffer() 281 if (UMP_INVALID_MEMORY_HANDLE != ump_mem_handle) in gralloc_alloc_buffer() 283 cpu_ptr = ump_mapped_pointer_get(ump_mem_handle); in gralloc_alloc_buffer() 287 ump_id = ump_secure_id_get(ump_mem_handle); in gralloc_alloc_buffer() 292 private_handle_t::LOCK_STATE_MAPPED, ump_id, ump_mem_handle); in gralloc_alloc_buffer() 301 …c_alloc_buffer() failed to allocate handle. ump_handle = %p, ump_id = %d", ump_mem_handle, ump_id); in gralloc_alloc_buffer() 306 …AERR("gralloc_alloc_buffer() failed to retrieve valid secure id. ump_handle = %p", ump_mem_handle); in gralloc_alloc_buffer() 309 ump_mapped_pointer_release(ump_mem_handle); in gralloc_alloc_buffer() [all …]
|
D | gralloc_module.cpp | 107 hnd->ump_mem_handle = (int)ump_handle_create_from_secure_id(hnd->ump_id); in gralloc_register_buffer() 109 if (UMP_INVALID_MEMORY_HANDLE != (ump_handle)hnd->ump_mem_handle) in gralloc_register_buffer() 111 hnd->base = ump_mapped_pointer_get((ump_handle)hnd->ump_mem_handle); in gralloc_register_buffer() 123 AERR("Failed to map UMP handle 0x%x", hnd->ump_mem_handle); in gralloc_register_buffer() 126 ump_reference_release((ump_handle)hnd->ump_mem_handle); in gralloc_register_buffer() 130 AERR("Failed to create UMP handle 0x%x", hnd->ump_mem_handle); in gralloc_register_buffer() 206 ump_mapped_pointer_release((ump_handle)hnd->ump_mem_handle); in unmap_buffer() 207 ump_reference_release((ump_handle)hnd->ump_mem_handle); in unmap_buffer() 208 hnd->ump_mem_handle = (int)UMP_INVALID_MEMORY_HANDLE; in unmap_buffer() 425 …ump_cpu_msync_now((ump_handle)hnd->ump_mem_handle, UMP_MSYNC_CLEAN_AND_INVALIDATE, (void *)hnd->ba… in gralloc_unlock()
|
D | gralloc_priv.h | 191 int ump_mem_handle; member 235 ump_mem_handle((int)handle), in private_handle_t() 269 ump_mem_handle((int)UMP_INVALID_MEMORY_HANDLE), in private_handle_t() 303 ump_mem_handle((int)UMP_INVALID_MEMORY_HANDLE), in private_handle_t()
|