Home
last modified time | relevance | path

Searched refs:pwm_device (Results 1 – 25 of 96) sorted by relevance

1234

/linux/drivers/pwm/
H A Dcore.c167 static int __pwm_round_waveform_tohw(struct pwm_chip *chip, struct pwm_device *pwm, in __pwm_round_waveform_tohw()
179 static int __pwm_round_waveform_fromhw(struct pwm_chip *chip, struct pwm_device *pwm, in __pwm_round_waveform_fromhw()
191 static int __pwm_read_waveform(struct pwm_chip *chip, struct pwm_device *pwm, void *wfhw) in __pwm_read_waveform()
202 static int __pwm_write_waveform(struct pwm_chip *chip, struct pwm_device *pwm, const void *wfhw) in __pwm_write_waveform()
244 int pwm_round_waveform_might_sleep(struct pwm_device *pwm, struct pwm_waveform *wf) in pwm_round_waveform_might_sleep()
303 int pwm_get_waveform_might_sleep(struct pwm_device *pwm, struct pwm_waveform *wf) in pwm_get_waveform_might_sleep()
329 static int __pwm_set_waveform(struct pwm_device *pwm, in __pwm_set_waveform()
442 int pwm_set_waveform_might_sleep(struct pwm_device *pwm, in pwm_set_waveform_might_sleep()
484 static void pwm_apply_debug(struct pwm_device *pwm, in pwm_apply_debug()
613 static int __pwm_apply(struct pwm_device *pw
[all...]
H A Dpwm-twl-led.c69 static int twl4030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwmled_config()
103 static int twl4030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwmled_enable()
124 struct pwm_device *pwm) in twl4030_pwmled_disable()
142 static int twl4030_pwmled_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwmled_apply()
180 static int twl6030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwmled_config()
197 static int twl6030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_enable()
220 struct pwm_device *pwm) in twl6030_pwmled_disable()
240 static int twl6030_pwmled_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwmled_apply()
266 static int twl6030_pwmled_request(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_request()
288 static void twl6030_pwmled_free(struct pwm_chip *chip, struct pwm_device *pw
[all...]
H A Dpwm-lpss.c75 static inline u32 pwm_lpss_read(const struct pwm_device *pwm) in pwm_lpss_read()
82 static inline void pwm_lpss_write(const struct pwm_device *pwm, u32 value) in pwm_lpss_write()
89 static int pwm_lpss_wait_for_update(struct pwm_device *pwm) in pwm_lpss_wait_for_update()
115 static inline int pwm_lpss_is_updating(struct pwm_device *pwm) in pwm_lpss_is_updating()
125 static void pwm_lpss_prepare(struct pwm_lpss_chip *lpwm, struct pwm_device *pwm, in pwm_lpss_prepare()
160 static inline void pwm_lpss_cond_enable(struct pwm_device *pwm, bool cond) in pwm_lpss_cond_enable()
167 struct pwm_device *pwm, in pwm_lpss_prepare_enable()
186 static int pwm_lpss_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_lpss_apply()
209 static int pwm_lpss_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_lpss_get_state()
H A Dpwm-loongson.c76 static int pwm_loongson_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_loongson_set_polarity()
96 static void pwm_loongson_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_loongson_disable()
106 static int pwm_loongson_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_loongson_enable()
118 static int pwm_loongson_config(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_loongson_config()
140 static int pwm_loongson_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_loongson_apply()
166 static int pwm_loongson_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_loongson_get_state()
244 struct pwm_device *pwm = &chip->pwms[0]; in pwm_loongson_suspend()
H A Dpwm-sophgo-sg2042.c78 static void pwm_sg2042_set_dutycycle(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sg2042_set_dutycycle()
98 static int pwm_sg2042_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sg2042_apply()
116 static int pwm_sg2042_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sg2042_get_state()
143 static void pwm_sg2044_set_outputen(struct sg2042_pwm_ddata *ddata, struct pwm_device *pwm, in pwm_sg2044_set_outputen()
158 static void pwm_sg2044_set_outputdir(struct sg2042_pwm_ddata *ddata, struct pwm_device *pwm, in pwm_sg2044_set_outputdir()
173 static void pwm_sg2044_set_polarity(struct sg2042_pwm_ddata *ddata, struct pwm_device *pwm, in pwm_sg2044_set_polarity()
188 static int pwm_sg2044_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sg2044_apply()
H A Dpwm-twl.c59 static int twl_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl_pwm_config()
93 static int twl4030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_enable()
123 static void twl4030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_disable()
152 static int twl4030_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_request()
190 static void twl4030_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_free()
220 static int twl6030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwm_enable()
243 static void twl6030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwm_disable()
281 static int twl4030_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwm_apply()
306 static int twl6030_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwm_apply()
H A Dpwm-tiecap.c49 static int ecap_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in ecap_pwm_config()
107 static int ecap_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in ecap_pwm_set_polarity()
131 static int ecap_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in ecap_pwm_enable()
150 static void ecap_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in ecap_pwm_disable()
167 static int ecap_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in ecap_pwm_apply()
294 struct pwm_device *pwm = chip->pwms; in ecap_pwm_suspend()
308 struct pwm_device *pwm = chip->pwms; in ecap_pwm_resume()
H A Dpwm-argon-fan-hat.c22 struct pwm_device *pwm, in argon_fan_hat_round_waveform_tohw()
37 struct pwm_device *pwm, in argon_fan_hat_round_waveform_fromhw()
51 struct pwm_device *pwm, in argon_fan_hat_write_waveform()
H A Dpwm-lp3943.c55 static int lp3943_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_request()
79 static void lp3943_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_free()
87 static int lp3943_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lp3943_pwm_config()
151 static int lp3943_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_enable()
170 static void lp3943_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_disable()
183 static int lp3943_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in lp3943_pwm_apply()
H A Dpwm-hibvt.c82 static void hibvt_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in hibvt_pwm_enable()
90 static void hibvt_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in hibvt_pwm_disable()
98 static void hibvt_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_config()
117 struct pwm_device *pwm, in hibvt_pwm_set_polarity()
130 static int hibvt_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_get_state()
153 static int hibvt_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_apply()
H A Dpwm-lpc32xx.c30 static int lpc32xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lpc32xx_pwm_config()
63 static int lpc32xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc32xx_pwm_enable()
80 static void lpc32xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc32xx_pwm_disable()
92 static int lpc32xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in lpc32xx_pwm_apply()
H A Dpwm-renesas-tpu.c212 static int tpu_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_request()
234 static void tpu_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_free()
242 static int tpu_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in tpu_pwm_config()
351 static int tpu_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in tpu_pwm_set_polarity()
362 static int tpu_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_enable()
385 static void tpu_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_disable()
396 static int tpu_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in tpu_pwm_apply()
H A Dpwm-fsl-ftm.c84 static int fsl_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in fsl_pwm_request()
96 static void fsl_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in fsl_pwm_free()
198 struct pwm_device *pwm) in fsl_pwm_is_any_pwm_enabled()
210 struct pwm_device *pwm) in fsl_pwm_is_other_pwm_enabled()
222 struct pwm_device *pwm, in fsl_pwm_apply_config()
294 static int fsl_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in fsl_pwm_apply()
463 struct pwm_device *pwm = &chip->pwms[i]; in fsl_pwm_suspend()
487 struct pwm_device *pwm = &chip->pwms[i]; in fsl_pwm_resume()
H A Dpwm-berlin.c75 static int berlin_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in berlin_pwm_config()
114 struct pwm_device *pwm, in berlin_pwm_set_polarity()
132 static int berlin_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in berlin_pwm_enable()
145 struct pwm_device *pwm) in berlin_pwm_disable()
155 static int berlin_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in berlin_pwm_apply()
H A Dpwm-vt8500.c72 static int vt8500_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in vt8500_pwm_config()
126 static int vt8500_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in vt8500_pwm_enable()
146 static void vt8500_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in vt8500_pwm_disable()
160 struct pwm_device *pwm, in vt8500_pwm_set_polarity()
179 static int vt8500_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in vt8500_pwm_apply()
H A Dpwm-adp5585.c48 static int pwm_adp5585_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_adp5585_request()
58 static void pwm_adp5585_free(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_adp5585_free()
68 struct pwm_device *pwm, in pwm_adp5585_apply()
121 struct pwm_device *pwm, in pwm_adp5585_get_state()
H A Dpwm-sti.c92 struct pwm_device *cur;
156 static int sti_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in sti_pwm_config()
161 struct pwm_device *cur = pc->cur; in sti_pwm_config()
242 static int sti_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in sti_pwm_enable()
275 static void sti_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in sti_pwm_disable()
288 static void sti_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in sti_pwm_free()
295 static int sti_pwm_capture(struct pwm_chip *chip, struct pwm_device *pwm, in sti_pwm_capture()
376 static int sti_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in sti_pwm_apply()
H A Dpwm-rzg2l-gpt.c131 static int rzg2l_gpt_request(struct pwm_chip *chip, struct pwm_device *pwm) in rzg2l_gpt_request()
142 static void rzg2l_gpt_free(struct pwm_chip *chip, struct pwm_device *pwm) in rzg2l_gpt_free()
167 struct pwm_device *pwm) in rzg2l_gpt_enable()
185 struct pwm_device *pwm) in rzg2l_gpt_disable()
218 static int rzg2l_gpt_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in rzg2l_gpt_get_state()
254 static int rzg2l_gpt_config(struct pwm_chip *chip, struct pwm_device *pwm, in rzg2l_gpt_config()
337 static int rzg2l_gpt_apply(struct pwm_chip *chip, struct pwm_device *pwm, in rzg2l_gpt_apply()
H A Dpwm-mediatek.c80 struct pwm_device *pwm) in pwm_mediatek_clk_enable()
108 struct pwm_device *pwm) in pwm_mediatek_clk_disable()
124 static void pwm_mediatek_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_mediatek_enable()
134 static void pwm_mediatek_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_mediatek_disable()
144 static int pwm_mediatek_config(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_mediatek_config()
216 static int pwm_mediatek_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_mediatek_apply()
H A Dpwm-bcm-kona.c100 static int kona_pwmc_config(struct pwm_chip *chip, struct pwm_device *pwm, in kona_pwmc_config()
156 static int kona_pwmc_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in kona_pwmc_set_polarity()
188 static int kona_pwmc_enable(struct pwm_chip *chip, struct pwm_device *pwm) in kona_pwmc_enable()
202 static void kona_pwmc_disable(struct pwm_chip *chip, struct pwm_device *pwm) in kona_pwmc_disable()
224 static int kona_pwmc_apply(struct pwm_chip *chip, struct pwm_device *pwm, in kona_pwmc_apply()
H A Dpwm-spear.c75 static int spear_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in spear_pwm_config()
135 static int spear_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in spear_pwm_enable()
152 static void spear_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in spear_pwm_disable()
164 static int spear_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in spear_pwm_apply()
H A Dpwm-sifive.c77 static int pwm_sifive_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_sifive_request()
88 static void pwm_sifive_free(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_sifive_free()
126 static int pwm_sifive_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sifive_get_state()
153 static int pwm_sifive_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sifive_apply()
344 struct pwm_device *pwm; in pwm_sifive_remove()
H A Dpwm-microchip-core.c68 static void mchp_core_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm, in mchp_core_pwm_enable()
148 static void mchp_core_pwm_apply_duty(struct pwm_chip *chip, struct pwm_device *pwm, in mchp_core_pwm_apply_duty()
271 static int mchp_core_pwm_apply_locked(struct pwm_chip *chip, struct pwm_device *pwm, in mchp_core_pwm_apply_locked()
357 static int mchp_core_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in mchp_core_pwm_apply()
367 static int mchp_core_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in mchp_core_pwm_get_state()
H A Dpwm-dwc-core.c39 struct pwm_device *pwm, in __dwc_pwm_configure_timer()
98 static int dwc_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in dwc_pwm_apply()
120 static int dwc_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in dwc_pwm_get_state()
/linux/include/trace/events/
H A Dpwm.h12 TP_PROTO(struct pwm_device *pwm, args)
135 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),

1234