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);
124 ax25_cb *ax25 = from_timer(ax25, t, timer);
126 if (ax25->ax25_dev)
127 proto = ax25->ax25_dev->values[AX25_VALUES_PROTOCOL];
132 ax25_std_heartbeat_expiry(ax25);
137 if (ax25->ax25_dev->dama.slave)
138 ax25_ds_heartbeat_expiry(ax25);
140 ax25_std_heartbeat_expiry(ax25);
148 ax25_cb *ax25 = from_timer(ax25, t, t1timer);
150 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) {
153 ax25_std_t1timer_expiry(ax25);
158 if (!ax25->ax25_dev->dama.slave)
159 ax25_std_t1timer_expiry(ax25);
167 ax25_cb *ax25 = from_timer(ax25, t, t2timer);
169 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) {
172 ax25_std_t2timer_expiry(ax25);
177 if (!ax25->ax25_dev->dama.slave)
178 ax25_std_t2timer_expiry(ax25);
186 ax25_cb *ax25 = from_timer(ax25, t, t3timer);
188 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) {
191 ax25_std_t3timer_expiry(ax25);
196 if (ax25->ax25_dev->dama.slave)
197 ax25_ds_t3timer_expiry(ax25);
199 ax25_std_t3timer_expiry(ax25);
207 ax25_cb *ax25 = from_timer(ax25, t, idletimer);
209 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) {
212 ax25_std_idletimer_expiry(ax25);
217 if (ax25->ax25_dev->dama.slave)
218 ax25_ds_idletimer_expiry(ax25);
220 ax25_std_idletimer_expiry(ax25);