Lines Matching refs:sem
1228 struct semaphore *sem = NULL; in acpi_os_create_semaphore() local
1230 sem = acpi_os_allocate_zeroed(sizeof(struct semaphore)); in acpi_os_create_semaphore()
1231 if (!sem) in acpi_os_create_semaphore()
1234 sema_init(sem, initial_units); in acpi_os_create_semaphore()
1236 *handle = (acpi_handle *) sem; in acpi_os_create_semaphore()
1253 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_delete_semaphore() local
1255 if (!sem) in acpi_os_delete_semaphore()
1260 BUG_ON(!list_empty(&sem->wait_list)); in acpi_os_delete_semaphore()
1261 kfree(sem); in acpi_os_delete_semaphore()
1262 sem = NULL; in acpi_os_delete_semaphore()
1273 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_wait_semaphore() local
1280 if (!sem || (units < 1)) in acpi_os_wait_semaphore()
1294 ret = down_timeout(sem, jiffies); in acpi_os_wait_semaphore()
1317 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_signal_semaphore() local
1322 if (!sem || (units < 1)) in acpi_os_signal_semaphore()
1331 up(sem); in acpi_os_signal_semaphore()