Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/iommu/
Diova.c727 struct iova_rcache *rcache; in iova_domain_init_rcaches() local
729 rcache = &iovad->rcaches[i]; in iova_domain_init_rcaches()
730 spin_lock_init(&rcache->lock); in iova_domain_init_rcaches()
731 rcache->depot_size = 0; in iova_domain_init_rcaches()
732 rcache->cpu_rcaches = __alloc_percpu(sizeof(*cpu_rcache), in iova_domain_init_rcaches()
734 if (!rcache->cpu_rcaches) { in iova_domain_init_rcaches()
739 cpu_rcache = per_cpu_ptr(rcache->cpu_rcaches, cpu); in iova_domain_init_rcaches()
770 struct iova_rcache *rcache, in __iova_rcache_insert() argument
778 cpu_rcache = raw_cpu_ptr(rcache->cpu_rcaches); in __iova_rcache_insert()
790 spin_lock(&rcache->lock); in __iova_rcache_insert()
[all …]
/linux-6.1.9/drivers/gpu/drm/vmwgfx/
Dvmwgfx_execbuf.c283 static void vmw_execbuf_rcache_update(struct vmw_res_cache_entry *rcache, in vmw_execbuf_rcache_update() argument
287 rcache->res = res; in vmw_execbuf_rcache_update()
288 rcache->private = private; in vmw_execbuf_rcache_update()
289 rcache->valid = 1; in vmw_execbuf_rcache_update()
290 rcache->valid_handle = 0; in vmw_execbuf_rcache_update()
317 struct vmw_res_cache_entry *rcache; in vmw_execbuf_res_val_add() local
322 rcache = &sw_context->res_cache[res_type]; in vmw_execbuf_res_val_add()
323 if (likely(rcache->valid && rcache->res == res)) { in vmw_execbuf_res_val_add()
326 rcache->private, dirty); in vmw_execbuf_res_val_add()
354 vmw_execbuf_rcache_update(rcache, res, ctx_info); in vmw_execbuf_res_val_add()
[all …]