Home
last modified time | relevance | path

Searched defs:pwm (Results 1 – 25 of 237) sorted by relevance

12345678910

/linux-6.8/drivers/pwm/
Dcore.c59 static int pwm_device_request(struct pwm_device *pwm, const char *label) in pwm_device_request()
108 struct pwm_device *pwm; in of_pwm_xlate_with_flags() local
139 struct pwm_device *pwm; in of_pwm_single_xlate() local
240 struct pwm_device *pwm = &chip->pwms[i]; in __pwmchip_add() local
313 struct pwm_device *pwm; in pwm_request_from_chip() local
331 static void pwm_apply_debug(struct pwm_device *pwm, in pwm_apply_debug()
442 static int __pwm_apply(struct pwm_device *pwm, const struct pwm_state *state) in __pwm_apply()
482 int pwm_apply_might_sleep(struct pwm_device *pwm, const struct pwm_state *state) in pwm_apply_might_sleep()
517 int pwm_apply_atomic(struct pwm_device *pwm, const struct pwm_state *state) in pwm_apply_atomic()
534 int pwm_capture(struct pwm_device *pwm, struct pwm_capture *result, in pwm_capture()
[all …]
Dsysfs.c19 struct pwm_device *pwm; member
40 const struct pwm_device *pwm = child_to_pwm_device(child); in period_show() local
53 struct pwm_device *pwm = export->pwm; in period_store() local
75 const struct pwm_device *pwm = child_to_pwm_device(child); in duty_cycle_show() local
88 struct pwm_device *pwm = export->pwm; in duty_cycle_store() local
110 const struct pwm_device *pwm = child_to_pwm_device(child); in enable_show() local
123 struct pwm_device *pwm = export->pwm; in enable_store() local
158 const struct pwm_device *pwm = child_to_pwm_device(child); in polarity_show() local
182 struct pwm_device *pwm = export->pwm; in polarity_store() local
207 struct pwm_device *pwm = child_to_pwm_device(child); in capture_show() local
[all …]
Dpwm-twl.c32 #define TWL4030_PWM_TOGGLE(pwm, x) ((x) << (pwm)) argument
46 #define TWL6030_PWM_TOGGLE(pwm, x) ((x) << (pwm * 3)) argument
60 static int twl_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl_pwm_config()
94 static int twl4030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_enable()
124 static void twl4030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_disable()
153 static int twl4030_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_request()
191 static void twl4030_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_free()
221 static int twl6030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwm_enable()
244 static void twl6030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwm_disable()
282 static int twl4030_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwm_apply()
[all …]
Dpwm-lpss.c74 static inline u32 pwm_lpss_read(const struct pwm_device *pwm) in pwm_lpss_read()
81 static inline void pwm_lpss_write(const struct pwm_device *pwm, u32 value) in pwm_lpss_write()
88 static int pwm_lpss_wait_for_update(struct pwm_device *pwm) in pwm_lpss_wait_for_update()
114 static inline int pwm_lpss_is_updating(struct pwm_device *pwm) in pwm_lpss_is_updating()
124 static void pwm_lpss_prepare(struct pwm_lpss_chip *lpwm, struct pwm_device *pwm, in pwm_lpss_prepare()
159 static inline void pwm_lpss_cond_enable(struct pwm_device *pwm, bool cond) in pwm_lpss_cond_enable()
166 struct pwm_device *pwm, in pwm_lpss_prepare_enable()
185 static int pwm_lpss_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_lpss_apply()
208 static int pwm_lpss_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_lpss_get_state()
Dpwm-twl-led.c74 static int twl4030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwmled_config()
108 static int twl4030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwmled_enable()
133 struct pwm_device *pwm) in twl4030_pwmled_disable()
156 static int twl4030_pwmled_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwmled_apply()
194 static int twl6030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwmled_config()
211 static int twl6030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_enable()
238 struct pwm_device *pwm) in twl6030_pwmled_disable()
263 static int twl6030_pwmled_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwmled_apply()
289 static int twl6030_pwmled_request(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_request()
315 static void twl6030_pwmled_free(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_free()
Dpwm-vt8500.c28 #define REG_CTRL(pwm) (((pwm) << 4) + 0x00) argument
29 #define REG_SCALAR(pwm) (((pwm) << 4) + 0x04) argument
30 #define REG_PERIOD(pwm) (((pwm) << 4) + 0x08) argument
31 #define REG_DUTY(pwm) (((pwm) << 4) + 0x0C) argument
69 static int vt8500_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in vt8500_pwm_config()
123 static int vt8500_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in vt8500_pwm_enable()
143 static void vt8500_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in vt8500_pwm_disable()
157 struct pwm_device *pwm, in vt8500_pwm_set_polarity()
176 static int vt8500_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in vt8500_pwm_apply()
Dpwm-tiecap.c50 static int ecap_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in ecap_pwm_config()
108 static int ecap_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in ecap_pwm_set_polarity()
132 static int ecap_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in ecap_pwm_enable()
151 static void ecap_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in ecap_pwm_disable()
168 static int ecap_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in ecap_pwm_apply()
291 struct pwm_device *pwm = pc->chip.pwms; in ecap_pwm_suspend() local
305 struct pwm_device *pwm = pc->chip.pwms; in ecap_pwm_resume() local
Dpwm-dwc-core.c24 static void __dwc_pwm_set_enable(struct dwc_pwm *dwc, int pwm, int enabled) in __dwc_pwm_set_enable()
39 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()
Dpwm-samsung.c123 struct pwm_device *pwm) in __pwm_samsung_manual_update()
230 static int pwm_samsung_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_request()
246 static int pwm_samsung_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_enable()
272 static void pwm_samsung_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_disable()
298 struct pwm_device *pwm) in pwm_samsung_manual_update()
309 static int __pwm_samsung_config(struct pwm_chip *chip, struct pwm_device *pwm, in __pwm_samsung_config()
382 static int pwm_samsung_config(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_samsung_config()
413 struct pwm_device *pwm, in pwm_samsung_set_polarity()
425 static int pwm_samsung_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_samsung_apply()
630 struct pwm_device *pwm = &chip->pwms[i]; in pwm_samsung_resume() local
Dpwm-jz4740.c51 static int jz4740_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_request()
80 static void jz4740_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_free()
89 static int jz4740_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_enable()
102 static void jz4740_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_disable()
124 static int jz4740_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in jz4740_pwm_apply()
Dpwm-fsl-ftm.c87 static int fsl_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in fsl_pwm_request()
102 static void fsl_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in fsl_pwm_free()
201 struct pwm_device *pwm) in fsl_pwm_is_any_pwm_enabled()
213 struct pwm_device *pwm) in fsl_pwm_is_other_pwm_enabled()
225 struct pwm_device *pwm, in fsl_pwm_apply_config()
296 static int fsl_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in fsl_pwm_apply()
471 struct pwm_device *pwm = &fpc->chip.pwms[i]; in fsl_pwm_suspend() local
494 struct pwm_device *pwm = &fpc->chip.pwms[i]; in fsl_pwm_resume() local
Dpwm-hibvt.c83 static void hibvt_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in hibvt_pwm_enable()
91 static void hibvt_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in hibvt_pwm_disable()
99 static void hibvt_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_config()
118 struct pwm_device *pwm, in hibvt_pwm_set_polarity()
131 static int hibvt_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_get_state()
154 static int hibvt_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_apply()
Dpwm-lp3943.c56 static int lp3943_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_request()
80 static void lp3943_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_free()
88 static int lp3943_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lp3943_pwm_config()
152 static int lp3943_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_enable()
171 static void lp3943_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_disable()
184 static int lp3943_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in lp3943_pwm_apply()
Dpwm-meson.c121 static int meson_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in meson_pwm_request()
138 static void meson_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in meson_pwm_free()
146 static int meson_pwm_calc(struct meson_pwm *meson, struct pwm_device *pwm, in meson_pwm_calc()
206 static void meson_pwm_enable(struct meson_pwm *meson, struct pwm_device *pwm) in meson_pwm_enable()
233 static void meson_pwm_disable(struct meson_pwm *meson, struct pwm_device *pwm) in meson_pwm_disable()
247 static int meson_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in meson_pwm_apply()
287 static u64 meson_pwm_cnt_to_ns(struct pwm_chip *chip, struct pwm_device *pwm, in meson_pwm_cnt_to_ns()
304 static int meson_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in meson_pwm_get_state()
Dpwm-lpc32xx.c29 static int lpc32xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lpc32xx_pwm_config()
62 static int lpc32xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc32xx_pwm_enable()
79 static void lpc32xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc32xx_pwm_disable()
91 static int lpc32xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in lpc32xx_pwm_apply()
Dpwm-mediatek.c77 struct pwm_device *pwm) in pwm_mediatek_clk_enable()
105 struct pwm_device *pwm) in pwm_mediatek_clk_disable()
121 static int pwm_mediatek_config(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_mediatek_config()
176 static int pwm_mediatek_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_mediatek_enable()
193 static void pwm_mediatek_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_mediatek_disable()
205 static int pwm_mediatek_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_mediatek_apply()
Dpwm-lpc18xx-sct.c129 struct pwm_device *pwm, in lpc18xx_pwm_set_conflict_res()
172 struct pwm_device *pwm, u64 duty_ns) in lpc18xx_pwm_config_duty()
193 static int lpc18xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lpc18xx_pwm_config()
236 static int lpc18xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity pola… in lpc18xx_pwm_enable()
271 static void lpc18xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_disable()
282 static int lpc18xx_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_request()
303 static void lpc18xx_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_free()
311 static int lpc18xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in lpc18xx_pwm_apply()
Dpwm-imx1.c63 struct pwm_device *pwm, u64 duty_ns, u64 period_ns) in pwm_imx1_config()
93 static int pwm_imx1_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_imx1_enable()
110 static void pwm_imx1_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_imx1_disable()
122 static int pwm_imx1_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_imx1_apply()
Dpwm-renesas-tpu.c210 static int tpu_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_request()
232 static void tpu_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_free()
240 static int tpu_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in tpu_pwm_config()
349 static int tpu_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in tpu_pwm_set_polarity()
360 static int tpu_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_enable()
383 static void tpu_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_disable()
394 static int tpu_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in tpu_pwm_apply()
Dpwm-rz-mtu3.c167 static int rz_mtu3_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in rz_mtu3_pwm_request()
197 static void rz_mtu3_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in rz_mtu3_pwm_free()
215 struct pwm_device *pwm) in rz_mtu3_pwm_enable()
247 struct pwm_device *pwm) in rz_mtu3_pwm_disable()
271 static int rz_mtu3_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in rz_mtu3_pwm_get_state()
320 static int rz_mtu3_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in rz_mtu3_pwm_config()
407 static int rz_mtu3_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in rz_mtu3_pwm_apply()
Dpwm-sifive.c60 static int pwm_sifive_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_sifive_request()
71 static void pwm_sifive_free(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_sifive_free()
109 static int pwm_sifive_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sifive_get_state()
131 static int pwm_sifive_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sifive_apply()
318 struct pwm_device *pwm; in pwm_sifive_remove() local
Dpwm-berlin.c76 static int berlin_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in berlin_pwm_config()
115 struct pwm_device *pwm, in berlin_pwm_set_polarity()
133 static int berlin_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in berlin_pwm_enable()
146 struct pwm_device *pwm) in berlin_pwm_disable()
156 static int berlin_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in berlin_pwm_apply()
Dpwm-bcm-kona.c101 static int kona_pwmc_config(struct pwm_chip *chip, struct pwm_device *pwm, in kona_pwmc_config()
157 static int kona_pwmc_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in kona_pwmc_set_polarity()
189 static int kona_pwmc_enable(struct pwm_chip *chip, struct pwm_device *pwm) in kona_pwmc_enable()
203 static void kona_pwmc_disable(struct pwm_chip *chip, struct pwm_device *pwm) in kona_pwmc_disable()
225 static int kona_pwmc_apply(struct pwm_chip *chip, struct pwm_device *pwm, in kona_pwmc_apply()
Dpwm-atmel-tcb.c70 struct pwm_device *pwm) in atmel_tcb_pwm_request()
116 static void atmel_tcb_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in atmel_tcb_pwm_free()
123 static void atmel_tcb_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm, in atmel_tcb_pwm_disable()
180 static int atmel_tcb_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm, in atmel_tcb_pwm_enable()
264 static int atmel_tcb_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in atmel_tcb_pwm_config()
342 static int atmel_tcb_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in atmel_tcb_pwm_apply()
/linux-6.8/include/linux/
Dpwm.h98 static inline void pwm_get_state(const struct pwm_device *pwm, in pwm_get_state()
104 static inline bool pwm_is_enabled(const struct pwm_device *pwm) in pwm_is_enabled()
113 static inline u64 pwm_get_period(const struct pwm_device *pwm) in pwm_get_period()
122 static inline u64 pwm_get_duty_cycle(const struct pwm_device *pwm) in pwm_get_duty_cycle()
131 static inline enum pwm_polarity pwm_get_polarity(const struct pwm_device *pwm) in pwm_get_polarity()
140 static inline void pwm_get_args(const struct pwm_device *pwm, in pwm_get_args()
163 static inline void pwm_init_state(const struct pwm_device *pwm, in pwm_init_state()
308 static inline int pwm_config(struct pwm_device *pwm, int duty_ns, in pwm_config()
334 static inline int pwm_enable(struct pwm_device *pwm) in pwm_enable()
353 static inline void pwm_disable(struct pwm_device *pwm) in pwm_disable()
[all …]

12345678910