linux/drivers/gpu/drm/virtio/virtgpu_vram.c

// SPDX-License-Identifier: GPL-2.0
#include "virtgpu_drv.h"

#include <linux/dma-mapping.h>

static void virtio_gpu_vram_free(struct drm_gem_object *obj)
{}

static const struct vm_operations_struct virtio_gpu_vram_vm_ops =;

static int virtio_gpu_vram_mmap(struct drm_gem_object *obj,
				struct vm_area_struct *vma)
{}

struct sg_table *virtio_gpu_vram_map_dma_buf(struct virtio_gpu_object *bo,
					     struct device *dev,
					     enum dma_data_direction dir)
{}

void virtio_gpu_vram_unmap_dma_buf(struct device *dev,
				   struct sg_table *sgt,
				   enum dma_data_direction dir)
{}

static const struct drm_gem_object_funcs virtio_gpu_vram_funcs =;

bool virtio_gpu_is_vram(struct virtio_gpu_object *bo)
{}

static int virtio_gpu_vram_map(struct virtio_gpu_object *bo)
{}

int virtio_gpu_vram_create(struct virtio_gpu_device *vgdev,
			   struct virtio_gpu_object_params *params,
			   struct virtio_gpu_object **bo_ptr)
{}