Lines Matching refs:mpr_mtx
179 if (mtx_owned(&sc->mpr_mtx) && sleep_flag == CAN_SLEEP) in mpr_diag_reset()
180 msleep(&sc->msleep_fake_chan, &sc->mpr_mtx, 0, in mpr_diag_reset()
213 if (mtx_owned(&sc->mpr_mtx) && sleep_flag == CAN_SLEEP) in mpr_diag_reset()
214 msleep(&sc->msleep_fake_chan, &sc->mpr_mtx, 0, in mpr_diag_reset()
847 mtx_assert(&sc->mpr_mtx, MA_OWNED); in mpr_reinit()
962 if (mtx_owned(&sc->mpr_mtx) && sleep_flag == CAN_SLEEP) in mpr_wait_db_ack()
963 msleep(&sc->msleep_fake_chan, &sc->mpr_mtx, 0, "mprdba", in mpr_wait_db_ack()
1137 mtx_assert(&sc->mpr_mtx, MA_OWNED); in mpr_enqueue_request()
1569 BD_LOCKFUNCARG(&sc->mpr_mtx), in mpr_alloc_requests()
1593 callout_init_mtx(&cm->cm_callout, &sc->mpr_mtx, 0); in mpr_alloc_requests()
2153 mtx_init(&sc->mpr_mtx, "MPR lock", NULL, MTX_DEF); in mpr_attach()
2154 callout_init_mtx(&sc->periodic, &sc->mpr_mtx, 0); in mpr_attach()
2155 callout_init_mtx(&sc->device_check_callout, &sc->mpr_mtx, 0); in mpr_attach()
2372 mtx_destroy(&sc->mpr_mtx); in mpr_free()
3807 if (mtx_owned(&sc->mpr_mtx) && sleep_flag == CAN_SLEEP) { in mpr_wait_command()
3808 error = msleep(cm, &sc->mpr_mtx, 0, "mprwait", timeout*hz); in mpr_wait_command()
3877 if (mtx_owned(&sc->mpr_mtx)) in mpr_request_polled()
3878 msleep(&sc->msleep_fake_chan, &sc->mpr_mtx, 0, in mpr_request_polled()