Lines Matching refs:lock
476 spinlock_t *lock; in avc_reclaim_node() local
482 lock = &avc->avc_cache.slots_lock[hvalue]; in avc_reclaim_node()
484 if (!spin_trylock_irqsave(lock, flags)) in avc_reclaim_node()
494 spin_unlock_irqrestore(lock, flags); in avc_reclaim_node()
499 spin_unlock_irqrestore(lock, flags); in avc_reclaim_node()
633 spinlock_t *lock; in avc_insert() local
651 lock = &avc->avc_cache.slots_lock[hvalue]; in avc_insert()
652 spin_lock_irqsave(lock, flag); in avc_insert()
664 spin_unlock_irqrestore(lock, flag); in avc_insert()
865 spinlock_t *lock; in avc_update_node() local
877 lock = &avc->avc_cache.slots_lock[hvalue]; in avc_update_node()
879 spin_lock_irqsave(lock, flag); in avc_update_node()
939 spin_unlock_irqrestore(lock, flag); in avc_update_node()
952 spinlock_t *lock; in avc_flush() local
958 lock = &avc->avc_cache.slots_lock[i]; in avc_flush()
960 spin_lock_irqsave(lock, flag); in avc_flush()
969 spin_unlock_irqrestore(lock, flag); in avc_flush()