Lines Matching defs:hash
58 static u32 context_to_sid(struct sidtab *s, struct context *context, u32 hash)
64 hash_for_each_possible_rcu(s->context_to_sid, entry, list, hash) {
65 if (entry->hash != hash)
79 u32 hash;
96 hash = context_compute_hash(context);
101 * to avoid duplicate entries and long linked lists upon hash
104 if (!context_to_sid(s, context, hash)) {
106 isid->entry.hash = hash;
107 hash_add(s->context_to_sid, &isid->entry.list, hash);
268 u32 count, hash = context_compute_hash(context);
273 *sid = context_to_sid(s, context, hash);
281 *sid = context_to_sid(s, context, hash);
309 dst->hash = hash;
334 dst_convert->hash = context_compute_hash(&dst_convert->context);
338 &dst_convert->list, dst_convert->hash);
349 hash_add_rcu(s->context_to_sid, &dst->list, dst->hash);
365 entry->hash = context_compute_hash(&entry->context);
367 hash_add_rcu(s->context_to_sid, &entry->list, entry->hash);