Lines Matching refs:vma
298 static void *tegra_bo_map(struct bo *bo, struct vma *vma, size_t plane, uint32_t map_flags) in tegra_bo_map() argument
315 vma->length = bo->total_size; in tegra_bo_map()
320 vma->priv = priv; in tegra_bo_map()
328 static int tegra_bo_unmap(struct bo *bo, struct vma *vma) in tegra_bo_unmap() argument
330 if (vma->priv) { in tegra_bo_unmap()
331 struct tegra_private_map_data *priv = vma->priv; in tegra_bo_unmap()
332 vma->addr = priv->tiled; in tegra_bo_unmap()
335 vma->priv = NULL; in tegra_bo_unmap()
338 return munmap(vma->addr, vma->length); in tegra_bo_unmap()
343 struct tegra_private_map_data *priv = mapping->vma->priv; in tegra_bo_flush()
345 if (priv && (mapping->vma->map_flags & BO_MAP_WRITE)) in tegra_bo_flush()