Lines Matching refs:avc_cache

59 struct avc_cache {  struct
80 static struct avc_cache avc_cache; argument
166 INIT_HLIST_HEAD(&avc_cache.slots[i]); in avc_init()
167 spin_lock_init(&avc_cache.slots_lock[i]); in avc_init()
169 atomic_set(&avc_cache.active_nodes, 0); in avc_init()
170 atomic_set(&avc_cache.lru_hint, 0); in avc_init()
189 head = &avc_cache.slots[i]; in avc_get_hash_stats()
204 atomic_read(&avc_cache.active_nodes), in avc_get_hash_stats()
219 atomic_dec(&avc_cache.active_nodes); in avc_node_delete()
226 atomic_dec(&avc_cache.active_nodes); in avc_node_kill()
233 atomic_dec(&avc_cache.active_nodes); in avc_node_replace()
245 hvalue = atomic_inc_return(&avc_cache.lru_hint) & (AVC_CACHE_SLOTS - 1); in avc_reclaim_node()
246 head = &avc_cache.slots[hvalue]; in avc_reclaim_node()
247 lock = &avc_cache.slots_lock[hvalue]; in avc_reclaim_node()
281 if (atomic_inc_return(&avc_cache.active_nodes) > avc_cache_threshold) in avc_alloc_node()
303 head = &avc_cache.slots[hvalue]; in avc_search_node()
350 if (seqno < avc_cache.latest_notif) { in avc_latest_notif_update()
352 seqno, avc_cache.latest_notif); in avc_latest_notif_update()
356 if (seqno > avc_cache.latest_notif) in avc_latest_notif_update()
357 avc_cache.latest_notif = seqno; in avc_latest_notif_update()
398 head = &avc_cache.slots[hvalue]; in avc_insert()
399 lock = &avc_cache.slots_lock[hvalue]; in avc_insert()
550 head = &avc_cache.slots[hvalue]; in avc_update_node()
551 lock = &avc_cache.slots_lock[hvalue]; in avc_update_node()
617 head = &avc_cache.slots[i]; in avc_flush()
618 lock = &avc_cache.slots_lock[i]; in avc_flush()
772 return avc_cache.latest_notif; in avc_policy_seqno()