Lines Matching refs:nbd_dev
65 static struct nbd_device nbd_dev[MAX_NBD]; variable
110 nbd_dev[dev].refcnt++; in nbd_open()
306 if (lo != &nbd_dev[MINOR(req->rq_dev)]) { in nbd_do_it()
376 lo = &nbd_dev[dev]; in do_nbd_request()
441 lo = &nbd_dev[dev]; in nbd_ioctl()
575 lo = &nbd_dev[dev]; in nbd_release()
618 nbd_dev[i].refcnt = 0; in nbd_init()
619 nbd_dev[i].file = NULL; in nbd_init()
620 nbd_dev[i].magic = LO_MAGIC; in nbd_init()
621 nbd_dev[i].flags = 0; in nbd_init()
622 spin_lock_init(&nbd_dev[i].queue_lock); in nbd_init()
623 INIT_LIST_HEAD(&nbd_dev[i].queue_head); in nbd_init()
624 init_MUTEX(&nbd_dev[i].tx_lock); in nbd_init()