Lines Matching refs:sem
1241 struct semaphore *sem = NULL; in acpi_os_create_semaphore() local
1243 sem = acpi_os_allocate_zeroed(sizeof(struct semaphore)); in acpi_os_create_semaphore()
1244 if (!sem) in acpi_os_create_semaphore()
1247 sema_init(sem, initial_units); in acpi_os_create_semaphore()
1249 *handle = (acpi_handle *) sem; in acpi_os_create_semaphore()
1266 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_delete_semaphore() local
1268 if (!sem) in acpi_os_delete_semaphore()
1273 BUG_ON(!list_empty(&sem->wait_list)); in acpi_os_delete_semaphore()
1274 kfree(sem); in acpi_os_delete_semaphore()
1275 sem = NULL; in acpi_os_delete_semaphore()
1286 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_wait_semaphore() local
1293 if (!sem || (units < 1)) in acpi_os_wait_semaphore()
1307 ret = down_timeout(sem, jiffies); in acpi_os_wait_semaphore()
1330 struct semaphore *sem = (struct semaphore *)handle; in acpi_os_signal_semaphore() local
1335 if (!sem || (units < 1)) in acpi_os_signal_semaphore()
1344 up(sem); in acpi_os_signal_semaphore()