Lines Matching refs:val
132 static inline int gralloc_buffer_attr_write(struct private_handle_t *hnd, buf_attr attr, int *val) in gralloc_buffer_attr_write() argument
136 if (!hnd || !val || attr >= GRALLOC_ARM_BUFFER_ATTR_LAST) in gralloc_buffer_attr_write()
148 memcpy(®ion->crop_top, val, sizeof(int) * 4); in gralloc_buffer_attr_write()
153 region->use_yuv_transform = *val; in gralloc_buffer_attr_write()
158 region->use_sparse_alloc = *val; in gralloc_buffer_attr_write()
163 memcpy(®ion->hdr_info, val, sizeof(mali_hdr_info)); in gralloc_buffer_attr_write()
173 static inline int gralloc_buffer_attr_read(struct private_handle_t *hnd, buf_attr attr, int *val) in gralloc_buffer_attr_read() argument
177 if (!hnd || !val || attr >= GRALLOC_ARM_BUFFER_ATTR_LAST) in gralloc_buffer_attr_read()
189 memcpy(val, ®ion->crop_top, sizeof(int) * 4); in gralloc_buffer_attr_read()
194 *val = region->use_yuv_transform; in gralloc_buffer_attr_read()
199 *val = region->use_sparse_alloc; in gralloc_buffer_attr_read()
204 memcpy(val, ®ion->hdr_info, sizeof(mali_hdr_info)); in gralloc_buffer_attr_read()