Home
last modified time | relevance | path

Searched refs:sk_sndbuf (Results 1 – 25 of 58) sorted by relevance

123

/linux-6.1.9/net/mptcp/
Dprotocol.h714 if ((sk->sk_userlocks & SOCK_SNDBUF_LOCK) || ssk->sk_sndbuf <= READ_ONCE(sk->sk_sndbuf)) in mptcp_propagate_sndbuf()
717 WRITE_ONCE(sk->sk_sndbuf, ssk->sk_sndbuf); in mptcp_propagate_sndbuf()
Dsockopt.c96 WRITE_ONCE(ssk->sk_sndbuf, sk->sk_sndbuf); in mptcp_sol_socket_sync_intval()
1266 WRITE_ONCE(ssk->sk_sndbuf, sk->sk_sndbuf); in sync_socket_options()
/linux-6.1.9/include/crypto/
Dif_alg.h187 return max_t(int, max_t(int, sk->sk_sndbuf & PAGE_MASK, PAGE_SIZE) - in af_alg_sndbuf()
/linux-6.1.9/crypto/
Dalgif_hash.c73 if (limit > sk->sk_sndbuf) in hash_sendmsg()
74 limit = sk->sk_sndbuf; in hash_sendmsg()
/linux-6.1.9/net/rds/
Dtcp_send.c201 if ((refcount_read(&sk->sk_wmem_alloc) << 1) <= sk->sk_sndbuf && in rds_tcp_write_space()
Dtcp.c512 sk->sk_sndbuf = rtn->sndbuf_size; in rds_tcp_tune()
/linux-6.1.9/include/net/
Dsock.h442 int sk_sndbuf; member
1042 return READ_ONCE(sk->sk_sndbuf) - READ_ONCE(sk->sk_wmem_queued); in sk_stream_wspace()
1396 if (READ_ONCE(sk->sk_wmem_queued) >= READ_ONCE(sk->sk_sndbuf)) in __sk_stream_memory_free()
2491 amt = sk->sk_sndbuf - refcount_read(&sk->sk_wmem_alloc); in sock_wspace()
2546 val = min(sk->sk_sndbuf, sk->sk_wmem_queued >> 1); in sk_stream_moderate_sndbuf()
2549 WRITE_ONCE(sk->sk_sndbuf, max_t(u32, val, SOCK_MIN_SNDBUF)); in sk_stream_moderate_sndbuf()
2585 return refcount_read(&sk->sk_wmem_alloc) < (READ_ONCE(sk->sk_sndbuf) >> 1); in sock_writeable()
/linux-6.1.9/include/linux/
Datmdev.h267 sk_atm(vcc)->sk_sndbuf; in atm_may_send()
/linux-6.1.9/net/vmw_vsock/
Dhyperv_transport.c376 sndbuf = max_t(int, sk->sk_sndbuf, RINGBUFFER_HVS_SND_SIZE); in hvs_open_connection()
453 sk->sk_sndbuf = RINGBUFFER_HVS_SND_SIZE; in hvs_sock_init()
/linux-6.1.9/net/atm/
Dioctl.c70 error = put_user(sk->sk_sndbuf - sk_wmem_alloc_get(sk), in do_vcc_ioctl()
Dproc.c199 sk_wmem_alloc_get(sk), sk->sk_sndbuf, in vcc_info()
Dcommon.c72 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()
/linux-6.1.9/net/core/
Dsock.c1147 WRITE_ONCE(sk->sk_sndbuf, in sk_setsockopt()
1627 v.val = sk->sk_sndbuf; in sk_getsockopt()
2567 refcount_read(&sk->sk_wmem_alloc) < READ_ONCE(sk->sk_sndbuf)) { in sock_wmalloc()
2672 if (refcount_read(&sk->sk_wmem_alloc) < READ_ONCE(sk->sk_sndbuf)) in sock_wait_for_wmem()
2707 if (sk_wmem_alloc_get(sk) < READ_ONCE(sk->sk_sndbuf)) in sock_alloc_send_pskb()
3030 if (sk->sk_wmem_queued + size >= sk->sk_sndbuf) { in __sk_mem_raise_allocated()
3369 sk->sk_sndbuf = READ_ONCE(sysctl_wmem_default); in sock_init_data()
3689 mem[SK_MEMINFO_SNDBUF] = READ_ONCE(sk->sk_sndbuf); in sk_get_meminfo()
/linux-6.1.9/net/netrom/
Daf_netrom.c488 sk->sk_sndbuf = osk->sk_sndbuf; in nr_make_new()
1208 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in nr_ioctl()
/linux-6.1.9/net/sctp/
Dproc.c286 sk->sk_sndbuf, in sctp_assocs_seq_show()
Ddiag.c171 mem[SK_MEMINFO_SNDBUF] = sk->sk_sndbuf; in inet_sctp_diag_fill()
/linux-6.1.9/net/rose/
Daf_rose.c581 sk->sk_sndbuf = osk->sk_sndbuf; in rose_make_new()
1301 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in rose_ioctl()
/linux-6.1.9/net/x25/
Daf_x25.c598 sk->sk_sndbuf = osk->sk_sndbuf; in x25_make_new()
1383 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in x25_ioctl()
/linux-6.1.9/net/caif/
Dcaif_socket.c620 if (size > ((sk->sk_sndbuf >> 1) - 64)) in caif_stream_sendmsg()
621 size = (sk->sk_sndbuf >> 1) - 64; in caif_stream_sendmsg()
/linux-6.1.9/net/ax25/
Daf_ax25.c945 sk->sk_sndbuf = osk->sk_sndbuf; in ax25_make_new()
1772 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in ax25_ioctl()
/linux-6.1.9/drivers/net/wireguard/
Dsocket.c345 sock->sk->sk_sndbuf = INT_MAX; in set_sock_opts()
/linux-6.1.9/drivers/net/
Dtun.c1582 if (tfile->socket.sk->sk_sndbuf != INT_MAX) in tun_can_build_skb()
2822 tun->sndbuf = tfile->socket.sk->sk_sndbuf; in tun_set_iff()
2945 tfile->socket.sk->sk_sndbuf = tun->sndbuf; in tun_set_sndbuf()
3243 sndbuf = tfile->socket.sk->sk_sndbuf; in __tun_chr_ioctl()
3455 tfile->sk.sk_sndbuf = INT_MAX; in tun_chr_open()
/linux-6.1.9/net/bluetooth/
Daf_bluetooth.c509 amount = sk->sk_sndbuf - sk_wmem_alloc_get(sk); in bt_sock_ioctl()
/linux-6.1.9/net/smc/
Daf_smc.c382 WRITE_ONCE(sk->sk_sndbuf, READ_ONCE(net->smc.sysctl_wmem)); in smc_sock_alloc()
446 nsk->sk_sndbuf = osk->sk_sndbuf; in smc_copy_sock_settings()
2462 new_smc->sk.sk_sndbuf = lsmc->sk.sk_sndbuf; in smc_tcp_listen_work()
/linux-6.1.9/net/phonet/
Dsocket.c349 refcount_read(&sk->sk_wmem_alloc) < sk->sk_sndbuf && in pn_socket_poll()

123