/drivers/cpufreq/ |
D | cpufreq_governor_attr_set.c | 32 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/ |
D | gpio-twl4030.c | 61 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/ |
D | runtime.c | 266 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 …]
|
D | sysfs.c | 556 return sysfs_emit(buf, "%d\n", atomic_read(&dev->power.usage_count)); in runtime_usage_show()
|
D | main.c | 1247 if (atomic_read(&dev->power.usage_count) > 1 || in __device_suspend_noirq()
|
/drivers/media/platform/nxp/imx8-isi/ |
D | imx8-isi-m2m.c | 500 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()
|
D | imx8-isi-core.h | 274 int usage_count; member
|
/drivers/gpu/host1x/ |
D | mipi.c | 126 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/ |
D | driver.c | 1691 __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/ |
D | data_tx.h | 23 int usage_count; member
|
D | data_tx.c | 88 ++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/ |
D | realtek_cr.c | 768 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/ |
D | txrx.h | 27 u8 usage_count; member
|
D | txrx.c | 237 ++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/ |
D | cpsw.c | 370 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()
|
D | cpsw_ethtool.c | 493 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()
|
D | am65-cpsw-nuss.h | 127 int usage_count; /* number of opened ports */ member
|
D | cpsw_new.c | 316 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()
|
D | am65-cpsw-ethtool.c | 446 if (common->usage_count) in am65_cpsw_set_channels() 704 if (common->usage_count) in am65_cpsw_set_ethtool_priv_flags()
|
D | cpsw_priv.h | 359 int usage_count; member
|
D | am65-cpsw-nuss.c | 377 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()
|
D | am65-cpsw-qos.c | 911 if (!common->usage_count) in am65_cpsw_qos_ndo_tx_p0_set_maxrate()
|
/drivers/block/ |
D | floppy.c | 574 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/ |
D | i915_debugfs.c | 536 atomic_read(&dev_priv->drm.dev->power.usage_count)); in i915_runtime_pm_status()
|
/drivers/scsi/hisi_sas/ |
D | hisi_sas_v3_hw.c | 5174 if (atomic_read(&device->power.usage_count)) { in _suspend_v3_hw()
|