Home
last modified time | relevance | path

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

/drivers/iommu/
Diova.c862 struct iova_cpu_rcache *cpu_rcache; in init_iova_rcaches() local
871 rcache->cpu_rcaches = __alloc_percpu(sizeof(*cpu_rcache), cache_line_size()); in init_iova_rcaches()
875 cpu_rcache = per_cpu_ptr(rcache->cpu_rcaches, cpu); in init_iova_rcaches()
876 spin_lock_init(&cpu_rcache->lock); in init_iova_rcaches()
877 cpu_rcache->loaded = iova_magazine_alloc(GFP_KERNEL); in init_iova_rcaches()
878 cpu_rcache->prev = iova_magazine_alloc(GFP_KERNEL); in init_iova_rcaches()
894 struct iova_cpu_rcache *cpu_rcache; in __iova_rcache_insert() local
898 cpu_rcache = raw_cpu_ptr(rcache->cpu_rcaches); in __iova_rcache_insert()
899 spin_lock_irqsave(&cpu_rcache->lock, flags); in __iova_rcache_insert()
901 if (!iova_magazine_full(cpu_rcache->loaded)) { in __iova_rcache_insert()
[all …]