Home
last modified time | relevance | path

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

1234

/linux/drivers/hwmon/
H A Dpwm-fan.c44 struct pwm_state pwm_state; member
103 struct pwm_state *state, in pwm_fan_enable_mode_2_state()
146 struct pwm_state *state = &ctx->pwm_state; in pwm_fan_power_on()
176 struct pwm_state *state = &ctx->pwm_state; in pwm_fan_power_off()
205 struct pwm_state *state = &ctx->pwm_state; in __set_pwm()
292 struct pwm_state *stat in pwm_fan_update_enable()
[all...]
/linux/drivers/pwm/
H 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()
H A Dpwm-imx-tpm.c82 * This function determines for a given pwm_state *state that a consumer
83 * might request the pwm_state *real_state that eventually is implemented
89 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()
303 const struct pwm_state *state) in pwm_imx_tpm_apply()
307 struct pwm_state real_state; in pwm_imx_tpm_apply()
H A Dpwm-sophgo-sg2042.c79 const struct pwm_state *state) in pwm_sg2042_set_dutycycle()
99 const struct pwm_state *state) in pwm_sg2042_apply()
117 struct pwm_state *state) in pwm_sg2042_get_state()
174 const struct pwm_state *state) in pwm_sg2044_set_polarity()
189 const struct pwm_state *state) in pwm_sg2044_apply()
H A Dpwm-microchip-core.c131 static u64 mchp_core_pwm_calc_duty(const struct pwm_state *state, u64 clk_rate, in mchp_core_pwm_calc_duty()
149 const struct pwm_state *state, u64 duty_steps, in mchp_core_pwm_apply_duty()
182 static int mchp_core_pwm_calc_period(const struct pwm_state *state, unsigned long clk_rate, in mchp_core_pwm_calc_period()
272 const struct pwm_state *state) in mchp_core_pwm_apply_locked()
358 const struct pwm_state *state) in mchp_core_pwm_apply()
368 struct pwm_state *state) in mchp_core_pwm_get_state()
H A Dcore.c80 static void pwm_wf2state(const struct pwm_waveform *wf, struct pwm_state *state) in pwm_wf2state()
84 *state = (struct pwm_state){ in pwm_wf2state()
91 *state = (struct pwm_state){ in pwm_wf2state()
98 *state = (struct pwm_state){ in pwm_wf2state()
104 static void pwm_state2wf(const struct pwm_state *state, struct pwm_waveform *wf) in pwm_state2wf()
485 const struct pwm_state *state) in pwm_apply_debug()
487 struct pwm_state *last = &pwm->last; in pwm_apply_debug()
489 struct pwm_state s1 = { 0 }, s2 = { 0 }; in pwm_apply_debug()
575 *last = (struct pwm_state){ 0 }; in pwm_apply_debug()
594 static bool pwm_state_valid(const struct pwm_state *stat
[all...]
H 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()
H A Dpwm-rockchip.c63 struct pwm_state *state) in rockchip_pwm_get_state()
106 const struct pwm_state *state) in rockchip_pwm_config()
194 const struct pwm_state *state) in rockchip_pwm_apply()
197 struct pwm_state curstate; in rockchip_pwm_apply()
H 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()
H A Dpwm-lpss.c168 const struct pwm_state *state) in pwm_lpss_prepare_enable()
187 const struct pwm_state *state) in pwm_lpss_apply()
210 struct pwm_state *state) in pwm_lpss_get_state()
H A Dpwm-stm32-lp.c123 const struct pwm_state *state) in stm32_pwm_lp_apply()
127 struct pwm_state cstate; in stm32_pwm_lp_apply()
296 struct pwm_state *state) in stm32_pwm_lp_get_state()
391 struct pwm_state state; in stm32_pwm_lp_suspend()
H A Dpwm-visconti.c46 const struct pwm_state *state) in visconti_pwm_apply()
106 struct pwm_state *state) in visconti_pwm_get_state()
H A Dpwm-apple.c45 const struct pwm_state *state) in apple_pwm_apply()
77 struct pwm_state *state) in apple_pwm_get_state()
H A Dpwm-sun4i.c109 struct pwm_state *state) in sun4i_pwm_get_state()
168 const struct pwm_state *state, in sun4i_pwm_calculate()
231 const struct pwm_state *state) in sun4i_pwm_apply()
234 struct pwm_state cstate; in sun4i_pwm_apply()
H A Dpwm-atmel.c182 const struct pwm_state *state, in atmel_pwm_calculate_cprd_and_pres()
215 static void atmel_pwm_calculate_cdty(const struct pwm_state *state, in atmel_pwm_calculate_cdty()
282 const struct pwm_state *state) in atmel_pwm_apply()
344 struct pwm_state *state) in atmel_pwm_get_state()
H A Dpwm-sifive.c127 struct pwm_state *state) in pwm_sifive_get_state()
154 const struct pwm_state *state) in pwm_sifive_apply()
157 struct pwm_state cur_state; in pwm_sifive_apply()
H A Dpwm-crc.c53 const struct pwm_state *state) in crc_pwm_apply()
123 struct pwm_state *state) in crc_pwm_get_state()
H A Dpwm-ab8500.c36 const struct pwm_state *state) in ab8500_pwm_apply()
139 struct pwm_state *state) in ab8500_pwm_get_state()
H A Dpwm-iqs620a.c68 const struct pwm_state *state) in iqs620_pwm_apply()
113 struct pwm_state *state) in iqs620_pwm_get_state()
/linux/drivers/clk/
H A Dclk-pwm.c17 struct pwm_state state;
36 struct pwm_state state = clk_pwm->state; in clk_pwm_disable()
68 struct pwm_state state; in clk_pwm_get_duty_cycle()
/linux/drivers/media/rc/
H 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/include/trace/events/
H A Dpwm.h135 TP_PROTO(struct pwm_device *pwm, const struct pwm_state *state, int err),
163 TP_PROTO(struct pwm_device *pwm, const struct pwm_state *state, int err),
170 TP_PROTO(struct pwm_device *pwm, const struct pwm_state *state, int err),
/linux/drivers/video/backlight/
H 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()
/linux/drivers/gpu/drm/tiny/
H A Dsharp-memory.c506 struct pwm_state pwm_state; in sharp_memory_init_pwm_vcom_signal() local
513 pwm_init_state(smd->pwm_vcom_signal, &pwm_state); in sharp_memory_init_pwm_vcom_signal()
514 pwm_set_relative_duty_cycle(&pwm_state, 1, 10); in sharp_memory_init_pwm_vcom_signal()
515 pwm_state.enabled = true; in sharp_memory_init_pwm_vcom_signal()
516 ret = pwm_apply_might_sleep(smd->pwm_vcom_signal, &pwm_state); in sharp_memory_init_pwm_vcom_signal()
/linux/drivers/iio/adc/
H A Dad4695.c816 struct pwm_state state; in ad4695_offload_buffer_postenable()
928 struct pwm_state state; in ad4695_offload_buffer_predisable()
1181 struct pwm_state state; in ad4695_read_raw()
1313 struct pwm_state state; in __ad4695_write_raw()
1695 struct pwm_state pwm_state; in ad4695_probe_spi_offload() local
1727 pwm_init_state(st->cnv_pwm, &pwm_state); in ad4695_probe_spi_offload()
1730 if (pwm_state.period == 0) in ad4695_probe_spi_offload()
1731 pwm_state.period = 100 * MILLI; in ad4695_probe_spi_offload()
1733 pwm_state in ad4695_probe_spi_offload()
[all...]

1234