Lines Matching +full:1 +full:vma
41 #define AFBC_NARROW 1 in afbc_bo_from_format()
42 #if AFBC_NARROW == 1 in afbc_bo_from_format()
82 metadata.priority = 1; in rockchip_init()
182 static void *rockchip_bo_map(struct bo *bo, struct vma *vma, size_t plane, uint32_t map_flags) in rockchip_bo_map() argument
203 vma->length = bo->meta.total_size; in rockchip_bo_map()
206 priv = calloc(1, sizeof(*priv)); in rockchip_bo_map()
207 priv->cached_addr = calloc(1, bo->meta.total_size); in rockchip_bo_map()
209 vma->priv = priv; in rockchip_bo_map()
216 static int rockchip_bo_unmap(struct bo *bo, struct vma *vma) in rockchip_bo_unmap() argument
218 if (vma->priv) { in rockchip_bo_unmap()
219 struct rockchip_private_map_data *priv = vma->priv; in rockchip_bo_unmap()
220 vma->addr = priv->gem_addr; in rockchip_bo_unmap()
223 vma->priv = NULL; in rockchip_bo_unmap()
226 return munmap(vma->addr, vma->length); in rockchip_bo_unmap()
231 if (mapping->vma->priv) { in rockchip_bo_invalidate()
232 struct rockchip_private_map_data *priv = mapping->vma->priv; in rockchip_bo_invalidate()
241 struct rockchip_private_map_data *priv = mapping->vma->priv; in rockchip_bo_flush()
242 if (priv && (mapping->vma->map_flags & BO_MAP_WRITE)) in rockchip_bo_flush()