Lines Matching refs:val
133 static inline int gralloc_buffer_attr_write(struct private_handle_t *hnd, buf_attr attr, int *val) in gralloc_buffer_attr_write() argument
137 if (!hnd || !val || attr >= GRALLOC_ARM_BUFFER_ATTR_LAST) in gralloc_buffer_attr_write()
149 memcpy(®ion->crop_top, val, sizeof(int) * 4); in gralloc_buffer_attr_write()
154 region->use_yuv_transform = *val; in gralloc_buffer_attr_write()
159 region->use_sparse_alloc = *val; in gralloc_buffer_attr_write()
164 memcpy(®ion->hdr_info, val, sizeof(mali_hdr_info)); in gralloc_buffer_attr_write()
174 static inline int gralloc_buffer_attr_read(struct private_handle_t *hnd, buf_attr attr, int *val) in gralloc_buffer_attr_read() argument
178 if (!hnd || !val || attr >= GRALLOC_ARM_BUFFER_ATTR_LAST) in gralloc_buffer_attr_read()
190 memcpy(val, ®ion->crop_top, sizeof(int) * 4); in gralloc_buffer_attr_read()
195 *val = region->use_yuv_transform; in gralloc_buffer_attr_read()
200 *val = region->use_sparse_alloc; in gralloc_buffer_attr_read()
205 memcpy(val, ®ion->hdr_info, sizeof(mali_hdr_info)); in gralloc_buffer_attr_read()