Lines Matching refs:nsk

469 static void smc_adjust_sock_bufsizes(struct sock *nsk, struct sock *osk,  in smc_adjust_sock_bufsizes()  argument
472 nsk->sk_userlocks = osk->sk_userlocks; in smc_adjust_sock_bufsizes()
474 nsk->sk_sndbuf = osk->sk_sndbuf; in smc_adjust_sock_bufsizes()
476 nsk->sk_rcvbuf = osk->sk_rcvbuf; in smc_adjust_sock_bufsizes()
479 static void smc_copy_sock_settings(struct sock *nsk, struct sock *osk, in smc_copy_sock_settings() argument
483 nsk->sk_type = osk->sk_type; in smc_copy_sock_settings()
484 nsk->sk_sndtimeo = osk->sk_sndtimeo; in smc_copy_sock_settings()
485 nsk->sk_rcvtimeo = osk->sk_rcvtimeo; in smc_copy_sock_settings()
486 nsk->sk_mark = READ_ONCE(osk->sk_mark); in smc_copy_sock_settings()
487 nsk->sk_priority = osk->sk_priority; in smc_copy_sock_settings()
488 nsk->sk_rcvlowat = osk->sk_rcvlowat; in smc_copy_sock_settings()
489 nsk->sk_bound_dev_if = osk->sk_bound_dev_if; in smc_copy_sock_settings()
490 nsk->sk_err = osk->sk_err; in smc_copy_sock_settings()
492 nsk->sk_flags &= ~mask; in smc_copy_sock_settings()
493 nsk->sk_flags |= osk->sk_flags & mask; in smc_copy_sock_settings()
495 smc_adjust_sock_bufsizes(nsk, osk, mask); in smc_copy_sock_settings()
2691 struct sock *sk = sock->sk, *nsk; in smc_accept() local
2710 while (!(nsk = smc_accept_dequeue(sk, new_sock))) { in smc_accept()
2730 rc = sock_error(nsk); in smc_accept()
2739 if (smc_sk(nsk)->use_fallback) { in smc_accept()
2740 struct sock *clcsk = smc_sk(nsk)->clcsock->sk; in smc_accept()
2746 } else if (!atomic_read(&smc_sk(nsk)->conn.bytes_to_rcv)) { in smc_accept()
2747 lock_sock(nsk); in smc_accept()
2748 smc_rx_wait(smc_sk(nsk), &timeo, 0, smc_rx_data_available); in smc_accept()
2749 release_sock(nsk); in smc_accept()