Lines Matching refs:nr
48 del_timer(&sk->protinfo.nr->t1timer); in nr_start_t1timer()
50 sk->protinfo.nr->t1timer.data = (unsigned long)sk; in nr_start_t1timer()
51 sk->protinfo.nr->t1timer.function = &nr_t1timer_expiry; in nr_start_t1timer()
52 sk->protinfo.nr->t1timer.expires = jiffies + sk->protinfo.nr->t1; in nr_start_t1timer()
54 add_timer(&sk->protinfo.nr->t1timer); in nr_start_t1timer()
59 del_timer(&sk->protinfo.nr->t2timer); in nr_start_t2timer()
61 sk->protinfo.nr->t2timer.data = (unsigned long)sk; in nr_start_t2timer()
62 sk->protinfo.nr->t2timer.function = &nr_t2timer_expiry; in nr_start_t2timer()
63 sk->protinfo.nr->t2timer.expires = jiffies + sk->protinfo.nr->t2; in nr_start_t2timer()
65 add_timer(&sk->protinfo.nr->t2timer); in nr_start_t2timer()
70 del_timer(&sk->protinfo.nr->t4timer); in nr_start_t4timer()
72 sk->protinfo.nr->t4timer.data = (unsigned long)sk; in nr_start_t4timer()
73 sk->protinfo.nr->t4timer.function = &nr_t4timer_expiry; in nr_start_t4timer()
74 sk->protinfo.nr->t4timer.expires = jiffies + sk->protinfo.nr->t4; in nr_start_t4timer()
76 add_timer(&sk->protinfo.nr->t4timer); in nr_start_t4timer()
81 del_timer(&sk->protinfo.nr->idletimer); in nr_start_idletimer()
83 if (sk->protinfo.nr->idle > 0) { in nr_start_idletimer()
84 sk->protinfo.nr->idletimer.data = (unsigned long)sk; in nr_start_idletimer()
85 sk->protinfo.nr->idletimer.function = &nr_idletimer_expiry; in nr_start_idletimer()
86 sk->protinfo.nr->idletimer.expires = jiffies + sk->protinfo.nr->idle; in nr_start_idletimer()
88 add_timer(&sk->protinfo.nr->idletimer); in nr_start_idletimer()
105 del_timer(&sk->protinfo.nr->t1timer); in nr_stop_t1timer()
110 del_timer(&sk->protinfo.nr->t2timer); in nr_stop_t2timer()
115 del_timer(&sk->protinfo.nr->t4timer); in nr_stop_t4timer()
120 del_timer(&sk->protinfo.nr->idletimer); in nr_stop_idletimer()
130 return timer_pending(&sk->protinfo.nr->t1timer); in nr_t1timer_running()
137 switch (sk->protinfo.nr->state) { in nr_heartbeat_expiry()
153 (sk->protinfo.nr->condition & NR_COND_OWN_RX_BUSY)) { in nr_heartbeat_expiry()
154 sk->protinfo.nr->condition &= ~NR_COND_OWN_RX_BUSY; in nr_heartbeat_expiry()
155 sk->protinfo.nr->condition &= ~NR_COND_ACK_PENDING; in nr_heartbeat_expiry()
156 sk->protinfo.nr->vl = sk->protinfo.nr->vr; in nr_heartbeat_expiry()
170 if (sk->protinfo.nr->condition & NR_COND_ACK_PENDING) { in nr_t2timer_expiry()
171 sk->protinfo.nr->condition &= ~NR_COND_ACK_PENDING; in nr_t2timer_expiry()
180 sk->protinfo.nr->condition &= ~NR_COND_PEER_RX_BUSY; in nr_t4timer_expiry()
189 sk->protinfo.nr->n2count = 0; in nr_idletimer_expiry()
191 sk->protinfo.nr->state = NR_STATE_2; in nr_idletimer_expiry()
211 switch (sk->protinfo.nr->state) { in nr_t1timer_expiry()
214 if (sk->protinfo.nr->n2count == sk->protinfo.nr->n2) { in nr_t1timer_expiry()
218 sk->protinfo.nr->n2count++; in nr_t1timer_expiry()
224 if (sk->protinfo.nr->n2count == sk->protinfo.nr->n2) { in nr_t1timer_expiry()
228 sk->protinfo.nr->n2count++; in nr_t1timer_expiry()
234 if (sk->protinfo.nr->n2count == sk->protinfo.nr->n2) { in nr_t1timer_expiry()
238 sk->protinfo.nr->n2count++; in nr_t1timer_expiry()