nr_node 128 include/net/netrom.h if (atomic_dec_and_test(&nr_node->refcount)) { nr_node 129 include/net/netrom.h kfree(nr_node); nr_node 148 include/net/netrom.h nr_node_hold(nr_node); nr_node 149 include/net/netrom.h spin_lock_bh(&nr_node->node_lock); nr_node 154 include/net/netrom.h spin_unlock_bh(&nr_node->node_lock); nr_node 155 include/net/netrom.h nr_node_put(nr_node); nr_node 47 net/netrom/nr_route.c static struct nr_node *nr_node_get(ax25_address *callsign) nr_node 49 net/netrom/nr_route.c struct nr_node *found = NULL; nr_node 50 net/netrom/nr_route.c struct nr_node *nr_node; nr_node 54 net/netrom/nr_route.c nr_node_for_each(nr_node, node, &nr_node_list) nr_node 55 net/netrom/nr_route.c if (ax25cmp(callsign, &nr_node->callsign) == 0) { nr_node 56 net/netrom/nr_route.c nr_node_hold(nr_node); nr_node 57 net/netrom/nr_route.c found = nr_node; nr_node 93 net/netrom/nr_route.c struct nr_node *nr_node; nr_node 104 net/netrom/nr_route.c nr_node = nr_node_get(nr); nr_node 115 net/netrom/nr_route.c struct nr_node *nr_nodet; nr_node 133 net/netrom/nr_route.c if (quality == 0 && nr_neigh != NULL && nr_node != NULL) { nr_node 135 net/netrom/nr_route.c nr_node_put(nr_node); nr_node 141 net/netrom/nr_route.c if (nr_node) nr_node 142 net/netrom/nr_route.c nr_node_put(nr_node); nr_node 163 net/netrom/nr_route.c if (nr_node) nr_node 164 net/netrom/nr_route.c nr_node_put(nr_node); nr_node 178 net/netrom/nr_route.c if (nr_node == NULL) { nr_node 179 net/netrom/nr_route.c if ((nr_node = kmalloc(sizeof(*nr_node), GFP_ATOMIC)) == NULL) { nr_node 185 net/netrom/nr_route.c nr_node->callsign = *nr; nr_node 186 net/netrom/nr_route.c strcpy(nr_node->mnemonic, mnemonic); nr_node 188 net/netrom/nr_route.c nr_node->which = 0; nr_node 189 net/netrom/nr_route.c nr_node->count = 1; nr_node 190 net/netrom/nr_route.c atomic_set(&nr_node->refcount, 1); nr_node 191 net/netrom/nr_route.c spin_lock_init(&nr_node->node_lock); nr_node 193 net/netrom/nr_route.c nr_node->routes[0].quality = quality; nr_node 194 net/netrom/nr_route.c nr_node->routes[0].obs_count = obs_count; nr_node 195 net/netrom/nr_route.c nr_node->routes[0].neighbour = nr_neigh; nr_node 201 net/netrom/nr_route.c hlist_add_head(&nr_node->node_node, &nr_node_list); nr_node 207 net/netrom/nr_route.c nr_node_lock(nr_node); nr_node 210 net/netrom/nr_route.c strcpy(nr_node->mnemonic, mnemonic); nr_node 212 net/netrom/nr_route.c for (found = 0, i = 0; i < nr_node->count; i++) { nr_node 213 net/netrom/nr_route.c if (nr_node->routes[i].neighbour == nr_neigh) { nr_node 214 net/netrom/nr_route.c nr_node->routes[i].quality = quality; nr_node 215 net/netrom/nr_route.c nr_node->routes[i].obs_count = obs_count; nr_node 223 net/netrom/nr_route.c if (nr_node->count < 3) { nr_node 224 net/netrom/nr_route.c nr_node->routes[2] = nr_node->routes[1]; nr_node 225 net/netrom/nr_route.c nr_node->routes[1] = nr_node->routes[0]; nr_node 227 net/netrom/nr_route.c nr_node->routes[0].quality = quality; nr_node 228 net/netrom/nr_route.c nr_node->routes[0].obs_count = obs_count; nr_node 229 net/netrom/nr_route.c nr_node->routes[0].neighbour = nr_neigh; nr_node 231 net/netrom/nr_route.c nr_node->which++; nr_node 232 net/netrom/nr_route.c nr_node->count++; nr_node 237 net/netrom/nr_route.c if (quality > nr_node->routes[2].quality) { nr_node 238 net/netrom/nr_route.c nr_node->routes[2].neighbour->count--; nr_node 239 net/netrom/nr_route.c nr_neigh_put(nr_node->routes[2].neighbour); nr_node 241 net/netrom/nr_route.c if (nr_node->routes[2].neighbour->count == 0 && !nr_node->routes[2].neighbour->locked) nr_node 242 net/netrom/nr_route.c nr_remove_neigh(nr_node->routes[2].neighbour); nr_node 244 net/netrom/nr_route.c nr_node->routes[2].quality = quality; nr_node 245 net/netrom/nr_route.c nr_node->routes[2].obs_count = obs_count; nr_node 246 net/netrom/nr_route.c nr_node->routes[2].neighbour = nr_neigh; nr_node 255 net/netrom/nr_route.c switch (nr_node->count) { nr_node 257 net/netrom/nr_route.c if (nr_node->routes[1].quality > nr_node->routes[0].quality) { nr_node 258 net/netrom/nr_route.c switch (nr_node->which) { nr_node 259 net/netrom/nr_route.c case 0: nr_node->which = 1; break; nr_node 260 net/netrom/nr_route.c case 1: nr_node->which = 0; break; nr_node 263 net/netrom/nr_route.c nr_route = nr_node->routes[0]; nr_node 264 net/netrom/nr_route.c nr_node->routes[0] = nr_node->routes[1]; nr_node 265 net/netrom/nr_route.c nr_node->routes[1] = nr_route; nr_node 267 net/netrom/nr_route.c if (nr_node->routes[2].quality > nr_node->routes[1].quality) { nr_node 268 net/netrom/nr_route.c switch (nr_node->which) { nr_node 269 net/netrom/nr_route.c case 1: nr_node->which = 2; nr_node 272 net/netrom/nr_route.c case 2: nr_node->which = 1; nr_node 278 net/netrom/nr_route.c nr_route = nr_node->routes[1]; nr_node 279 net/netrom/nr_route.c nr_node->routes[1] = nr_node->routes[2]; nr_node 280 net/netrom/nr_route.c nr_node->routes[2] = nr_route; nr_node 283 net/netrom/nr_route.c if (nr_node->routes[1].quality > nr_node->routes[0].quality) { nr_node 284 net/netrom/nr_route.c switch (nr_node->which) { nr_node 285 net/netrom/nr_route.c case 0: nr_node->which = 1; nr_node 288 net/netrom/nr_route.c case 1: nr_node->which = 0; nr_node 293 net/netrom/nr_route.c nr_route = nr_node->routes[0]; nr_node 294 net/netrom/nr_route.c nr_node->routes[0] = nr_node->routes[1]; nr_node 295 net/netrom/nr_route.c nr_node->routes[1] = nr_route; nr_node 301 net/netrom/nr_route.c for (i = 0; i < nr_node->count; i++) { nr_node 302 net/netrom/nr_route.c if (nr_node->routes[i].neighbour == nr_neigh) { nr_node 303 net/netrom/nr_route.c if (i < nr_node->which) nr_node 304 net/netrom/nr_route.c nr_node->which = i; nr_node 310 net/netrom/nr_route.c nr_node_unlock(nr_node); nr_node 311 net/netrom/nr_route.c nr_node_put(nr_node); nr_node 317 net/netrom/nr_route.c hlist_del_init(&nr_node->node_node); nr_node 318 net/netrom/nr_route.c nr_node_put(nr_node); nr_node 327 net/netrom/nr_route.c __nr_remove_node(nr_node); nr_node 353 net/netrom/nr_route.c struct nr_node *nr_node; nr_node 357 net/netrom/nr_route.c nr_node = nr_node_get(callsign); nr_node 359 net/netrom/nr_route.c if (nr_node == NULL) nr_node 365 net/netrom/nr_route.c nr_node_put(nr_node); nr_node 369 net/netrom/nr_route.c nr_node_lock(nr_node); nr_node 370 net/netrom/nr_route.c for (i = 0; i < nr_node->count; i++) { nr_node 371 net/netrom/nr_route.c if (nr_node->routes[i].neighbour == nr_neigh) { nr_node 379 net/netrom/nr_route.c nr_node->count--; nr_node 381 net/netrom/nr_route.c if (nr_node->count == 0) { nr_node 382 net/netrom/nr_route.c nr_remove_node(nr_node); nr_node 386 net/netrom/nr_route.c nr_node->routes[0] = nr_node->routes[1]; nr_node 388 net/netrom/nr_route.c nr_node->routes[1] = nr_node->routes[2]; nr_node 392 net/netrom/nr_route.c nr_node_put(nr_node); nr_node 394 net/netrom/nr_route.c nr_node_unlock(nr_node); nr_node 400 net/netrom/nr_route.c nr_node_unlock(nr_node); nr_node 401 net/netrom/nr_route.c nr_node_put(nr_node); nr_node 483 net/netrom/nr_route.c struct nr_node *s; nr_node 539 net/netrom/nr_route.c struct nr_node *t; nr_node 729 net/netrom/nr_route.c struct nr_node *nr_node = NULL; nr_node 752 net/netrom/nr_route.c nr_node_for_each(nr_node, node, &nr_node_list) { nr_node 753 net/netrom/nr_route.c nr_node_lock(nr_node); nr_node 754 net/netrom/nr_route.c if (nr_node->which < nr_node->count && nr_node 755 net/netrom/nr_route.c nr_node->routes[nr_node->which].neighbour == nr_neigh) nr_node 756 net/netrom/nr_route.c nr_node->which++; nr_node 757 net/netrom/nr_route.c nr_node_unlock(nr_node); nr_node 771 net/netrom/nr_route.c struct nr_node *nr_node; nr_node 807 net/netrom/nr_route.c nr_node = nr_node_get(nr_dest); nr_node 808 net/netrom/nr_route.c if (nr_node == NULL) nr_node 810 net/netrom/nr_route.c nr_node_lock(nr_node); nr_node 812 net/netrom/nr_route.c if (nr_node->which >= nr_node->count) { nr_node 813 net/netrom/nr_route.c nr_node_unlock(nr_node); nr_node 814 net/netrom/nr_route.c nr_node_put(nr_node); nr_node 818 net/netrom/nr_route.c nr_neigh = nr_node->routes[nr_node->which].neighbour; nr_node 821 net/netrom/nr_route.c nr_node_unlock(nr_node); nr_node 822 net/netrom/nr_route.c nr_node_put(nr_node); nr_node 830 net/netrom/nr_route.c nr_node_unlock(nr_node); nr_node 831 net/netrom/nr_route.c nr_node_put(nr_node); nr_node 851 net/netrom/nr_route.c nr_node_unlock(nr_node); nr_node 852 net/netrom/nr_route.c nr_node_put(nr_node); nr_node 861 net/netrom/nr_route.c struct nr_node *nr_node; nr_node 869 net/netrom/nr_route.c nr_node_for_each(nr_node, node, &nr_node_list) { nr_node 871 net/netrom/nr_route.c return nr_node; nr_node 885 net/netrom/nr_route.c : ((struct nr_node *)v)->node_node.next; nr_node 887 net/netrom/nr_route.c return hlist_entry(node, struct nr_node, node_node); nr_node 904 net/netrom/nr_route.c struct nr_node *nr_node = v; nr_node 905 net/netrom/nr_route.c nr_node_lock(nr_node); nr_node 907 net/netrom/nr_route.c ax2asc(buf, &nr_node->callsign), nr_node 908 net/netrom/nr_route.c (nr_node->mnemonic[0] == '\0') ? "*" : nr_node->mnemonic, nr_node 909 net/netrom/nr_route.c nr_node->which + 1, nr_node 910 net/netrom/nr_route.c nr_node->count); nr_node 912 net/netrom/nr_route.c for (i = 0; i < nr_node->count; i++) { nr_node 914 net/netrom/nr_route.c nr_node->routes[i].quality, nr_node 915 net/netrom/nr_route.c nr_node->routes[i].obs_count, nr_node 916 net/netrom/nr_route.c nr_node->routes[i].neighbour->number); nr_node 918 net/netrom/nr_route.c nr_node_unlock(nr_node); nr_node 1037 net/netrom/nr_route.c struct nr_node *t = NULL;