Searched refs:refcount_sub_and_test (Results 1 - 23 of 23) sorted by relevance

/linux-master/tools/include/linux/
H A Drefcount.h121 bool refcount_sub_and_test(unsigned int i, refcount_t *r) function
148 return refcount_sub_and_test(1, r);
/linux-master/net/atm/
H A Draw.c39 WARN_ON(refcount_sub_and_test(ATM_SKB(skb)->acct_truesize, &sk->sk_wmem_alloc));
H A Dsignaling.c71 WARN_ON(refcount_sub_and_test(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc));
H A Dmpc.c913 WARN_ON(refcount_sub_and_test(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc));
H A Dlec.c351 WARN_ON(refcount_sub_and_test(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc));
/linux-master/drivers/misc/lkdtm/
H A Drefcount.c171 * A refcount_sub_and_test() should act like refcount_dec_and_test()
178 pr_info("attempting bad refcount_sub_and_test() below zero\n");
179 if (refcount_sub_and_test(5, &neg))
180 pr_warn("Weird: refcount_sub_and_test() reported zero\n");
343 pr_info("attempting bad refcount_sub_and_test() from saturated\n");
344 if (refcount_sub_and_test(8, &sat))
345 pr_warn("Weird: refcount_sub_and_test() reported zero\n");
/linux-master/include/linux/sched/
H A Dtask.h170 if (refcount_sub_and_test(nr, &t->usage))
/linux-master/include/linux/
H A Drefcount.h281 * refcount_sub_and_test - subtract from a refcount and test if it is 0
300 static inline __must_check bool refcount_sub_and_test(int i, refcount_t *r) function
/linux-master/lib/
H A Dobjpool.c294 if (refcount_sub_and_test(count, &pool->ref))
/linux-master/fs/netfs/
H A Dinternal.h190 if (netfs_group && refcount_sub_and_test(nr, &netfs_group->ref))
/linux-master/net/ipv4/
H A Dtcp_offload.c160 * We need to either use refcount_add() or refcount_sub_and_test()
165 WARN_ON_ONCE(refcount_sub_and_test(-delta, &skb->sk->sk_wmem_alloc));
H A Dinet_fragment.c148 if (refcount_sub_and_test(count, &fq->refcnt))
H A Dudp_offload.c365 * We need to either use refcount_add() or refcount_sub_and_test()
370 WARN_ON_ONCE(refcount_sub_and_test(-delta, &sk->sk_wmem_alloc));
H A Dtcp_output.c1195 WARN_ON(refcount_sub_and_test(skb->truesize - 1, &sk->sk_wmem_alloc));
/linux-master/net/tls/
H A Dtls_device_fallback.c224 WARN_ON_ONCE(refcount_sub_and_test(-delta, &sk->sk_wmem_alloc));
/linux-master/drivers/iommu/iommufd/
H A Ddevice.c519 WARN_ON(refcount_sub_and_test(num_devices - 1,
/linux-master/fs/nfsd/
H A Dfilecache.c580 if (refcount_sub_and_test(decrement, &nf->nf_ref)) {
/linux-master/kernel/
H A Dpadata.c383 if (refcount_sub_and_test(cnt, &pd->refcnt))
/linux-master/net/core/
H A Dsock.c2469 free = refcount_sub_and_test(len, &sk->sk_wmem_alloc);
2481 WARN_ON(refcount_sub_and_test(len - 1, &sk->sk_wmem_alloc));
2489 if (refcount_sub_and_test(len, &sk->sk_wmem_alloc))
2501 if (refcount_sub_and_test(skb->truesize, &sk->sk_wmem_alloc))
H A Dpktgen.c3536 WARN_ON(refcount_sub_and_test(burst - 1, &skb->users));
3630 WARN_ON(refcount_sub_and_test(burst, &pkt_dev->skb->users));
/linux-master/mm/
H A Dpage_owner.c232 if (refcount_sub_and_test(nr_base_pages, &stack_record->count))
H A Dmemcontrol.c5386 if (refcount_sub_and_test(n, &memcg->id.ref)) {
/linux-master/net/sctp/
H A Dsocket.c9152 WARN_ON(refcount_sub_and_test(sizeof(struct sctp_chunk),

Completed in 311 milliseconds