Searched refs:hvalue (Results 1 - 5 of 5) sorted by relevance

/linux-4.4.14/security/selinux/ss/
H A Dhashtab.c41 u32 hvalue; hashtab_insert() local
49 hvalue = h->hash_value(h, key); hashtab_insert()
51 cur = h->htable[hvalue]; hashtab_insert()
69 newnode->next = h->htable[hvalue]; hashtab_insert()
70 h->htable[hvalue] = newnode; hashtab_insert()
79 u32 hvalue; hashtab_search() local
85 hvalue = h->hash_value(h, key); hashtab_search()
86 cur = h->htable[hvalue]; hashtab_search()
H A Dsidtab.c35 int hvalue, rc = 0; sidtab_insert() local
43 hvalue = SIDTAB_HASH(sid); sidtab_insert()
45 cur = s->htable[hvalue]; sidtab_insert()
73 newnode->next = s->htable[hvalue]; sidtab_insert()
75 s->htable[hvalue] = newnode; sidtab_insert()
87 int hvalue; sidtab_search_core() local
93 hvalue = SIDTAB_HASH(sid); sidtab_search_core()
94 cur = s->htable[hvalue]; sidtab_search_core()
104 hvalue = SIDTAB_HASH(sid); sidtab_search_core()
105 cur = s->htable[hvalue]; sidtab_search_core()
H A Davtab.c69 avtab_insert_node(struct avtab *h, int hvalue, avtab_insert_node() argument
96 newnode->next = flex_array_get_ptr(h->htable, hvalue); avtab_insert_node()
97 if (flex_array_put_ptr(h->htable, hvalue, newnode, avtab_insert_node()
110 int hvalue; avtab_insert() local
117 hvalue = avtab_hash(key, h->mask); avtab_insert()
118 for (prev = NULL, cur = flex_array_get_ptr(h->htable, hvalue); avtab_insert()
141 newnode = avtab_insert_node(h, hvalue, prev, cur, key, datum); avtab_insert()
155 int hvalue; avtab_insert_nonunique() local
161 hvalue = avtab_hash(key, h->mask); avtab_insert_nonunique()
162 for (prev = NULL, cur = flex_array_get_ptr(h->htable, hvalue); avtab_insert_nonunique()
180 return avtab_insert_node(h, hvalue, prev, cur, key, datum); avtab_insert_nonunique()
185 int hvalue; avtab_search() local
192 hvalue = avtab_hash(key, h->mask); avtab_search()
193 for (cur = flex_array_get_ptr(h->htable, hvalue); cur; avtab_search()
221 int hvalue; avtab_search_node() local
228 hvalue = avtab_hash(key, h->mask); avtab_search_node()
229 for (cur = flex_array_get_ptr(h->htable, hvalue); cur; avtab_search_node()
/linux-4.4.14/arch/m32r/kernel/
H A Dmodule.c84 unsigned short hvalue; apply_relocate_add() local
126 hvalue = relocation; apply_relocate_add()
127 COPY_UNALIGNED_WORD (hvalue, *hlocation, align); apply_relocate_add()
167 COPY_UNALIGNED_HWORD (*hlocation, hvalue, align); apply_relocate_add()
168 svalue = (int)hvalue; apply_relocate_add()
172 hvalue = hvalue & 0xff00; apply_relocate_add()
173 hvalue += relocation; apply_relocate_add()
174 COPY_UNALIGNED_HWORD (hvalue, *hlocation, align); apply_relocate_add()
/linux-4.4.14/security/selinux/
H A Davc.c518 int hvalue, try, ecx; avc_reclaim_node() local
524 hvalue = atomic_inc_return(&avc_cache.lru_hint) & (AVC_CACHE_SLOTS - 1); avc_reclaim_node()
525 head = &avc_cache.slots[hvalue]; avc_reclaim_node()
526 lock = &avc_cache.slots_lock[hvalue]; avc_reclaim_node()
578 int hvalue; avc_search_node() local
581 hvalue = avc_hash(ssid, tsid, tclass); avc_search_node()
582 head = &avc_cache.slots[hvalue]; hlist_for_each_entry_rcu()
666 int hvalue; avc_insert() local
678 hvalue = avc_hash(ssid, tsid, tclass); avc_insert()
685 head = &avc_cache.slots[hvalue]; avc_insert()
686 lock = &avc_cache.slots_lock[hvalue]; avc_insert()
825 int hvalue, rc = 0; avc_update_node() local
838 hvalue = avc_hash(ssid, tsid, tclass); avc_update_node()
840 head = &avc_cache.slots[hvalue]; avc_update_node()
841 lock = &avc_cache.slots_lock[hvalue]; avc_update_node()

Completed in 90 milliseconds