Lines Matching refs:sk
38 void dn_start_slow_timer(struct sock *sk) in dn_start_slow_timer() argument
40 setup_timer(&sk->sk_timer, dn_slow_timer, (unsigned long)sk); in dn_start_slow_timer()
41 sk_reset_timer(sk, &sk->sk_timer, jiffies + SLOW_INTERVAL); in dn_start_slow_timer()
44 void dn_stop_slow_timer(struct sock *sk) in dn_stop_slow_timer() argument
46 sk_stop_timer(sk, &sk->sk_timer); in dn_stop_slow_timer()
51 struct sock *sk = (struct sock *)arg; in dn_slow_timer() local
52 struct dn_scp *scp = DN_SK(sk); in dn_slow_timer()
54 bh_lock_sock(sk); in dn_slow_timer()
56 if (sock_owned_by_user(sk)) { in dn_slow_timer()
57 sk_reset_timer(sk, &sk->sk_timer, jiffies + HZ / 10); in dn_slow_timer()
76 if (scp->persist_fxn(sk)) in dn_slow_timer()
96 scp->keepalive_fxn(sk); in dn_slow_timer()
99 sk_reset_timer(sk, &sk->sk_timer, jiffies + SLOW_INTERVAL); in dn_slow_timer()
101 bh_unlock_sock(sk); in dn_slow_timer()
102 sock_put(sk); in dn_slow_timer()