Home
last modified time | relevance | path

Searched refs:nr_node (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/net/netrom/
Dnr_route.c47 static struct nr_node *nr_node_get(ax25_address *callsign) in nr_node_get()
49 struct nr_node *found = NULL; in nr_node_get()
50 struct nr_node *nr_node; in nr_node_get() local
53 nr_node_for_each(nr_node, &nr_node_list) in nr_node_get()
54 if (ax25cmp(callsign, &nr_node->callsign) == 0) { in nr_node_get()
55 nr_node_hold(nr_node); in nr_node_get()
56 found = nr_node; in nr_node_get()
84 static void re_sort_routes(struct nr_node *nr_node, int x, int y) in re_sort_routes() argument
86 if (nr_node->routes[y].quality > nr_node->routes[x].quality) { in re_sort_routes()
87 if (nr_node->which == x) in re_sort_routes()
[all …]
/Linux-v4.19/include/net/
Dnetrom.h108 struct nr_node { struct
126 static __inline__ void nr_node_put(struct nr_node *nr_node) in nr_node_put() argument
128 if (refcount_dec_and_test(&nr_node->refcount)) { in nr_node_put()
129 kfree(nr_node); in nr_node_put()
148 static __inline__ void nr_node_lock(struct nr_node *nr_node) in nr_node_lock() argument
150 nr_node_hold(nr_node); in nr_node_lock()
151 spin_lock_bh(&nr_node->node_lock); in nr_node_lock()
154 static __inline__ void nr_node_unlock(struct nr_node *nr_node) in nr_node_unlock() argument
156 spin_unlock_bh(&nr_node->node_lock); in nr_node_unlock()
157 nr_node_put(nr_node); in nr_node_unlock()