Lines Matching refs:nb
31 static int x25_receive_data(struct sk_buff *skb, struct x25_neigh *nb) in x25_receive_data() argument
48 x25_link_control(skb, nb, frametype); in x25_receive_data()
55 if ((sk = x25_find_socket(lci, nb)) != NULL) { in x25_receive_data()
74 return x25_rx_call_request(skb, nb, lci); in x25_receive_data()
81 if (x25_forward_data(lci, nb, skb)) { in x25_receive_data()
103 struct x25_neigh *nb; in x25_lapb_receive_frame() local
117 nb = x25_get_neigh(dev); in x25_lapb_receive_frame()
118 if (!nb) { in x25_lapb_receive_frame()
130 if (x25_receive_data(skb, nb)) { in x25_lapb_receive_frame()
131 x25_neigh_put(nb); in x25_lapb_receive_frame()
137 x25_link_established(nb); in x25_lapb_receive_frame()
141 x25_link_terminated(nb); in x25_lapb_receive_frame()
144 x25_neigh_put(nb); in x25_lapb_receive_frame()
151 void x25_establish_link(struct x25_neigh *nb) in x25_establish_link() argument
156 switch (nb->dev->type) { in x25_establish_link()
175 skb->dev = nb->dev; in x25_establish_link()
180 void x25_terminate_link(struct x25_neigh *nb) in x25_terminate_link() argument
186 if (nb->dev->type == ARPHRD_ETHER) in x25_terminate_link()
189 if (nb->dev->type != ARPHRD_X25) in x25_terminate_link()
202 skb->dev = nb->dev; in x25_terminate_link()
206 void x25_send_frame(struct sk_buff *skb, struct x25_neigh *nb) in x25_send_frame() argument
212 switch (nb->dev->type) { in x25_send_frame()
229 skb->dev = nb->dev; in x25_send_frame()