Lines Matching refs:vma
75 static void *mediatek_bo_map(struct bo *bo, struct vma *vma, size_t plane, uint32_t map_flags) in mediatek_bo_map() argument
93 vma->length = bo->total_size; in mediatek_bo_map()
99 vma->priv = priv; in mediatek_bo_map()
106 static int mediatek_bo_unmap(struct bo *bo, struct vma *vma) in mediatek_bo_unmap() argument
108 if (vma->priv) { in mediatek_bo_unmap()
109 struct mediatek_private_map_data *priv = vma->priv; in mediatek_bo_unmap()
110 vma->addr = priv->gem_addr; in mediatek_bo_unmap()
113 vma->priv = NULL; in mediatek_bo_unmap()
116 return munmap(vma->addr, vma->length); in mediatek_bo_unmap()
121 if (mapping->vma->priv) { in mediatek_bo_invalidate()
122 struct mediatek_private_map_data *priv = mapping->vma->priv; in mediatek_bo_invalidate()
131 struct mediatek_private_map_data *priv = mapping->vma->priv; in mediatek_bo_flush()
132 if (priv && (mapping->vma->map_flags & BO_MAP_WRITE)) in mediatek_bo_flush()