Searched refs:SEMCOUNT_TO_VALUE (Results 1 – 1 of 1) sorted by relevance
75 static inline int SEMCOUNT_TO_VALUE(unsigned int sval) { in SEMCOUNT_TO_VALUE() function152 if (SEMCOUNT_TO_VALUE(old_value) < 0) { in __sem_dec()158 return SEMCOUNT_TO_VALUE(old_value); in __sem_dec()172 if (SEMCOUNT_TO_VALUE(old_value) <= 0) { in __sem_trydec()178 return SEMCOUNT_TO_VALUE(old_value); in __sem_trydec()198 if (SEMCOUNT_TO_VALUE(old_value) == SEM_VALUE_MAX) { in __sem_inc()203 if (SEMCOUNT_TO_VALUE(old_value) < 0) { in __sem_inc()211 return SEMCOUNT_TO_VALUE(old_value); in __sem_inc()322 int val = SEMCOUNT_TO_VALUE(atomic_load(sem_count_ptr)); in sem_getvalue()