Lines Matching refs:vma
234 static void *rockchip_bo_map(struct bo *bo, struct vma *vma, size_t plane, uint32_t map_flags) in rockchip_bo_map() argument
257 vma->length = bo->total_size; in rockchip_bo_map()
263 vma->priv = priv; in rockchip_bo_map()
270 static int rockchip_bo_unmap(struct bo *bo, struct vma *vma) in rockchip_bo_unmap() argument
272 if (vma->priv) { in rockchip_bo_unmap()
273 struct rockchip_private_map_data *priv = vma->priv; in rockchip_bo_unmap()
274 vma->addr = priv->gem_addr; in rockchip_bo_unmap()
277 vma->priv = NULL; in rockchip_bo_unmap()
280 return munmap(vma->addr, vma->length); in rockchip_bo_unmap()
285 if (mapping->vma->priv) { in rockchip_bo_invalidate()
286 struct rockchip_private_map_data *priv = mapping->vma->priv; in rockchip_bo_invalidate()
295 struct rockchip_private_map_data *priv = mapping->vma->priv; in rockchip_bo_flush()
296 if (priv && (mapping->vma->map_flags & BO_MAP_WRITE)) in rockchip_bo_flush()