Home
last modified time | relevance | path

Searched refs:new_divisor (Results 1 – 2 of 2) sorted by relevance

/linux-2.4.37.9/net/ipv4/
Dfib_hash.c199 int old_divisor, new_divisor; in fn_rehash_zone() local
206 new_divisor = 256; in fn_rehash_zone()
209 new_divisor = 1024; in fn_rehash_zone()
216 new_divisor = (old_divisor << 1); in fn_rehash_zone()
220 new_hashmask = (new_divisor - 1); in fn_rehash_zone()
226 ht = fz_hash_alloc(new_divisor); in fn_rehash_zone()
229 memset(ht, 0, new_divisor*sizeof(struct fib_node*)); in fn_rehash_zone()
235 fz->fz_divisor = new_divisor; in fn_rehash_zone()
/linux-2.4.37.9/net/decnet/
Ddn_table.c143 int old_divisor, new_divisor; in dn_rehash_zone() local
150 new_divisor = 256; in dn_rehash_zone()
156 new_divisor = 1024; in dn_rehash_zone()
161 ht = kmalloc(new_divisor*sizeof(struct dn_fib_node*), GFP_KERNEL); in dn_rehash_zone()
166 memset(ht, 0, new_divisor*sizeof(struct dn_fib_node *)); in dn_rehash_zone()
171 dz->dz_divisor = new_divisor; in dn_rehash_zone()