Lines Matching refs:sk_wmem_alloc
2153 refcount_set(&sk->sk_wmem_alloc, 1);
2178 refcount_read(&sk->sk_wmem_alloc) == 0);
2240 * We subtract one from sk_wmem_alloc and can know if
2244 if (refcount_dec_and_test(&sk->sk_wmem_alloc))
2313 /* sk_wmem_alloc set to one (see sk_free() and sock_wfree()) */
2314 refcount_set(&newsk->sk_wmem_alloc, 1);
2469 free = refcount_sub_and_test(len, &sk->sk_wmem_alloc);
2478 * Keep a reference on sk_wmem_alloc, this will be released
2481 WARN_ON(refcount_sub_and_test(len - 1, &sk->sk_wmem_alloc));
2486 * if sk_wmem_alloc reaches 0, we must finish what sk_free()
2489 if (refcount_sub_and_test(len, &sk->sk_wmem_alloc))
2501 if (refcount_sub_and_test(skb->truesize, &sk->sk_wmem_alloc))
2523 refcount_add(skb->truesize, &sk->sk_wmem_alloc);
2642 refcount_read(&sk->sk_wmem_alloc) < READ_ONCE(sk->sk_sndbuf)) {
2747 if (refcount_read(&sk->sk_wmem_alloc) < READ_ONCE(sk->sk_sndbuf))
3101 } else if (refcount_read(&sk->sk_wmem_alloc) < wmem0) {
3383 * ->sk_wmem_alloc.
4269 CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_write_tx, sk_wmem_alloc);