Home
last modified time | relevance | path

Searched refs:usage_count (Results 1 – 13 of 13) sorted by relevance

/linux-4.19.296/drivers/cpufreq/
Dcpufreq_governor_attr_set.c40 ret = attr_set->usage_count ? gattr->store(attr_set, buf, count) : -EBUSY; in governor_store()
55 attr_set->usage_count = 1; in gov_attr_set_init()
63 attr_set->usage_count++; in gov_attr_set_get()
75 count = --attr_set->usage_count; in gov_attr_set_put()
/linux-4.19.296/include/trace/events/
Drpm.h27 __field( int , usage_count )
38 __entry->usage_count = atomic_read(
39 &dev->power.usage_count);
51 __entry->usage_count,
/linux-4.19.296/drivers/gpio/
Dgpio-twl4030.c72 unsigned int usage_count; member
247 if (!priv->usage_count) { in twl_request()
263 priv->usage_count |= BIT(offset); in twl_request()
279 priv->usage_count &= ~BIT(offset); in twl_free()
282 if (!priv->usage_count) in twl_free()
315 if (!(priv->usage_count & BIT(offset))) { in twl_get()
/linux-4.19.296/drivers/base/power/
Druntime.c244 else if (atomic_read(&dev->power.usage_count) > 0) in rpm_check_suspend_allowed()
981 if (!atomic_dec_and_test(&dev->power.usage_count)) in __pm_runtime_idle()
1013 if (!atomic_dec_and_test(&dev->power.usage_count)) in __pm_runtime_suspend()
1047 atomic_inc(&dev->power.usage_count); in __pm_runtime_resume()
1075 && atomic_inc_not_zero(&dev->power.usage_count); in pm_runtime_get_if_in_use()
1331 atomic_inc(&dev->power.usage_count); in pm_runtime_forbid()
1352 if (atomic_dec_and_test(&dev->power.usage_count)) in pm_runtime_allow()
1419 atomic_inc(&dev->power.usage_count); in update_autosuspend()
1429 atomic_dec(&dev->power.usage_count); in update_autosuspend()
1489 atomic_set(&dev->power.usage_count, 0); in pm_runtime_init()
[all …]
Dsysfs.c514 return sprintf(buf, "%d\n", atomic_read(&dev->power.usage_count)); in runtime_usage_show()
Dmain.c1366 atomic_read(&dev->power.usage_count) > 1 || in __device_suspend_noirq()
/linux-4.19.296/include/linux/mfd/
Dcore.h38 atomic_t *usage_count; member
/linux-4.19.296/include/linux/
Dpm_runtime.h71 atomic_inc(&dev->power.usage_count); in pm_runtime_get_noresume()
76 atomic_add_unless(&dev->power.usage_count, -1, 0); in pm_runtime_put_noidle()
Dpm.h616 atomic_t usage_count; member
Dcpufreq.h548 int usage_count; member
/linux-4.19.296/drivers/memstick/core/
Dms_block.h150 unsigned int usage_count; member
Dmspro_block.c140 unsigned int usage_count; member
194 msb->usage_count++; in mspro_block_bd_open()
215 if (msb->usage_count) in mspro_block_disk_release()
216 msb->usage_count--; in mspro_block_disk_release()
218 if (!msb->usage_count) { in mspro_block_disk_release()
1225 msb->usage_count = 1; in mspro_block_init_disk()
Dms_block.c1955 msb->usage_count++; in msb_bd_open()
1979 if (msb->usage_count) in msb_disk_release()
1980 msb->usage_count--; in msb_disk_release()
1982 if (!msb->usage_count) { in msb_disk_release()
2141 msb->usage_count = 1; in msb_init_disk()