Home
last modified time | relevance | path

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

/freebsd-12-stable/sys/cam/ctl/
Dctl_frontend_ioctl.c72 struct mtx ioctl_mtx; member
491 mtx_lock(&params->ioctl_mtx); in cfi_datamove()
494 mtx_unlock(&params->ioctl_mtx); in cfi_datamove()
505 mtx_lock(&params->ioctl_mtx); in cfi_done()
508 mtx_unlock(&params->ioctl_mtx); in cfi_done()
519 mtx_init(&params.ioctl_mtx, "ctliocmtx", NULL, MTX_DEF); in cfi_submit_wait()
535 mtx_lock(&params.ioctl_mtx); in cfi_submit_wait()
543 cv_wait(&params.sem, &params.ioctl_mtx); in cfi_submit_wait()
551 mtx_unlock(&params.ioctl_mtx); in cfi_submit_wait()
562 mtx_unlock(&params.ioctl_mtx); in cfi_submit_wait()
[all …]
/freebsd-12-stable/sys/dev/mmc/
Dmmcsd.c108 struct mtx ioctl_mtx; member
215 #define MMCSD_IOCTL_LOCK(_part) mtx_lock(&(_part)->ioctl_mtx)
216 #define MMCSD_IOCTL_UNLOCK(_part) mtx_unlock(&(_part)->ioctl_mtx)
218 mtx_init(&(_part)->ioctl_mtx, (_part)->name, "mmcsd IOCTL", MTX_DEF)
219 #define MMCSD_IOCTL_LOCK_DESTROY(_part) mtx_destroy(&(_part)->ioctl_mtx);
221 mtx_assert(&(_part)->ioctl_mtx, MA_OWNED);
223 mtx_assert(&(_part)->ioctl_mtx, MA_NOTOWNED);
681 msleep(part, &part->ioctl_mtx, 0, in mmcsd_detach()
747 msleep(part, &part->ioctl_mtx, 0, in mmcsd_suspend()
913 msleep(part, &part->ioctl_mtx, 0, "mmcsd IOCTL", 0); in mmcsd_ioctl_cmd()