Searched refs:use_cnt (Results 1 – 4 of 4) sorted by relevance
424 if (atomic_read(&psy->use_cnt) >= 0 && in power_supply_set_battery_charged()462 atomic_inc(&psy->use_cnt); in power_supply_get_by_name()480 atomic_dec(&psy->use_cnt); in power_supply_put()521 atomic_inc(&psy->use_cnt); in power_supply_get_by_phandle()628 if (atomic_read(&psy->use_cnt) <= 0) { in power_supply_get_property()642 if (atomic_read(&psy->use_cnt) <= 0 || !psy->desc->set_property) in power_supply_set_property()652 if (atomic_read(&psy->use_cnt) <= 0 || in power_supply_property_is_writeable()662 if (atomic_read(&psy->use_cnt) <= 0 || in power_supply_external_power_changed()934 atomic_inc(&psy->use_cnt); in __power_supply_register()1090 WARN_ON(atomic_dec_return(&psy->use_cnt)); in power_supply_unregister()
177 static int use_cnt; variable320 if (use_cnt++ == 0) in parport_mfc3_init()355 if (--use_cnt == 0) in parport_mfc3_exit()
273 atomic_t use_cnt; member
5132 my $use_cnt = () = $tmp_stmt =~ /\b$arg\b/g;5133 if ($use_cnt > 1) {