• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/rose/

Lines Matching defs:sk

36 void rose_start_heartbeat(struct sock *sk)
38 del_timer(&sk->sk_timer);
40 sk->sk_timer.data = (unsigned long)sk;
41 sk->sk_timer.function = &rose_heartbeat_expiry;
42 sk->sk_timer.expires = jiffies + 5 * HZ;
44 add_timer(&sk->sk_timer);
47 void rose_start_t1timer(struct sock *sk)
49 struct rose_sock *rose = rose_sk(sk);
53 rose->timer.data = (unsigned long)sk;
60 void rose_start_t2timer(struct sock *sk)
62 struct rose_sock *rose = rose_sk(sk);
66 rose->timer.data = (unsigned long)sk;
73 void rose_start_t3timer(struct sock *sk)
75 struct rose_sock *rose = rose_sk(sk);
79 rose->timer.data = (unsigned long)sk;
86 void rose_start_hbtimer(struct sock *sk)
88 struct rose_sock *rose = rose_sk(sk);
92 rose->timer.data = (unsigned long)sk;
99 void rose_start_idletimer(struct sock *sk)
101 struct rose_sock *rose = rose_sk(sk);
106 rose->idletimer.data = (unsigned long)sk;
114 void rose_stop_heartbeat(struct sock *sk)
116 del_timer(&sk->sk_timer);
119 void rose_stop_timer(struct sock *sk)
121 del_timer(&rose_sk(sk)->timer);
124 void rose_stop_idletimer(struct sock *sk)
126 del_timer(&rose_sk(sk)->idletimer);
131 struct sock *sk = (struct sock *)param;
132 struct rose_sock *rose = rose_sk(sk);
134 bh_lock_sock(sk);
139 if (sock_flag(sk, SOCK_DESTROY) ||
140 (sk->sk_state == TCP_LISTEN && sock_flag(sk, SOCK_DEAD))) {
141 bh_unlock_sock(sk);
142 rose_destroy_socket(sk);
151 if (atomic_read(&sk->sk_rmem_alloc) < (sk->sk_rcvbuf / 2) &&
156 rose_write_internal(sk, ROSE_RR);
157 rose_stop_timer(sk); /* HB */
163 rose_start_heartbeat(sk);
164 bh_unlock_sock(sk);
169 struct sock *sk = (struct sock *)param;
170 struct rose_sock *rose = rose_sk(sk);
172 bh_lock_sock(sk);
176 rose_write_internal(sk, ROSE_CLEAR_REQUEST);
178 rose_start_t3timer(sk);
183 rose_disconnect(sk, ETIMEDOUT, -1, -1);
189 rose_enquiry_response(sk);
193 bh_unlock_sock(sk);
198 struct sock *sk = (struct sock *)param;
200 bh_lock_sock(sk);
201 rose_clear_queues(sk);
203 rose_write_internal(sk, ROSE_CLEAR_REQUEST);
204 rose_sk(sk)->state = ROSE_STATE_2;
206 rose_start_t3timer(sk);
208 sk->sk_state = TCP_CLOSE;
209 sk->sk_err = 0;
210 sk->sk_shutdown |= SEND_SHUTDOWN;
212 if (!sock_flag(sk, SOCK_DEAD)) {
213 sk->sk_state_change(sk);
214 sock_set_flag(sk, SOCK_DEAD);
216 bh_unlock_sock(sk);