Home
last modified time | relevance | path

Searched refs:rcache (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/drivers/iommu/
Diova.c865 struct iova_rcache *rcache; in init_iova_rcaches() local
870 rcache = &iovad->rcaches[i]; in init_iova_rcaches()
871 spin_lock_init(&rcache->lock); in init_iova_rcaches()
872 rcache->depot_size = 0; in init_iova_rcaches()
873 rcache->cpu_rcaches = __alloc_percpu(sizeof(*cpu_rcache), cache_line_size()); in init_iova_rcaches()
874 if (WARN_ON(!rcache->cpu_rcaches)) in init_iova_rcaches()
877 cpu_rcache = per_cpu_ptr(rcache->cpu_rcaches, cpu); in init_iova_rcaches()
892 struct iova_rcache *rcache, in __iova_rcache_insert() argument
900 cpu_rcache = raw_cpu_ptr(rcache->cpu_rcaches); in __iova_rcache_insert()
912 spin_lock(&rcache->lock); in __iova_rcache_insert()
[all …]
/Linux-v5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_execbuf.c278 static void vmw_execbuf_rcache_update(struct vmw_res_cache_entry *rcache, in vmw_execbuf_rcache_update() argument
282 rcache->res = res; in vmw_execbuf_rcache_update()
283 rcache->private = private; in vmw_execbuf_rcache_update()
284 rcache->valid = 1; in vmw_execbuf_rcache_update()
285 rcache->valid_handle = 0; in vmw_execbuf_rcache_update()
306 struct vmw_res_cache_entry *rcache; in vmw_execbuf_res_noref_val_add() local
311 rcache = &sw_context->res_cache[res_type]; in vmw_execbuf_res_noref_val_add()
312 if (likely(rcache->valid && rcache->res == res)) { in vmw_execbuf_res_noref_val_add()
315 rcache->private, dirty); in vmw_execbuf_res_noref_val_add()
337 vmw_execbuf_rcache_update(rcache, res, ctx_info); in vmw_execbuf_res_noref_val_add()
[all …]