Lines Matching refs:max
58 return jhash_2words((__force u32)ip, vid, mdb->secret) & (mdb->max - 1); in __br_ip4_hash()
67 mdb->secret) & (mdb->max - 1); in __br_ip6_hash()
185 for (i = 0; i < old->max; i++) in br_mdb_copy()
194 for (i = 0; i < new->max; i++) { in br_mdb_copy()
298 static int br_mdb_rehash(struct net_bridge_mdb_htable __rcu **mdbp, int max, in br_mdb_rehash() argument
309 mdb->max = max; in br_mdb_rehash()
312 mdb->mhash = kzalloc(max * sizeof(*mdb->mhash), GFP_ATOMIC); in br_mdb_rehash()
514 unsigned int max; in br_multicast_get_group() local
526 max = mdb->max; in br_multicast_get_group()
537 if (mdb->size >= max) { in br_multicast_get_group()
538 max *= 2; in br_multicast_get_group()
539 if (unlikely(max > br->hash_max)) { in br_multicast_get_group()
551 if (max > mdb->max || elasticity) { in br_multicast_get_group()
561 err = br_mdb_rehash(&br->mdb, max, elasticity); in br_multicast_get_group()
1671 for (i = 0; i < mdb->max; i++) { in br_multicast_stop()
1803 err = br_mdb_rehash(&br->mdb, mdb->max, in br_multicast_toggle()