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()
119 x25_neigh_put(nb); in x25_lapb_receive_frame()
127 if (x25_receive_data(skb, nb)) { in x25_lapb_receive_frame()
128 x25_neigh_put(nb); in x25_lapb_receive_frame()
134 x25_link_established(nb); in x25_lapb_receive_frame()
138 x25_link_terminated(nb); in x25_lapb_receive_frame()
141 x25_neigh_put(nb); in x25_lapb_receive_frame()
148 void x25_establish_link(struct x25_neigh *nb) in x25_establish_link() argument
153 switch (nb->dev->type) { in x25_establish_link()
168 skb->dev = nb->dev; in x25_establish_link()
173 void x25_terminate_link(struct x25_neigh *nb) in x25_terminate_link() argument
178 if (nb->dev->type != ARPHRD_X25) in x25_terminate_link()
191 skb->dev = nb->dev; in x25_terminate_link()
195 void x25_send_frame(struct sk_buff *skb, struct x25_neigh *nb) in x25_send_frame() argument
201 switch (nb->dev->type) { in x25_send_frame()
213 skb->dev = nb->dev; in x25_send_frame()