Lines Matching refs:handle

341  * PARAMETERS:  destination         - An open file handle/pointer
557 * outHandle - Where a handle will be returned
586 * PARAMETERS: handle - Handle returned by AcpiOsCreateSemaphore
594 AcpiOsDeleteSemaphore(ACPI_SEMAPHORE handle)
596 DEBUG_FUNCTION_F("sem: %" B_PRId32, handle);
597 return delete_sem(handle) == B_OK ? AE_OK : AE_BAD_PARAMETER;
605 * PARAMETERS: handle - Handle returned by AcpiOsCreateSemaphore
615 AcpiOsWaitSemaphore(ACPI_SEMAPHORE handle, UINT32 units, UINT16 timeout)
619 handle, (uint32)units, timeout);
622 result = acquire_sem_etc(handle, units, 0, 0)
625 switch (acquire_sem_etc(handle, units, B_RELATIVE_TIMEOUT,
642 handle, (uint32)units, timeout, (uint32)result);
651 * PARAMETERS: handle - Handle returned by AcpiOsCreateSemaphore
660 AcpiOsSignalSemaphore(ACPI_SEMAPHORE handle, UINT32 units)
663 DEBUG_FUNCTION_VF("sem: %ld; count: %lu", handle, (uint32)units);
665 result = release_sem_etc(handle, units, B_DO_NOT_RESCHEDULE);
691 AcpiOsDeleteLock(ACPI_SPINLOCK handle)
694 free((void*)handle);
699 AcpiOsAcquireLock(ACPI_SPINLOCK handle)
702 DEBUG_FUNCTION_F("spinlock: %p", handle);
704 acquire_spinlock(handle);
710 AcpiOsReleaseLock(ACPI_SPINLOCK handle, ACPI_CPU_FLAGS flags)
712 release_spinlock(handle);
714 DEBUG_FUNCTION_F("spinlock: %p", handle);
1175 // TODO: We arn't allowed threads with id 0, handle this case.
1282 AcpiOsDeleteMutex(ACPI_MUTEX handle)
1284 DEBUG_FUNCTION_F("mutex: %ld", (addr_t)handle);
1285 mutex_destroy(handle);
1286 free((void*)handle);
1291 AcpiOsAcquireMutex(ACPI_MUTEX handle, UINT16 timeout)
1294 DEBUG_FUNCTION_VF("mutex: %p; timeout: %u", handle, timeout);
1297 result = (mutex_lock(handle) == B_OK) ? AE_OK : AE_BAD_PARAMETER;
1299 result = (mutex_trylock(handle) == B_OK) ? AE_OK : AE_TIME;
1301 switch (mutex_lock_with_timeout(handle, B_RELATIVE_TIMEOUT,
1318 handle, timeout, (uint32)result);
1324 AcpiOsReleaseMutex(ACPI_MUTEX handle)
1326 DEBUG_FUNCTION_F("mutex: %p", handle);
1327 mutex_unlock(handle);