Searched refs:atomic_sub_if_positive (Results 1 – 3 of 3) sorted by relevance
148 static inline int atomic_sub_if_positive(int i, atomic_t *v) in atomic_sub_if_positive() function184 #define atomic_dec_if_positive(v) atomic_sub_if_positive(1, v)
244 static __inline__ int atomic_sub_if_positive(int i, atomic_t * v) in atomic_sub_if_positive() function367 #define atomic_dec_if_positive(v) atomic_sub_if_positive(1, v)
95 v = atomic_sub_if_positive(1, &core_state.available_cores); in cvm_oct_enable_one_cpu()