Lines Matching refs:rt_hash_table

196 static struct rt_hash_bucket 	*rt_hash_table;  variable
230 read_lock_bh(&rt_hash_table[i].lock); in rt_cache_get_info()
231 for (r = rt_hash_table[i].chain; r; r = r->u.rt_next) { in rt_cache_get_info()
266 read_unlock_bh(&rt_hash_table[i].lock); in rt_cache_get_info()
270 read_unlock_bh(&rt_hash_table[i].lock); in rt_cache_get_info()
406 rthp = &rt_hash_table[i].chain; in SMP_TIMER_NAME()
408 write_lock(&rt_hash_table[i].lock); in SMP_TIMER_NAME()
427 write_unlock(&rt_hash_table[i].lock); in SMP_TIMER_NAME()
452 write_lock_bh(&rt_hash_table[i].lock); in SMP_TIMER_NAME()
453 rth = rt_hash_table[i].chain; in SMP_TIMER_NAME()
455 rt_hash_table[i].chain = NULL; in SMP_TIMER_NAME()
456 write_unlock_bh(&rt_hash_table[i].lock); in SMP_TIMER_NAME()
587 rthp = &rt_hash_table[k].chain; in rt_garbage_collect()
588 write_lock_bh(&rt_hash_table[k].lock); in rt_garbage_collect()
599 write_unlock_bh(&rt_hash_table[k].lock); in rt_garbage_collect()
667 rthp = &rt_hash_table[hash].chain; in rt_intern_hash()
669 write_lock_bh(&rt_hash_table[hash].lock); in rt_intern_hash()
674 rth->u.rt_next = rt_hash_table[hash].chain; in rt_intern_hash()
675 rt_hash_table[hash].chain = rth; in rt_intern_hash()
680 write_unlock_bh(&rt_hash_table[hash].lock); in rt_intern_hash()
721 write_unlock_bh(&rt_hash_table[hash].lock); in rt_intern_hash()
750 rt->u.rt_next = rt_hash_table[hash].chain; in rt_intern_hash()
761 rt_hash_table[hash].chain = rt; in rt_intern_hash()
762 write_unlock_bh(&rt_hash_table[hash].lock); in rt_intern_hash()
829 write_lock_bh(&rt_hash_table[hash].lock); in rt_del()
831 for (rthp = &rt_hash_table[hash].chain; *rthp; in rt_del()
838 write_unlock_bh(&rt_hash_table[hash].lock); in rt_del()
875 rthp=&rt_hash_table[hash].chain; in ip_rt_redirect()
877 read_lock(&rt_hash_table[hash].lock); in ip_rt_redirect()
898 read_unlock(&rt_hash_table[hash].lock); in ip_rt_redirect()
944 read_unlock(&rt_hash_table[hash].lock); in ip_rt_redirect()
1125 read_lock(&rt_hash_table[hash].lock); in ip_rt_frag_needed()
1126 for (rth = rt_hash_table[hash].chain; rth; in ip_rt_frag_needed()
1163 read_unlock(&rt_hash_table[hash].lock); in ip_rt_frag_needed()
1717 read_lock(&rt_hash_table[hash].lock); in ip_route_input()
1718 for (rth = rt_hash_table[hash].chain; rth; rth = rth->u.rt_next) { in ip_route_input()
1731 read_unlock(&rt_hash_table[hash].lock); in ip_route_input()
1737 read_unlock(&rt_hash_table[hash].lock); in ip_route_input()
2077 read_lock_bh(&rt_hash_table[hash].lock); in ip_route_output_key()
2078 for (rth = rt_hash_table[hash].chain; rth; rth = rth->u.rt_next) { in ip_route_output_key()
2092 read_unlock_bh(&rt_hash_table[hash].lock); in ip_route_output_key()
2098 read_unlock_bh(&rt_hash_table[hash].lock); in ip_route_output_key()
2289 read_lock_bh(&rt_hash_table[h].lock); in ip_rt_dump()
2290 for (rt = rt_hash_table[h].chain, idx = 0; rt; in ip_rt_dump()
2299 read_unlock_bh(&rt_hash_table[h].lock); in ip_rt_dump()
2304 read_unlock_bh(&rt_hash_table[h].lock); in ip_rt_dump()
2590 rt_hash_table = (struct rt_hash_bucket *) in ip_rt_init()
2592 } while (rt_hash_table == NULL && --order > 0); in ip_rt_init()
2594 if (!rt_hash_table) in ip_rt_init()
2606 rt_hash_table[i].lock = RW_LOCK_UNLOCKED; in ip_rt_init()
2607 rt_hash_table[i].chain = NULL; in ip_rt_init()