Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iommu/
H A Diova.c733 struct iova_rcache *rcache; in iova_domain_init_rcaches() local
735 rcache = &iovad->rcaches[i]; in iova_domain_init_rcaches()
736 spin_lock_init(&rcache->lock); in iova_domain_init_rcaches()
737 rcache->depot_size = 0; in iova_domain_init_rcaches()
738 rcache->cpu_rcaches = __alloc_percpu(sizeof(*cpu_rcache), in iova_domain_init_rcaches()
740 if (!rcache->cpu_rcaches) { in iova_domain_init_rcaches()
745 cpu_rcache = per_cpu_ptr(rcache->cpu_rcaches, cpu); in iova_domain_init_rcaches()
776 struct iova_rcache *rcache, in __iova_rcache_insert() argument
784 cpu_rcache = raw_cpu_ptr(rcache->cpu_rcaches); in __iova_rcache_insert()
796 spin_lock(&rcache->lock); in __iova_rcache_insert()
[all …]
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A 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 …]