Home
last modified time | relevance | path

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

12

/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/linux/net/ipv4/
H A Dtcp_offload.c169 refcount_add(delta, &skb->sk->sk_wmem_alloc); in tcp_gso_segment()
171 WARN_ON_ONCE(refcount_sub_and_test(-delta, &skb->sk->sk_wmem_alloc)); in tcp_gso_segment()
H A Dinet_fragment.c548 refcount_add(ts_delta, &sk->sk_wmem_alloc); in inet_frag_reasm_prepare()
625 refcount_add(sum_truesize - head_truesize, &sk->sk_wmem_alloc); in inet_frag_reasm_finish()
H A Dudp_offload.c395 refcount_add(delta, &sk->sk_wmem_alloc); in __udp_gso_segment()
397 WARN_ON_ONCE(refcount_sub_and_test(-delta, &sk->sk_wmem_alloc));
H A Dip_output.c1126 if (refcount_read(&sk->sk_wmem_alloc) + wmem_alloc_delta <= in __ip_append_data()
1268 refcount_add(wmem_alloc_delta, &sk->sk_wmem_alloc); in __ip_append_data()
1277 refcount_add(wmem_alloc_delta, &sk->sk_wmem_alloc); in __ip_append_data()
H A Dtcp_output.c1164 WARN_ON(refcount_sub_and_test(skb->truesize - 1, &sk->sk_wmem_alloc)); in tcp_wfree()
1173 if (refcount_read(&sk->sk_wmem_alloc) >= SKB_TRUESIZE(1) && this_cpu_ksoftirqd() == current) in tcp_wfree()
1339 refcount_add(skb->truesize, &sk->sk_wmem_alloc); in __tcp_transmit_skb()
2598 if (refcount_read(&sk->sk_wmem_alloc) > limit) { in tcp_small_queue_check()
2613 if (refcount_read(&sk->sk_wmem_alloc) > limit) in tcp_small_queue_check()
/openbmc/linux/net/core/
H A Dsock.c2167 refcount_set(&sk->sk_wmem_alloc, 1); in sk_alloc()
2192 refcount_read(&sk->sk_wmem_alloc) == 0); in __sk_destruct()
2258 if (refcount_dec_and_test(&sk->sk_wmem_alloc)) in sk_free()
2328 refcount_set(&newsk->sk_wmem_alloc, 1); in sk_clone_lock()
2483 free = refcount_sub_and_test(len, &sk->sk_wmem_alloc); in sock_wfree()
2495 WARN_ON(refcount_sub_and_test(len - 1, &sk->sk_wmem_alloc)); in sock_wfree()
2503 if (refcount_sub_and_test(len, &sk->sk_wmem_alloc)) in sock_wfree()
2515 if (refcount_sub_and_test(skb->truesize, &sk->sk_wmem_alloc)) in __sock_wfree()
2537 refcount_add(skb->truesize, &sk->sk_wmem_alloc); in skb_set_owner_w()
2647 refcount_read(&sk->sk_wmem_alloc) < READ_ONCE(sk->sk_sndbuf)) { in sock_wmalloc()
[all …]
H A Ddatagram.c659 refcount_add(truesize, &skb->sk->sk_wmem_alloc); in __zerocopy_sg_from_iter()
/openbmc/linux/net/tls/
H A Dtls_device_fallback.c230 WARN_ON_ONCE(refcount_sub_and_test(-delta, &sk->sk_wmem_alloc)); in complete_skb()
232 refcount_add(delta, &sk->sk_wmem_alloc); in complete_skb()
/openbmc/linux/net/rds/
H A Dtcp_send.c202 if ((refcount_read(&sk->sk_wmem_alloc) << 1) <= sk->sk_sndbuf && in rds_tcp_write_space()
/openbmc/linux/net/kcm/
H A Dkcmproc.c152 refcount_read(&psock->sk->sk_wmem_alloc)); in kcm_format_psock()
/openbmc/linux/net/rxrpc/
H A Daf_rxrpc.c53 return refcount_read(&sk->sk_wmem_alloc) < (size_t) sk->sk_sndbuf; in rxrpc_writable()
857 WARN_ON(refcount_read(&sk->sk_wmem_alloc)); in rxrpc_sock_destructor()
/openbmc/linux/include/trace/events/
H A Dsock.h120 __entry->wmem_alloc = refcount_read(&sk->sk_wmem_alloc);
/openbmc/linux/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()
/openbmc/linux/include/net/
H A Dsock.h451 refcount_t sk_wmem_alloc; member
2337 return refcount_read(&sk->sk_wmem_alloc) - 1; in sk_wmem_alloc_get()
2532 amt = sk->sk_sndbuf - refcount_read(&sk->sk_wmem_alloc); in sock_wspace()
2624 return refcount_read(&sk->sk_wmem_alloc) < (READ_ONCE(sk->sk_sndbuf) >> 1); in sock_writeable()
/openbmc/linux/net/ipv6/
H A Dip6_output.c1725 if (refcount_read(&sk->sk_wmem_alloc) + wmem_alloc_delta <= in __ip6_append_data()
1867 refcount_add(wmem_alloc_delta, &sk->sk_wmem_alloc); in __ip6_append_data()
1876 refcount_add(wmem_alloc_delta, &sk->sk_wmem_alloc); in __ip6_append_data()
/openbmc/linux/net/phonet/
H A Dsocket.c349 refcount_read(&sk->sk_wmem_alloc) < sk->sk_sndbuf && in pn_socket_poll()
/openbmc/linux/net/xdp/
H A Dxsk.c626 refcount_add(ts, &xs->sk.sk_wmem_alloc); in xsk_build_skb_zerocopy()
687 refcount_add(PAGE_SIZE, &xs->sk.sk_wmem_alloc); in xsk_build_skb()

12