Lines Matching refs:osk
468 static void smc_adjust_sock_bufsizes(struct sock *nsk, struct sock *osk, in smc_adjust_sock_bufsizes() argument
471 nsk->sk_userlocks = osk->sk_userlocks; in smc_adjust_sock_bufsizes()
472 if (osk->sk_userlocks & SOCK_SNDBUF_LOCK) in smc_adjust_sock_bufsizes()
473 nsk->sk_sndbuf = osk->sk_sndbuf; in smc_adjust_sock_bufsizes()
474 if (osk->sk_userlocks & SOCK_RCVBUF_LOCK) in smc_adjust_sock_bufsizes()
475 nsk->sk_rcvbuf = osk->sk_rcvbuf; in smc_adjust_sock_bufsizes()
478 static void smc_copy_sock_settings(struct sock *nsk, struct sock *osk, in smc_copy_sock_settings() argument
482 nsk->sk_type = osk->sk_type; in smc_copy_sock_settings()
483 nsk->sk_sndtimeo = osk->sk_sndtimeo; in smc_copy_sock_settings()
484 nsk->sk_rcvtimeo = osk->sk_rcvtimeo; in smc_copy_sock_settings()
485 nsk->sk_mark = READ_ONCE(osk->sk_mark); in smc_copy_sock_settings()
486 nsk->sk_priority = READ_ONCE(osk->sk_priority); in smc_copy_sock_settings()
487 nsk->sk_rcvlowat = osk->sk_rcvlowat; in smc_copy_sock_settings()
488 nsk->sk_bound_dev_if = osk->sk_bound_dev_if; in smc_copy_sock_settings()
489 nsk->sk_err = osk->sk_err; in smc_copy_sock_settings()
492 nsk->sk_flags |= osk->sk_flags & mask; in smc_copy_sock_settings()
494 smc_adjust_sock_bufsizes(nsk, osk, mask); in smc_copy_sock_settings()