Home
last modified time | relevance | path

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

/openbmc/linux/tools/include/linux/
H A 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()
/openbmc/linux/drivers/misc/lkdtm/
H A 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()
/openbmc/linux/Documentation/translations/zh_CN/core-api/
H A Drefcount-vs-atomic.rst124 * atomic_sub_and_test() --> refcount_sub_and_test()
/openbmc/linux/net/atm/
H A Draw.c39 WARN_ON(refcount_sub_and_test(ATM_SKB(skb)->acct_truesize, &sk->sk_wmem_alloc)); in atm_pop_raw()
H A Dsignaling.c71 WARN_ON(refcount_sub_and_test(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc)); in sigd_send()
H A Dmpc.c913 WARN_ON(refcount_sub_and_test(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc)); in msg_from_mpoad()
H A Dlec.c351 WARN_ON(refcount_sub_and_test(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc)); in lec_atm_send()
/openbmc/linux/include/linux/
H A Drefcount.h308 static inline __must_check bool refcount_sub_and_test(int i, refcount_t *r) in refcount_sub_and_test() function
/openbmc/linux/include/linux/sched/
H A Dtask.h168 if (refcount_sub_and_test(nr, &t->usage)) in DEFINE_FREE()
/openbmc/linux/kernel/trace/
H A Drethook.c52 if (refcount_sub_and_test(count, &rh->ref)) in rethook_free_rcu()
/openbmc/linux/net/ipv4/
H A Dtcp_offload.c168 WARN_ON_ONCE(refcount_sub_and_test(-delta, &skb->sk->sk_wmem_alloc)); in tcp_gso_segment()
H A Dinet_fragment.c148 if (refcount_sub_and_test(count, &fq->refcnt)) in inet_frags_free_cb()
H A Dudp_offload.c393 WARN_ON_ONCE(refcount_sub_and_test(-delta, &sk->sk_wmem_alloc)); in __udp_gso_segment()
H A Dtcp_output.c1164 WARN_ON(refcount_sub_and_test(skb->truesize - 1, &sk->sk_wmem_alloc)); in tcp_wfree()
/openbmc/linux/Documentation/core-api/
H A Drefcount-vs-atomic.rst135 * atomic_sub_and_test() --> refcount_sub_and_test()
/openbmc/linux/net/tls/
H A Dtls_device_fallback.c230 WARN_ON_ONCE(refcount_sub_and_test(-delta, &sk->sk_wmem_alloc)); in complete_skb()
/openbmc/linux/net/core/
H A Dsock.c2483 free = refcount_sub_and_test(len, &sk->sk_wmem_alloc); in sock_wfree()
2495 WARN_ON(refcount_sub_and_test(len - 1, &sk->sk_wmem_alloc)); in sock_wfree()
2503 if (refcount_sub_and_test(len, &sk->sk_wmem_alloc)) in sock_wfree()
2515 if (refcount_sub_and_test(skb->truesize, &sk->sk_wmem_alloc)) in __sock_wfree()
H A Dpktgen.c3498 WARN_ON(refcount_sub_and_test(burst - 1, &skb->users)); in pktgen_xmit()
3582 WARN_ON(refcount_sub_and_test(burst, &pkt_dev->skb->users)); in pktgen_xmit()
/openbmc/linux/fs/nfsd/
H A Dfilecache.c559 if (refcount_sub_and_test(decrement, &nf->nf_ref)) { in nfsd_file_cond_queue()
/openbmc/linux/drivers/iommu/iommufd/
H A Ddevice.c474 WARN_ON(refcount_sub_and_test(num_devices - 1, in iommufd_device_do_replace()
/openbmc/linux/kernel/
H A Dpadata.c57 if (refcount_sub_and_test(cnt, &pd->refcnt)) in padata_put_pd_cnt()
H A Dkprobes.c1957 if (refcount_sub_and_test(count, &rp->rph->ref)) { in free_rp_inst()
/openbmc/linux/mm/
H A Dmemcontrol.c5207 if (refcount_sub_and_test(n, &memcg->id.ref)) { in mem_cgroup_id_put_many()
/openbmc/linux/net/sctp/
H A Dsocket.c9162 WARN_ON(refcount_sub_and_test(sizeof(struct sctp_chunk), in sctp_wfree()