Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/gpu/drm/virtio/
Dvirtgpu_vq.c709 struct virtio_gpu_drv_cap_cache *cache_ent; in virtio_gpu_cmd_capset_cb() local
712 list_for_each_entry(cache_ent, &vgdev->cap_cache, head) { in virtio_gpu_cmd_capset_cb()
713 if (cache_ent->version == le32_to_cpu(cmd->capset_version) && in virtio_gpu_cmd_capset_cb()
714 cache_ent->id == le32_to_cpu(cmd->capset_id)) { in virtio_gpu_cmd_capset_cb()
715 memcpy(cache_ent->caps_cache, resp->capset_data, in virtio_gpu_cmd_capset_cb()
716 cache_ent->size); in virtio_gpu_cmd_capset_cb()
719 atomic_set(&cache_ent->is_valid, 1); in virtio_gpu_cmd_capset_cb()
819 struct virtio_gpu_drv_cap_cache *cache_ent; in virtio_gpu_cmd_get_capset() local
831 cache_ent = kzalloc(sizeof(*cache_ent), GFP_KERNEL); in virtio_gpu_cmd_get_capset()
832 if (!cache_ent) in virtio_gpu_cmd_get_capset()
[all …]
Dvirtgpu_ioctl.c434 struct virtio_gpu_drv_cap_cache *cache_ent; in virtio_gpu_get_caps_ioctl() local
463 list_for_each_entry(cache_ent, &vgdev->cap_cache, head) { in virtio_gpu_get_caps_ioctl()
464 if (cache_ent->id == args->cap_set_id && in virtio_gpu_get_caps_ioctl()
465 cache_ent->version == args->cap_set_ver) { in virtio_gpu_get_caps_ioctl()
474 &cache_ent); in virtio_gpu_get_caps_ioctl()
479 atomic_read(&cache_ent->is_valid), 5 * HZ); in virtio_gpu_get_caps_ioctl()
486 ptr = cache_ent->caps_cache; in virtio_gpu_get_caps_ioctl()
Dvirtgpu_kms.c218 struct virtio_gpu_drv_cap_cache *cache_ent, *tmp; in virtio_gpu_cleanup_cap_cache() local
220 list_for_each_entry_safe(cache_ent, tmp, &vgdev->cap_cache, head) { in virtio_gpu_cleanup_cap_cache()
221 kfree(cache_ent->caps_cache); in virtio_gpu_cleanup_cap_cache()
222 kfree(cache_ent); in virtio_gpu_cleanup_cap_cache()
/Linux-v5.10/drivers/infiniband/hw/mlx5/
Dmr.c138 struct mlx5_cache_ent *ent = mr->cache_ent; in create_mkey_callback()
176 mr->cache_ent = ent; in alloc_cache_mr()
627 struct mlx5_cache_ent *ent = mr->cache_ent; in detach_mr_from_cache()
629 mr->cache_ent = NULL; in detach_mr_from_cache()
637 struct mlx5_cache_ent *ent = mr->cache_ent; in mlx5_mr_cache_free()
1572 if (mr->cache_ent) in mlx5_ib_rereg_user_mr()
1686 if (!mr->cache_ent) { in clean_mr()
1703 if (mr->cache_ent) in dereg_mr()
Dmlx5_ib.h605 struct mlx5_cache_ent *cache_ent; member
Dodp.c201 if (!mr->cache_ent) { in dma_fence_odp_mr()