Lines Matching refs:refs
121 refcount_t refs; member
289 if (!refcount_dec_and_test(&nbd->refs)) in nbd_put()
1706 if (!refcount_inc_not_zero(&nbd->refs)) { in nbd_open()
1724 refcount_inc(&nbd->refs); in nbd_open()
1896 static struct nbd_device *nbd_dev_add(int index, unsigned int refs) in nbd_dev_add() argument
1965 refcount_set(&nbd->refs, 0); in nbd_dev_add()
1980 refcount_set(&nbd->refs, refs); in nbd_dev_add()
2011 if (refcount_inc_not_zero(&nbd->refs)) in nbd_find_get_unused()
2103 !refcount_inc_not_zero(&nbd->refs)) { in nbd_genl_connect()
2173 refcount_inc(&nbd->refs); in nbd_genl_connect()
2283 if (!refcount_inc_not_zero(&nbd->refs)) { in nbd_genl_disconnect()
2337 if (!refcount_inc_not_zero(&nbd->refs)) { in nbd_genl_reconfigure()
2382 refcount_inc(&nbd->refs); in nbd_genl_reconfigure()
2690 if (refcount_read(&nbd->refs)) in nbd_exit_cb()
2719 if (refcount_read(&nbd->refs) != 1) in nbd_cleanup()