/linux/drivers/devfreq/ |
H A D | devfreq-event.c | 46 && 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 D | pwm-rz-mtu3.c | 78 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 D | pwm-imx-tpm.c | 65 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 D | core.c | 86 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 D | sh_tmu.c | 49 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 D | sysfs-class-devfreq-event | 18 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 D | mdp5_kms.h | 69 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 D | mdp5_kms.c | 236 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 D | device_pm.c | 864 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 D | imx8-isi-crossbar.c | 345 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 D | imx8-isi-core.h | 185 unsigned int enable_count; member
|
/linux/drivers/net/dsa/mv88e6xxx/ |
H A D | hwtstamp.c | 148 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 D | i915_pmu.h | 117 unsigned int enable_count[I915_PMU_MASK_BITS]; member
|
/linux/drivers/regulator/ |
H A D | core.c | 69 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 D | internal.h | 52 unsigned int enable_count; member
|
/linux/drivers/media/platform/ti/cal/ |
H A D | cal-camerarx.c | 294 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 D | cal.h | 187 unsigned int enable_count; member
|
/linux/include/linux/ |
H A D | devfreq-event.h | 31 u32 enable_count; member
|
/linux/drivers/clk/ |
H A D | clk.c | 80 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 D | intel_engine_types.h | 487 unsigned int enable_count[I915_ENGINE_SAMPLE_COUNT]; member
|
/linux/drivers/gpu/drm/rockchip/ |
H A D | rockchip_drm_vop2.c | 211 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 D | acpi_bus.h | 351 int enable_count; member
|
/linux/Documentation/driver-api/ |
H A D | clk.rst | 120 Nothing about clock topology or accounting, such as enable_count or
|