Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/iommu/
H A Diova.c965 struct iova_rcache *rcache; in init_iova_rcaches() local
970 rcache = &iovad->rcaches[i]; in init_iova_rcaches()
971 spin_lock_init(&rcache->lock); in init_iova_rcaches()
972 rcache->depot_size = 0; in init_iova_rcaches()
973 rcache->cpu_rcaches = __alloc_percpu(sizeof(*cpu_rcache), cache_line_size()); in init_iova_rcaches()
974 if (WARN_ON(!rcache->cpu_rcaches)) in init_iova_rcaches()
977 cpu_rcache = per_cpu_ptr(rcache->cpu_rcaches, cpu); in init_iova_rcaches()
992 struct iova_rcache *rcache, in __iova_rcache_insert() argument
1000 cpu_rcache = raw_cpu_ptr(rcache->cpu_rcaches); in __iova_rcache_insert()
1012 spin_lock(&rcache->lock); in __iova_rcache_insert()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/vmwgfx/
H A 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 …]