Lines Matching refs:sk_wmem_alloc
1539 refcount_set(&sk->sk_wmem_alloc, 1); in sk_alloc()
1563 refcount_read(&sk->sk_wmem_alloc) == 0); in __sk_destruct()
1616 if (refcount_dec_and_test(&sk->sk_wmem_alloc)) in sk_free()
1675 refcount_set(&newsk->sk_wmem_alloc, 1); in sk_clone_lock()
1808 WARN_ON(refcount_sub_and_test(len - 1, &sk->sk_wmem_alloc)); in sock_wfree()
1816 if (refcount_sub_and_test(len, &sk->sk_wmem_alloc)) in sock_wfree()
1828 if (refcount_sub_and_test(skb->truesize, &sk->sk_wmem_alloc)) in __sock_wfree()
1850 refcount_add(skb->truesize, &sk->sk_wmem_alloc); in skb_set_owner_w()
1873 WARN_ON(refcount_sub_and_test(skb->truesize, &sk->sk_wmem_alloc)); in skb_orphan_partial()
1933 if (force || refcount_read(&sk->sk_wmem_alloc) < sk->sk_sndbuf) { in sock_wmalloc()
2035 if (refcount_read(&sk->sk_wmem_alloc) < sk->sk_sndbuf) in sock_wait_for_wmem()
2429 } else if (refcount_read(&sk->sk_wmem_alloc) < wmem0) { in __sk_mem_raise_allocated()
2710 if ((refcount_read(&sk->sk_wmem_alloc) << 1) <= sk->sk_sndbuf) { in sock_def_write_space()