Lines Matching refs:nr
37 struct nr_sock *nr = nr_sk(sk); in nr_init_timers() local
39 timer_setup(&nr->t1timer, nr_t1timer_expiry, 0); in nr_init_timers()
40 timer_setup(&nr->t2timer, nr_t2timer_expiry, 0); in nr_init_timers()
41 timer_setup(&nr->t4timer, nr_t4timer_expiry, 0); in nr_init_timers()
42 timer_setup(&nr->idletimer, nr_idletimer_expiry, 0); in nr_init_timers()
50 struct nr_sock *nr = nr_sk(sk); in nr_start_t1timer() local
52 sk_reset_timer(sk, &nr->t1timer, jiffies + nr->t1); in nr_start_t1timer()
57 struct nr_sock *nr = nr_sk(sk); in nr_start_t2timer() local
59 sk_reset_timer(sk, &nr->t2timer, jiffies + nr->t2); in nr_start_t2timer()
64 struct nr_sock *nr = nr_sk(sk); in nr_start_t4timer() local
66 sk_reset_timer(sk, &nr->t4timer, jiffies + nr->t4); in nr_start_t4timer()
71 struct nr_sock *nr = nr_sk(sk); in nr_start_idletimer() local
73 if (nr->idle > 0) in nr_start_idletimer()
74 sk_reset_timer(sk, &nr->idletimer, jiffies + nr->idle); in nr_start_idletimer()
115 struct nr_sock *nr = nr_sk(sk); in nr_heartbeat_expiry() local
118 switch (nr->state) { in nr_heartbeat_expiry()
135 (nr->condition & NR_COND_OWN_RX_BUSY)) { in nr_heartbeat_expiry()
136 nr->condition &= ~NR_COND_OWN_RX_BUSY; in nr_heartbeat_expiry()
137 nr->condition &= ~NR_COND_ACK_PENDING; in nr_heartbeat_expiry()
138 nr->vl = nr->vr; in nr_heartbeat_expiry()
153 struct nr_sock *nr = from_timer(nr, t, t2timer); in nr_t2timer_expiry() local
154 struct sock *sk = &nr->sock; in nr_t2timer_expiry()
157 if (nr->condition & NR_COND_ACK_PENDING) { in nr_t2timer_expiry()
158 nr->condition &= ~NR_COND_ACK_PENDING; in nr_t2timer_expiry()
167 struct nr_sock *nr = from_timer(nr, t, t4timer); in nr_t4timer_expiry() local
168 struct sock *sk = &nr->sock; in nr_t4timer_expiry()
178 struct nr_sock *nr = from_timer(nr, t, idletimer); in nr_idletimer_expiry() local
179 struct sock *sk = &nr->sock; in nr_idletimer_expiry()
185 nr->n2count = 0; in nr_idletimer_expiry()
187 nr->state = NR_STATE_2; in nr_idletimer_expiry()
207 struct nr_sock *nr = from_timer(nr, t, t1timer); in nr_t1timer_expiry() local
208 struct sock *sk = &nr->sock; in nr_t1timer_expiry()
211 switch (nr->state) { in nr_t1timer_expiry()
213 if (nr->n2count == nr->n2) { in nr_t1timer_expiry()
217 nr->n2count++; in nr_t1timer_expiry()
223 if (nr->n2count == nr->n2) { in nr_t1timer_expiry()
227 nr->n2count++; in nr_t1timer_expiry()
233 if (nr->n2count == nr->n2) { in nr_t1timer_expiry()
237 nr->n2count++; in nr_t1timer_expiry()