Lines Matching refs:s
484 struct nr_node *s; in nr_dec_obs() local
489 nr_node_for_each_safe(s, nodet, &nr_node_list) { in nr_dec_obs()
490 nr_node_lock(s); in nr_dec_obs()
491 for (i = 0; i < s->count; i++) { in nr_dec_obs()
492 switch (s->routes[i].obs_count) { in nr_dec_obs()
497 nr_neigh = s->routes[i].neighbour; in nr_dec_obs()
505 s->count--; in nr_dec_obs()
509 s->routes[0] = s->routes[1]; in nr_dec_obs()
512 s->routes[1] = s->routes[2]; in nr_dec_obs()
519 s->routes[i].obs_count--; in nr_dec_obs()
525 if (s->count <= 0) in nr_dec_obs()
526 nr_remove_node_locked(s); in nr_dec_obs()
527 nr_node_unlock(s); in nr_dec_obs()
539 struct nr_neigh *s; in nr_rt_device_down() local
545 nr_neigh_for_each_safe(s, nodet, &nr_neigh_list) { in nr_rt_device_down()
546 if (s->dev == dev) { in nr_rt_device_down()
551 if (t->routes[i].neighbour == s) { in nr_rt_device_down()
571 nr_remove_neigh_locked(s); in nr_rt_device_down()
736 struct nr_neigh *s, *nr_neigh = NULL; in nr_link_failed() local
740 nr_neigh_for_each(s, &nr_neigh_list) { in nr_link_failed()
741 if (s->ax25 == ax25) { in nr_link_failed()
742 nr_neigh_hold(s); in nr_link_failed()
743 nr_neigh = s; in nr_link_failed()
1010 struct nr_neigh *s = NULL; in nr_rt_free() local
1021 nr_neigh_for_each_safe(s, nodet, &nr_neigh_list) { in nr_rt_free()
1022 while(s->count) { in nr_rt_free()
1023 s->count--; in nr_rt_free()
1024 nr_neigh_put(s); in nr_rt_free()
1026 nr_remove_neigh_locked(s); in nr_rt_free()