Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/
Dvirtgpu_kms.c69 vgdev->capsets = kcalloc(num_capsets, in virtio_gpu_get_capsets()
72 if (!vgdev->capsets) { in virtio_gpu_get_capsets()
80 vgdev->capsets[i].id > 0, 5 * HZ); in virtio_gpu_get_capsets()
84 kfree(vgdev->capsets); in virtio_gpu_get_capsets()
85 vgdev->capsets = NULL; in virtio_gpu_get_capsets()
90 i, vgdev->capsets[i].id, in virtio_gpu_get_capsets()
91 vgdev->capsets[i].max_version, in virtio_gpu_get_capsets()
92 vgdev->capsets[i].max_size); in virtio_gpu_get_capsets()
246 kfree(vgdev->capsets); in virtio_gpu_release()
Dvirtgpu_vq.c685 if (vgdev->capsets) { in virtio_gpu_cmd_get_capset_info_cb()
686 vgdev->capsets[i].id = le32_to_cpu(resp->capset_id); in virtio_gpu_cmd_get_capset_info_cb()
687 vgdev->capsets[i].max_version = le32_to_cpu(resp->capset_max_version); in virtio_gpu_cmd_get_capset_info_cb()
688 vgdev->capsets[i].max_size = le32_to_cpu(resp->capset_max_size); in virtio_gpu_cmd_get_capset_info_cb()
822 if (version > vgdev->capsets[idx].max_version) in virtio_gpu_cmd_get_capset()
829 max_size = vgdev->capsets[idx].max_size; in virtio_gpu_cmd_get_capset()
845 cache_ent->id = vgdev->capsets[idx].id; in virtio_gpu_cmd_get_capset()
851 if (search_ent->id == vgdev->capsets[idx].id && in virtio_gpu_cmd_get_capset()
874 cmd_p->capset_id = cpu_to_le32(vgdev->capsets[idx].id); in virtio_gpu_cmd_get_capset()
Dvirtgpu_ioctl.c446 if (vgdev->capsets[i].id == args->cap_set_id) { in virtio_gpu_get_caps_ioctl()
447 if (vgdev->capsets[i].max_version >= args->cap_set_ver) { in virtio_gpu_get_caps_ioctl()
459 host_caps_size = vgdev->capsets[found_valid].max_size; in virtio_gpu_get_caps_ioctl()
Dvirtgpu_drv.h218 struct virtio_gpu_drv_capset *capsets; member