Lines Matching refs:ax25

23 #include <net/ax25.h>
39 void ax25_setup_timers(ax25_cb *ax25)
41 timer_setup(&ax25->timer, ax25_heartbeat_expiry, 0);
42 timer_setup(&ax25->t1timer, ax25_t1timer_expiry, 0);
43 timer_setup(&ax25->t2timer, ax25_t2timer_expiry, 0);
44 timer_setup(&ax25->t3timer, ax25_t3timer_expiry, 0);
45 timer_setup(&ax25->idletimer, ax25_idletimer_expiry, 0);
48 void ax25_start_heartbeat(ax25_cb *ax25)
50 mod_timer(&ax25->timer, jiffies + 5 * HZ);
53 void ax25_start_t1timer(ax25_cb *ax25)
55 mod_timer(&ax25->t1timer, jiffies + ax25->t1);
58 void ax25_start_t2timer(ax25_cb *ax25)
60 mod_timer(&ax25->t2timer, jiffies + ax25->t2);
63 void ax25_start_t3timer(ax25_cb *ax25)
65 if (ax25->t3 > 0)
66 mod_timer(&ax25->t3timer, jiffies + ax25->t3);
68 del_timer(&ax25->t3timer);
71 void ax25_start_idletimer(ax25_cb *ax25)
73 if (ax25->idle > 0)
74 mod_timer(&ax25->idletimer, jiffies + ax25->idle);
76 del_timer(&ax25->idletimer);
79 void ax25_stop_heartbeat(ax25_cb *ax25)
81 del_timer(&ax25->timer);
84 void ax25_stop_t1timer(ax25_cb *ax25)
86 del_timer(&ax25->t1timer);
89 void ax25_stop_t2timer(ax25_cb *ax25)
91 del_timer(&ax25->t2timer);
94 void ax25_stop_t3timer(ax25_cb *ax25)
96 del_timer(&ax25->t3timer);
99 void ax25_stop_idletimer(ax25_cb *ax25)
101 del_timer(&ax25->idletimer);
104 int ax25_t1timer_running(ax25_cb *ax25)
106 return timer_pending(&ax25->t1timer);
122 ax25_cb *ax25 = from_timer(ax25, t, timer);
124 if (ax25->ax25_dev)
125 proto = ax25->ax25_dev->values[AX25_VALUES_PROTOCOL];
130 ax25_std_heartbeat_expiry(ax25);
135 if (ax25->ax25_dev->dama.slave)
136 ax25_ds_heartbeat_expiry(ax25);
138 ax25_std_heartbeat_expiry(ax25);
146 ax25_cb *ax25 = from_timer(ax25, t, t1timer);
148 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) {
151 ax25_std_t1timer_expiry(ax25);
156 if (!ax25->ax25_dev->dama.slave)
157 ax25_std_t1timer_expiry(ax25);
165 ax25_cb *ax25 = from_timer(ax25, t, t2timer);
167 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) {
170 ax25_std_t2timer_expiry(ax25);
175 if (!ax25->ax25_dev->dama.slave)
176 ax25_std_t2timer_expiry(ax25);
184 ax25_cb *ax25 = from_timer(ax25, t, t3timer);
186 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) {
189 ax25_std_t3timer_expiry(ax25);
194 if (ax25->ax25_dev->dama.slave)
195 ax25_ds_t3timer_expiry(ax25);
197 ax25_std_t3timer_expiry(ax25);
205 ax25_cb *ax25 = from_timer(ax25, t, idletimer);
207 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) {
210 ax25_std_idletimer_expiry(ax25);
215 if (ax25->ax25_dev->dama.slave)
216 ax25_ds_idletimer_expiry(ax25);
218 ax25_std_idletimer_expiry(ax25);