Home
last modified time | relevance | path

Searched refs:refcount_sub_and_test (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.10/tools/include/linux/
Drefcount.h121 bool refcount_sub_and_test(unsigned int i, refcount_t *r) in refcount_sub_and_test() function
148 return refcount_sub_and_test(1, r); in refcount_dec_and_test()
/Linux-v5.10/drivers/misc/lkdtm/
Drefcount.c179 if (refcount_sub_and_test(5, &neg)) in lkdtm_REFCOUNT_SUB_AND_TEST_NEGATIVE()
344 if (refcount_sub_and_test(8, &sat)) in lkdtm_REFCOUNT_SUB_AND_TEST_SATURATED()
/Linux-v5.10/net/atm/
Draw.c39 WARN_ON(refcount_sub_and_test(ATM_SKB(skb)->acct_truesize, &sk->sk_wmem_alloc)); in atm_pop_raw()
Dsignaling.c71 WARN_ON(refcount_sub_and_test(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc)); in sigd_send()
Dmpc.c913 WARN_ON(refcount_sub_and_test(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc)); in msg_from_mpoad()
Dlec.c351 WARN_ON(refcount_sub_and_test(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc)); in lec_atm_send()
/Linux-v5.10/include/linux/sched/
Dtask.h118 if (refcount_sub_and_test(nr, &t->usage)) in put_task_struct_many()
/Linux-v5.10/include/linux/
Drefcount.h308 static inline __must_check bool refcount_sub_and_test(int i, refcount_t *r) in refcount_sub_and_test() function
/Linux-v5.10/net/ipv4/
Dtcp_offload.c164 WARN_ON_ONCE(refcount_sub_and_test(-delta, &skb->sk->sk_wmem_alloc)); in tcp_gso_segment()
Dinet_fragment.c144 if (refcount_sub_and_test(count, &fq->refcnt)) in inet_frags_free_cb()
Dudp_offload.c299 WARN_ON_ONCE(refcount_sub_and_test(-delta, &sk->sk_wmem_alloc)); in __udp_gso_segment()
Dtcp_output.c1148 WARN_ON(refcount_sub_and_test(skb->truesize - 1, &sk->sk_wmem_alloc)); in tcp_wfree()
/Linux-v5.10/Documentation/core-api/
Drefcount-vs-atomic.rst135 * atomic_sub_and_test() --> refcount_sub_and_test()
/Linux-v5.10/net/tls/
Dtls_device_fallback.c218 WARN_ON_ONCE(refcount_sub_and_test(-delta, &sk->sk_wmem_alloc)); in complete_skb()
/Linux-v5.10/net/core/
Dsock.c2032 WARN_ON(refcount_sub_and_test(len - 1, &sk->sk_wmem_alloc)); in sock_wfree()
2040 if (refcount_sub_and_test(len, &sk->sk_wmem_alloc)) in sock_wfree()
2052 if (refcount_sub_and_test(skb->truesize, &sk->sk_wmem_alloc)) in __sock_wfree()
2106 WARN_ON(refcount_sub_and_test(skb->truesize, &sk->sk_wmem_alloc)); in skb_orphan_partial()
Dpktgen.c3356 WARN_ON(refcount_sub_and_test(burst - 1, &skb->users)); in pktgen_xmit()
3440 WARN_ON(refcount_sub_and_test(burst, &pkt_dev->skb->users)); in pktgen_xmit()
/Linux-v5.10/fs/
Dio_uring.c2212 if (refcount_sub_and_test(refs, &req->refs)) in io_put_req_deferred()
2235 if (refcount_sub_and_test(2, &req->refs)) in io_double_put_req()
/Linux-v5.10/mm/
Dmemcontrol.c5160 if (refcount_sub_and_test(n, &memcg->id.ref)) { in mem_cgroup_id_put_many()
/Linux-v5.10/net/sctp/
Dsocket.c8869 WARN_ON(refcount_sub_and_test(sizeof(struct sctp_chunk), in sctp_wfree()