Home
last modified time | relevance | path

Searched refs:capsets (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/drivers/gpu/drm/virtio/
H A Dvirtgpu_kms.c74 vgdev->capsets = drmm_kcalloc(drm, num_capsets, in virtio_gpu_get_capsets()
77 if (!vgdev->capsets) { in virtio_gpu_get_capsets()
85 vgdev->capsets[i].id > 0, 5 * HZ); in virtio_gpu_get_capsets()
90 if (!vgdev->capsets[i].id || in virtio_gpu_get_capsets()
91 vgdev->capsets[i].id > MAX_CAPSET_ID) in virtio_gpu_get_capsets()
101 drmm_kfree(drm, vgdev->capsets); in virtio_gpu_get_capsets()
102 vgdev->capsets = NULL; in virtio_gpu_get_capsets()
107 vgdev->capset_id_mask |= 1 << vgdev->capsets[i].id; in virtio_gpu_get_capsets()
109 i, vgdev->capsets[i].id, in virtio_gpu_get_capsets()
110 vgdev->capsets[i].max_version, in virtio_gpu_get_capsets()
[all …]
H A Dvirtgpu_vq.c687 if (vgdev->capsets) { in virtio_gpu_cmd_get_capset_info_cb()
688 vgdev->capsets[i].id = le32_to_cpu(resp->capset_id); in virtio_gpu_cmd_get_capset_info_cb()
689 vgdev->capsets[i].max_version = le32_to_cpu(resp->capset_max_version); in virtio_gpu_cmd_get_capset_info_cb()
690 vgdev->capsets[i].max_size = le32_to_cpu(resp->capset_max_size); in virtio_gpu_cmd_get_capset_info_cb()
824 if (version > vgdev->capsets[idx].max_version) in virtio_gpu_cmd_get_capset()
831 max_size = vgdev->capsets[idx].max_size; in virtio_gpu_cmd_get_capset()
847 cache_ent->id = vgdev->capsets[idx].id; in virtio_gpu_cmd_get_capset()
853 if (search_ent->id == vgdev->capsets[idx].id && in virtio_gpu_cmd_get_capset()
876 cmd_p->capset_id = cpu_to_le32(vgdev->capsets[idx].id); in virtio_gpu_cmd_get_capset()
H A Dvirtgpu_ioctl.c379 if (vgdev->capsets[i].id == args->cap_set_id) { in virtio_gpu_get_caps_ioctl()
380 if (vgdev->capsets[i].max_version >= args->cap_set_ver) { in virtio_gpu_get_caps_ioctl()
392 host_caps_size = vgdev->capsets[found_valid].max_size; in virtio_gpu_get_caps_ioctl()
H A Dvirtgpu_drv.h258 struct virtio_gpu_drv_capset *capsets; member
/openbmc/qemu/docs/system/devices/
H A Dvirtio-gpu.rst101 starting the device. The currently capsets supported are ``gfxstream-vulkan``
103 ``x-gfxstream-gles`` and ``x-gfxstream-composer`` capsets are also supported.