Home
last modified time | relevance | path

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

12

/Linux-v5.15/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()
/Linux-v5.15/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-v5.15/sound/soc/intel/skylake/
Dskl-sst-dsp.c40 skl->cores.usage_count[SKL_DSP_CORE0_ID] = 1; in skl_dsp_init_core_state()
44 skl->cores.usage_count[i] = 0; in skl_dsp_init_core_state()
346 skl->cores.usage_count[core_id]++; in skl_dsp_get_core()
359 skl->cores.usage_count[core_id]); in skl_dsp_get_core()
375 if ((--skl->cores.usage_count[core_id] == 0) && in skl_dsp_put_core()
381 skl->cores.usage_count[core_id]++; in skl_dsp_put_core()
387 skl->cores.usage_count[core_id]); in skl_dsp_put_core()
Dskl-sst-ipc.h42 int *usage_count; member
Dskl-messages.c296 cores->usage_count = kcalloc(cores->count, sizeof(*cores->usage_count), in skl_init_dsp()
298 if (!cores->usage_count) { in skl_init_dsp()
326 kfree(skl->cores.usage_count); in skl_free_dsp()
/Linux-v5.15/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()
/Linux-v5.15/sound/soc/intel/atom/sst/
Dsst_drv_interface.c35 #define GET_USAGE_COUNT(dev) (atomic_read(&dev->power.usage_count))
136 int usage_count = 0; in sst_power_control() local
140 usage_count = GET_USAGE_COUNT(dev); in sst_power_control()
141 dev_dbg(ctx->dev, "Enable: pm usage count: %d\n", usage_count); in sst_power_control()
147 if ((ctx->sst_state == SST_RESET) && (usage_count == 1)) { in sst_power_control()
156 usage_count = GET_USAGE_COUNT(dev); in sst_power_control()
157 dev_dbg(ctx->dev, "Disable: pm usage count: %d\n", usage_count); in sst_power_control()
/Linux-v5.15/drivers/base/power/
Druntime.c266 else if (atomic_read(&dev->power.usage_count) > 0) in rpm_check_suspend_allowed()
1035 if (!atomic_dec_and_test(&dev->power.usage_count)) { in __pm_runtime_idle()
1069 if (!atomic_dec_and_test(&dev->power.usage_count)) { in __pm_runtime_suspend()
1105 atomic_inc(&dev->power.usage_count); in __pm_runtime_resume()
1149 atomic_inc(&dev->power.usage_count); in pm_runtime_get_if_active()
1151 retval = atomic_inc_not_zero(&dev->power.usage_count); in pm_runtime_get_if_active()
1482 atomic_inc(&dev->power.usage_count); in pm_runtime_forbid()
1503 if (atomic_dec_and_test(&dev->power.usage_count)) in pm_runtime_allow()
1572 atomic_inc(&dev->power.usage_count); in update_autosuspend()
1584 atomic_dec(&dev->power.usage_count); in update_autosuspend()
[all …]
/Linux-v5.15/arch/powerpc/platforms/ps3/
Dmm.c380 unsigned int usage_count; member
808 c->usage_count++; in dma_sb_map_area()
823 c->usage_count = 1; in dma_sb_map_area()
854 c->usage_count++; in dma_ioc0_map_area()
872 c->usage_count = 1; in dma_ioc0_map_area()
912 c->usage_count--; in dma_sb_unmap_area()
914 if (!c->usage_count) { in dma_sb_unmap_area()
950 c->usage_count--; in dma_ioc0_unmap_area()
952 if (!c->usage_count) { in dma_ioc0_unmap_area()
/Linux-v5.15/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()
/Linux-v5.15/include/linux/
Dpm_runtime.h96 atomic_inc(&dev->power.usage_count); in pm_runtime_get_noresume()
107 atomic_add_unless(&dev->power.usage_count, -1, 0); in pm_runtime_put_noidle()
/Linux-v5.15/drivers/net/wireless/st/cw1200/
Dtxrx.h27 u8 usage_count; member
/Linux-v5.15/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()
/Linux-v5.15/sound/usb/
Dcard.c631 atomic_set(&chip->usage_count, 0); in snd_usb_audio_create()
920 !atomic_read(&chip->usage_count)); in usb_audio_disconnect()
966 atomic_inc(&chip->usage_count); in snd_usb_lock_shutdown()
977 if (atomic_dec_and_test(&chip->usage_count)) in snd_usb_lock_shutdown()
986 if (atomic_dec_and_test(&chip->usage_count)) in snd_usb_unlock_shutdown()
Dusbaudio.h35 atomic_t usage_count; member
/Linux-v5.15/drivers/usb/core/
Ddriver.c1677 __func__, atomic_read(&udev->dev.power.usage_count), in usb_autosuspend_device()
1709 __func__, atomic_read(&udev->dev.power.usage_count), in usb_autoresume_device()
1739 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_put_interface()
1767 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_put_interface_async()
1817 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_get_interface()
1850 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_get_interface_async()
1900 if (atomic_read(&intf->dev.power.usage_count) > 0) in autosuspend_check()
/Linux-v5.15/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()
/Linux-v5.15/drivers/net/ethernet/ti/
Dam65-cpsw-nuss.h117 int usage_count; /* number of opened ports */ member
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()
879 if (cpsw->usage_count <= 1) { in cpsw_ndo_stop()
893 cpsw->usage_count--; in cpsw_ndo_stop()
Dcpsw_ethtool.c495 if (cpsw->usage_count) { in cpsw_resume_data_pass()
613 new_pools = (chs->rx_count != cpsw->rx_ch_num) && cpsw->usage_count; in cpsw_set_channels_common()
700 if (cpsw->usage_count) { in cpsw_set_ringparam()
Dcpsw_new.c315 if (cpsw->usage_count && status >= 0) { in cpsw_rx_handler()
806 if (cpsw->usage_count <= 1) { in cpsw_ndo_stop()
819 cpsw->usage_count--; in cpsw_ndo_stop()
852 if (!cpsw->usage_count) in cpsw_ndo_open()
857 if (!cpsw->usage_count) { in cpsw_ndo_open()
902 cpsw->usage_count++; in cpsw_ndo_open()
/Linux-v5.15/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()
1229 msb->usage_count = 1; in mspro_block_init_disk()
Dms_block.h146 unsigned int usage_count; member
/Linux-v5.15/Documentation/ABI/testing/
Dsysfs-bus-pci-devices-cciss56 What: /sys/bus/pci/devices/<dev>/ccissX/cXdY/usage_count

12