Home
last modified time | relevance | path

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

/drivers/cpufreq/
Dcpufreq_governor_attr_set.c32 ret = attr_set->usage_count ? gattr->store(attr_set, buf, count) : -EBUSY; in governor_store()
47 attr_set->usage_count = 1; in gov_attr_set_init()
55 attr_set->usage_count++; in gov_attr_set_get()
67 count = --attr_set->usage_count; in gov_attr_set_put()
/drivers/gpio/
Dgpio-twl4030.c61 unsigned int usage_count; member
253 if (!priv->usage_count) { in twl_request()
269 priv->usage_count |= BIT(offset); in twl_request()
285 priv->usage_count &= ~BIT(offset); in twl_free()
288 if (!priv->usage_count) in twl_free()
321 if (!(priv->usage_count & BIT(offset))) { in twl_get()
/drivers/base/power/
Druntime.c266 else if (atomic_read(&dev->power.usage_count)) in rpm_check_suspend_allowed()
323 atomic_read(&supplier->power.usage_count) > 0) in pm_runtime_release_supplier()
1057 ret = atomic_sub_return(1, &dev->power.usage_count); in rpm_drop_usage_count()
1067 atomic_inc(&dev->power.usage_count); in rpm_drop_usage_count()
1168 atomic_inc(&dev->power.usage_count); in __pm_runtime_resume()
1212 atomic_inc(&dev->power.usage_count); in pm_runtime_get_if_active()
1214 retval = atomic_inc_not_zero(&dev->power.usage_count); in pm_runtime_get_if_active()
1553 atomic_inc(&dev->power.usage_count); in pm_runtime_forbid()
1647 atomic_inc(&dev->power.usage_count); in update_autosuspend()
1659 atomic_dec(&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.c1247 if (atomic_read(&dev->power.usage_count) > 1 || in __device_suspend_noirq()
/drivers/media/platform/nxp/imx8-isi/
Dimx8-isi-m2m.c500 if (m2m->usage_count == INT_MAX) { in mxc_isi_m2m_streamon()
513 if (m2m->usage_count == 0) { in mxc_isi_m2m_streamon()
523 m2m->usage_count++; in mxc_isi_m2m_streamon()
558 if (--m2m->usage_count == 0) { in mxc_isi_m2m_streamon()
591 if (--m2m->usage_count == 0) { in mxc_isi_m2m_streamoff()
597 WARN_ON(m2m->usage_count < 0); in mxc_isi_m2m_streamoff()
Dimx8-isi-core.h274 int usage_count; member
/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/usb/core/
Ddriver.c1691 __func__, atomic_read(&udev->dev.power.usage_count), in usb_autosuspend_device()
1723 __func__, atomic_read(&udev->dev.power.usage_count), in usb_autoresume_device()
1753 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_put_interface()
1781 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_put_interface_async()
1831 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_get_interface()
1864 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_get_interface_async()
1914 if (atomic_read(&intf->dev.power.usage_count) > 0) in autosuspend_check()
/drivers/net/wireless/silabs/wfx/
Ddata_tx.h23 int usage_count; member
Ddata_tx.c88 ++entry->usage_count; in wfx_tx_policy_use()
94 int ret = --entry->usage_count; in wfx_tx_policy_release()
125 entry->usage_count = 0; in wfx_tx_policy_get()
/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/net/ethernet/ti/
Dcpsw.c370 if (cpsw->data.dual_emac && cpsw->usage_count && in cpsw_rx_handler()
787 if (!cpsw->usage_count) in cpsw_ndo_open()
799 if (!cpsw->usage_count) { in cpsw_ndo_open()
853 cpsw->usage_count++; in cpsw_ndo_open()
858 if (!cpsw->usage_count) { in cpsw_ndo_open()
881 if (cpsw->usage_count <= 1) { in cpsw_ndo_stop()
895 cpsw->usage_count--; in cpsw_ndo_stop()
Dcpsw_ethtool.c493 if (cpsw->usage_count) { in cpsw_resume_data_pass()
611 new_pools = (chs->rx_count != cpsw->rx_ch_num) && cpsw->usage_count; in cpsw_set_channels_common()
702 if (cpsw->usage_count) { in cpsw_set_ringparam()
Dam65-cpsw-nuss.h127 int usage_count; /* number of opened ports */ member
Dcpsw_new.c316 if (cpsw->usage_count && status >= 0) { in cpsw_rx_handler()
810 if (cpsw->usage_count <= 1) { in cpsw_ndo_stop()
823 cpsw->usage_count--; in cpsw_ndo_stop()
854 if (!cpsw->usage_count) in cpsw_ndo_open()
859 if (!cpsw->usage_count) { in cpsw_ndo_open()
904 cpsw->usage_count++; in cpsw_ndo_open()
Dam65-cpsw-ethtool.c446 if (common->usage_count) in am65_cpsw_set_channels()
704 if (common->usage_count) in am65_cpsw_set_ethtool_priv_flags()
Dcpsw_priv.h359 int usage_count; member
Dam65-cpsw-nuss.c377 if (common->usage_count) in am65_cpsw_nuss_common_open()
480 if (common->usage_count != 1) in am65_cpsw_nuss_common_stop()
552 common->usage_count--; in am65_cpsw_nuss_ndo_slave_stop()
617 common->usage_count++; in am65_cpsw_nuss_ndo_slave_open()
Dam65-cpsw-qos.c911 if (!common->usage_count) in am65_cpsw_qos_ndo_tx_p0_set_maxrate()
/drivers/block/
Dfloppy.c574 static atomic_t usage_count = ATOMIC_INIT(0); variable
891 if (WARN(atomic_read(&usage_count) == 0, in lock_fdc()
2859 if (WARN(atomic_read(&usage_count) == 0, in floppy_queue_rq()
4184 if (WARN(atomic_read(&usage_count) == 0, in floppy_revalidate()
4748 if (atomic_read(&usage_count)) in do_floppy_init()
4831 if (atomic_inc_return(&usage_count) > 1) in floppy_grab_irq_and_dma()
4843 atomic_dec(&usage_count); in floppy_grab_irq_and_dma()
4853 atomic_dec(&usage_count); in floppy_grab_irq_and_dma()
4889 atomic_dec(&usage_count); in floppy_grab_irq_and_dma()
4902 if (!atomic_dec_and_test(&usage_count)) in floppy_release_irq_and_dma()
[all …]
/drivers/gpu/drm/i915/
Di915_debugfs.c536 atomic_read(&dev_priv->drm.dev->power.usage_count)); in i915_runtime_pm_status()
/drivers/scsi/hisi_sas/
Dhisi_sas_v3_hw.c5174 if (atomic_read(&device->power.usage_count)) { in _suspend_v3_hw()