Home
last modified time | relevance | path

Searched refs:enable_count (Results 1 – 23 of 23) sorted by relevance

/linux/drivers/devfreq/
H A Ddevfreq-event.c46 && edev->enable_count == 0) { in devfreq_event_enable_edev()
51 edev->enable_count++; in devfreq_event_enable_edev()
77 if (edev->enable_count <= 0) { in devfreq_event_disable_edev()
84 && edev->enable_count == 1) { in devfreq_event_disable_edev()
89 edev->enable_count--; in devfreq_event_disable_edev()
115 if (edev->enable_count > 0) in devfreq_event_is_enabled()
326 edev->enable_count = 0; in devfreq_event_add_edev()
360 WARN_ON(edev->enable_count); in devfreq_event_remove_edev()
459 return sprintf(buf, "%d\n", edev->enable_count); in enable_count_show()
461 static DEVICE_ATTR_RO(enable_count);
/linux/drivers/pwm/
H A Dpwm-rz-mtu3.c78 u32 enable_count[RZ_MTU3_MAX_HW_CHANNELS]; member
235 if (!rz_mtu3_pwm->enable_count[ch]) in rz_mtu3_pwm_enable()
238 rz_mtu3_pwm->enable_count[ch]++; in rz_mtu3_pwm_enable()
260 rz_mtu3_pwm->enable_count[ch]--; in rz_mtu3_pwm_disable()
261 if (!rz_mtu3_pwm->enable_count[ch]) in rz_mtu3_pwm_disable()
343 if (rz_mtu3_pwm->enable_count[ch] > 1) { in rz_mtu3_pwm_config()
371 if (rz_mtu3_pwm->prescale[ch] != prescale && rz_mtu3_pwm->enable_count[ch]) in rz_mtu3_pwm_config()
394 if (rz_mtu3_pwm->enable_count[ch]) in rz_mtu3_pwm_config()
H A Dpwm-imx-tpm.c65 u32 enable_count; member
280 if (++tpm->enable_count == 1) in pwm_imx_tpm_apply_hw()
283 if (--tpm->enable_count == 0) in pwm_imx_tpm_apply_hw()
388 if (tpm->enable_count > 0) in pwm_imx_tpm_suspend()
/linux/drivers/power/sequencing/
H A Dcore.c86 unsigned int enable_count; member
550 WARN(target->unit->enable_count, in pwrseq_device_unregister()
801 if (unit->enable_count != 0) { in pwrseq_unit_enable()
802 unit->enable_count++; in pwrseq_unit_enable()
825 unit->enable_count++; in pwrseq_unit_enable()
838 if (unit->enable_count == 0) { in pwrseq_unit_disable()
844 if (unit->enable_count != 1) { in pwrseq_unit_disable()
845 unit->enable_count--; in pwrseq_unit_disable()
869 unit->enable_count--; in pwrseq_unit_disable()
1028 unit->name, unit->enable_count); in pwrseq_debugfs_seq_show_unit()
/linux/drivers/clocksource/
H A Dsh_tmu.c49 unsigned int enable_count; member
174 if (ch->enable_count++ > 0) in sh_tmu_enable()
197 if (WARN_ON(ch->enable_count == 0)) in sh_tmu_disable()
200 if (--ch->enable_count > 0) in sh_tmu_disable()
293 if (--ch->enable_count == 0) { in sh_tmu_clocksource_suspend()
306 if (ch->enable_count++ == 0) { in sh_tmu_clocksource_resume()
473 ch->enable_count = 0; in sh_tmu_channel_setup()
/linux/Documentation/ABI/testing/
H A Dsysfs-class-devfreq-event18 What: /sys/class/devfreq-event/event<x>/enable_count
22 The /sys/class/devfreq-event/event<x>/enable_count attribute
/linux/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_kms.h69 int enable_count; member
173 WARN_ON(mdp5_kms->enable_count <= 0); in mdp5_write()
179 WARN_ON(mdp5_kms->enable_count <= 0); in mdp5_read()
H A Dmdp5_kms.c236 mdp5_kms->enable_count--; in mdp5_disable()
237 WARN_ON(mdp5_kms->enable_count < 0); in mdp5_disable()
253 mdp5_kms->enable_count++; in mdp5_enable()
/linux/drivers/acpi/
H A Ddevice_pm.c864 if (wakeup->enable_count > 0) in __acpi_device_wakeup_enable()
869 if (wakeup->enable_count > 0) { in __acpi_device_wakeup_enable()
871 wakeup->enable_count = 0; in __acpi_device_wakeup_enable()
876 if (wakeup->enable_count > 0) in __acpi_device_wakeup_enable()
890 if (wakeup->enable_count < INT_MAX) in __acpi_device_wakeup_enable()
891 wakeup->enable_count++; in __acpi_device_wakeup_enable()
932 if (!wakeup->enable_count) in acpi_device_wakeup_disable()
938 wakeup->enable_count--; in acpi_device_wakeup_disable()
/linux/drivers/media/platform/nxp/imx8-isi/
H A Dimx8-isi-crossbar.c345 if (!input->enable_count) { in mxc_isi_crossbar_enable_streams()
363 input->enable_count++; in mxc_isi_crossbar_enable_streams()
388 input->enable_count--; in mxc_isi_crossbar_disable_streams()
390 if (!input->enable_count) { in mxc_isi_crossbar_disable_streams()
H A Dimx8-isi-core.h185 unsigned int enable_count; member
/linux/drivers/net/dsa/mv88e6xxx/
H A Dhwtstamp.c148 chip->enable_count += 1; in mv88e6xxx_set_hwtstamp_config()
149 if (chip->enable_count == 1 && ptp_ops->global_enable) in mv88e6xxx_set_hwtstamp_config()
156 chip->enable_count -= 1; in mv88e6xxx_set_hwtstamp_config()
157 if (chip->enable_count == 0 && ptp_ops->global_disable) in mv88e6xxx_set_hwtstamp_config()
/linux/drivers/gpu/drm/i915/
H A Di915_pmu.h117 unsigned int enable_count[I915_PMU_MASK_BITS]; member
/linux/drivers/regulator/
H A Dcore.c69 u32 enable_count; /* a number of enabled shared GPIO */ member
781 if (regulator->enable_count) in requested_microamps_show()
972 if (sibling->enable_count) in drms_uA_update()
2237 regulator->enable_count = 1; in _regulator_get_common()
2251 regulator->enable_count = 0; in _regulator_get_common()
2386 WARN_ON(regulator->enable_count); in _regulator_put()
2626 if (pin->enable_count == 0) in regulator_ena_gpio_ctrl()
2629 pin->enable_count++; in regulator_ena_gpio_ctrl()
2631 if (pin->enable_count > 1) { in regulator_ena_gpio_ctrl()
2632 pin->enable_count--; in regulator_ena_gpio_ctrl()
[all …]
H A Dinternal.h52 unsigned int enable_count; member
/linux/drivers/media/platform/ti/cal/
H A Dcal-camerarx.c294 if (phy->enable_count > 0) { in cal_camerarx_start()
295 phy->enable_count++; in cal_camerarx_start()
423 phy->enable_count++; in cal_camerarx_start()
432 if (--phy->enable_count > 0) in cal_camerarx_stop()
H A Dcal.h187 unsigned int enable_count; member
/linux/include/linux/
H A Ddevfreq-event.h31 u32 enable_count; member
/linux/drivers/clk/
H A Dclk.c80 unsigned int enable_count; member
315 return core->enable_count; in clk_core_is_enabled()
566 return !clk ? 0 : clk->core->enable_count; in __clk_get_enable_count()
1067 WARN(core->enable_count > 0, "Unpreparing enabled %s\n", core->name); in clk_core_unprepare()
1194 if (WARN(core->enable_count == 0, "%s already disabled\n", core->name)) in clk_core_disable()
1197 if (WARN(core->enable_count == 1 && core->flags & CLK_IS_CRITICAL, in clk_core_disable()
1201 if (--core->enable_count > 0) in clk_core_disable()
1257 if (core->enable_count == 0) { in clk_core_enable()
1276 core->enable_count++; in clk_core_enable()
1306 if (core->enable_count) in clk_gate_restore_context()
[all …]
/linux/drivers/gpu/drm/i915/gt/
H A Dintel_engine_types.h487 unsigned int enable_count[I915_ENGINE_SAMPLE_COUNT]; member
/linux/drivers/gpu/drm/rockchip/
H A Drockchip_drm_vop2.c211 unsigned int enable_count; member
1038 vop2->enable_count--; in vop2_crtc_atomic_disable()
1040 if (!vop2->enable_count) in vop2_crtc_atomic_disable()
1962 if (!vop2->enable_count) in vop2_crtc_atomic_enable()
1965 vop2->enable_count++; in vop2_crtc_atomic_enable()
/linux/include/acpi/
H A Dacpi_bus.h351 int enable_count; member
/linux/Documentation/driver-api/
H A Dclk.rst120 Nothing about clock topology or accounting, such as enable_count or