Home
last modified time | relevance | path

Searched refs:attr_base (Results 1 – 8 of 8) sorted by relevance

/device/amlogic/yukawa/hal/gralloc/
Dgralloc_buffer_priv.cpp76 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()
Dgralloc_buffer_priv.h85 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()
Dmali_gralloc_buffer.h146 void *attr_base; member
205 , attr_base(MAP_FAILED) in private_handle_t()
242 , attr_base(MAP_FAILED) in private_handle_t()
Dmali_gralloc_private_interface.cpp189 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/
Dgralloc_buffer_priv.cpp77 hnd->attr_base = mmap(NULL, page_size, PROT_READ | PROT_WRITE, MAP_SHARED, hnd->share_attr_fd, 0); in gralloc_buffer_attr_allocate()
79 if (hnd->attr_base != MAP_FAILED) in gralloc_buffer_attr_allocate()
85 attr_region *region = (attr_region *)hnd->attr_base; in gralloc_buffer_attr_allocate()
87 memset(hnd->attr_base, 0xff, page_size); in gralloc_buffer_attr_allocate()
88 munmap(hnd->attr_base, page_size); in gralloc_buffer_attr_allocate()
89 hnd->attr_base = MAP_FAILED; in gralloc_buffer_attr_allocate()
133 if (hnd->attr_base != MAP_FAILED) in gralloc_buffer_attr_free()
136 munmap(hnd->attr_base, getpagesize()); in gralloc_buffer_attr_free()
137 hnd->attr_base = MAP_FAILED; in gralloc_buffer_attr_free()
Dgralloc_buffer_priv.h86 hnd->attr_base = in gralloc_buffer_attr_map()
89 if (hnd->attr_base == MAP_FAILED) in gralloc_buffer_attr_map()
115 if (hnd->attr_base != MAP_FAILED) in gralloc_buffer_attr_unmap()
117 if (munmap(hnd->attr_base, getpagesize()) == 0) in gralloc_buffer_attr_unmap()
119 hnd->attr_base = MAP_FAILED; in gralloc_buffer_attr_unmap()
142 if (hnd->attr_base != MAP_FAILED) in gralloc_buffer_attr_write()
144 attr_region *region = (attr_region *)hnd->attr_base; in gralloc_buffer_attr_write()
183 if (hnd->attr_base != MAP_FAILED) in gralloc_buffer_attr_read()
185 attr_region *region = (attr_region *)hnd->attr_base; in gralloc_buffer_attr_read()
Dmali_gralloc_buffer.h133 void *attr_base; member
184 , attr_base(MAP_FAILED) in private_handle_t()
219 , attr_base(MAP_FAILED) in private_handle_t()
Dmali_gralloc_private_interface.cpp189 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()