Home
last modified time | relevance | path

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

/drivers/cpufreq/
Dcpufreq_governor_attr_set.c37 ret = attr_set->usage_count ? gattr->store(attr_set, buf, count) : -EBUSY; in governor_store()
52 attr_set->usage_count = 1; in gov_attr_set_init()
60 attr_set->usage_count++; in gov_attr_set_get()
72 count = --attr_set->usage_count; in gov_attr_set_put()
/drivers/gpio/
Dgpio-twl4030.c59 unsigned int usage_count; member
251 if (!priv->usage_count) { in twl_request()
267 priv->usage_count |= BIT(offset); in twl_request()
283 priv->usage_count &= ~BIT(offset); in twl_free()
286 if (!priv->usage_count) in twl_free()
319 if (!(priv->usage_count & BIT(offset))) { in twl_get()
/drivers/base/power/
Druntime.c266 else if (atomic_read(&dev->power.usage_count) > 0) in rpm_check_suspend_allowed()
325 atomic_read(&supplier->power.usage_count) > 0) in pm_runtime_release_supplier()
1067 if (!atomic_dec_and_test(&dev->power.usage_count)) { in __pm_runtime_idle()
1101 if (!atomic_dec_and_test(&dev->power.usage_count)) { in __pm_runtime_suspend()
1137 atomic_inc(&dev->power.usage_count); in __pm_runtime_resume()
1181 atomic_inc(&dev->power.usage_count); in pm_runtime_get_if_active()
1183 retval = atomic_inc_not_zero(&dev->power.usage_count); in pm_runtime_get_if_active()
1519 atomic_inc(&dev->power.usage_count); in pm_runtime_forbid()
1540 if (atomic_dec_and_test(&dev->power.usage_count)) in pm_runtime_allow()
1609 atomic_inc(&dev->power.usage_count); in update_autosuspend()
[all …]
Dsysfs.c556 return sysfs_emit(buf, "%d\n", atomic_read(&dev->power.usage_count)); in runtime_usage_show()
Dmain.c1253 if (atomic_read(&dev->power.usage_count) > 1 || in __device_suspend_noirq()
/drivers/gpu/host1x/
Dmipi.c126 unsigned long usage_count; member
270 if (dev->mipi->usage_count++ == 0) in tegra_mipi_enable()
286 if (--dev->mipi->usage_count == 0) in tegra_mipi_disable()
/drivers/staging/wfx/
Ddata_tx.h23 int usage_count; member
Ddata_tx.c91 ++entry->usage_count; in wfx_tx_policy_use()
98 int ret = --entry->usage_count; in wfx_tx_policy_release()
132 entry->usage_count = 0; in wfx_tx_policy_get()
/drivers/usb/core/
Ddriver.c1693 __func__, atomic_read(&udev->dev.power.usage_count), in usb_autosuspend_device()
1725 __func__, atomic_read(&udev->dev.power.usage_count), in usb_autoresume_device()
1755 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_put_interface()
1783 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_put_interface_async()
1833 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_get_interface()
1866 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_get_interface_async()
1916 if (atomic_read(&intf->dev.power.usage_count) > 0) in autosuspend_check()
/drivers/usb/storage/
Drealtek_cr.c768 atomic_read(&us->pusb_intf->dev.power.usage_count)); in rts51x_suspend_timer_fn()
770 if (atomic_read(&us->pusb_intf->dev.power.usage_count) > 0) { in rts51x_suspend_timer_fn()
777 atomic_read(&us->pusb_intf->dev.power.usage_count)); in rts51x_suspend_timer_fn()
810 atomic_read(&us->pusb_intf->dev.power.usage_count)); in rts51x_invoke_transport()
812 if (atomic_read(&us->pusb_intf->dev.power.usage_count) <= 0) { in rts51x_invoke_transport()
/drivers/net/wireless/st/cw1200/
Dtxrx.h27 u8 usage_count; member
Dtxrx.c237 ++entry->policy.usage_count; in tx_policy_use()
244 int ret = --entry->policy.usage_count; in tx_policy_release()
265 if (WARN_ON(entry->policy.usage_count)) { in tx_policy_clean()
266 entry->policy.usage_count = 0; in tx_policy_clean()
/drivers/memstick/core/
Dmspro_block.c136 unsigned int usage_count; member
190 msb->usage_count++; in mspro_block_bd_open()
211 if (msb->usage_count) in mspro_block_disk_release()
212 msb->usage_count--; in mspro_block_disk_release()
214 if (!msb->usage_count) { in mspro_block_disk_release()
1232 msb->usage_count = 1; in mspro_block_init_disk()
Dms_block.h146 unsigned int usage_count; member
Dms_block.c1947 msb->usage_count++; in msb_bd_open()
1971 if (msb->usage_count) in msb_disk_release()
1972 msb->usage_count--; in msb_disk_release()
1974 if (!msb->usage_count) { in msb_disk_release()
2147 msb->usage_count = 1; in msb_init_disk()
/drivers/net/ethernet/ti/
Dcpsw.c370 if (cpsw->data.dual_emac && cpsw->usage_count && in cpsw_rx_handler()
795 if (!cpsw->usage_count) in cpsw_ndo_open()
807 if (!cpsw->usage_count) { in cpsw_ndo_open()
861 cpsw->usage_count++; in cpsw_ndo_open()
866 if (!cpsw->usage_count) { in cpsw_ndo_open()
889 if (cpsw->usage_count <= 1) { in cpsw_ndo_stop()
903 cpsw->usage_count--; in cpsw_ndo_stop()
Dcpsw_ethtool.c491 if (cpsw->usage_count) { in cpsw_resume_data_pass()
609 new_pools = (chs->rx_count != cpsw->rx_ch_num) && cpsw->usage_count; in cpsw_set_channels_common()
696 if (cpsw->usage_count) { in cpsw_set_ringparam()
Dam65-cpsw-nuss.h95 int usage_count; /* number of opened ports */ member
Dcpsw_new.c314 if (cpsw->usage_count && status >= 0) { in cpsw_rx_handler()
813 if (cpsw->usage_count <= 1) { in cpsw_ndo_stop()
826 cpsw->usage_count--; in cpsw_ndo_stop()
859 if (!cpsw->usage_count) in cpsw_ndo_open()
864 if (!cpsw->usage_count) { in cpsw_ndo_open()
909 cpsw->usage_count++; in cpsw_ndo_open()
Dam65-cpsw-ethtool.c448 if (common->usage_count) in am65_cpsw_set_channels()
739 if (common->usage_count) in am65_cpsw_set_ethtool_priv_flags()
Dam65-cpsw-nuss.c415 if (common->usage_count) in am65_cpsw_nuss_common_open()
510 if (common->usage_count != 1) in am65_cpsw_nuss_common_stop()
578 common->usage_count--; in am65_cpsw_nuss_ndo_slave_stop()
626 common->usage_count++; in am65_cpsw_nuss_ndo_slave_open()
Dcpsw_priv.h357 int usage_count; member
/drivers/block/
Dfloppy.c574 static atomic_t usage_count = ATOMIC_INIT(0); variable
891 if (WARN(atomic_read(&usage_count) == 0, in lock_fdc()
2946 if (WARN(atomic_read(&usage_count) == 0, in floppy_queue_rq()
4277 if (WARN(atomic_read(&usage_count) == 0, in floppy_revalidate()
4801 if (atomic_read(&usage_count)) in do_floppy_init()
4889 if (atomic_inc_return(&usage_count) > 1) in floppy_grab_irq_and_dma()
4901 atomic_dec(&usage_count); in floppy_grab_irq_and_dma()
4911 atomic_dec(&usage_count); in floppy_grab_irq_and_dma()
4947 atomic_dec(&usage_count); in floppy_grab_irq_and_dma()
4960 if (!atomic_dec_and_test(&usage_count)) in floppy_release_irq_and_dma()
[all …]
/drivers/gpu/drm/i915/
Di915_debugfs.c1291 atomic_read(&dev_priv->drm.dev->power.usage_count)); in i915_runtime_pm_status()