Lines Matching refs:ax25_dev
49 static void ax25_ds_add_timer(ax25_dev *ax25_dev) in ax25_ds_add_timer() argument
51 struct timer_list *t = &ax25_dev->dama.slave_timer; in ax25_ds_add_timer()
52 t->data = (unsigned long) ax25_dev; in ax25_ds_add_timer()
58 void ax25_ds_del_timer(ax25_dev *ax25_dev) in ax25_ds_del_timer() argument
60 if (ax25_dev) del_timer(&ax25_dev->dama.slave_timer); in ax25_ds_del_timer()
63 void ax25_ds_set_timer(ax25_dev *ax25_dev) in ax25_ds_set_timer() argument
65 if (ax25_dev == NULL) /* paranoia */ in ax25_ds_set_timer()
68 del_timer(&ax25_dev->dama.slave_timer); in ax25_ds_set_timer()
69 ax25_dev->dama.slave_timeout = ax25_dev->values[AX25_VALUES_DS_TIMEOUT] / 10; in ax25_ds_set_timer()
70 ax25_ds_add_timer(ax25_dev); in ax25_ds_set_timer()
80 ax25_dev *ax25_dev = (struct ax25_dev *) arg; in ax25_ds_timeout() local
83 if (ax25_dev == NULL || !ax25_dev->dama.slave) in ax25_ds_timeout()
86 if (!ax25_dev->dama.slave_timeout || --ax25_dev->dama.slave_timeout) { in ax25_ds_timeout()
87 ax25_ds_set_timer(ax25_dev); in ax25_ds_timeout()
92 if (ax25->ax25_dev != ax25_dev || !(ax25->condition & AX25_COND_DAMA_MODE)) in ax25_ds_timeout()
99 ax25_dev_dama_off(ax25_dev); in ax25_ds_timeout()
188 ax25->window = ax25->ax25_dev->values[AX25_VALUES_WINDOW]; in ax25_ds_t1_timeout()