Lines Matching refs:ax25

56 void ax25_start_heartbeat(ax25_cb *ax25)  in ax25_start_heartbeat()  argument
58 del_timer(&ax25->timer); in ax25_start_heartbeat()
60 ax25->timer.data = (unsigned long)ax25; in ax25_start_heartbeat()
61 ax25->timer.function = &ax25_heartbeat_expiry; in ax25_start_heartbeat()
62 ax25->timer.expires = jiffies + 5 * HZ; in ax25_start_heartbeat()
64 add_timer(&ax25->timer); in ax25_start_heartbeat()
67 void ax25_start_t1timer(ax25_cb *ax25) in ax25_start_t1timer() argument
69 del_timer(&ax25->t1timer); in ax25_start_t1timer()
71 ax25->t1timer.data = (unsigned long)ax25; in ax25_start_t1timer()
72 ax25->t1timer.function = &ax25_t1timer_expiry; in ax25_start_t1timer()
73 ax25->t1timer.expires = jiffies + ax25->t1; in ax25_start_t1timer()
75 add_timer(&ax25->t1timer); in ax25_start_t1timer()
78 void ax25_start_t2timer(ax25_cb *ax25) in ax25_start_t2timer() argument
80 del_timer(&ax25->t2timer); in ax25_start_t2timer()
82 ax25->t2timer.data = (unsigned long)ax25; in ax25_start_t2timer()
83 ax25->t2timer.function = &ax25_t2timer_expiry; in ax25_start_t2timer()
84 ax25->t2timer.expires = jiffies + ax25->t2; in ax25_start_t2timer()
86 add_timer(&ax25->t2timer); in ax25_start_t2timer()
89 void ax25_start_t3timer(ax25_cb *ax25) in ax25_start_t3timer() argument
91 del_timer(&ax25->t3timer); in ax25_start_t3timer()
93 if (ax25->t3 > 0) { in ax25_start_t3timer()
94 ax25->t3timer.data = (unsigned long)ax25; in ax25_start_t3timer()
95 ax25->t3timer.function = &ax25_t3timer_expiry; in ax25_start_t3timer()
96 ax25->t3timer.expires = jiffies + ax25->t3; in ax25_start_t3timer()
98 add_timer(&ax25->t3timer); in ax25_start_t3timer()
102 void ax25_start_idletimer(ax25_cb *ax25) in ax25_start_idletimer() argument
104 del_timer(&ax25->idletimer); in ax25_start_idletimer()
106 if (ax25->idle > 0) { in ax25_start_idletimer()
107 ax25->idletimer.data = (unsigned long)ax25; in ax25_start_idletimer()
108 ax25->idletimer.function = &ax25_idletimer_expiry; in ax25_start_idletimer()
109 ax25->idletimer.expires = jiffies + ax25->idle; in ax25_start_idletimer()
111 add_timer(&ax25->idletimer); in ax25_start_idletimer()
115 void ax25_stop_heartbeat(ax25_cb *ax25) in ax25_stop_heartbeat() argument
117 del_timer(&ax25->timer); in ax25_stop_heartbeat()
120 void ax25_stop_t1timer(ax25_cb *ax25) in ax25_stop_t1timer() argument
122 del_timer(&ax25->t1timer); in ax25_stop_t1timer()
125 void ax25_stop_t2timer(ax25_cb *ax25) in ax25_stop_t2timer() argument
127 del_timer(&ax25->t2timer); in ax25_stop_t2timer()
130 void ax25_stop_t3timer(ax25_cb *ax25) in ax25_stop_t3timer() argument
132 del_timer(&ax25->t3timer); in ax25_stop_t3timer()
135 void ax25_stop_idletimer(ax25_cb *ax25) in ax25_stop_idletimer() argument
137 del_timer(&ax25->idletimer); in ax25_stop_idletimer()
140 int ax25_t1timer_running(ax25_cb *ax25) in ax25_t1timer_running() argument
142 return timer_pending(&ax25->t1timer); in ax25_t1timer_running()
155 ax25_cb *ax25 = (ax25_cb *)param; in ax25_heartbeat_expiry() local
158 if (ax25->ax25_dev) in ax25_heartbeat_expiry()
159 proto = ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]; in ax25_heartbeat_expiry()
164 ax25_std_heartbeat_expiry(ax25); in ax25_heartbeat_expiry()
169 if (ax25->ax25_dev->dama.slave) in ax25_heartbeat_expiry()
170 ax25_ds_heartbeat_expiry(ax25); in ax25_heartbeat_expiry()
172 ax25_std_heartbeat_expiry(ax25); in ax25_heartbeat_expiry()
180 ax25_cb *ax25 = (ax25_cb *)param; in ax25_t1timer_expiry() local
182 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_t1timer_expiry()
185 ax25_std_t1timer_expiry(ax25); in ax25_t1timer_expiry()
190 if (!ax25->ax25_dev->dama.slave) in ax25_t1timer_expiry()
191 ax25_std_t1timer_expiry(ax25); in ax25_t1timer_expiry()
199 ax25_cb *ax25 = (ax25_cb *)param; in ax25_t2timer_expiry() local
201 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_t2timer_expiry()
204 ax25_std_t2timer_expiry(ax25); in ax25_t2timer_expiry()
209 if (!ax25->ax25_dev->dama.slave) in ax25_t2timer_expiry()
210 ax25_std_t2timer_expiry(ax25); in ax25_t2timer_expiry()
218 ax25_cb *ax25 = (ax25_cb *)param; in ax25_t3timer_expiry() local
220 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_t3timer_expiry()
223 ax25_std_t3timer_expiry(ax25); in ax25_t3timer_expiry()
228 if (ax25->ax25_dev->dama.slave) in ax25_t3timer_expiry()
229 ax25_ds_t3timer_expiry(ax25); in ax25_t3timer_expiry()
231 ax25_std_t3timer_expiry(ax25); in ax25_t3timer_expiry()
239 ax25_cb *ax25 = (ax25_cb *)param; in ax25_idletimer_expiry() local
241 switch (ax25->ax25_dev->values[AX25_VALUES_PROTOCOL]) { in ax25_idletimer_expiry()
244 ax25_std_idletimer_expiry(ax25); in ax25_idletimer_expiry()
249 if (ax25->ax25_dev->dama.slave) in ax25_idletimer_expiry()
250 ax25_ds_idletimer_expiry(ax25); in ax25_idletimer_expiry()
252 ax25_std_idletimer_expiry(ax25); in ax25_idletimer_expiry()