Lines Matching refs:refs
120 refcount_t refs; member
274 if (!refcount_dec_and_test(&nbd->refs)) in nbd_put()
1576 if (!refcount_inc_not_zero(&nbd->refs)) { in nbd_open()
1592 refcount_inc(&nbd->refs); in nbd_open()
1760 static struct nbd_device *nbd_dev_add(int index, unsigned int refs) in nbd_dev_add() argument
1835 refcount_set(&nbd->refs, 0); in nbd_dev_add()
1850 refcount_set(&nbd->refs, refs); in nbd_dev_add()
1881 if (refcount_inc_not_zero(&nbd->refs)) in nbd_find_get_unused()
1973 !refcount_inc_not_zero(&nbd->refs)) { in nbd_genl_connect()
2043 refcount_inc(&nbd->refs); in nbd_genl_connect()
2152 if (!refcount_inc_not_zero(&nbd->refs)) { in nbd_genl_disconnect()
2206 if (!refcount_inc_not_zero(&nbd->refs)) { in nbd_genl_reconfigure()
2251 refcount_inc(&nbd->refs); in nbd_genl_reconfigure()
2551 if (refcount_read(&nbd->refs)) in nbd_exit_cb()
2580 if (refcount_read(&nbd->refs) != 1) in nbd_cleanup()