Searched refs:rcache (Results 1 – 2 of 2) sorted by relevance
727 struct iova_rcache *rcache; in iova_domain_init_rcaches() local729 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() argument778 cpu_rcache = raw_cpu_ptr(rcache->cpu_rcaches); in __iova_rcache_insert()790 spin_lock(&rcache->lock); in __iova_rcache_insert()[all …]
283 static void vmw_execbuf_rcache_update(struct vmw_res_cache_entry *rcache, in vmw_execbuf_rcache_update() argument287 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() local322 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 …]