• Home
  • Raw
  • Download

Lines Matching refs:vram

8 	struct virtio_gpu_object_vram *vram = to_virtio_gpu_vram(bo);  in virtio_gpu_vram_free()  local
13 unmap = drm_mm_node_allocated(&vram->vram_node); in virtio_gpu_vram_free()
36 struct virtio_gpu_object_vram *vram = to_virtio_gpu_vram(bo); in virtio_gpu_vram_mmap() local
42 wait_event(vgdev->resp_wq, vram->map_state != STATE_INITIALIZING); in virtio_gpu_vram_mmap()
43 if (vram->map_state != STATE_OK) in virtio_gpu_vram_mmap()
52 if (vram->map_info == VIRTIO_GPU_MAP_CACHE_WC) in virtio_gpu_vram_mmap()
54 else if (vram->map_info == VIRTIO_GPU_MAP_CACHE_UNCACHED) in virtio_gpu_vram_mmap()
58 if (vm_size != vram->vram_node.size) in virtio_gpu_vram_mmap()
62 vram->vram_node.start >> PAGE_SHIFT, in virtio_gpu_vram_mmap()
86 struct virtio_gpu_object_vram *vram = to_virtio_gpu_vram(bo); in virtio_gpu_vram_map() local
92 ret = drm_mm_insert_node(&vgdev->host_visible_mm, &vram->vram_node, in virtio_gpu_vram_map()
107 offset = vram->vram_node.start - vgdev->host_visible_region.addr; in virtio_gpu_vram_map()
119 drm_mm_remove_node(&vram->vram_node); in virtio_gpu_vram_map()
129 struct virtio_gpu_object_vram *vram; in virtio_gpu_vram_create() local
132 vram = kzalloc(sizeof(*vram), GFP_KERNEL); in virtio_gpu_vram_create()
133 if (!vram) in virtio_gpu_vram_create()
136 obj = &vram->base.base.base; in virtio_gpu_vram_create()
145 kfree(vram); in virtio_gpu_vram_create()
149 ret = virtio_gpu_resource_id_get(vgdev, &vram->base.hw_res_handle); in virtio_gpu_vram_create()
151 kfree(vram); in virtio_gpu_vram_create()
155 virtio_gpu_cmd_resource_create_blob(vgdev, &vram->base, params, NULL, in virtio_gpu_vram_create()
158 ret = virtio_gpu_vram_map(&vram->base); in virtio_gpu_vram_create()
165 *bo_ptr = &vram->base; in virtio_gpu_vram_create()