Lines Matching refs:alc
648 struct alien_cache *alc = NULL; in __alloc_alien_cache() local
650 alc = kmalloc_node(memsize, gfp, node); in __alloc_alien_cache()
651 if (alc) { in __alloc_alien_cache()
652 kmemleak_no_scan(alc); in __alloc_alien_cache()
653 init_arraycache(&alc->ac, entries, batch); in __alloc_alien_cache()
654 spin_lock_init(&alc->lock); in __alloc_alien_cache()
656 return alc; in __alloc_alien_cache()
725 struct alien_cache *alc = n->alien[node]; in reap_alien() local
728 if (alc) { in reap_alien()
729 ac = &alc->ac; in reap_alien()
730 if (ac->avail && spin_trylock_irq(&alc->lock)) { in reap_alien()
734 spin_unlock_irq(&alc->lock); in reap_alien()
745 struct alien_cache *alc; in drain_alien_cache() local
750 alc = alien[i]; in drain_alien_cache()
751 if (alc) { in drain_alien_cache()
754 ac = &alc->ac; in drain_alien_cache()
755 spin_lock_irqsave(&alc->lock, flags); in drain_alien_cache()
757 spin_unlock_irqrestore(&alc->lock, flags); in drain_alien_cache()