Lines Matching refs:s
455 struct nr_node *s; in nr_dec_obs() local
460 nr_node_for_each_safe(s, nodet, &nr_node_list) { in nr_dec_obs()
461 nr_node_lock(s); in nr_dec_obs()
462 for (i = 0; i < s->count; i++) { in nr_dec_obs()
463 switch (s->routes[i].obs_count) { in nr_dec_obs()
468 nr_neigh = s->routes[i].neighbour; in nr_dec_obs()
476 s->count--; in nr_dec_obs()
480 s->routes[0] = s->routes[1]; in nr_dec_obs()
483 s->routes[1] = s->routes[2]; in nr_dec_obs()
490 s->routes[i].obs_count--; in nr_dec_obs()
496 if (s->count <= 0) in nr_dec_obs()
497 nr_remove_node_locked(s); in nr_dec_obs()
498 nr_node_unlock(s); in nr_dec_obs()
510 struct nr_neigh *s; in nr_rt_device_down() local
516 nr_neigh_for_each_safe(s, nodet, &nr_neigh_list) { in nr_rt_device_down()
517 if (s->dev == dev) { in nr_rt_device_down()
522 if (t->routes[i].neighbour == s) { in nr_rt_device_down()
543 nr_remove_neigh_locked(s); in nr_rt_device_down()
708 struct nr_neigh *s, *nr_neigh = NULL; in nr_link_failed() local
712 nr_neigh_for_each(s, &nr_neigh_list) { in nr_link_failed()
713 if (s->ax25 == ax25) { in nr_link_failed()
714 nr_neigh_hold(s); in nr_link_failed()
715 nr_neigh = s; in nr_link_failed()
955 struct nr_neigh *s = NULL; in nr_rt_free() local
966 nr_neigh_for_each_safe(s, nodet, &nr_neigh_list) { in nr_rt_free()
967 while(s->count) { in nr_rt_free()
968 s->count--; in nr_rt_free()
969 nr_neigh_put(s); in nr_rt_free()
971 nr_remove_neigh_locked(s); in nr_rt_free()