Lines Matching refs:hvalue
306 int hvalue, try, ecx;
310 hvalue = atomic_inc_return(&avc_cache.lru_hint) & (AVC_CACHE_SLOTS - 1);
312 if (!spin_trylock_irqsave(&avc_cache.slots_lock[hvalue], flags))
315 list_for_each_entry(node, &avc_cache.slots[hvalue], list) {
322 spin_unlock_irqrestore(&avc_cache.slots_lock[hvalue], flags);
327 spin_unlock_irqrestore(&avc_cache.slots_lock[hvalue], flags);
364 int hvalue;
366 hvalue = avc_hash(ssid, tsid, tclass);
367 list_for_each_entry_rcu(node, &avc_cache.slots[hvalue], list) {
462 int hvalue;
470 hvalue = avc_hash(ssid, tsid, tclass);
473 spin_lock_irqsave(&avc_cache.slots_lock[hvalue], flag);
474 list_for_each_entry(pos, &avc_cache.slots[hvalue], list) {
482 list_add_rcu(&node->list, &avc_cache.slots[hvalue]);
484 spin_unlock_irqrestore(&avc_cache.slots_lock[hvalue], flag);
733 int hvalue, rc = 0;
744 hvalue = avc_hash(ssid, tsid, tclass);
745 spin_lock_irqsave(&avc_cache.slots_lock[hvalue], flag);
747 list_for_each_entry(pos, &avc_cache.slots[hvalue], list){
791 spin_unlock_irqrestore(&avc_cache.slots_lock[hvalue], flag);