rcache 278 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c static void vmw_execbuf_rcache_update(struct vmw_res_cache_entry *rcache, rcache 282 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c rcache->res = res; rcache 283 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c rcache->private = private; rcache 284 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c rcache->valid = 1; rcache 285 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c rcache->valid_handle = 0; rcache 306 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c struct vmw_res_cache_entry *rcache; rcache 311 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c rcache = &sw_context->res_cache[res_type]; rcache 312 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c if (likely(rcache->valid && rcache->res == res)) { rcache 315 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c rcache->private, dirty); rcache 337 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c vmw_execbuf_rcache_update(rcache, res, ctx_info); rcache 355 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c struct vmw_res_cache_entry *rcache; rcache 360 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c rcache = &sw_context->res_cache[res_type]; rcache 361 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c if (likely(rcache->valid && rcache->res == res)) { rcache 364 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c rcache->private, dirty); rcache 373 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c vmw_execbuf_rcache_update(rcache, res, ptr); rcache 650 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c struct vmw_res_cache_entry *rcache = &sw_context->res_cache[res_type]; rcache 665 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c if (likely(rcache->valid_handle && *id_loc == rcache->handle)) { rcache 666 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c res = rcache->res; rcache 669 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c rcache->private, dirty); rcache 689 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c if (rcache->valid && rcache->res == res) { rcache 690 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c rcache->valid_handle = true; rcache 691 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c rcache->handle = *id_loc; rcache 858 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c struct vmw_res_cache_entry *rcache = rcache 861 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c if (rcache->valid && rcache->res == res) rcache 862 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c return rcache->private; rcache 863 drivers/iommu/iova.c struct iova_rcache *rcache; rcache 868 drivers/iommu/iova.c rcache = &iovad->rcaches[i]; rcache 869 drivers/iommu/iova.c spin_lock_init(&rcache->lock); rcache 870 drivers/iommu/iova.c rcache->depot_size = 0; rcache 871 drivers/iommu/iova.c rcache->cpu_rcaches = __alloc_percpu(sizeof(*cpu_rcache), cache_line_size()); rcache 872 drivers/iommu/iova.c if (WARN_ON(!rcache->cpu_rcaches)) rcache 875 drivers/iommu/iova.c cpu_rcache = per_cpu_ptr(rcache->cpu_rcaches, cpu); rcache 890 drivers/iommu/iova.c struct iova_rcache *rcache, rcache 898 drivers/iommu/iova.c cpu_rcache = raw_cpu_ptr(rcache->cpu_rcaches); rcache 910 drivers/iommu/iova.c spin_lock(&rcache->lock); rcache 911 drivers/iommu/iova.c if (rcache->depot_size < MAX_GLOBAL_MAGS) { rcache 912 drivers/iommu/iova.c rcache->depot[rcache->depot_size++] = rcache 917 drivers/iommu/iova.c spin_unlock(&rcache->lock); rcache 953 drivers/iommu/iova.c static unsigned long __iova_rcache_get(struct iova_rcache *rcache, rcache 961 drivers/iommu/iova.c cpu_rcache = raw_cpu_ptr(rcache->cpu_rcaches); rcache 970 drivers/iommu/iova.c spin_lock(&rcache->lock); rcache 971 drivers/iommu/iova.c if (rcache->depot_size > 0) { rcache 973 drivers/iommu/iova.c cpu_rcache->loaded = rcache->depot[--rcache->depot_size]; rcache 976 drivers/iommu/iova.c spin_unlock(&rcache->lock); rcache 1009 drivers/iommu/iova.c struct iova_rcache *rcache; rcache 1015 drivers/iommu/iova.c rcache = &iovad->rcaches[i]; rcache 1017 drivers/iommu/iova.c cpu_rcache = per_cpu_ptr(rcache->cpu_rcaches, cpu); rcache 1021 drivers/iommu/iova.c free_percpu(rcache->cpu_rcaches); rcache 1022 drivers/iommu/iova.c for (j = 0; j < rcache->depot_size; ++j) rcache 1023 drivers/iommu/iova.c iova_magazine_free(rcache->depot[j]); rcache 1033 drivers/iommu/iova.c struct iova_rcache *rcache; rcache 1038 drivers/iommu/iova.c rcache = &iovad->rcaches[i]; rcache 1039 drivers/iommu/iova.c cpu_rcache = per_cpu_ptr(rcache->cpu_rcaches, cpu); rcache 28 security/selinux/ss/sidtab.c s->rcache[i] = SIDTAB_MAX; rcache 211 security/selinux/ss/sidtab.c WRITE_ONCE(s->rcache[pos], READ_ONCE(s->rcache[pos - 1])); rcache 214 security/selinux/ss/sidtab.c WRITE_ONCE(s->rcache[0], index); rcache 228 security/selinux/ss/sidtab.c u32 v = READ_ONCE(s->rcache[i]); rcache 87 security/selinux/ss/sidtab.h u32 rcache[SIDTAB_RCACHE_SIZE];