Lines Matching defs:state
34 static struct x25_state *state(hdlc_device *hdlc)
36 return hdlc->state;
54 struct x25_state *x25st = state(dev_to_hdlc(dev));
83 struct x25_state *x25st = state(dev_to_hdlc(dev));
119 struct x25_state *x25st = state(hdlc);
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;
227 struct x25_state *x25st = state(hdlc);
241 struct x25_state *x25st = state(hdlc);
294 if (copy_to_user(x25_s, &state(hdlc)->settings, size))
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);