Lines Matching refs:lock
517 spinlock_t *lock; in avc_reclaim_node() local
522 lock = &avc_cache.slots_lock[hvalue]; in avc_reclaim_node()
524 if (!spin_trylock_irqsave(lock, flags)) in avc_reclaim_node()
534 spin_unlock_irqrestore(lock, flags); in avc_reclaim_node()
539 spin_unlock_irqrestore(lock, flags); in avc_reclaim_node()
671 spinlock_t *lock; in avc_insert() local
682 lock = &avc_cache.slots_lock[hvalue]; in avc_insert()
684 spin_lock_irqsave(lock, flag); in avc_insert()
695 spin_unlock_irqrestore(lock, flag); in avc_insert()
825 spinlock_t *lock; in avc_update_node() local
837 lock = &avc_cache.slots_lock[hvalue]; in avc_update_node()
839 spin_lock_irqsave(lock, flag); in avc_update_node()
899 spin_unlock_irqrestore(lock, flag); in avc_update_node()
911 spinlock_t *lock; in avc_flush() local
917 lock = &avc_cache.slots_lock[i]; in avc_flush()
919 spin_lock_irqsave(lock, flag); in avc_flush()
928 spin_unlock_irqrestore(lock, flag); in avc_flush()