• Home
  • Raw
  • Download

Lines Matching full:hdlc

3  * Generic HDLC support routines for Linux
11 #include <linux/hdlc.h>
32 static struct x25_state *state(hdlc_device *hdlc) in state() argument
34 return hdlc->state; in state()
95 hdlc_device *hdlc = dev_to_hdlc(dev); in x25_data_transmit() local
103 hdlc->xmit(skb, dev); /* Ignore return value :-( */ in x25_data_transmit()
110 hdlc_device *hdlc = dev_to_hdlc(dev); in x25_xmit() local
111 struct x25_state *x25st = state(hdlc); in x25_xmit()
181 hdlc_device *hdlc = dev_to_hdlc(dev); in x25_open() local
182 struct x25_state *x25st = state(hdlc); in x25_open()
194 if (state(hdlc)->settings.dce) in x25_open()
197 if (state(hdlc)->settings.modulo == 128) in x25_open()
200 params.window = state(hdlc)->settings.window; in x25_open()
201 params.t1 = state(hdlc)->settings.t1; in x25_open()
202 params.t2 = state(hdlc)->settings.t2; in x25_open()
203 params.n2 = state(hdlc)->settings.n2; in x25_open()
220 hdlc_device *hdlc = dev_to_hdlc(dev); in x25_close() local
221 struct x25_state *x25st = state(hdlc); in x25_close()
235 hdlc_device *hdlc = dev_to_hdlc(dev); in x25_rx() local
236 struct x25_state *x25st = state(hdlc); in x25_rx()
277 hdlc_device *hdlc = dev_to_hdlc(dev); in x25_ioctl() local
290 if (copy_to_user(x25_s, &state(hdlc)->settings, size)) in x25_ioctl()
332 result=hdlc->attach(dev, ENCODING_NRZ,PARITY_CRC16_PR1_CCITT); in x25_ioctl()
340 memcpy(&state(hdlc)->settings, &new_settings, size); in x25_ioctl()
341 state(hdlc)->up = false; in x25_ioctl()
342 spin_lock_init(&state(hdlc)->up_lock); in x25_ioctl()
380 MODULE_DESCRIPTION("X.25 protocol support for generic HDLC");