Lines Matching refs:am_lock
276 struct mtx am_lock; member
298 mtx_init(&am->am_lock, am->am_name, NULL, MTX_DEF); in AcpiOsCreateMutex()
322 mtx_lock(&am->am_lock); in AcpiOsDeleteMutex()
332 if (mtx_sleep(&am->am_reset, &am->am_lock, in AcpiOsDeleteMutex()
337 mtx_unlock(&am->am_lock); in AcpiOsDeleteMutex()
351 mtx_unlock(&am->am_lock); in AcpiOsDeleteMutex()
353 mtx_destroy(&am->am_lock); in AcpiOsDeleteMutex()
369 mtx_lock(&am->am_lock); in AcpiOsAcquireMutex()
378 mtx_unlock(&am->am_lock); in AcpiOsAcquireMutex()
390 error = mtx_sleep(am, &am->am_lock, PCATCH, "acmtx", 0); in AcpiOsAcquireMutex()
410 mtx_unlock(&am->am_lock); in AcpiOsAcquireMutex()
412 mtx_lock(&am->am_lock); in AcpiOsAcquireMutex()
420 error = mtx_sleep(am, &am->am_lock, PCATCH, in AcpiOsAcquireMutex()
440 mtx_unlock(&am->am_lock); in AcpiOsAcquireMutex()
458 mtx_lock(&am->am_lock); in AcpiOsReleaseMutex()
482 mtx_unlock(&am->am_lock); in AcpiOsReleaseMutex()