/drivers/cpufreq/ |
D | cpufreq_governor_attr_set.c | 37 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/ |
D | gpio-twl4030.c | 59 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/ |
D | runtime.c | 266 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 …]
|
D | sysfs.c | 556 return sysfs_emit(buf, "%d\n", atomic_read(&dev->power.usage_count)); in runtime_usage_show()
|
D | main.c | 1253 if (atomic_read(&dev->power.usage_count) > 1 || in __device_suspend_noirq()
|
/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/staging/wfx/ |
D | data_tx.h | 23 int usage_count; member
|
D | data_tx.c | 91 ++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/ |
D | driver.c | 1693 __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/ |
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/memstick/core/ |
D | mspro_block.c | 136 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()
|
D | ms_block.h | 146 unsigned int usage_count; member
|
D | ms_block.c | 1947 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/ |
D | cpsw.c | 370 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()
|
D | cpsw_ethtool.c | 491 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()
|
D | am65-cpsw-nuss.h | 95 int usage_count; /* number of opened ports */ member
|
D | cpsw_new.c | 314 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()
|
D | am65-cpsw-ethtool.c | 448 if (common->usage_count) in am65_cpsw_set_channels() 739 if (common->usage_count) in am65_cpsw_set_ethtool_priv_flags()
|
D | am65-cpsw-nuss.c | 415 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()
|
D | cpsw_priv.h | 357 int usage_count; member
|
/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() 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/ |
D | i915_debugfs.c | 1291 atomic_read(&dev_priv->drm.dev->power.usage_count)); in i915_runtime_pm_status()
|