Lines Matching refs:nb
26 static int x25_receive_data(struct sk_buff *skb, struct x25_neigh *nb) in x25_receive_data() argument
43 x25_link_control(skb, nb, frametype); in x25_receive_data()
50 if ((sk = x25_find_socket(lci, nb)) != NULL) { in x25_receive_data()
69 return x25_rx_call_request(skb, nb, lci); in x25_receive_data()
76 if (x25_forward_data(lci, nb, skb)) { in x25_receive_data()
98 struct x25_neigh *nb; in x25_lapb_receive_frame() local
112 nb = x25_get_neigh(dev); in x25_lapb_receive_frame()
113 if (!nb) { in x25_lapb_receive_frame()
125 if (x25_receive_data(skb, nb)) { in x25_lapb_receive_frame()
126 x25_neigh_put(nb); in x25_lapb_receive_frame()
132 x25_link_established(nb); in x25_lapb_receive_frame()
136 x25_link_terminated(nb); in x25_lapb_receive_frame()
139 x25_neigh_put(nb); in x25_lapb_receive_frame()
146 void x25_establish_link(struct x25_neigh *nb) in x25_establish_link() argument
151 switch (nb->dev->type) { in x25_establish_link()
170 skb->dev = nb->dev; in x25_establish_link()
175 void x25_terminate_link(struct x25_neigh *nb) in x25_terminate_link() argument
181 if (nb->dev->type == ARPHRD_ETHER) in x25_terminate_link()
184 if (nb->dev->type != ARPHRD_X25) in x25_terminate_link()
197 skb->dev = nb->dev; in x25_terminate_link()
201 void x25_send_frame(struct sk_buff *skb, struct x25_neigh *nb) in x25_send_frame() argument
207 switch (nb->dev->type) { in x25_send_frame()
224 skb->dev = nb->dev; in x25_send_frame()