Lines Matching refs:sem
1252 struct semaphore *sem = NULL; in acpi_os_create_semaphore() local
1254 sem = acpi_os_allocate_zeroed(sizeof(struct semaphore)); in acpi_os_create_semaphore()
1255 if (!sem) in acpi_os_create_semaphore()
1258 sema_init(sem, initial_units); in acpi_os_create_semaphore()
1260 *handle = (acpi_handle *) sem; in acpi_os_create_semaphore()
1277 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_delete_semaphore() local
1279 if (!sem) in acpi_os_delete_semaphore()
1284 BUG_ON(!list_empty(&sem->wait_list)); in acpi_os_delete_semaphore()
1285 kfree(sem); in acpi_os_delete_semaphore()
1286 sem = NULL; in acpi_os_delete_semaphore()
1297 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_wait_semaphore() local
1301 if (!sem || (units < 1)) in acpi_os_wait_semaphore()
1315 ret = down_timeout(sem, jiffies); in acpi_os_wait_semaphore()
1338 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_signal_semaphore() local
1340 if (!sem || (units < 1)) in acpi_os_signal_semaphore()
1349 up(sem); in acpi_os_signal_semaphore()