Lines Matching refs:nb
29 static int x25_receive_data(struct sk_buff *skb, struct x25_neigh *nb) in x25_receive_data() argument
46 x25_link_control(skb, nb, frametype); in x25_receive_data()
53 if ((sk = x25_find_socket(lci, nb)) != NULL) { in x25_receive_data()
72 return x25_rx_call_request(skb, nb, lci); in x25_receive_data()
79 if (x25_forward_data(lci, nb, skb)) { in x25_receive_data()
101 struct x25_neigh *nb; in x25_lapb_receive_frame() local
115 nb = x25_get_neigh(dev); in x25_lapb_receive_frame()
116 if (!nb) { in x25_lapb_receive_frame()
128 if (x25_receive_data(skb, nb)) { in x25_lapb_receive_frame()
129 x25_neigh_put(nb); in x25_lapb_receive_frame()
135 x25_link_established(nb); in x25_lapb_receive_frame()
139 x25_link_terminated(nb); in x25_lapb_receive_frame()
142 x25_neigh_put(nb); in x25_lapb_receive_frame()
149 void x25_establish_link(struct x25_neigh *nb) in x25_establish_link() argument
154 switch (nb->dev->type) { in x25_establish_link()
173 skb->dev = nb->dev; in x25_establish_link()
178 void x25_terminate_link(struct x25_neigh *nb) in x25_terminate_link() argument
184 if (nb->dev->type == ARPHRD_ETHER) in x25_terminate_link()
187 if (nb->dev->type != ARPHRD_X25) in x25_terminate_link()
200 skb->dev = nb->dev; in x25_terminate_link()
204 void x25_send_frame(struct sk_buff *skb, struct x25_neigh *nb) in x25_send_frame() argument
210 switch (nb->dev->type) { in x25_send_frame()
227 skb->dev = nb->dev; in x25_send_frame()