Lines Matching defs:bytes
1271 static struct hlist_head *fib_info_hash_alloc(int bytes)
1273 if (bytes <= PAGE_SIZE)
1274 return kzalloc(bytes, GFP_KERNEL);
1278 get_order(bytes));
1281 static void fib_info_hash_free(struct hlist_head *hash, int bytes)
1286 if (bytes <= PAGE_SIZE)
1289 free_pages((unsigned long) hash, get_order(bytes));
1298 unsigned int i, bytes;
1339 bytes = old_size * sizeof(struct hlist_head *);
1340 fib_info_hash_free(old_info_hash, bytes);
1341 fib_info_hash_free(old_laddrhash, bytes);
1462 unsigned int bytes;
1466 bytes = new_size * sizeof(struct hlist_head *);
1467 new_info_hash = fib_info_hash_alloc(bytes);
1468 new_laddrhash = fib_info_hash_alloc(bytes);
1470 fib_info_hash_free(new_info_hash, bytes);
1471 fib_info_hash_free(new_laddrhash, bytes);