Home
last modified time | relevance | path

Searched refs:cache_ent (Results 1 – 3 of 3) sorted by relevance

/netbsd-src/sys/external/bsd/drm2/dist/drm/virtio/
H A Dvirtgpu_vq.c693 struct virtio_gpu_drv_cap_cache *cache_ent; in virtio_gpu_cmd_capset_cb() local
696 list_for_each_entry(cache_ent, &vgdev->cap_cache, head) { in virtio_gpu_cmd_capset_cb()
697 if (cache_ent->version == le32_to_cpu(cmd->capset_version) && in virtio_gpu_cmd_capset_cb()
698 cache_ent->id == le32_to_cpu(cmd->capset_id)) { in virtio_gpu_cmd_capset_cb()
699 memcpy(cache_ent->caps_cache, resp->capset_data, in virtio_gpu_cmd_capset_cb()
700 cache_ent->size); in virtio_gpu_cmd_capset_cb()
703 atomic_set(&cache_ent->is_valid, 1); in virtio_gpu_cmd_capset_cb()
803 struct virtio_gpu_drv_cap_cache *cache_ent; in virtio_gpu_cmd_get_capset() local
815 cache_ent = kzalloc(sizeof(*cache_ent), GFP_KERNEL); in virtio_gpu_cmd_get_capset()
816 if (!cache_ent) in virtio_gpu_cmd_get_capset()
[all …]
H A Dvirtgpu_ioctl.c412 struct virtio_gpu_drv_cap_cache *cache_ent; in virtio_gpu_get_caps_ioctl() local
441 list_for_each_entry(cache_ent, &vgdev->cap_cache, head) { in virtio_gpu_get_caps_ioctl()
442 if (cache_ent->id == args->cap_set_id && in virtio_gpu_get_caps_ioctl()
443 cache_ent->version == args->cap_set_ver) { in virtio_gpu_get_caps_ioctl()
452 &cache_ent); in virtio_gpu_get_caps_ioctl()
456 atomic_read(&cache_ent->is_valid), 5 * HZ); in virtio_gpu_get_caps_ioctl()
463 ptr = cache_ent->caps_cache; in virtio_gpu_get_caps_ioctl()
H A Dvirtgpu_kms.c226 struct virtio_gpu_drv_cap_cache *cache_ent, *tmp; in virtio_gpu_cleanup_cap_cache() local
228 list_for_each_entry_safe(cache_ent, tmp, &vgdev->cap_cache, head) { in virtio_gpu_cleanup_cap_cache()
229 kfree(cache_ent->caps_cache); in virtio_gpu_cleanup_cap_cache()
230 kfree(cache_ent); in virtio_gpu_cleanup_cap_cache()