Lines Matching refs:hash
160 struct fnhe_hash_bucket *hash; in free_nh_exceptions() local
163 hash = rcu_dereference_protected(nh->nh_exceptions, 1); in free_nh_exceptions()
164 if (!hash) in free_nh_exceptions()
169 fnhe = rcu_dereference_protected(hash[i].chain, 1); in free_nh_exceptions()
183 kfree(hash); in free_nh_exceptions()
306 unsigned int hash; in fib_find_info() local
308 hash = fib_info_hashfn(nfi); in fib_find_info()
309 head = &fib_info_hash[hash]; in fib_find_info()
338 unsigned int hash; in ip_fib_check_default() local
342 hash = fib_devindex_hashfn(dev->ifindex); in ip_fib_check_default()
343 head = &fib_info_devhash[hash]; in ip_fib_check_default()
848 static void fib_info_hash_free(struct hlist_head *hash, int bytes) in fib_info_hash_free() argument
850 if (!hash) in fib_info_hash_free()
854 kfree(hash); in fib_info_hash_free()
856 free_pages((unsigned long) hash, get_order(bytes)); in fib_info_hash_free()
1192 unsigned int hash; in fib_create_info() local
1196 hash = fib_devindex_hashfn(nexthop_nh->nh_dev->ifindex); in fib_create_info()
1197 head = &fib_info_devhash[hash]; in fib_create_info()
1337 unsigned int hash = fib_laddr_hashfn(local); in fib_sync_down_addr() local
1338 struct hlist_head *head = &fib_info_laddrhash[hash]; in fib_sync_down_addr()
1366 unsigned int hash = fib_devindex_hashfn(dev->ifindex); in fib_sync_down_dev() local
1367 struct hlist_head *head = &fib_info_devhash[hash]; in fib_sync_down_dev()
1507 unsigned int hash; in fib_sync_up() local
1523 hash = fib_devindex_hashfn(dev->ifindex); in fib_sync_up()
1524 head = &fib_info_devhash[hash]; in fib_sync_up()
1565 void fib_select_multipath(struct fib_result *res, int hash) in fib_select_multipath() argument
1570 if (hash > atomic_read(&nh->nh_upper_bound)) in fib_select_multipath()