Lines Matching refs:hash
59 static u32 context_to_sid(struct sidtab *s, struct context *context, u32 hash)
65 hash_for_each_possible_rcu(s->context_to_sid, entry, list, hash) {
66 if (entry->hash != hash)
80 u32 hash;
97 hash = context_compute_hash(context);
102 * to avoid duplicate entries and long linked lists upon hash
105 if (!context_to_sid(s, context, hash)) {
107 isid->entry.hash = hash;
108 hash_add(s->context_to_sid, &isid->entry.list, hash);
269 u32 count, hash = context_compute_hash(context);
274 *sid = context_to_sid(s, context, hash);
282 *sid = context_to_sid(s, context, hash);
309 dst->hash = hash;
338 dst_convert->hash = context_compute_hash(&dst_convert->context);
342 &dst_convert->list, dst_convert->hash);
353 hash_add_rcu(s->context_to_sid, &dst->list, dst->hash);
369 entry->hash = context_compute_hash(&entry->context);
371 hash_add_rcu(s->context_to_sid, &entry->list, entry->hash);