Lines Matching refs:ax25
39 void ax25_setup_timers(ax25_cb *ax25) in ax25_setup_timers() argument
41 timer_setup(&ax25->timer, ax25_heartbeat_expiry, 0); in ax25_setup_timers()
42 timer_setup(&ax25->t1timer, ax25_t1timer_expiry, 0); in ax25_setup_timers()
43 timer_setup(&ax25->t2timer, ax25_t2timer_expiry, 0); in ax25_setup_timers()
44 timer_setup(&ax25->t3timer, ax25_t3timer_expiry, 0); in ax25_setup_timers()
45 timer_setup(&ax25->idletimer, ax25_idletimer_expiry, 0); in ax25_setup_timers()
48 void ax25_start_heartbeat(ax25_cb *ax25) in ax25_start_heartbeat() argument
50 mod_timer(&ax25->timer, jiffies + 5 * HZ); in ax25_start_heartbeat()
53 void ax25_start_t1timer(ax25_cb *ax25) in ax25_start_t1timer() argument
55 mod_timer(&ax25->t1timer, jiffies + ax25->t1); in ax25_start_t1timer()
58 void ax25_start_t2timer(ax25_cb *ax25) in ax25_start_t2timer() argument
60 mod_timer(&ax25->t2timer, jiffies + ax25->t2); in ax25_start_t2timer()
63 void ax25_start_t3timer(ax25_cb *ax25) in ax25_start_t3timer() argument
65 if (ax25->t3 > 0) in ax25_start_t3timer()
66 mod_timer(&ax25->t3timer, jiffies + ax25->t3); in ax25_start_t3timer()
68 del_timer(&ax25->t3timer); in ax25_start_t3timer()
71 void ax25_start_idletimer(ax25_cb *ax25) in ax25_start_idletimer() argument
73 if (ax25->idle > 0) in ax25_start_idletimer()
74 mod_timer(&ax25->idletimer, jiffies + ax25->idle); in ax25_start_idletimer()
76 del_timer(&ax25->idletimer); in ax25_start_idletimer()
79 void ax25_stop_heartbeat(ax25_cb *ax25) in ax25_stop_heartbeat() argument
81 del_timer(&ax25->timer); in ax25_stop_heartbeat()
84 void ax25_stop_t1timer(ax25_cb *ax25) in ax25_stop_t1timer() argument
86 del_timer(&ax25->t1timer); in ax25_stop_t1timer()
89 void ax25_stop_t2timer(ax25_cb *ax25) in ax25_stop_t2timer() argument
91 del_timer(&ax25->t2timer); in ax25_stop_t2timer()
94 void ax25_stop_t3timer(ax25_cb *ax25) in ax25_stop_t3timer() argument
96 del_timer(&ax25->t3timer); in ax25_stop_t3timer()
99 void ax25_stop_idletimer(ax25_cb *ax25) in ax25_stop_idletimer() argument
101 del_timer(&ax25->idletimer); in ax25_stop_idletimer()
104 int ax25_t1timer_running(ax25_cb *ax25) in ax25_t1timer_running() argument
106 return timer_pending(&ax25->t1timer); in ax25_t1timer_running()
124 ax25_cb *ax25 = from_timer(ax25, t, timer); in ax25_heartbeat_expiry() local
126 if (ax25->ax25_dev) in ax25_heartbeat_expiry()
127 proto = ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]; in ax25_heartbeat_expiry()
132 ax25_std_heartbeat_expiry(ax25); in ax25_heartbeat_expiry()
137 if (ax25->ax25_dev->dama.slave) in ax25_heartbeat_expiry()
138 ax25_ds_heartbeat_expiry(ax25); in ax25_heartbeat_expiry()
140 ax25_std_heartbeat_expiry(ax25); in ax25_heartbeat_expiry()
148 ax25_cb *ax25 = from_timer(ax25, t, t1timer); in ax25_t1timer_expiry() local
150 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_t1timer_expiry()
153 ax25_std_t1timer_expiry(ax25); in ax25_t1timer_expiry()
158 if (!ax25->ax25_dev->dama.slave) in ax25_t1timer_expiry()
159 ax25_std_t1timer_expiry(ax25); in ax25_t1timer_expiry()
167 ax25_cb *ax25 = from_timer(ax25, t, t2timer); in ax25_t2timer_expiry() local
169 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_t2timer_expiry()
172 ax25_std_t2timer_expiry(ax25); in ax25_t2timer_expiry()
177 if (!ax25->ax25_dev->dama.slave) in ax25_t2timer_expiry()
178 ax25_std_t2timer_expiry(ax25); in ax25_t2timer_expiry()
186 ax25_cb *ax25 = from_timer(ax25, t, t3timer); in ax25_t3timer_expiry() local
188 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_t3timer_expiry()
191 ax25_std_t3timer_expiry(ax25); in ax25_t3timer_expiry()
196 if (ax25->ax25_dev->dama.slave) in ax25_t3timer_expiry()
197 ax25_ds_t3timer_expiry(ax25); in ax25_t3timer_expiry()
199 ax25_std_t3timer_expiry(ax25); in ax25_t3timer_expiry()
207 ax25_cb *ax25 = from_timer(ax25, t, idletimer); in ax25_idletimer_expiry() local
209 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_idletimer_expiry()
212 ax25_std_idletimer_expiry(ax25); in ax25_idletimer_expiry()
217 if (ax25->ax25_dev->dama.slave) in ax25_idletimer_expiry()
218 ax25_ds_idletimer_expiry(ax25); in ax25_idletimer_expiry()
220 ax25_std_idletimer_expiry(ax25); in ax25_idletimer_expiry()