Lines Matching refs:sk_wmem_alloc
1909 refcount_set(&sk->sk_wmem_alloc, 1); in sk_alloc()
1934 refcount_read(&sk->sk_wmem_alloc) == 0); in __sk_destruct()
1997 if (refcount_dec_and_test(&sk->sk_wmem_alloc)) in sk_free()
2057 refcount_set(&newsk->sk_wmem_alloc, 1); in sk_clone_lock()
2202 WARN_ON(refcount_sub_and_test(len - 1, &sk->sk_wmem_alloc)); in sock_wfree()
2210 if (refcount_sub_and_test(len, &sk->sk_wmem_alloc)) in sock_wfree()
2222 if (refcount_sub_and_test(skb->truesize, &sk->sk_wmem_alloc)) in __sock_wfree()
2244 refcount_add(skb->truesize, &sk->sk_wmem_alloc); in skb_set_owner_w()
2343 refcount_read(&sk->sk_wmem_alloc) < READ_ONCE(sk->sk_sndbuf)) { in sock_wmalloc()
2446 if (refcount_read(&sk->sk_wmem_alloc) < READ_ONCE(sk->sk_sndbuf)) in sock_wait_for_wmem()
2781 } else if (refcount_read(&sk->sk_wmem_alloc) < wmem0) { in __sk_mem_raise_allocated()
3069 if ((refcount_read(&sk->sk_wmem_alloc) << 1) <= READ_ONCE(sk->sk_sndbuf)) { in sock_def_write_space()