Searched refs:attr_base (Results 1 – 8 of 8) sorted by relevance
/device/amlogic/yukawa/hal/gralloc/ |
D | gralloc_buffer_priv.cpp | 76 hnd->attr_base = mmap(NULL, PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, hnd->share_attr_fd, 0); in gralloc_buffer_attr_allocate() 78 if (hnd->attr_base != MAP_FAILED) in gralloc_buffer_attr_allocate() 84 attr_region *region = (attr_region *)hnd->attr_base; in gralloc_buffer_attr_allocate() 86 memset(hnd->attr_base, 0xff, PAGE_SIZE); in gralloc_buffer_attr_allocate() 87 munmap(hnd->attr_base, PAGE_SIZE); in gralloc_buffer_attr_allocate() 88 hnd->attr_base = MAP_FAILED; in gralloc_buffer_attr_allocate() 132 if (hnd->attr_base != MAP_FAILED) in gralloc_buffer_attr_free() 135 munmap(hnd->attr_base, PAGE_SIZE); in gralloc_buffer_attr_free() 136 hnd->attr_base = MAP_FAILED; in gralloc_buffer_attr_free()
|
D | gralloc_buffer_priv.h | 85 hnd->attr_base = mmap(NULL, PAGE_SIZE, prot_flags, MAP_SHARED, hnd->share_attr_fd, 0); in gralloc_buffer_attr_map() 87 if (hnd->attr_base == MAP_FAILED) in gralloc_buffer_attr_map() 113 if (hnd->attr_base != MAP_FAILED) in gralloc_buffer_attr_unmap() 115 if (munmap(hnd->attr_base, PAGE_SIZE) == 0) in gralloc_buffer_attr_unmap() 117 hnd->attr_base = MAP_FAILED; in gralloc_buffer_attr_unmap() 140 if (hnd->attr_base != MAP_FAILED) in gralloc_buffer_attr_write() 142 attr_region *region = (attr_region *)hnd->attr_base; in gralloc_buffer_attr_write() 176 if (hnd->attr_base != MAP_FAILED) in gralloc_buffer_attr_read() 178 attr_region *region = (attr_region *)hnd->attr_base; in gralloc_buffer_attr_read()
|
D | mali_gralloc_buffer.h | 146 void *attr_base; member 198 , attr_base(MAP_FAILED) in private_handle_t() 235 , attr_base(MAP_FAILED) in private_handle_t()
|
D | mali_gralloc_private_interface.cpp | 189 if (hnd->attr_base == MAP_FAILED) in mali_gralloc_private_get_attr_param() 224 if (hnd->attr_base == MAP_FAILED) in mali_gralloc_private_set_attr_param()
|
/device/linaro/hikey/gralloc960/ |
D | gralloc_buffer_priv.cpp | 76 hnd->attr_base = mmap(NULL, PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, hnd->share_attr_fd, 0); in gralloc_buffer_attr_allocate() 78 if (hnd->attr_base != MAP_FAILED) in gralloc_buffer_attr_allocate() 84 attr_region *region = (attr_region *)hnd->attr_base; in gralloc_buffer_attr_allocate() 86 memset(hnd->attr_base, 0xff, PAGE_SIZE); in gralloc_buffer_attr_allocate() 87 munmap(hnd->attr_base, PAGE_SIZE); in gralloc_buffer_attr_allocate() 88 hnd->attr_base = MAP_FAILED; in gralloc_buffer_attr_allocate() 132 if (hnd->attr_base != MAP_FAILED) in gralloc_buffer_attr_free() 135 munmap(hnd->attr_base, PAGE_SIZE); in gralloc_buffer_attr_free() 136 hnd->attr_base = MAP_FAILED; in gralloc_buffer_attr_free()
|
D | gralloc_buffer_priv.h | 86 hnd->attr_base = mmap(NULL, PAGE_SIZE, prot_flags, MAP_SHARED, hnd->share_attr_fd, 0); in gralloc_buffer_attr_map() 88 if (hnd->attr_base == MAP_FAILED) in gralloc_buffer_attr_map() 114 if (hnd->attr_base != MAP_FAILED) in gralloc_buffer_attr_unmap() 116 if (munmap(hnd->attr_base, PAGE_SIZE) == 0) in gralloc_buffer_attr_unmap() 118 hnd->attr_base = MAP_FAILED; in gralloc_buffer_attr_unmap() 141 if (hnd->attr_base != MAP_FAILED) in gralloc_buffer_attr_write() 143 attr_region *region = (attr_region *)hnd->attr_base; in gralloc_buffer_attr_write() 182 if (hnd->attr_base != MAP_FAILED) in gralloc_buffer_attr_read() 184 attr_region *region = (attr_region *)hnd->attr_base; in gralloc_buffer_attr_read()
|
D | mali_gralloc_buffer.h | 133 void *attr_base; member 184 , attr_base(MAP_FAILED) in private_handle_t() 219 , attr_base(MAP_FAILED) in private_handle_t()
|
D | mali_gralloc_private_interface.cpp | 189 if (hnd->attr_base == MAP_FAILED) in mali_gralloc_private_get_attr_param() 224 if (hnd->attr_base == MAP_FAILED) in mali_gralloc_private_set_attr_param()
|