Home
last modified time | relevance | path

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

/linux/include/linux/
H A Datmdev.h248 refcount_add(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc); in atm_account_tx()
256 &sk_atm(vcc)->sk_wmem_alloc)); in atm_return_tx()
273 return (size + refcount_read(&sk_atm(vcc)->sk_wmem_alloc)) < in atm_may_send()
/linux/net/atm/
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, SK_WMEM_ALLOC_BIAS); in vcc_create()
H A Dsignaling.c71 WARN_ON(refcount_sub_and_test(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc)); in sigd_send()
H A Dmpc.c913 WARN_ON(refcount_sub_and_test(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc)); in msg_from_mpoad()
H A Dlec.c353 WARN_ON(refcount_sub_and_test(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc)); in lec_atm_send()
/linux/net/core/
H A Dsock.c2327 refcount_set(&sk->sk_wmem_alloc, SK_WMEM_ALLOC_BIAS);
2353 refcount_read(&sk->sk_wmem_alloc) == 0); in __sk_destruct()
2429 * We subtract one from sk_wmem_alloc and can know if in sk_init_common()
2433 if (refcount_dec_and_test(&sk->sk_wmem_alloc)) in sk_init_common()
2515 refcount_set(&newsk->sk_wmem_alloc, SK_WMEM_ALLOC_BIAS); in sk_clone_lock()
2679 free = __refcount_sub_and_test(len, &sk->sk_wmem_alloc, in sock_wfree()
2689 * Keep a reference on sk_wmem_alloc, this will be released in __sock_wfree()
2692 WARN_ON(refcount_sub_and_test(len - 1, &sk->sk_wmem_alloc)); in __sock_wfree()
2697 * if sk_wmem_alloc reaches 0, we must finish what sk_free() in skb_set_owner_w()
2700 if (refcount_sub_and_test(len, &sk->sk_wmem_alloc)) in skb_set_owner_w()
[all...]
H A Ddatagram.c768 refcount_add(truesize, &skb->sk->sk_wmem_alloc); in __zerocopy_sg_from_iter()
H A Dskbuff.c2457 refcount_add(delta, &sk->sk_wmem_alloc); in skb_expand_head()
/linux/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/net/rds/
H A Dtcp_send.c202 if ((refcount_read(&sk->sk_wmem_alloc) << 1) <= sk->sk_sndbuf && in rds_tcp_write_space()
/linux/net/kcm/
H A Dkcmproc.c152 refcount_read(&psock->sk->sk_wmem_alloc)); in kcm_format_psock()
/linux/include/trace/events/
H A Dsock.h120 __entry->wmem_alloc = refcount_read(&sk->sk_wmem_alloc);
/linux/net/ipv4/
H A Dip_output.c1131 if (refcount_read(&sk->sk_wmem_alloc) + wmem_alloc_delta <= in __ip_append_data()
1277 refcount_add(wmem_alloc_delta, &sk->sk_wmem_alloc); in __ip_append_data()
1286 refcount_add(wmem_alloc_delta, &sk->sk_wmem_alloc); in __ip_append_data()
H A Dtcp_output.c1364 WARN_ON(refcount_sub_and_test(skb->truesize - 1, &sk->sk_wmem_alloc)); in tcp_wfree()
1373 if (refcount_read(&sk->sk_wmem_alloc) >= SKB_TRUESIZE(1) && this_cpu_ksoftirqd() == current) in tcp_wfree()
1539 refcount_add(skb->truesize, &sk->sk_wmem_alloc); in __tcp_transmit_skb()
2798 if (refcount_read(&sk->sk_wmem_alloc) > limit) { in tcp_small_queue_check()
2813 if (refcount_read(&sk->sk_wmem_alloc) > limit) in tcp_small_queue_check()
H A Dtcp.c739 refcount_read(&sk->sk_wmem_alloc) > skb->truesize && in tcp_should_autocork()
768 if (refcount_read(&sk->sk_wmem_alloc) > skb->truesize) in tcp_push()
/linux/include/net/
H A Dsock.h479 refcount_t sk_wmem_alloc; member
2337 return refcount_read(&sk->sk_wmem_alloc) - SK_WMEM_ALLOC_BIAS; in sk_wmem_alloc_get()
2529 amt = sk->sk_sndbuf - refcount_read(&sk->sk_wmem_alloc); in sock_wspace()
2631 return __sock_writeable(sk, refcount_read(&sk->sk_wmem_alloc)); in sock_writeable()
/linux/net/sctp/
H A Doutput.c431 refcount_add(skb->truesize, &head->sk->sk_wmem_alloc); in sctp_packet_gso_append()
/linux/net/xdp/
H A Dxsk.c791 refcount_add(ts, &xs->sk.sk_wmem_alloc); in xsk_build_skb_zerocopy()
875 refcount_add(PAGE_SIZE, &xs->sk.sk_wmem_alloc); in xsk_build_skb()
/linux/net/caif/
H A Dcaif_socket.c1005 caif_assert(!refcount_read(&sk->sk_wmem_alloc)); in caif_sock_destructor()
/linux/net/unix/
H A Daf_unix.c594 (refcount_read(&sk->sk_wmem_alloc) << 2) <= READ_ONCE(sk->sk_sndbuf); in unix_writable()
641 DEBUG_NET_WARN_ON_ONCE(refcount_read(&sk->sk_wmem_alloc)); in unix_sock_destructor()
2455 refcount_add(size, &sk->sk_wmem_alloc); in unix_stream_sendmsg()
/linux/drivers/atm/
H A Didt77252.c727 if (refcount_read(&sk->sk_wmem_alloc) > in push_on_scq()
2012 refcount_add(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc); in idt77252_send_oam()
H A Dhe.c2394 while (((tx_inuse = refcount_read(&sk_atm(vcc)->sk_wmem_alloc)) > 1) && in he_close()
/linux/net/key/
H A Daf_key.c108 WARN_ON(refcount_read(&sk->sk_wmem_alloc)); in pfkey_sock_destruct()