Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/gpu/drm/virtio/
Dvirtgpu_kms.c86 vgdev->capsets = kcalloc(num_capsets, in virtio_gpu_get_capsets()
89 if (!vgdev->capsets) { in virtio_gpu_get_capsets()
96 vgdev->capsets[i].id > 0, 5 * HZ); in virtio_gpu_get_capsets()
99 kfree(vgdev->capsets); in virtio_gpu_get_capsets()
100 vgdev->capsets = NULL; in virtio_gpu_get_capsets()
104 i, vgdev->capsets[i].id, in virtio_gpu_get_capsets()
105 vgdev->capsets[i].max_version, in virtio_gpu_get_capsets()
106 vgdev->capsets[i].max_size); in virtio_gpu_get_capsets()
248 kfree(vgdev->capsets); in virtio_gpu_deinit()
Dvirtgpu_vq.c575 vgdev->capsets[i].id = le32_to_cpu(resp->capset_id); in virtio_gpu_cmd_get_capset_info_cb()
576 vgdev->capsets[i].max_version = le32_to_cpu(resp->capset_max_version); in virtio_gpu_cmd_get_capset_info_cb()
577 vgdev->capsets[i].max_size = le32_to_cpu(resp->capset_max_size); in virtio_gpu_cmd_get_capset_info_cb()
708 if (version > vgdev->capsets[idx].max_version) in virtio_gpu_cmd_get_capset()
715 max_size = vgdev->capsets[idx].max_size; in virtio_gpu_cmd_get_capset()
731 cache_ent->id = vgdev->capsets[idx].id; in virtio_gpu_cmd_get_capset()
737 if (search_ent->id == vgdev->capsets[idx].id && in virtio_gpu_cmd_get_capset()
760 cmd_p->capset_id = cpu_to_le32(vgdev->capsets[idx].id); in virtio_gpu_cmd_get_capset()
Dvirtgpu_ioctl.c509 if (vgdev->capsets[i].id == args->cap_set_id) { in virtio_gpu_get_caps_ioctl()
510 if (vgdev->capsets[i].max_version >= args->cap_set_ver) { in virtio_gpu_get_caps_ioctl()
522 host_caps_size = vgdev->capsets[found_valid].max_size; in virtio_gpu_get_caps_ioctl()
Dvirtgpu_drv.h208 struct virtio_gpu_drv_capset *capsets; member