Lines Matching refs:sk_wmem_alloc
1990 refcount_set(&sk->sk_wmem_alloc, 1); in sk_alloc()
2015 refcount_read(&sk->sk_wmem_alloc) == 0); in __sk_destruct()
2078 if (refcount_dec_and_test(&sk->sk_wmem_alloc)) in sk_free()
2140 refcount_set(&newsk->sk_wmem_alloc, 1); in sk_clone_lock()
2284 WARN_ON(refcount_sub_and_test(len - 1, &sk->sk_wmem_alloc)); in sock_wfree()
2292 if (refcount_sub_and_test(len, &sk->sk_wmem_alloc)) in sock_wfree()
2304 if (refcount_sub_and_test(skb->truesize, &sk->sk_wmem_alloc)) in __sock_wfree()
2326 refcount_add(skb->truesize, &sk->sk_wmem_alloc); in skb_set_owner_w()
2425 refcount_read(&sk->sk_wmem_alloc) < READ_ONCE(sk->sk_sndbuf)) { in sock_wmalloc()
2528 if (refcount_read(&sk->sk_wmem_alloc) < READ_ONCE(sk->sk_sndbuf)) in sock_wait_for_wmem()
2863 } else if (refcount_read(&sk->sk_wmem_alloc) < wmem0) { in __sk_mem_raise_allocated()
3151 if ((refcount_read(&sk->sk_wmem_alloc) << 1) <= READ_ONCE(sk->sk_sndbuf)) { in sock_def_write_space()