Searched refs:nr_node (Results 1 – 2 of 2) sorted by relevance
48 static struct nr_node *nr_node_get(ax25_address *callsign) in nr_node_get()50 struct nr_node *found = NULL; in nr_node_get()51 struct nr_node *nr_node; in nr_node_get() local55 nr_node_for_each(nr_node, node, &nr_node_list) in nr_node_get()56 if (ax25cmp(callsign, &nr_node->callsign) == 0) { in nr_node_get()57 nr_node_hold(nr_node); in nr_node_get()58 found = nr_node; in nr_node_get()94 struct nr_node *nr_node; in nr_add_node() local105 nr_node = nr_node_get(nr); in nr_add_node()116 struct nr_node *nr_nodet; in nr_add_node()[all …]
105 struct nr_node { struct123 static __inline__ void nr_node_put(struct nr_node *nr_node) in nr_node_put() argument125 if (atomic_dec_and_test(&nr_node->refcount)) { in nr_node_put()126 kfree(nr_node); in nr_node_put()145 static __inline__ void nr_node_lock(struct nr_node *nr_node) in nr_node_lock() argument147 nr_node_hold(nr_node); in nr_node_lock()148 spin_lock_bh(&nr_node->node_lock); in nr_node_lock()151 static __inline__ void nr_node_unlock(struct nr_node *nr_node) in nr_node_unlock() argument153 spin_unlock_bh(&nr_node->node_lock); in nr_node_unlock()154 nr_node_put(nr_node); in nr_node_unlock()