Lines Matching refs:use_cnt
432 if (atomic_read(&psy->use_cnt) >= 0 &&
470 atomic_inc(&psy->use_cnt);
488 atomic_dec(&psy->use_cnt);
529 atomic_inc(&psy->use_cnt);
1206 if (atomic_read(&psy->use_cnt) <= 0) {
1225 if (atomic_read(&psy->use_cnt) <= 0 || !psy->desc->set_property)
1235 if (atomic_read(&psy->use_cnt) <= 0 ||
1245 if (atomic_read(&psy->use_cnt) <= 0 ||
1439 * Update use_cnt after any uevents (most notably from device_add()).
1447 atomic_inc(&psy->use_cnt);
1603 WARN_ON(atomic_dec_return(&psy->use_cnt));