Home
last modified time | relevance | path

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

12

/linux-6.6.21/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()
/linux-6.6.21/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-6.6.21/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.c294 cores->usage_count = kcalloc(cores->count, sizeof(*cores->usage_count), in skl_init_dsp()
296 if (!cores->usage_count) { in skl_init_dsp()
324 kfree(skl->cores.usage_count); in skl_free_dsp()
/linux-6.6.21/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()
/linux-6.6.21/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()
146 if ((ctx->sst_state == SST_RESET) && (usage_count == 1)) { in sst_power_control()
155 usage_count = GET_USAGE_COUNT(dev); in sst_power_control()
156 dev_dbg(ctx->dev, "Disable: pm usage count: %d\n", usage_count); in sst_power_control()
/linux-6.6.21/drivers/base/power/
Druntime.c265 else if (atomic_read(&dev->power.usage_count)) in rpm_check_suspend_allowed()
322 atomic_read(&supplier->power.usage_count) > 0) in pm_runtime_release_supplier()
1056 ret = atomic_sub_return(1, &dev->power.usage_count); in rpm_drop_usage_count()
1066 atomic_inc(&dev->power.usage_count); in rpm_drop_usage_count()
1167 atomic_inc(&dev->power.usage_count); in __pm_runtime_resume()
1211 atomic_inc(&dev->power.usage_count); in pm_runtime_get_if_active()
1213 retval = atomic_inc_not_zero(&dev->power.usage_count); in pm_runtime_get_if_active()
1552 atomic_inc(&dev->power.usage_count); in pm_runtime_forbid()
1646 atomic_inc(&dev->power.usage_count); in update_autosuspend()
1658 atomic_dec(&dev->power.usage_count); in update_autosuspend()
[all …]
/linux-6.6.21/arch/powerpc/platforms/ps3/
Dmm.c379 unsigned int usage_count; member
807 c->usage_count++; in dma_sb_map_area()
822 c->usage_count = 1; in dma_sb_map_area()
853 c->usage_count++; in dma_ioc0_map_area()
871 c->usage_count = 1; in dma_ioc0_map_area()
911 c->usage_count--; in dma_sb_unmap_area()
913 if (!c->usage_count) { in dma_sb_unmap_area()
949 c->usage_count--; in dma_ioc0_unmap_area()
951 if (!c->usage_count) { in dma_ioc0_unmap_area()
/linux-6.6.21/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()
/linux-6.6.21/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()
/linux-6.6.21/drivers/net/wireless/st/cw1200/
Dtxrx.h27 u8 usage_count; member
/linux-6.6.21/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-6.6.21/sound/usb/
Dcard.c639 atomic_set(&chip->usage_count, 0); in snd_usb_audio_create()
959 !atomic_read(&chip->usage_count)); in usb_audio_disconnect()
1006 atomic_inc(&chip->usage_count); in snd_usb_lock_shutdown()
1017 if (atomic_dec_and_test(&chip->usage_count)) in snd_usb_lock_shutdown()
1026 if (atomic_dec_and_test(&chip->usage_count)) in snd_usb_unlock_shutdown()
Dusbaudio.h35 atomic_t usage_count; member
/linux-6.6.21/include/linux/
Dpm_runtime.h129 atomic_inc(&dev->power.usage_count); in pm_runtime_get_noresume()
140 atomic_add_unless(&dev->power.usage_count, -1, 0); in pm_runtime_put_noidle()
/linux-6.6.21/drivers/usb/core/
Ddriver.c1679 __func__, atomic_read(&udev->dev.power.usage_count), in usb_autosuspend_device()
1711 __func__, atomic_read(&udev->dev.power.usage_count), in usb_autoresume_device()
1741 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_put_interface()
1769 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_put_interface_async()
1819 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_get_interface()
1852 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_get_interface_async()
1902 if (atomic_read(&intf->dev.power.usage_count) > 0) in autosuspend_check()
/linux-6.6.21/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-6.6.21/sound/soc/codecs/
Dhda.c181 WARN_ON(atomic_read(&hdev->dev.power.usage_count) != 1 || in hda_codec_probe()
306 WARN_ON(atomic_read(&hdev->dev.power.usage_count) != 1 || in hda_codec_remove()
/linux-6.6.21/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()
Dam65-cpsw-nuss.h127 int usage_count; /* number of opened ports */ member
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()
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()
/linux-6.6.21/Documentation/ABI/testing/
Dsysfs-bus-pci-devices-cciss56 What: /sys/bus/pci/devices/<dev>/ccissX/cXdY/usage_count

12