Home
last modified time | relevance | path

Searched refs:VTSCSI_MTX (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/dev/virtio/scsi/
H A Dvirtio_scsivar.h144 #define VTSCSI_MTX(_sc) &(_sc)->vtscsi_mtx macro
145 #define VTSCSI_LOCK_INIT(_sc, _name) mtx_init(VTSCSI_MTX(_sc), _name, \
147 #define VTSCSI_LOCK(_sc) mtx_lock(VTSCSI_MTX(_sc))
148 #define VTSCSI_UNLOCK(_sc) mtx_unlock(VTSCSI_MTX(_sc))
149 #define VTSCSI_LOCK_OWNED(_sc) mtx_assert(VTSCSI_MTX(_sc), MA_OWNED)
150 #define VTSCSI_LOCK_NOTOWNED(_sc) mtx_assert(VTSCSI_MTX(_sc), MA_NOTOWNED)
151 #define VTSCSI_LOCK_DESTROY(_sc) mtx_destroy(VTSCSI_MTX(_sc))
H A Dvirtio_scsi.c585 "vtscsi", sc, device_get_unit(dev), VTSCSI_MTX(sc), 1, in vtscsi_alloc_cam()
2080 callout_init_mtx(&req->vsr_callout, VTSCSI_MTX(sc), 0); in vtscsi_init_request()