Lines Matching refs:sk_wmem_alloc
2243 refcount_set(&sk->sk_wmem_alloc, 1); in sk_alloc()
2268 refcount_read(&sk->sk_wmem_alloc) == 0); in __sk_destruct()
2334 if (refcount_dec_and_test(&sk->sk_wmem_alloc)) in sk_free()
2409 refcount_set(&newsk->sk_wmem_alloc, 1); in sk_clone_lock()
2564 free = refcount_sub_and_test(len, &sk->sk_wmem_alloc); in sock_wfree()
2576 WARN_ON(refcount_sub_and_test(len - 1, &sk->sk_wmem_alloc)); in sock_wfree()
2584 if (refcount_sub_and_test(len, &sk->sk_wmem_alloc)) in sock_wfree()
2596 if (refcount_sub_and_test(skb->truesize, &sk->sk_wmem_alloc)) in __sock_wfree()
2618 refcount_add(skb->truesize, &sk->sk_wmem_alloc); in skb_set_owner_w()
2737 refcount_read(&sk->sk_wmem_alloc) < READ_ONCE(sk->sk_sndbuf)) { in sock_wmalloc()
2842 if (refcount_read(&sk->sk_wmem_alloc) < READ_ONCE(sk->sk_sndbuf)) in sock_wait_for_wmem()
3196 } else if (refcount_read(&sk->sk_wmem_alloc) < wmem0) { in __sk_mem_raise_allocated()
4355 CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_wmem_alloc); in sock_struct_check()