Lines Matching refs:v
142 int v, t; in sysfs_get_active() local
144 v = atomic_read(&sd->s_active); in sysfs_get_active()
145 if (unlikely(v < 0)) in sysfs_get_active()
148 t = atomic_cmpxchg(&sd->s_active, v, v + 1); in sysfs_get_active()
149 if (likely(t == v)) in sysfs_get_active()
168 int v; in sysfs_put_active() local
173 v = atomic_dec_return(&sd->s_active); in sysfs_put_active()
174 if (likely(v != SD_DEACTIVATED_BIAS)) in sysfs_put_active()
232 int v; in sysfs_deactivate() local
240 v = atomic_add_return(SD_DEACTIVATED_BIAS, &sd->s_active); in sysfs_deactivate()
242 if (v != SD_DEACTIVATED_BIAS) in sysfs_deactivate()