Searched refs:hvalue (Results 1 – 5 of 5) sorted by relevance
/third_party/selinux/libsepol/src/ |
D | hashtab.c | 67 unsigned int hvalue, i, old_size, new_size = h->size; in hashtab_check_resize() local 87 hvalue = h->hash_value(h, cur->key); in hashtab_check_resize() 88 dst = &new_htable[hvalue]; in hashtab_check_resize() 106 int hvalue; in hashtab_insert() local 114 hvalue = h->hash_value(h, key); in hashtab_insert() 116 cur = h->htable[hvalue]; in hashtab_insert() 135 newnode->next = h->htable[hvalue]; in hashtab_insert() 136 h->htable[hvalue] = newnode; in hashtab_insert() 147 int hvalue; in hashtab_remove() local 153 hvalue = h->hash_value(h, key); in hashtab_remove() [all …]
|
D | sidtab.c | 42 int hvalue; in sepol_sidtab_insert() local 48 hvalue = SIDTAB_HASH(sid); in sepol_sidtab_insert() 50 cur = s->htable[hvalue]; in sepol_sidtab_insert() 74 newnode->next = s->htable[hvalue]; in sepol_sidtab_insert() 75 s->htable[hvalue] = newnode; in sepol_sidtab_insert() 86 int hvalue; in sepol_sidtab_search() local 92 hvalue = SIDTAB_HASH(sid); in sepol_sidtab_search() 93 cur = s->htable[hvalue]; in sepol_sidtab_search() 100 hvalue = SIDTAB_HASH(sid); in sepol_sidtab_search() 101 cur = s->htable[hvalue]; in sepol_sidtab_search()
|
D | avtab.c | 93 avtab_insert_node(avtab_t * h, int hvalue, avtab_ptr_t prev, avtab_key_t * key, in avtab_insert_node() argument 128 newnode->next = h->htable[hvalue]; in avtab_insert_node() 129 h->htable[hvalue] = newnode; in avtab_insert_node() 138 int hvalue; in avtab_insert() local 146 hvalue = avtab_hash(key, h->mask); in avtab_insert() 147 for (prev = NULL, cur = h->htable[hvalue]; in avtab_insert() 169 newnode = avtab_insert_node(h, hvalue, prev, key, datum); in avtab_insert() 183 int hvalue; in avtab_insert_nonunique() local 190 hvalue = avtab_hash(key, h->mask); in avtab_insert_nonunique() 191 for (prev = NULL, cur = h->htable[hvalue]; in avtab_insert_nonunique() [all …]
|
/third_party/selinux/libselinux/src/ |
D | avc_sidtab.c | 50 int hvalue, rc = 0; in sidtab_insert() local 66 hvalue = sidtab_hash(newctx); in sidtab_insert() 67 newnode->next = s->htable[hvalue]; in sidtab_insert() 70 s->htable[hvalue] = newnode; in sidtab_insert() 80 int hvalue, rc = 0; in sidtab_context_to_sid() local 84 hvalue = sidtab_hash(ctx); in sidtab_context_to_sid() 87 cur = s->htable[hvalue]; in sidtab_context_to_sid()
|
D | avc.c | 305 uint32_t hvalue; in avc_reclaim_node() local 307 hvalue = avc_cache.lru_hint; in avc_reclaim_node() 311 cur = avc_cache.slots[hvalue]; in avc_reclaim_node() 321 hvalue = (hvalue + 1) & (AVC_CACHE_SLOTS - 1); in avc_reclaim_node() 322 } while (hvalue != avc_cache.lru_hint); in avc_reclaim_node() 329 avc_cache.lru_hint = hvalue; in avc_reclaim_node() 332 avc_cache.slots[hvalue] = cur->next; in avc_reclaim_node() 349 int hvalue; in avc_claim_node() local 364 hvalue = avc_hash(ssid, tsid, tclass); in avc_claim_node() 370 new->next = avc_cache.slots[hvalue]; in avc_claim_node() [all …]
|