Home
last modified time | relevance | path

Searched refs:pwm_state (Results 1 – 25 of 95) sorted by relevance

1234

/linux/include/linux/
A Dpwm.h63 struct pwm_state { struct
88 struct pwm_state state; argument
89 struct pwm_state last;
103 struct pwm_state *state) in pwm_get_state()
110 struct pwm_state state; in pwm_is_enabled()
119 struct pwm_state state; in pwm_get_period()
128 struct pwm_state state; in pwm_get_duty_cycle()
137 struct pwm_state state; in pwm_get_polarity()
328 struct pwm_state state; in pwm_config()
353 struct pwm_state state; in pwm_enable()
[all …]
/linux/drivers/pwm/
A Dpwm-gpio.c30 struct pwm_state state;
31 struct pwm_state next_state;
41 static void pwm_gpio_round(struct pwm_state *dest, const struct pwm_state *src) in pwm_gpio_round()
60 const struct pwm_state *state = &gpwm->state; in pwm_gpio_toggle()
102 const struct pwm_state *state) in pwm_gpio_apply()
155 struct pwm_state *state) in pwm_gpio_get_state()
A Dcore.c274 struct pwm_state state; in pwm_adjust_config()
519 struct pwm_state state; in period_show()
532 struct pwm_state state; in period_store()
554 struct pwm_state state; in duty_cycle_show()
567 struct pwm_state state; in duty_cycle_store()
589 struct pwm_state state; in enable_show()
602 struct pwm_state state; in enable_store()
635 struct pwm_state state; in polarity_show()
659 struct pwm_state state; in polarity_store()
895 struct pwm_state state; in pwm_class_resume_npwm()
[all …]
A Dpwm-imx-tpm.c89 struct pwm_state *real_state, in pwm_imx_tpm_round_state()
90 const struct pwm_state *state) in pwm_imx_tpm_round_state()
139 struct pwm_state *state) in pwm_imx_tpm_get_state()
176 struct pwm_state *state, in pwm_imx_tpm_apply_hw()
184 struct pwm_state c; in pwm_imx_tpm_apply_hw()
294 const struct pwm_state *state) in pwm_imx_tpm_apply()
298 struct pwm_state real_state; in pwm_imx_tpm_apply()
A Dpwm-microchip-core.c133 static u64 mchp_core_pwm_calc_duty(const struct pwm_state *state, u64 clk_rate, in mchp_core_pwm_calc_duty()
151 const struct pwm_state *state, u64 duty_steps, in mchp_core_pwm_apply_duty()
184 static int mchp_core_pwm_calc_period(const struct pwm_state *state, unsigned long clk_rate, in mchp_core_pwm_calc_period()
274 const struct pwm_state *state) in mchp_core_pwm_apply_locked()
360 const struct pwm_state *state) in mchp_core_pwm_apply()
377 struct pwm_state *state) in mchp_core_pwm_get_state()
A Dpwm-stm32-lp.c34 const struct pwm_state *state) in stm32_pwm_lp_apply()
38 struct pwm_state cstate; in stm32_pwm_lp_apply()
160 struct pwm_state *state) in stm32_pwm_lp_get_state()
223 struct pwm_state state; in stm32_pwm_lp_suspend()
A Dpwm-dwc-core.c40 const struct pwm_state *state) in __dwc_pwm_configure_timer()
99 const struct pwm_state *state) in dwc_pwm_apply()
121 struct pwm_state *state) in dwc_pwm_get_state()
A Dpwm-keembay.c92 struct pwm_state *state) in keembay_pwm_get_state()
120 const struct pwm_state *state) in keembay_pwm_apply()
123 struct pwm_state current_state; in keembay_pwm_apply()
A Dpwm-rockchip.c61 struct pwm_state *state) in rockchip_pwm_get_state()
103 const struct pwm_state *state) in rockchip_pwm_config()
187 const struct pwm_state *state) in rockchip_pwm_apply()
190 struct pwm_state curstate; in rockchip_pwm_apply()
A Dpwm-sprd.c72 struct pwm_state *state) in sprd_pwm_get_state()
164 const struct pwm_state *state) in sprd_pwm_apply()
168 struct pwm_state *cstate = &pwm->state; in sprd_pwm_apply()
A Dpwm-lpss.c167 const struct pwm_state *state) in pwm_lpss_prepare_enable()
186 const struct pwm_state *state) in pwm_lpss_apply()
209 struct pwm_state *state) in pwm_lpss_get_state()
A Dpwm-visconti.c46 const struct pwm_state *state) in visconti_pwm_apply()
106 struct pwm_state *state) in visconti_pwm_get_state()
A Dpwm-apple.c45 const struct pwm_state *state) in apple_pwm_apply()
77 struct pwm_state *state) in apple_pwm_get_state()
A Dpwm-raspberrypi-poe.c86 struct pwm_state *state) in raspberrypi_pwm_get_state()
100 const struct pwm_state *state) in raspberrypi_pwm_apply()
A Dpwm-atmel.c193 const struct pwm_state *state, in atmel_pwm_calculate_cprd_and_pres()
226 static void atmel_pwm_calculate_cdty(const struct pwm_state *state, in atmel_pwm_calculate_cdty()
293 const struct pwm_state *state) in atmel_pwm_apply()
355 struct pwm_state *state) in atmel_pwm_get_state()
A Dpwm-sun4i.c111 struct pwm_state *state) in sun4i_pwm_get_state()
170 const struct pwm_state *state, in sun4i_pwm_calculate()
233 const struct pwm_state *state) in sun4i_pwm_apply()
236 struct pwm_state cstate; in sun4i_pwm_apply()
A Dpwm-sifive.c110 struct pwm_state *state) in pwm_sifive_get_state()
132 const struct pwm_state *state) in pwm_sifive_apply()
135 struct pwm_state cur_state; in pwm_sifive_apply()
A Dpwm-crc.c53 const struct pwm_state *state) in crc_pwm_apply()
123 struct pwm_state *state) in crc_pwm_get_state()
A Dpwm-ab8500.c36 const struct pwm_state *state) in ab8500_pwm_apply()
139 struct pwm_state *state) in ab8500_pwm_get_state()
A Dpwm-adp5585.c56 const struct pwm_state *state) in pwm_adp5585_apply()
112 struct pwm_state *state) in pwm_adp5585_get_state()
/linux/drivers/hwmon/
A Dpwm-fan.c43 struct pwm_state pwm_state; member
99 struct pwm_state *state, in pwm_fan_enable_mode_2_state()
142 struct pwm_state *state = &ctx->pwm_state; in pwm_fan_power_on()
172 struct pwm_state *state = &ctx->pwm_state; in pwm_fan_power_off()
201 struct pwm_state *state = &ctx->pwm_state; in __set_pwm()
275 struct pwm_state *state = &ctx->pwm_state; in pwm_fan_update_enable()
508 pwm_init_state(ctx->pwm, &ctx->pwm_state); in pwm_fan_probe()
516 ctx->pwm_state.usage_power = true; in pwm_fan_probe()
523 if (ctx->pwm_state.period > ULONG_MAX / MAX_PWM + 1) { in pwm_fan_probe()
/linux/include/trace/events/
A Dpwm.h13 TP_PROTO(struct pwm_device *pwm, const struct pwm_state *state, int err),
45 TP_PROTO(struct pwm_device *pwm, const struct pwm_state *state, int err),
52 TP_PROTO(struct pwm_device *pwm, const struct pwm_state *state, int err),
/linux/drivers/regulator/
A Dpwm-regulator.c57 struct pwm_state pwm_state; in pwm_regulator_init_state() local
61 pwm_get_state(drvdata->pwm, &pwm_state); in pwm_regulator_init_state()
62 dutycycle = pwm_get_relative_duty_cycle(&pwm_state, 100); in pwm_regulator_init_state()
86 struct pwm_state pstate; in pwm_regulator_set_voltage_sel()
154 struct pwm_state pstate; in pwm_regulator_get_voltage()
201 struct pwm_state pstate; in pwm_regulator_set_voltage()
328 struct pwm_state pstate; in pwm_regulator_init_boot_on()
/linux/drivers/media/rc/
A Dpwm-ir-tx.c24 struct pwm_state *state;
65 struct pwm_state state; in pwm_ir_tx_sleep()
98 struct pwm_state state; in pwm_ir_tx_atomic()
/linux/drivers/video/backlight/
A Dpwm_bl.c75 static int compute_duty_cycle(struct pwm_bl_data *pb, int brightness, struct pwm_state *state) in compute_duty_cycle()
95 struct pwm_state state; in pwm_backlight_update_status()
447 struct pwm_state state; in pwm_backlight_probe()
619 struct pwm_state state; in pwm_backlight_remove()
636 struct pwm_state state; in pwm_backlight_shutdown()
650 struct pwm_state state; in pwm_backlight_suspend()

Completed in 48 milliseconds

1234