Searched refs:rcache (Results 1 – 2 of 2) sorted by relevance
853 struct iova_rcache *rcache; in init_iova_rcaches() local858 rcache = &iovad->rcaches[i]; in init_iova_rcaches()859 spin_lock_init(&rcache->lock); in init_iova_rcaches()860 rcache->depot_size = 0; in init_iova_rcaches()861 rcache->cpu_rcaches = __alloc_percpu(sizeof(*cpu_rcache), cache_line_size()); in init_iova_rcaches()862 if (WARN_ON(!rcache->cpu_rcaches)) in init_iova_rcaches()865 cpu_rcache = per_cpu_ptr(rcache->cpu_rcaches, cpu); in init_iova_rcaches()880 struct iova_rcache *rcache, in __iova_rcache_insert() argument888 cpu_rcache = raw_cpu_ptr(rcache->cpu_rcaches); in __iova_rcache_insert()900 spin_lock(&rcache->lock); in __iova_rcache_insert()[all …]
746 struct vmw_res_cache_entry *rcache = in vmw_cmd_res_check() local767 if (likely(rcache->valid && *id_loc == rcache->handle)) { in vmw_cmd_res_check()768 const struct vmw_resource *res = rcache->res; in vmw_cmd_res_check()770 rcache->node->first_usage = false; in vmw_cmd_res_check()772 *p_val = rcache->node; in vmw_cmd_res_check()792 rcache->valid = true; in vmw_cmd_res_check()793 rcache->res = res; in vmw_cmd_res_check()794 rcache->handle = *id_loc; in vmw_cmd_res_check()801 rcache->node = node; in vmw_cmd_res_check()