Home
last modified time | relevance | path

Searched refs:hvalue (Results 1 – 6 of 6) sorted by relevance

/third_party/selinux/libsepol/src/
Dhashtab.c68 unsigned int hvalue, i, old_size, new_size = h->size; in hashtab_check_resize() local
88 hvalue = h->hash_value(h, cur->key); in hashtab_check_resize()
89 dst = &new_htable[hvalue]; in hashtab_check_resize()
107 int hvalue; in hashtab_insert() local
115 hvalue = h->hash_value(h, key); in hashtab_insert()
117 cur = h->htable[hvalue]; in hashtab_insert()
136 newnode->next = h->htable[hvalue]; in hashtab_insert()
137 h->htable[hvalue] = newnode; in hashtab_insert()
148 int hvalue; in hashtab_remove() local
154 hvalue = h->hash_value(h, key); in hashtab_remove()
[all …]
Dsidtab.c45 int hvalue; in sepol_sidtab_insert() local
51 hvalue = SIDTAB_HASH(sid); in sepol_sidtab_insert()
53 cur = s->htable[hvalue]; in sepol_sidtab_insert()
77 newnode->next = s->htable[hvalue]; in sepol_sidtab_insert()
78 s->htable[hvalue] = newnode; in sepol_sidtab_insert()
89 int hvalue; in sepol_sidtab_search() local
95 hvalue = SIDTAB_HASH(sid); in sepol_sidtab_search()
96 cur = s->htable[hvalue]; in sepol_sidtab_search()
103 hvalue = SIDTAB_HASH(sid); in sepol_sidtab_search()
104 cur = s->htable[hvalue]; in sepol_sidtab_search()
Davtab.c93 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/
Davc_sidtab.c50 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()
Davc.c305 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 …]
/third_party/ejdb/src/bindings/ejdb2_dart/lib/
Dejdb2_dart.c730 Dart_Handle hvalue = EJTH(Dart_GetNativeArgument(args, 2)); in ejd_jql_set() local
742 EJTH(Dart_StringToCString(hvalue, &svalue)); in ejd_jql_set()
760 EJTH(Dart_StringToCString(hvalue, &svalue)); in ejd_jql_set()
772 if (Dart_IsString(hvalue)) { in ejd_jql_set()
773 EJTH(Dart_StringToCString(hvalue, &svalue)); in ejd_jql_set()
784 } else if (Dart_IsInteger(hvalue)) { in ejd_jql_set()
786 EJTH(Dart_IntegerToInt64(hvalue, &val)); in ejd_jql_set()
788 } else if (Dart_IsDouble(hvalue)) { in ejd_jql_set()
790 EJTH(Dart_DoubleValue(hvalue, &val)); in ejd_jql_set()
792 } else if (Dart_IsBoolean(hvalue)) { in ejd_jql_set()
[all …]