Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/power/
Dpower_supply_core.c346 if (atomic_read(&psy->use_cnt) >= 0 && in power_supply_set_battery_charged()
384 atomic_inc(&psy->use_cnt); in power_supply_get_by_name()
402 atomic_dec(&psy->use_cnt); in power_supply_put()
443 atomic_inc(&psy->use_cnt); in power_supply_get_by_phandle()
455 if (atomic_read(&psy->use_cnt) <= 0) in power_supply_get_property()
466 if (atomic_read(&psy->use_cnt) <= 0 || !psy->desc->set_property) in power_supply_set_property()
476 if (atomic_read(&psy->use_cnt) <= 0 || in power_supply_property_is_writeable()
486 if (atomic_read(&psy->use_cnt) <= 0 || in power_supply_external_power_changed()
743 atomic_inc(&psy->use_cnt); in __power_supply_register()
898 WARN_ON(atomic_dec_return(&psy->use_cnt)); in power_supply_unregister()
/linux-4.1.27/drivers/parport/
Dparport_mfc3.c177 static int use_cnt = 0; variable
320 if (use_cnt++ == 0) in parport_mfc3_init()
355 if (--use_cnt == 0) in parport_mfc3_exit()
/linux-4.1.27/include/linux/
Dpower_supply.h243 atomic_t use_cnt; member