Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/mfd/
Dmfd-core.c36 if (atomic_inc_return(cell->usage_count) == 1) in mfd_cell_enable()
41 atomic_dec(cell->usage_count); in mfd_cell_enable()
53 if (atomic_dec_return(cell->usage_count) == 0) in mfd_cell_disable()
58 atomic_inc(cell->usage_count); in mfd_cell_disable()
61 WARN_ON(atomic_read(cell->usage_count) < 0); in mfd_cell_disable()
69 atomic_t *usage_count) in mfd_platform_add_cell() argument
78 pdev->mfd_cell->usage_count = usage_count; in mfd_platform_add_cell()
141 const struct mfd_cell *cell, atomic_t *usage_count, in mfd_add_device() argument
202 ret = mfd_platform_add_cell(pdev, cell, usage_count); in mfd_add_device()
309 atomic_t **usage_count = c; in mfd_remove_devices_fn() local
[all …]
/Linux-v4.19/drivers/cpufreq/
Dcpufreq_governor_attr_set.c40 ret = attr_set->usage_count ? gattr->store(attr_set, buf, count) : -EBUSY; in governor_store()
55 attr_set->usage_count = 1; in gov_attr_set_init()
63 attr_set->usage_count++; in gov_attr_set_get()
75 count = --attr_set->usage_count; in gov_attr_set_put()
/Linux-v4.19/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-v4.19/sound/soc/intel/skylake/
Dskl-sst-dsp.c48 skl->cores.usage_count[SKL_DSP_CORE0_ID] = 1; in skl_dsp_init_core_state()
52 skl->cores.usage_count[i] = 0; in skl_dsp_init_core_state()
354 skl->cores.usage_count[core_id]++; in skl_dsp_get_core()
367 skl->cores.usage_count[core_id]); in skl_dsp_get_core()
383 if ((--skl->cores.usage_count[core_id] == 0) && in skl_dsp_put_core()
389 skl->cores.usage_count[core_id]++; in skl_dsp_put_core()
395 skl->cores.usage_count[core_id]); in skl_dsp_put_core()
Dskl-sst-ipc.h50 int *usage_count; member
Dskl-messages.c309 cores->usage_count = kcalloc(cores->count, sizeof(*cores->usage_count), in skl_init_dsp()
311 if (!cores->usage_count) { in skl_init_dsp()
340 kfree(ctx->cores.usage_count); in skl_free_dsp()
/Linux-v4.19/drivers/gpio/
Dgpio-twl4030.c72 unsigned int usage_count; member
247 if (!priv->usage_count) { in twl_request()
263 priv->usage_count |= BIT(offset); in twl_request()
279 priv->usage_count &= ~BIT(offset); in twl_free()
282 if (!priv->usage_count) in twl_free()
315 if (!(priv->usage_count & BIT(offset))) { in twl_get()
/Linux-v4.19/sound/soc/intel/atom/sst/
Dsst_drv_interface.c46 #define GET_USAGE_COUNT(dev) (atomic_read(&dev->power.usage_count))
147 int usage_count = 0; in sst_power_control() local
151 usage_count = GET_USAGE_COUNT(dev); in sst_power_control()
152 dev_dbg(ctx->dev, "Enable: pm usage count: %d\n", usage_count); in sst_power_control()
158 if ((ctx->sst_state == SST_RESET) && (usage_count == 1)) { in sst_power_control()
167 usage_count = GET_USAGE_COUNT(dev); in sst_power_control()
168 dev_dbg(ctx->dev, "Disable: pm usage count: %d\n", usage_count); in sst_power_control()
/Linux-v4.19/drivers/base/power/
Druntime.c244 else if (atomic_read(&dev->power.usage_count) > 0) in rpm_check_suspend_allowed()
971 if (!atomic_dec_and_test(&dev->power.usage_count)) in __pm_runtime_idle()
1003 if (!atomic_dec_and_test(&dev->power.usage_count)) in __pm_runtime_suspend()
1037 atomic_inc(&dev->power.usage_count); in __pm_runtime_resume()
1065 && atomic_inc_not_zero(&dev->power.usage_count); in pm_runtime_get_if_in_use()
1321 atomic_inc(&dev->power.usage_count); in pm_runtime_forbid()
1342 if (atomic_dec_and_test(&dev->power.usage_count)) in pm_runtime_allow()
1409 atomic_inc(&dev->power.usage_count); in update_autosuspend()
1419 atomic_dec(&dev->power.usage_count); in update_autosuspend()
1479 atomic_set(&dev->power.usage_count, 0); in pm_runtime_init()
[all …]
/Linux-v4.19/arch/powerpc/platforms/ps3/
Dmm.c387 unsigned int usage_count; member
815 c->usage_count++; in dma_sb_map_area()
830 c->usage_count = 1; in dma_sb_map_area()
861 c->usage_count++; in dma_ioc0_map_area()
879 c->usage_count = 1; in dma_ioc0_map_area()
919 c->usage_count--; in dma_sb_unmap_area()
921 if (!c->usage_count) { in dma_sb_unmap_area()
957 c->usage_count--; in dma_ioc0_unmap_area()
959 if (!c->usage_count) { in dma_ioc0_unmap_area()
/Linux-v4.19/sound/usb/
Dcard.c491 atomic_set(&chip->usage_count, 0); in snd_usb_audio_create()
718 !atomic_read(&chip->usage_count)); in usb_audio_disconnect()
753 atomic_inc(&chip->usage_count); in snd_usb_lock_shutdown()
764 if (atomic_dec_and_test(&chip->usage_count)) in snd_usb_lock_shutdown()
773 if (atomic_dec_and_test(&chip->usage_count)) in snd_usb_unlock_shutdown()
Dusbaudio.h43 atomic_t usage_count; member
/Linux-v4.19/include/linux/mfd/
Dcore.h38 atomic_t *usage_count; member
/Linux-v4.19/include/linux/
Dpm_runtime.h71 atomic_inc(&dev->power.usage_count); in pm_runtime_get_noresume()
76 atomic_add_unless(&dev->power.usage_count, -1, 0); in pm_runtime_put_noidle()
/Linux-v4.19/drivers/net/wireless/st/cw1200/
Dtxrx.h30 u8 usage_count; member
Dtxrx.c240 ++entry->policy.usage_count; in tx_policy_use()
247 int ret = --entry->policy.usage_count; in tx_policy_release()
268 if (WARN_ON(entry->policy.usage_count)) { in tx_policy_clean()
269 entry->policy.usage_count = 0; in tx_policy_clean()
/Linux-v4.19/drivers/usb/core/
Ddriver.c1579 __func__, atomic_read(&udev->dev.power.usage_count), in usb_autosuspend_device()
1611 __func__, atomic_read(&udev->dev.power.usage_count), in usb_autoresume_device()
1642 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_put_interface()
1671 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_put_interface_async()
1724 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_get_interface()
1759 __func__, atomic_read(&intf->dev.power.usage_count), in usb_autopm_get_interface_async()
1810 if (atomic_read(&intf->dev.power.usage_count) > 0) in autosuspend_check()
/Linux-v4.19/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-v4.19/drivers/memstick/core/
Dms_block.h150 unsigned int usage_count; member
Dmspro_block.c140 unsigned int usage_count; member
194 msb->usage_count++; in mspro_block_bd_open()
215 if (msb->usage_count) in mspro_block_disk_release()
216 msb->usage_count--; in mspro_block_disk_release()
218 if (!msb->usage_count) { in mspro_block_disk_release()
1225 msb->usage_count = 1; in mspro_block_init_disk()
/Linux-v4.19/drivers/block/
Dfloppy.c585 static atomic_t usage_count = ATOMIC_INIT(0); variable
876 if (WARN(atomic_read(&usage_count) == 0, in lock_fdc()
2910 if (WARN(atomic_read(&usage_count) == 0, in do_fd_request()
4179 if (WARN(atomic_read(&usage_count) == 0, in floppy_revalidate()
4695 if (atomic_read(&usage_count)) in do_floppy_init()
4780 if (atomic_inc_return(&usage_count) > 1) in floppy_grab_irq_and_dma()
4792 atomic_dec(&usage_count); in floppy_grab_irq_and_dma()
4802 atomic_dec(&usage_count); in floppy_grab_irq_and_dma()
4837 atomic_dec(&usage_count); in floppy_grab_irq_and_dma()
4850 if (!atomic_dec_and_test(&usage_count)) in floppy_release_irq_and_dma()
[all …]
/Linux-v4.19/Documentation/ABI/testing/
Dsysfs-bus-pci-devices-cciss56 Where: /sys/bus/pci/devices/<dev>/ccissX/cXdY/usage_count
/Linux-v4.19/drivers/usb/storage/
Drealtek_cr.c768 atomic_read(&us->pusb_intf->dev.power.usage_count)); in rts51x_suspend_timer_fn()
778 atomic_read(&us->pusb_intf->dev.power.usage_count)); in rts51x_suspend_timer_fn()
812 atomic_read(&us->pusb_intf->dev.power.usage_count)); in rts51x_invoke_transport()
/Linux-v4.19/drivers/net/ethernet/ti/
Dcpsw.c456 int usage_count; member
802 if (cpsw->data.dual_emac && cpsw->usage_count && in cpsw_rx_handler()
1885 if (!cpsw->usage_count) in cpsw_ndo_open()
1897 if (!cpsw->usage_count) { in cpsw_ndo_open()
1941 cpsw->usage_count++; in cpsw_ndo_open()
1962 if (cpsw->usage_count <= 1) { in cpsw_ndo_stop()
1975 cpsw->usage_count--; in cpsw_ndo_stop()
2872 if (cpsw->usage_count) { in cpsw_resume_data_pass()
2926 if (cpsw->usage_count) in cpsw_set_channels()
3008 if (cpsw->usage_count) in cpsw_set_ringparam()
/Linux-v4.19/sound/soc/intel/common/
Dsst-dsp-priv.h214 u32 usage_count; /* can be unloaded if count == 0 */ member

12