Home
last modified time | relevance | path

Searched refs:use_cnt (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/drivers/power/supply/
Dpower_supply_core.c424 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()
/Linux-v4.19/drivers/parport/
Dparport_mfc3.c177 static int use_cnt; variable
320 if (use_cnt++ == 0) in parport_mfc3_init()
355 if (--use_cnt == 0) in parport_mfc3_exit()
/Linux-v4.19/include/linux/
Dpower_supply.h273 atomic_t use_cnt; member
/Linux-v4.19/scripts/
Dcheckpatch.pl5132 my $use_cnt = () = $tmp_stmt =~ /\b$arg\b/g;
5133 if ($use_cnt > 1) {