Searched refs:cache_ent (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/gpu/drm/virtio/ |
| H A D | virtgpu_vq.c | 876 struct virtio_gpu_drv_cap_cache *cache_ent; in virtio_gpu_cmd_capset_cb() local 879 list_for_each_entry(cache_ent, &vgdev->cap_cache, head) { in virtio_gpu_cmd_capset_cb() 880 if (cache_ent->version == le32_to_cpu(cmd->capset_version) && in virtio_gpu_cmd_capset_cb() 881 cache_ent->id == le32_to_cpu(cmd->capset_id)) { in virtio_gpu_cmd_capset_cb() 882 memcpy(cache_ent->caps_cache, resp->capset_data, in virtio_gpu_cmd_capset_cb() 883 cache_ent->size); in virtio_gpu_cmd_capset_cb() 886 atomic_set(&cache_ent->is_valid, 1); in virtio_gpu_cmd_capset_cb() 984 struct virtio_gpu_drv_cap_cache *cache_ent; in virtio_gpu_cmd_get_capset() local 996 cache_ent = kzalloc_obj(*cache_ent); in virtio_gpu_cmd_get_capset() 997 if (!cache_ent) in virtio_gpu_cmd_get_capset() [all …]
|
| H A D | virtgpu_ioctl.c | 377 struct virtio_gpu_drv_cap_cache *cache_ent; in virtio_gpu_get_caps_ioctl() local 406 list_for_each_entry(cache_ent, &vgdev->cap_cache, head) { in virtio_gpu_get_caps_ioctl() 407 if (cache_ent->id == args->cap_set_id && in virtio_gpu_get_caps_ioctl() 408 cache_ent->version == args->cap_set_ver) { in virtio_gpu_get_caps_ioctl() 417 &cache_ent); in virtio_gpu_get_caps_ioctl() 424 atomic_read(&cache_ent->is_valid), 5 * HZ); in virtio_gpu_get_caps_ioctl() 431 ptr = cache_ent->caps_cache; in virtio_gpu_get_caps_ioctl()
|
| H A D | virtgpu_kms.c | 273 struct virtio_gpu_drv_cap_cache *cache_ent, *tmp; in virtio_gpu_cleanup_cap_cache() local 275 list_for_each_entry_safe(cache_ent, tmp, &vgdev->cap_cache, head) { in virtio_gpu_cleanup_cap_cache() 276 kfree(cache_ent->caps_cache); in virtio_gpu_cleanup_cap_cache() 277 kfree(cache_ent); in virtio_gpu_cleanup_cap_cache()
|
| /linux/drivers/infiniband/hw/mlx5/ |
| H A D | mr.c | 768 mr->mmkey.cache_ent = ent; in _mlx5_mr_cache_alloc() 1817 if (!mr->mmkey.cache_ent) in can_use_umr_rereg_pas() 1823 dev, new_umem, iova, mr->mmkey.cache_ent->rb_key.access_mode); in can_use_umr_rereg_pas() 1826 return (mr->mmkey.cache_ent->rb_key.ndescs) >= in can_use_umr_rereg_pas() 2035 if (mr->mmkey.cache_ent) { in cache_ent_find_and_store() 2036 spin_lock_irq(&mr->mmkey.cache_ent->mkeys_queue.lock); in cache_ent_find_and_store() 2048 mr->mmkey.cache_ent = ent; in cache_ent_find_and_store() 2049 spin_lock_irq(&mr->mmkey.cache_ent->mkeys_queue.lock); in cache_ent_find_and_store() 2060 mr->mmkey.cache_ent = ent; in cache_ent_find_and_store() 2061 spin_lock_irq(&mr->mmkey.cache_ent->mkeys_queue.lock); in cache_ent_find_and_store() [all …]
|