Lines Matching refs:sem
95 struct sem { struct
126 struct sem sems[]; argument
296 struct sem *curr; in unmerge_queues()
317 struct sem *sem = &sma->sems[i]; in merge_queues() local
319 list_splice_init(&sem->pending_alter, &sma->pending_alter); in merge_queues()
339 struct sem *sem; in complexmode_enter() local
353 sem = &sma->sems[i]; in complexmode_enter()
354 spin_lock(&sem->lock); in complexmode_enter()
355 spin_unlock(&sem->lock); in complexmode_enter()
392 struct sem *sem; in sem_lock() local
412 sem = &sma->sems[idx]; in sem_lock()
423 spin_lock(&sem->lock); in sem_lock()
430 spin_unlock(&sem->lock); in sem_lock()
446 spin_lock(&sem->lock); in sem_lock()
467 struct sem *sem = &sma->sems[locknum]; in sem_unlock() local
468 spin_unlock(&sem->lock); in sem_unlock()
651 struct sem *curr; in perform_atomic_semop_slow()
723 struct sem *curr; in perform_atomic_semop()
1174 struct sem *sem = &sma->sems[i]; in freeary() local
1175 list_for_each_entry_safe(q, tq, &sem->pending_const, list) { in freeary()
1179 list_for_each_entry_safe(q, tq, &sem->pending_alter, list) { in freeary()
1183 ipc_update_pid(&sem->sempid, NULL); in freeary()
1349 struct sem *curr; in semctl_setval()
1410 struct sem *curr; in semctl_main()
2131 struct sem *curr; in __do_semtimedop()
2418 struct sem *semaphore = &sma->sems[i]; in exit_sem()