/linux/net/mptcp/ |
H A D | sockopt.c | 97 WRITE_ONCE(ssk->sk_sndbuf, sk->sk_sndbuf); in mptcp_sol_socket_sync_intval() 98 mptcp_subflow_ctx(ssk)->cached_sndbuf = sk->sk_sndbuf; in mptcp_sol_socket_sync_intval() 1500 WRITE_ONCE(ssk->sk_sndbuf, sk->sk_sndbuf); in sync_socket_options() 1501 mptcp_subflow_ctx(ssk)->cached_sndbuf = sk->sk_sndbuf; in sync_socket_options()
|
H A D | protocol.h | 918 ssk_sndbuf = READ_ONCE(mptcp_subflow_tcp_sock(subflow)->sk_sndbuf); in __mptcp_sync_sndbuf() 925 WRITE_ONCE(sk->sk_sndbuf, new_sndbuf); in __mptcp_sync_sndbuf() 936 if (READ_ONCE(ssk->sk_sndbuf) != subflow->cached_sndbuf) in __mptcp_propagate_sndbuf() 949 if (likely(READ_ONCE(ssk->sk_sndbuf) == subflow->cached_sndbuf)) in mptcp_propagate_sndbuf()
|
/linux/include/crypto/ |
H A D | if_alg.h | 190 return max_t(int, max_t(int, sk->sk_sndbuf & PAGE_MASK, PAGE_SIZE) - in af_alg_sndbuf()
|
/linux/net/rds/ |
H A D | tcp_send.c | 202 if ((refcount_read(&sk->sk_wmem_alloc) << 1) <= sk->sk_sndbuf && in rds_tcp_write_space()
|
H A D | tcp.c | 514 sk->sk_sndbuf = rtn->sndbuf_size; in rds_tcp_tune()
|
/linux/include/net/ |
H A D | sock.h | 453 int sk_sndbuf; member 1048 return READ_ONCE(sk->sk_sndbuf) - READ_ONCE(sk->sk_wmem_queued); in sk_stream_wspace() 1361 if (READ_ONCE(sk->sk_wmem_queued) >= READ_ONCE(sk->sk_sndbuf)) in __sk_stream_memory_free() 2433 amt = sk->sk_sndbuf - refcount_read(&sk->sk_wmem_alloc); in sock_wspace() 2494 val = min(sk->sk_sndbuf, sk->sk_wmem_queued >> 1); in sk_stream_moderate_sndbuf() 2497 WRITE_ONCE(sk->sk_sndbuf, max_t(u32, val, SOCK_MIN_SNDBUF)); in sk_stream_moderate_sndbuf() 2531 return refcount_read(&sk->sk_wmem_alloc) < (READ_ONCE(sk->sk_sndbuf) >> 1); in sock_writeable()
|
/linux/include/linux/ |
H A D | atmdev.h | 267 sk_atm(vcc)->sk_sndbuf; in atm_may_send()
|
/linux/net/core/ |
H A D | sock.c | 1320 WRITE_ONCE(sk->sk_sndbuf, in sk_setsockopt() 1719 v.val = READ_ONCE(sk->sk_sndbuf); in sk_getsockopt() 2729 refcount_read(&sk->sk_wmem_alloc) < READ_ONCE(sk->sk_sndbuf)) { in sock_wmalloc() 2834 if (refcount_read(&sk->sk_wmem_alloc) < READ_ONCE(sk->sk_sndbuf)) in sock_wait_for_wmem() 2869 if (sk_wmem_alloc_get(sk) < READ_ONCE(sk->sk_sndbuf)) in sock_alloc_send_pskb() 3236 if (sk->sk_wmem_queued + size >= sk->sk_sndbuf) { in __sk_mem_raise_allocated() 3547 sk->sk_sndbuf = READ_ONCE(sysctl_wmem_default); in sock_init_data_uid() 3860 mem[SK_MEMINFO_SNDBUF] = READ_ONCE(sk->sk_sndbuf); in sk_get_meminfo() 4355 CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_sndbuf); in sock_struct_check()
|
/linux/net/netrom/ |
H A D | af_netrom.c | 493 sk->sk_sndbuf = osk->sk_sndbuf; in nr_make_new() 1218 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in nr_ioctl()
|
/linux/net/atm/ |
H A D | ioctl.c | 70 error = put_user(sk->sk_sndbuf - sk_wmem_alloc_get(sk), in do_vcc_ioctl()
|
H A D | common.c | 72 sk_wmem_alloc_get(sk), size, sk->sk_sndbuf); in vcc_tx_ready() 105 refcount_read(&sk->sk_wmem_alloc)) <= sk->sk_sndbuf; in vcc_writable()
|
H A D | proc.c | 199 sk_wmem_alloc_get(sk), sk->sk_sndbuf, in vcc_info()
|
/linux/net/sctp/ |
H A D | proc.c | 286 sk->sk_sndbuf, in sctp_assocs_seq_show()
|
H A D | diag.c | 171 mem[SK_MEMINFO_SNDBUF] = sk->sk_sndbuf; in inet_sctp_diag_fill()
|
/linux/net/rose/ |
H A D | af_rose.c | 615 sk->sk_sndbuf = osk->sk_sndbuf; in rose_make_new() 1338 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in rose_ioctl()
|
/linux/net/x25/ |
H A D | af_x25.c | 604 sk->sk_sndbuf = osk->sk_sndbuf; in x25_make_new() 1389 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in x25_ioctl()
|
/linux/net/caif/ |
H A D | caif_socket.c | 617 if (size > ((sk->sk_sndbuf >> 1) - 64)) in caif_stream_sendmsg() 618 size = (sk->sk_sndbuf >> 1) - 64; in caif_stream_sendmsg()
|
/linux/crypto/ |
H A D | algif_hash.c | 75 DIV_ROUND_UP(sk->sk_sndbuf, PAGE_SIZE)); in hash_sendmsg()
|
/linux/net/ax25/ |
H A D | af_ax25.c | 945 sk->sk_sndbuf = osk->sk_sndbuf; in ax25_make_new() 1778 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in ax25_ioctl()
|
/linux/drivers/net/wireguard/ |
H A D | socket.c | 345 sock->sk->sk_sndbuf = INT_MAX; in set_sock_opts()
|
/linux/drivers/net/ |
H A D | tun.c | 1585 if (tfile->socket.sk->sk_sndbuf != INT_MAX) in tun_can_build_skb() 2853 tun->sndbuf = tfile->socket.sk->sk_sndbuf; in tun_set_iff() 2982 tfile->socket.sk->sk_sndbuf = tun->sndbuf; in tun_set_sndbuf() 3283 sndbuf = tfile->socket.sk->sk_sndbuf; in __tun_chr_ioctl() 3501 tfile->sk.sk_sndbuf = INT_MAX; in tun_chr_open()
|
/linux/net/phonet/ |
H A D | socket.c | 348 refcount_read(&sk->sk_wmem_alloc) < sk->sk_sndbuf && in pn_socket_poll()
|
/linux/net/bluetooth/ |
H A D | af_bluetooth.c | 580 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in bt_sock_ioctl()
|
/linux/net/ipv4/ |
H A D | ip_output.c | 1133 2 * sk->sk_sndbuf) in __ip_append_data() 1650 sk->sk_sndbuf = READ_ONCE(sysctl_wmem_default); in ip_send_unicast_reply()
|
/linux/net/sched/ |
H A D | em_meta.c | 474 dst->value = sk->sk_sndbuf; in META_COLLECTOR()
|