Lines Matching defs:refs
120 refcount_t refs;
274 if (!refcount_dec_and_test(&nbd->refs))
1601 if (!refcount_inc_not_zero(&nbd->refs)) {
1619 refcount_inc(&nbd->refs);
1787 static struct nbd_device *nbd_dev_add(int index, unsigned int refs)
1862 refcount_set(&nbd->refs, 0);
1877 refcount_set(&nbd->refs, refs);
1908 if (refcount_inc_not_zero(&nbd->refs))
2000 !refcount_inc_not_zero(&nbd->refs)) {
2070 refcount_inc(&nbd->refs);
2179 if (!refcount_inc_not_zero(&nbd->refs)) {
2233 if (!refcount_inc_not_zero(&nbd->refs)) {
2278 refcount_inc(&nbd->refs);
2586 if (refcount_read(&nbd->refs))
2615 if (refcount_read(&nbd->refs) != 1)