Home
last modified time | relevance | path

Searched refs:sk_wmem_alloc (Results 1 – 25 of 42) sorted by relevance

12

/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_netlink.c46 s->sk_wmem_alloc.refs.counter - 1, in dump_netlink()
H A Dbpf_iter_udp4.c62 inet->sk.sk_wmem_alloc.refs.counter - 1, in dump_udp4()
H A Dbpf_iter_udp6.c70 inet->sk.sk_wmem_alloc.refs.counter - 1, in dump_udp6()
/linux-6.15/include/linux/
H A Datmdev.h247 refcount_add(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc); in atm_account_tx()
266 return (size + refcount_read(&sk_atm(vcc)->sk_wmem_alloc)) < in atm_may_send()
/linux-6.15/net/atm/
H A Draw.c39 WARN_ON(refcount_sub_and_test(ATM_SKB(skb)->acct_truesize, &sk->sk_wmem_alloc)); in atm_pop_raw()
H A Dcommon.c84 if (refcount_read(&sk->sk_wmem_alloc)) in vcc_sock_destruct()
86 __func__, refcount_read(&sk->sk_wmem_alloc)); in vcc_sock_destruct()
105 refcount_read(&sk->sk_wmem_alloc)) <= sk->sk_sndbuf; in vcc_writable()
160 refcount_set(&sk->sk_wmem_alloc, 1); in vcc_create()
H A Dsignaling.c71 WARN_ON(refcount_sub_and_test(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc)); in sigd_send()
/linux-6.15/net/core/
H A Dsock.c2275 refcount_set(&sk->sk_wmem_alloc, 1); in sk_alloc()
2301 refcount_read(&sk->sk_wmem_alloc) == 0); in __sk_destruct()
2381 if (refcount_dec_and_test(&sk->sk_wmem_alloc)) in sk_free()
2457 refcount_set(&newsk->sk_wmem_alloc, 1); in sk_clone_lock()
2616 free = refcount_sub_and_test(len, &sk->sk_wmem_alloc); in sock_wfree()
2628 WARN_ON(refcount_sub_and_test(len - 1, &sk->sk_wmem_alloc)); in sock_wfree()
2636 if (refcount_sub_and_test(len, &sk->sk_wmem_alloc)) in sock_wfree()
2648 if (refcount_sub_and_test(skb->truesize, &sk->sk_wmem_alloc)) in __sock_wfree()
2667 refcount_add(skb->truesize, &sk->sk_wmem_alloc); in skb_set_owner_w()
2907 if (refcount_read(&sk->sk_wmem_alloc) < READ_ONCE(sk->sk_sndbuf)) in sock_wait_for_wmem()
[all …]
H A Ddatagram.c714 refcount_add(truesize, &skb->sk->sk_wmem_alloc); in __zerocopy_sg_from_iter()
/linux-6.15/net/tls/
H A Dtls_device_fallback.c206 WARN_ON_ONCE(refcount_sub_and_test(-delta, &sk->sk_wmem_alloc)); in complete_skb()
208 refcount_add(delta, &sk->sk_wmem_alloc); in complete_skb()
/linux-6.15/net/rds/
H A Dtcp_send.c202 if ((refcount_read(&sk->sk_wmem_alloc) << 1) <= sk->sk_sndbuf && in rds_tcp_write_space()
/linux-6.15/net/ipv4/
H A Dtcp_offload.c246 refcount_add(delta, &skb->sk->sk_wmem_alloc); in tcp_gso_segment()
248 WARN_ON_ONCE(refcount_sub_and_test(-delta, &skb->sk->sk_wmem_alloc)); in tcp_gso_segment()
H A Dinet_fragment.c547 refcount_add(ts_delta, &sk->sk_wmem_alloc); in inet_frag_reasm_prepare()
624 refcount_add(sum_truesize - head_truesize, &sk->sk_wmem_alloc); in inet_frag_reasm_finish()
H A Dudp_offload.c468 refcount_add(delta, &sk->sk_wmem_alloc); in __udp_gso_segment()
470 WARN_ON_ONCE(refcount_sub_and_test(-delta, &sk->sk_wmem_alloc)); in __udp_gso_segment()
H A Dip_output.c1123 if (refcount_read(&sk->sk_wmem_alloc) + wmem_alloc_delta <= in __ip_append_data()
1270 refcount_add(wmem_alloc_delta, &sk->sk_wmem_alloc); in __ip_append_data()
1279 refcount_add(wmem_alloc_delta, &sk->sk_wmem_alloc); in __ip_append_data()
H A Dtcp_output.c1212 WARN_ON(refcount_sub_and_test(skb->truesize - 1, &sk->sk_wmem_alloc)); in tcp_wfree()
1221 if (refcount_read(&sk->sk_wmem_alloc) >= SKB_TRUESIZE(1) && this_cpu_ksoftirqd() == current) in tcp_wfree()
1387 refcount_add(skb->truesize, &sk->sk_wmem_alloc); in __tcp_transmit_skb()
2640 if (refcount_read(&sk->sk_wmem_alloc) > limit) { in tcp_small_queue_check()
2655 if (refcount_read(&sk->sk_wmem_alloc) > limit) in tcp_small_queue_check()
/linux-6.15/net/kcm/
H A Dkcmproc.c152 refcount_read(&psock->sk->sk_wmem_alloc)); in kcm_format_psock()
/linux-6.15/net/sctp/
H A Dproc.c284 refcount_read(&sk->sk_wmem_alloc), in sctp_assocs_seq_show()
H A Doutput.c431 refcount_add(skb->truesize, &head->sk->sk_wmem_alloc); in sctp_packet_gso_append()
/linux-6.15/include/trace/events/
H A Dsock.h121 __entry->wmem_alloc = refcount_read(&sk->sk_wmem_alloc);
/linux-6.15/net/rxrpc/
H A Daf_rxrpc.c53 return refcount_read(&sk->sk_wmem_alloc) < (size_t) sk->sk_sndbuf; in rxrpc_writable()
903 WARN_ON(refcount_read(&sk->sk_wmem_alloc)); in rxrpc_sock_destructor()
/linux-6.15/include/net/
H A Dsock.h459 refcount_t sk_wmem_alloc; member
2272 return refcount_read(&sk->sk_wmem_alloc) - 1; in sk_wmem_alloc_get()
2464 amt = sk->sk_sndbuf - refcount_read(&sk->sk_wmem_alloc); in sock_wspace()
2562 return refcount_read(&sk->sk_wmem_alloc) < (READ_ONCE(sk->sk_sndbuf) >> 1); in sock_writeable()
/linux-6.15/net/ipv6/
H A Dip6_output.c1665 if (refcount_read(&sk->sk_wmem_alloc) + wmem_alloc_delta <= in __ip6_append_data()
1810 refcount_add(wmem_alloc_delta, &sk->sk_wmem_alloc); in __ip6_append_data()
1819 refcount_add(wmem_alloc_delta, &sk->sk_wmem_alloc); in __ip6_append_data()
/linux-6.15/net/phonet/
H A Dsocket.c348 refcount_read(&sk->sk_wmem_alloc) < sk->sk_sndbuf && in pn_socket_poll()
/linux-6.15/net/xdp/
H A Dxsk.c651 refcount_add(ts, &xs->sk.sk_wmem_alloc); in xsk_build_skb_zerocopy()
714 refcount_add(PAGE_SIZE, &xs->sk.sk_wmem_alloc); in xsk_build_skb()

12