Lines Matching refs:refcount
38 return refcount_inc_not_zero(&sess->refcount);
47 if (refcount_dec_and_test(&sess->refcount))
55 if (!refcount_dec_and_test(&dev->refcount))
68 return refcount_inc_not_zero(&dev->refcount);
344 atomic_set(&iu->refcount, 2);
359 if (atomic_dec_and_test(&iu->refcount)) {
792 refcount_set(&sess->refcount, 1);
1450 refcount_set(&dev->refcount, 1);
1675 int refcount, ret = 0;
1684 refcount = refcount_read(&dev->refcount);
1685 if (!force && refcount > 1) {
1688 refcount - 1);