Lines Matching refs:sk_wmem_alloc
1737 refcount_set(&sk->sk_wmem_alloc, 1); in sk_alloc()
1762 refcount_read(&sk->sk_wmem_alloc) == 0); in __sk_destruct()
1824 if (refcount_dec_and_test(&sk->sk_wmem_alloc)) in sk_free()
1884 refcount_set(&newsk->sk_wmem_alloc, 1); in sk_clone_lock()
2032 WARN_ON(refcount_sub_and_test(len - 1, &sk->sk_wmem_alloc)); in sock_wfree()
2040 if (refcount_sub_and_test(len, &sk->sk_wmem_alloc)) in sock_wfree()
2052 if (refcount_sub_and_test(skb->truesize, &sk->sk_wmem_alloc)) in __sock_wfree()
2074 refcount_add(skb->truesize, &sk->sk_wmem_alloc); in skb_set_owner_w()
2106 WARN_ON(refcount_sub_and_test(skb->truesize, &sk->sk_wmem_alloc)); in skb_orphan_partial()
2179 refcount_read(&sk->sk_wmem_alloc) < READ_ONCE(sk->sk_sndbuf)) { in sock_wmalloc()
2282 if (refcount_read(&sk->sk_wmem_alloc) < READ_ONCE(sk->sk_sndbuf)) in sock_wait_for_wmem()
2616 } else if (refcount_read(&sk->sk_wmem_alloc) < wmem0) { in __sk_mem_raise_allocated()
2904 if ((refcount_read(&sk->sk_wmem_alloc) << 1) <= READ_ONCE(sk->sk_sndbuf)) { in sock_def_write_space()