Lines Matching refs:bytes
687 static struct hlist_head *fib_info_hash_alloc(int bytes) in fib_info_hash_alloc() argument
689 if (bytes <= PAGE_SIZE) in fib_info_hash_alloc()
690 return kzalloc(bytes, GFP_KERNEL); in fib_info_hash_alloc()
694 get_order(bytes)); in fib_info_hash_alloc()
697 static void fib_info_hash_free(struct hlist_head *hash, int bytes) in fib_info_hash_free() argument
702 if (bytes <= PAGE_SIZE) in fib_info_hash_free()
705 free_pages((unsigned long) hash, get_order(bytes)); in fib_info_hash_free()
714 unsigned int i, bytes; in fib_info_hash_move() local
759 bytes = old_size * sizeof(struct hlist_head *); in fib_info_hash_move()
760 fib_info_hash_free(old_info_hash, bytes); in fib_info_hash_move()
761 fib_info_hash_free(old_laddrhash, bytes); in fib_info_hash_move()
802 unsigned int bytes; in fib_create_info() local
806 bytes = new_size * sizeof(struct hlist_head *); in fib_create_info()
807 new_info_hash = fib_info_hash_alloc(bytes); in fib_create_info()
808 new_laddrhash = fib_info_hash_alloc(bytes); in fib_create_info()
810 fib_info_hash_free(new_info_hash, bytes); in fib_create_info()
811 fib_info_hash_free(new_laddrhash, bytes); in fib_create_info()