Searched refs:cpu_ptr (Results 1 – 3 of 3) sorted by relevance
/device/linaro/hikey/gralloc/ |
D | alloc_device.cpp | 204 void *cpu_ptr = MAP_FAILED; in gralloc_alloc_buffer() local 241 cpu_ptr = mmap(NULL, size, map_mask, MAP_SHARED, shared_fd, 0); in gralloc_alloc_buffer() 243 if (MAP_FAILED == cpu_ptr) in gralloc_alloc_buffer() 253 …nd = new private_handle_t(private_handle_t::PRIV_FLAGS_USES_ION, usage, size, cpu_ptr, lock_state); in gralloc_alloc_buffer() 268 ret = munmap(cpu_ptr, size); in gralloc_alloc_buffer() 272 AERR("munmap failed for base:%p size: %lu", cpu_ptr, (unsigned long)size); in gralloc_alloc_buffer() 283 void *cpu_ptr; in gralloc_alloc_buffer() local 318 cpu_ptr = ump_mapped_pointer_get(ump_mem_handle); in gralloc_alloc_buffer() 320 if (NULL != cpu_ptr) in gralloc_alloc_buffer() 326 …e_handle_t *hnd = new private_handle_t(private_handle_t::PRIV_FLAGS_USES_UMP, usage, size, cpu_ptr, in gralloc_alloc_buffer()
|
/device/amlogic/yukawa/hal/gralloc/ |
D | mali_gralloc_ion.cpp | 398 unsigned char *cpu_ptr = NULL; in mali_gralloc_ion_allocate() local 588 cpu_ptr = in mali_gralloc_ion_allocate() 591 if (MAP_FAILED == cpu_ptr) in mali_gralloc_ion_allocate() 602 init_afbc(cpu_ptr, bufDescriptor->internal_format, bufDescriptor->width, bufDescriptor->height); in mali_gralloc_ion_allocate() 606 hnd->base = cpu_ptr; in mali_gralloc_ion_allocate()
|
/device/linaro/hikey/gralloc960/ |
D | mali_gralloc_ion.cpp | 490 unsigned char *cpu_ptr = NULL; in mali_gralloc_ion_allocate() local 630 cpu_ptr = in mali_gralloc_ion_allocate() 633 if (MAP_FAILED == cpu_ptr) in mali_gralloc_ion_allocate() 644 init_afbc(cpu_ptr, bufDescriptor->internal_format, bufDescriptor->width, bufDescriptor->height); in mali_gralloc_ion_allocate() 648 hnd->base = cpu_ptr; in mali_gralloc_ion_allocate()
|