Lines Matching refs:hash

47 	u32 hash;		/* hash table size; 0 if undefined */  member
70 fp = &p->h[key % p->hash]; in tcindex_lookup()
130 p->hash = DEFAULT_HASH_SIZE; in tcindex_init()
167 for (i = 0; i < p->hash; i++) { in tcindex_delete()
211 return p->hash > (p->mask >> p->shift); in valid_perfect_hash()
265 cp->hash = p->hash; in tcindex_set_parms()
274 sizeof(*r) * cp->hash, GFP_KERNEL); in tcindex_set_parms()
277 for (i = 0; i < cp->hash; i++) in tcindex_set_parms()
290 cp->hash = nla_get_u32(tb[TCA_TCINDEX_HASH]); in tcindex_set_parms()
305 cp->hash > cp->alloc_hash) in tcindex_set_parms()
307 } else if (cp->h && cp->hash != cp->alloc_hash) { in tcindex_set_parms()
315 if (!cp->hash) { in tcindex_set_parms()
320 cp->hash = (cp->mask >> cp->shift) + 1; in tcindex_set_parms()
322 cp->hash = DEFAULT_HASH_SIZE; in tcindex_set_parms()
326 cp->alloc_hash = cp->hash; in tcindex_set_parms()
343 cp->perfect = kcalloc(cp->hash, sizeof(*r), GFP_KERNEL); in tcindex_set_parms()
346 for (i = 0; i < cp->hash; i++) in tcindex_set_parms()
352 struct tcindex_filter __rcu **hash; in tcindex_set_parms() local
354 hash = kcalloc(cp->hash, in tcindex_set_parms()
358 if (!hash) in tcindex_set_parms()
361 cp->h = hash; in tcindex_set_parms()
403 fp = cp->h + (handle % cp->hash); in tcindex_set_parms()
461 for (i = 0; i < p->hash; i++) { in tcindex_walk()
477 for (i = 0; i < p->hash; i++) { in tcindex_walk()
529 if (nla_put_u32(skb, TCA_TCINDEX_HASH, p->hash) || in tcindex_dump()
544 for (i = 0; !t->tcm_handle && i < p->hash; i++) { in tcindex_dump()