Lines Matching refs:hdlc
11 #include <linux/hdlc.h>
34 static struct x25_state *state(hdlc_device *hdlc)
36 return hdlc->state;
105 hdlc_device *hdlc = dev_to_hdlc(dev);
113 hdlc->xmit(skb, dev); /* Ignore return value :-( */
118 hdlc_device *hdlc = dev_to_hdlc(dev);
119 struct x25_state *x25st = state(hdlc);
189 hdlc_device *hdlc = dev_to_hdlc(dev);
190 struct x25_state *x25st = state(hdlc);
202 if (state(hdlc)->settings.dce)
205 if (state(hdlc)->settings.modulo == 128)
208 params.window = state(hdlc)->settings.window;
209 params.t1 = state(hdlc)->settings.t1;
210 params.t2 = state(hdlc)->settings.t2;
211 params.n2 = state(hdlc)->settings.n2;
226 hdlc_device *hdlc = dev_to_hdlc(dev);
227 struct x25_state *x25st = state(hdlc);
240 hdlc_device *hdlc = dev_to_hdlc(dev);
241 struct x25_state *x25st = state(hdlc);
281 hdlc_device *hdlc = dev_to_hdlc(dev);
294 if (copy_to_user(x25_s, &state(hdlc)->settings, size))
335 result = hdlc->attach(dev, ENCODING_NRZ,
345 memcpy(&state(hdlc)->settings, &new_settings, size);
346 state(hdlc)->up = false;
347 spin_lock_init(&state(hdlc)->up_lock);
348 skb_queue_head_init(&state(hdlc)->rx_queue);
349 tasklet_setup(&state(hdlc)->rx_tasklet, x25_rx_queue_kick);