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