Searched refs:cache_ent (Results 1 – 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/ |
D | virtgpu_vq.c | 703 struct virtio_gpu_drv_cap_cache *cache_ent; in virtio_gpu_cmd_capset_cb() local 706 list_for_each_entry(cache_ent, &vgdev->cap_cache, head) { in virtio_gpu_cmd_capset_cb() 707 if (cache_ent->version == le32_to_cpu(cmd->capset_version) && in virtio_gpu_cmd_capset_cb() 708 cache_ent->id == le32_to_cpu(cmd->capset_id)) { in virtio_gpu_cmd_capset_cb() 709 memcpy(cache_ent->caps_cache, resp->capset_data, in virtio_gpu_cmd_capset_cb() 710 cache_ent->size); in virtio_gpu_cmd_capset_cb() 713 atomic_set(&cache_ent->is_valid, 1); in virtio_gpu_cmd_capset_cb() 813 struct virtio_gpu_drv_cap_cache *cache_ent; in virtio_gpu_cmd_get_capset() local 825 cache_ent = kzalloc(sizeof(*cache_ent), GFP_KERNEL); in virtio_gpu_cmd_get_capset() 826 if (!cache_ent) in virtio_gpu_cmd_get_capset() [all …]
|
D | virtgpu_ioctl.c | 442 struct virtio_gpu_drv_cap_cache *cache_ent; in virtio_gpu_get_caps_ioctl() local 471 list_for_each_entry(cache_ent, &vgdev->cap_cache, head) { in virtio_gpu_get_caps_ioctl() 472 if (cache_ent->id == args->cap_set_id && in virtio_gpu_get_caps_ioctl() 473 cache_ent->version == args->cap_set_ver) { in virtio_gpu_get_caps_ioctl() 482 &cache_ent); in virtio_gpu_get_caps_ioctl() 489 atomic_read(&cache_ent->is_valid), 5 * HZ); in virtio_gpu_get_caps_ioctl() 496 ptr = cache_ent->caps_cache; in virtio_gpu_get_caps_ioctl()
|
D | virtgpu_kms.c | 219 struct virtio_gpu_drv_cap_cache *cache_ent, *tmp; in virtio_gpu_cleanup_cap_cache() local 221 list_for_each_entry_safe(cache_ent, tmp, &vgdev->cap_cache, head) { in virtio_gpu_cleanup_cap_cache() 222 kfree(cache_ent->caps_cache); in virtio_gpu_cleanup_cap_cache() 223 kfree(cache_ent); in virtio_gpu_cleanup_cap_cache()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
D | mr.c | 138 struct mlx5_cache_ent *ent = mr->cache_ent; in create_mkey_callback() 176 mr->cache_ent = ent; in alloc_cache_mr() 631 struct mlx5_cache_ent *ent = mr->cache_ent; in detach_mr_from_cache() 633 mr->cache_ent = NULL; in detach_mr_from_cache() 641 struct mlx5_cache_ent *ent = mr->cache_ent; in mlx5_mr_cache_free() 1579 if (mr->cache_ent) in mlx5_ib_rereg_user_mr() 1693 if (!mr->cache_ent) { in clean_mr() 1710 if (mr->cache_ent) in dereg_mr()
|
D | mlx5_ib.h | 605 struct mlx5_cache_ent *cache_ent; member
|
D | odp.c | 201 if (!mr->cache_ent) { in dma_fence_odp_mr()
|