Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/gpu/drm/virtio/
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()
97 DRM_ERROR("invalid capset id %u", vgdev->capsets[i].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()
[all …]
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()
Dvirtgpu_ioctl.c389 if (vgdev->capsets[i].id == args->cap_set_id) { in virtio_gpu_get_caps_ioctl()
390 if (vgdev->capsets[i].max_version >= args->cap_set_ver) { in virtio_gpu_get_caps_ioctl()
402 host_caps_size = vgdev->capsets[found_valid].max_size; in virtio_gpu_get_caps_ioctl()
Dvirtgpu_drv.h261 struct virtio_gpu_drv_capset *capsets; member