nr_neigh          105 include/net/netrom.h 	struct nr_neigh *neighbour;
nr_neigh          138 include/net/netrom.h 	if (atomic_dec_and_test(&nr_neigh->refcount)) {
nr_neigh          139 include/net/netrom.h 		kfree(nr_neigh->digipeat);
nr_neigh          140 include/net/netrom.h 		kfree(nr_neigh);
nr_neigh           64 net/netrom/nr_route.c static struct nr_neigh *nr_neigh_get_dev(ax25_address *callsign,
nr_neigh           67 net/netrom/nr_route.c 	struct nr_neigh *found = NULL;
nr_neigh           68 net/netrom/nr_route.c 	struct nr_neigh *nr_neigh;
nr_neigh           72 net/netrom/nr_route.c 	nr_neigh_for_each(nr_neigh, node, &nr_neigh_list)
nr_neigh           73 net/netrom/nr_route.c 		if (ax25cmp(callsign, &nr_neigh->callsign) == 0 &&
nr_neigh           74 net/netrom/nr_route.c 		    nr_neigh->dev == dev) {
nr_neigh           75 net/netrom/nr_route.c 			nr_neigh_hold(nr_neigh);
nr_neigh           76 net/netrom/nr_route.c 			found = nr_neigh;
nr_neigh           94 net/netrom/nr_route.c 	struct nr_neigh *nr_neigh;
nr_neigh          106 net/netrom/nr_route.c 	nr_neigh = nr_neigh_get_dev(ax25, dev);
nr_neigh          114 net/netrom/nr_route.c 	if (nr_neigh != NULL && nr_neigh->failed != 0 && quality == 0) {
nr_neigh          122 net/netrom/nr_route.c 				if (nr_nodet->routes[i].neighbour == nr_neigh)
nr_neigh          130 net/netrom/nr_route.c 	if (nr_neigh != NULL)
nr_neigh          131 net/netrom/nr_route.c 		nr_neigh->failed = 0;
nr_neigh          133 net/netrom/nr_route.c 	if (quality == 0 && nr_neigh != NULL && nr_node != NULL) {
nr_neigh          134 net/netrom/nr_route.c 		nr_neigh_put(nr_neigh);
nr_neigh          139 net/netrom/nr_route.c 	if (nr_neigh == NULL) {
nr_neigh          140 net/netrom/nr_route.c 		if ((nr_neigh = kmalloc(sizeof(*nr_neigh), GFP_ATOMIC)) == NULL) {
nr_neigh          146 net/netrom/nr_route.c 		nr_neigh->callsign = *ax25;
nr_neigh          147 net/netrom/nr_route.c 		nr_neigh->digipeat = NULL;
nr_neigh          148 net/netrom/nr_route.c 		nr_neigh->ax25     = NULL;
nr_neigh          149 net/netrom/nr_route.c 		nr_neigh->dev      = dev;
nr_neigh          150 net/netrom/nr_route.c 		nr_neigh->quality  = sysctl_netrom_default_path_quality;
nr_neigh          151 net/netrom/nr_route.c 		nr_neigh->locked   = 0;
nr_neigh          152 net/netrom/nr_route.c 		nr_neigh->count    = 0;
nr_neigh          153 net/netrom/nr_route.c 		nr_neigh->number   = nr_neigh_no++;
nr_neigh          154 net/netrom/nr_route.c 		nr_neigh->failed   = 0;
nr_neigh          155 net/netrom/nr_route.c 		atomic_set(&nr_neigh->refcount, 1);
nr_neigh          158 net/netrom/nr_route.c 			nr_neigh->digipeat = kmemdup(ax25_digi,
nr_neigh          161 net/netrom/nr_route.c 			if (nr_neigh->digipeat == NULL) {
nr_neigh          162 net/netrom/nr_route.c 				kfree(nr_neigh);
nr_neigh          170 net/netrom/nr_route.c 		hlist_add_head(&nr_neigh->neigh_node, &nr_neigh_list);
nr_neigh          171 net/netrom/nr_route.c 		nr_neigh_hold(nr_neigh);
nr_neigh          175 net/netrom/nr_route.c 	if (quality != 0 && ax25cmp(nr, ax25) == 0 && !nr_neigh->locked)
nr_neigh          176 net/netrom/nr_route.c 		nr_neigh->quality = quality;
nr_neigh          180 net/netrom/nr_route.c 			if (nr_neigh)
nr_neigh          181 net/netrom/nr_route.c 				nr_neigh_put(nr_neigh);
nr_neigh          195 net/netrom/nr_route.c 		nr_node->routes[0].neighbour = nr_neigh;
nr_neigh          197 net/netrom/nr_route.c 		nr_neigh_hold(nr_neigh);
nr_neigh          198 net/netrom/nr_route.c 		nr_neigh->count++;
nr_neigh          213 net/netrom/nr_route.c 		if (nr_node->routes[i].neighbour == nr_neigh) {
nr_neigh          229 net/netrom/nr_route.c 			nr_node->routes[0].neighbour = nr_neigh;
nr_neigh          233 net/netrom/nr_route.c 			nr_neigh_hold(nr_neigh);
nr_neigh          234 net/netrom/nr_route.c 			nr_neigh->count++;
nr_neigh          246 net/netrom/nr_route.c 				nr_node->routes[2].neighbour = nr_neigh;
nr_neigh          248 net/netrom/nr_route.c 				nr_neigh_hold(nr_neigh);
nr_neigh          249 net/netrom/nr_route.c 				nr_neigh->count++;
nr_neigh          302 net/netrom/nr_route.c 		if (nr_node->routes[i].neighbour == nr_neigh) {
nr_neigh          309 net/netrom/nr_route.c 	nr_neigh_put(nr_neigh);
nr_neigh          333 net/netrom/nr_route.c 	hlist_del_init(&nr_neigh->neigh_node);
nr_neigh          334 net/netrom/nr_route.c 	nr_neigh_put(nr_neigh);
nr_neigh          343 net/netrom/nr_route.c 	__nr_remove_neigh(nr_neigh);
nr_neigh          354 net/netrom/nr_route.c 	struct nr_neigh *nr_neigh;
nr_neigh          362 net/netrom/nr_route.c 	nr_neigh = nr_neigh_get_dev(neighbour, dev);
nr_neigh          364 net/netrom/nr_route.c 	if (nr_neigh == NULL) {
nr_neigh          371 net/netrom/nr_route.c 		if (nr_node->routes[i].neighbour == nr_neigh) {
nr_neigh          372 net/netrom/nr_route.c 			nr_neigh->count--;
nr_neigh          373 net/netrom/nr_route.c 			nr_neigh_put(nr_neigh);
nr_neigh          375 net/netrom/nr_route.c 			if (nr_neigh->count == 0 && !nr_neigh->locked)
nr_neigh          376 net/netrom/nr_route.c 				nr_remove_neigh(nr_neigh);
nr_neigh          377 net/netrom/nr_route.c 			nr_neigh_put(nr_neigh);
nr_neigh          399 net/netrom/nr_route.c 	nr_neigh_put(nr_neigh);
nr_neigh          412 net/netrom/nr_route.c 	struct nr_neigh *nr_neigh;
nr_neigh          414 net/netrom/nr_route.c 	nr_neigh = nr_neigh_get_dev(callsign, dev);
nr_neigh          415 net/netrom/nr_route.c 	if (nr_neigh) {
nr_neigh          416 net/netrom/nr_route.c 		nr_neigh->quality = quality;
nr_neigh          417 net/netrom/nr_route.c 		nr_neigh->locked  = 1;
nr_neigh          418 net/netrom/nr_route.c 		nr_neigh_put(nr_neigh);
nr_neigh          422 net/netrom/nr_route.c 	if ((nr_neigh = kmalloc(sizeof(*nr_neigh), GFP_ATOMIC)) == NULL)
nr_neigh          425 net/netrom/nr_route.c 	nr_neigh->callsign = *callsign;
nr_neigh          426 net/netrom/nr_route.c 	nr_neigh->digipeat = NULL;
nr_neigh          427 net/netrom/nr_route.c 	nr_neigh->ax25     = NULL;
nr_neigh          428 net/netrom/nr_route.c 	nr_neigh->dev      = dev;
nr_neigh          429 net/netrom/nr_route.c 	nr_neigh->quality  = quality;
nr_neigh          430 net/netrom/nr_route.c 	nr_neigh->locked   = 1;
nr_neigh          431 net/netrom/nr_route.c 	nr_neigh->count    = 0;
nr_neigh          432 net/netrom/nr_route.c 	nr_neigh->number   = nr_neigh_no++;
nr_neigh          433 net/netrom/nr_route.c 	nr_neigh->failed   = 0;
nr_neigh          434 net/netrom/nr_route.c 	atomic_set(&nr_neigh->refcount, 1);
nr_neigh          437 net/netrom/nr_route.c 		nr_neigh->digipeat = kmemdup(ax25_digi, sizeof(*ax25_digi),
nr_neigh          439 net/netrom/nr_route.c 		if (nr_neigh->digipeat == NULL) {
nr_neigh          440 net/netrom/nr_route.c 			kfree(nr_neigh);
nr_neigh          446 net/netrom/nr_route.c 	hlist_add_head(&nr_neigh->neigh_node, &nr_neigh_list);
nr_neigh          459 net/netrom/nr_route.c 	struct nr_neigh *nr_neigh;
nr_neigh          461 net/netrom/nr_route.c 	nr_neigh = nr_neigh_get_dev(callsign, dev);
nr_neigh          463 net/netrom/nr_route.c 	if (nr_neigh == NULL) return -EINVAL;
nr_neigh          465 net/netrom/nr_route.c 	nr_neigh->quality = quality;
nr_neigh          466 net/netrom/nr_route.c 	nr_neigh->locked  = 0;
nr_neigh          468 net/netrom/nr_route.c 	if (nr_neigh->count == 0)
nr_neigh          469 net/netrom/nr_route.c 		nr_remove_neigh(nr_neigh);
nr_neigh          470 net/netrom/nr_route.c 	nr_neigh_put(nr_neigh);
nr_neigh          482 net/netrom/nr_route.c 	struct nr_neigh *nr_neigh;
nr_neigh          496 net/netrom/nr_route.c 				nr_neigh = s->routes[i].neighbour;
nr_neigh          498 net/netrom/nr_route.c 				nr_neigh->count--;
nr_neigh          499 net/netrom/nr_route.c 				nr_neigh_put(nr_neigh);
nr_neigh          501 net/netrom/nr_route.c 				if (nr_neigh->count == 0 && !nr_neigh->locked)
nr_neigh          502 net/netrom/nr_route.c 					nr_remove_neigh(nr_neigh);
nr_neigh          537 net/netrom/nr_route.c 	struct nr_neigh *s;
nr_neigh          727 net/netrom/nr_route.c 	struct nr_neigh *s, *nr_neigh = NULL;
nr_neigh          735 net/netrom/nr_route.c 			nr_neigh = s;
nr_neigh          741 net/netrom/nr_route.c 	if (nr_neigh == NULL)
nr_neigh          744 net/netrom/nr_route.c 	nr_neigh->ax25 = NULL;
nr_neigh          747 net/netrom/nr_route.c 	if (++nr_neigh->failed < sysctl_netrom_link_fails_count) {
nr_neigh          748 net/netrom/nr_route.c 		nr_neigh_put(nr_neigh);
nr_neigh          755 net/netrom/nr_route.c 		    nr_node->routes[nr_node->which].neighbour == nr_neigh)
nr_neigh          760 net/netrom/nr_route.c 	nr_neigh_put(nr_neigh);
nr_neigh          770 net/netrom/nr_route.c 	struct nr_neigh *nr_neigh;
nr_neigh          818 net/netrom/nr_route.c 	nr_neigh = nr_node->routes[nr_node->which].neighbour;
nr_neigh          842 net/netrom/nr_route.c 	ax25s = ax25_send_frame(skb, 256, (ax25_address *)dev->dev_addr, &nr_neigh->callsign, nr_neigh->digipeat, nr_neigh->dev);
nr_neigh          843 net/netrom/nr_route.c 	if (nr_neigh->ax25 && ax25s) {
nr_neigh          847 net/netrom/nr_route.c 	nr_neigh->ax25 = ax25s;
nr_neigh          850 net/netrom/nr_route.c 	ret = (nr_neigh->ax25 != NULL);
nr_neigh          947 net/netrom/nr_route.c 	struct nr_neigh *nr_neigh;
nr_neigh          955 net/netrom/nr_route.c 	nr_neigh_for_each(nr_neigh, node, &nr_neigh_list) {
nr_neigh          957 net/netrom/nr_route.c 			return nr_neigh;
nr_neigh          969 net/netrom/nr_route.c 		: ((struct nr_neigh *)v)->neigh_node.next;
nr_neigh          971 net/netrom/nr_route.c 	return hlist_entry(node, struct nr_neigh, neigh_node);
nr_neigh          987 net/netrom/nr_route.c 		struct nr_neigh *nr_neigh = v;
nr_neigh          990 net/netrom/nr_route.c 			nr_neigh->number,
nr_neigh          991 net/netrom/nr_route.c 			ax2asc(buf, &nr_neigh->callsign),
nr_neigh          992 net/netrom/nr_route.c 			nr_neigh->dev ? nr_neigh->dev->name : "???",
nr_neigh          993 net/netrom/nr_route.c 			nr_neigh->quality,
nr_neigh          994 net/netrom/nr_route.c 			nr_neigh->locked,
nr_neigh          995 net/netrom/nr_route.c 			nr_neigh->count,
nr_neigh          996 net/netrom/nr_route.c 			nr_neigh->failed);
nr_neigh          998 net/netrom/nr_route.c 		if (nr_neigh->digipeat != NULL) {
nr_neigh          999 net/netrom/nr_route.c 			for (i = 0; i < nr_neigh->digipeat->ndigi; i++)
nr_neigh         1001 net/netrom/nr_route.c 					   ax2asc(buf, &nr_neigh->digipeat->calls[i]));
nr_neigh         1036 net/netrom/nr_route.c 	struct nr_neigh *s = NULL;