Searched refs:enable_count (Results 1 - 22 of 22) sorted by relevance

/linux-master/drivers/devfreq/
H A Ddevfreq-event.c30 * the enable_count of devfreq-event dev.
33 * Note that this function increase the enable_count and enable the
46 && edev->enable_count == 0) {
51 edev->enable_count++;
61 * the enable_count of the devfreq-event dev.
64 * Note that this function decrease the enable_count and disable the
77 if (edev->enable_count <= 0) {
78 dev_warn(&edev->dev, "unbalanced enable_count\n");
84 && edev->enable_count == 1) {
89 edev->enable_count
[all...]
/linux-master/drivers/pwm/
H A Dpwm-rz-mtu3.c68 * @enable_count: MTU3 enable count
78 u32 enable_count[RZ_MTU3_MAX_HW_CHANNELS]; member in struct:rz_mtu3_pwm_chip
235 if (!rz_mtu3_pwm->enable_count[ch])
238 rz_mtu3_pwm->enable_count[ch]++;
260 rz_mtu3_pwm->enable_count[ch]--;
261 if (!rz_mtu3_pwm->enable_count[ch])
343 if (rz_mtu3_pwm->enable_count[ch] > 1) {
371 if (rz_mtu3_pwm->prescale[ch] != prescale && rz_mtu3_pwm->enable_count[ch])
394 if (rz_mtu3_pwm->enable_count[ch])
H A Dpwm-imx-tpm.c64 u32 enable_count; member in struct:imx_tpm_pwm_chip
277 if (++tpm->enable_count == 1)
280 if (--tpm->enable_count == 0)
384 if (tpm->enable_count > 0)
/linux-master/drivers/gpu/drm/i915/
H A Di915_pmu.h111 * @enable_count: Reference counts for the enabled events.
117 unsigned int enable_count[I915_PMU_MASK_BITS]; member in struct:i915_pmu
H A Di915_pmu.c731 BUILD_BUG_ON(ARRAY_SIZE(pmu->enable_count) != I915_PMU_MASK_BITS);
732 GEM_BUG_ON(bit >= ARRAY_SIZE(pmu->enable_count));
733 GEM_BUG_ON(pmu->enable_count[bit] == ~0);
736 pmu->enable_count[bit]++;
755 BUILD_BUG_ON(ARRAY_SIZE(engine->pmu.enable_count) !=
759 GEM_BUG_ON(sample >= ARRAY_SIZE(engine->pmu.enable_count));
761 GEM_BUG_ON(engine->pmu.enable_count[sample] == ~0);
764 engine->pmu.enable_count[sample]++;
798 GEM_BUG_ON(sample >= ARRAY_SIZE(engine->pmu.enable_count));
800 GEM_BUG_ON(engine->pmu.enable_count[sampl
[all...]
/linux-master/drivers/regulator/
H A Dinternal.h52 unsigned int enable_count; member in struct:regulator
H A Dcore.c69 u32 enable_count; /* a number of enabled shared GPIO */ member in struct:regulator_enable_gpio
844 if (regulator->enable_count)
1035 if (sibling->enable_count)
2276 regulator->enable_count = 1;
2290 regulator->enable_count = 0;
2409 WARN_ON(regulator->enable_count);
2629 * regulator_ena_gpio_ctrl - balance enable_count of each GPIO and actual GPIO pin control
2633 * GPIO is enabled in case of initial use. (enable_count is 0)
2634 * GPIO is disabled when it is not shared any more. (enable_count <= 1)
2645 if (pin->enable_count
[all...]
/linux-master/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_kms.h69 int enable_count; member in struct:mdp5_kms
173 WARN_ON(mdp5_kms->enable_count <= 0);
179 WARN_ON(mdp5_kms->enable_count <= 0);
H A Dmdp5_kms.c237 mdp5_kms->enable_count--;
238 WARN_ON(mdp5_kms->enable_count < 0);
254 mdp5_kms->enable_count++;
/linux-master/drivers/clocksource/
H A Dsh_tmu.c49 unsigned int enable_count; member in struct:sh_tmu_channel
174 if (ch->enable_count++ > 0)
197 if (WARN_ON(ch->enable_count == 0))
200 if (--ch->enable_count > 0)
293 if (--ch->enable_count == 0) {
306 if (ch->enable_count++ == 0) {
473 ch->enable_count = 0;
/linux-master/include/linux/
H A Ddevfreq-event.h21 * @enable_count: the number of enable function have been called.
31 u32 enable_count; member in struct:devfreq_event_dev
/linux-master/drivers/media/platform/nxp/imx8-isi/
H A Dimx8-isi-crossbar.c345 if (!input->enable_count) {
363 input->enable_count++;
388 input->enable_count--;
390 if (!input->enable_count) {
H A Dimx8-isi-core.h185 unsigned int enable_count; member in struct:mxc_isi_input
/linux-master/drivers/acpi/
H A Ddevice_pm.c864 if (wakeup->enable_count > 0)
869 if (wakeup->enable_count > 0) {
871 wakeup->enable_count = 0;
876 if (wakeup->enable_count > 0)
890 if (wakeup->enable_count < INT_MAX)
891 wakeup->enable_count++;
932 if (!wakeup->enable_count)
938 wakeup->enable_count--;
/linux-master/drivers/net/dsa/mv88e6xxx/
H A Dhwtstamp.c148 chip->enable_count += 1;
149 if (chip->enable_count == 1 && ptp_ops->global_enable)
156 chip->enable_count -= 1;
157 if (chip->enable_count == 0 && ptp_ops->global_disable)
H A Dchip.h418 u16 enable_count; member in struct:mv88e6xxx_chip
/linux-master/drivers/media/platform/ti/cal/
H A Dcal.h187 unsigned int enable_count; member in struct:cal_camerarx
H A Dcal-camerarx.c294 if (phy->enable_count > 0) {
295 phy->enable_count++;
423 phy->enable_count++;
432 if (--phy->enable_count > 0)
/linux-master/drivers/clk/
H A Dclk.c80 unsigned int enable_count; member in struct:clk_core
315 return core->enable_count;
566 return !clk ? 0 : clk->core->enable_count;
1073 WARN(core->enable_count > 0, "Unpreparing enabled %s\n", core->name);
1200 if (WARN(core->enable_count == 0, "%s already disabled\n", core->name))
1203 if (WARN(core->enable_count == 1 && core->flags & CLK_IS_CRITICAL,
1207 if (--core->enable_count > 0)
1263 if (core->enable_count == 0) {
1282 core->enable_count++;
1303 * the gate clocks based on the enable_count
[all...]
/linux-master/drivers/gpu/drm/i915/gt/
H A Dintel_engine_types.h478 * @enable_count: Reference count for the enabled samplers.
482 unsigned int enable_count[I915_ENGINE_SAMPLE_COUNT]; member in struct:intel_engine_cs::intel_engine_pmu
/linux-master/drivers/gpu/drm/rockchip/
H A Drockchip_drm_vop2.c211 unsigned int enable_count; member in struct:vop2
1036 vop2->enable_count--;
1038 if (!vop2->enable_count)
1960 if (!vop2->enable_count)
1963 vop2->enable_count++;
/linux-master/include/acpi/
H A Dacpi_bus.h341 int enable_count; member in struct:acpi_device_wakeup

Completed in 324 milliseconds