Home
last modified time | relevance | path

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

12345678910>>...12

/openbmc/linux/drivers/pwm/
H A Dcore.c85 static int pwm_device_request(struct pwm_device *pwm, const char *label) in pwm_device_request()
132 struct pwm_device *pwm; in of_pwm_xlate_with_flags() local
163 struct pwm_device *pwm; in of_pwm_single_xlate() local
218 int pwm_set_chip_data(struct pwm_device *pwm, void *data) in pwm_set_chip_data()
235 void *pwm_get_chip_data(struct pwm_device *pwm) in pwm_get_chip_data()
265 struct pwm_device *pwm; in pwmchip_add() local
367 struct pwm_device *pwm; in pwm_request_from_chip() local
385 static void pwm_apply_debug(struct pwm_device *pwm, in pwm_apply_debug()
496 int pwm_apply_might_sleep(struct pwm_device *pwm, const struct pwm_state *state) in pwm_apply_might_sleep()
548 int pwm_capture(struct pwm_device *pwm, struct pwm_capture *result, in pwm_capture()
[all …]
H A 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 …]
H A 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 …]
H A 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()
H A 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()
195 static int twl6030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwmled_config()
212 static int twl6030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_enable()
239 struct pwm_device *pwm) in twl6030_pwmled_disable()
264 static int twl6030_pwmled_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwmled_apply()
290 static int twl6030_pwmled_request(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_request()
316 static void twl6030_pwmled_free(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_free()
H A 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()
H A Dpwm-samsung.c121 struct pwm_device *pwm) in __pwm_samsung_manual_update()
134 static void pwm_samsung_set_divisor(struct samsung_pwm_chip *pwm, in pwm_samsung_set_divisor()
228 static int pwm_samsung_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_request()
249 static void pwm_samsung_free(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_free()
254 static int pwm_samsung_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_enable()
280 static void pwm_samsung_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_disable()
306 struct pwm_device *pwm) in pwm_samsung_manual_update()
317 static int __pwm_samsung_config(struct pwm_chip *chip, struct pwm_device *pwm, in __pwm_samsung_config()
390 static int pwm_samsung_config(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_samsung_config()
421 struct pwm_device *pwm, in pwm_samsung_set_polarity()
[all …]
H A 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()
293 struct pwm_device *pwm = pc->chip.pwms; in ecap_pwm_suspend() local
307 struct pwm_device *pwm = pc->chip.pwms; in ecap_pwm_resume() local
H A Dpwm-jz4740.c50 static int jz4740_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_request()
79 static void jz4740_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_free()
87 static int jz4740_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_enable()
100 static void jz4740_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_disable()
122 static int jz4740_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in jz4740_pwm_apply()
H A Dpwm-berlin.c73 static int berlin_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in berlin_pwm_request()
84 static void berlin_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in berlin_pwm_free()
91 static int berlin_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in berlin_pwm_config()
130 struct pwm_device *pwm, in berlin_pwm_set_polarity()
148 static int berlin_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in berlin_pwm_enable()
161 struct pwm_device *pwm) in berlin_pwm_disable()
171 static int berlin_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in berlin_pwm_apply()
H A 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()
472 struct pwm_device *pwm = &fpc->chip.pwms[i]; in fsl_pwm_suspend() local
495 struct pwm_device *pwm = &fpc->chip.pwms[i]; in fsl_pwm_resume() local
H A 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()
H A Dpwm-lp3943.c61 static int lp3943_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_request()
87 static void lp3943_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_free()
95 static int lp3943_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lp3943_pwm_config()
159 static int lp3943_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_enable()
178 static void lp3943_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_disable()
191 static int lp3943_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in lp3943_pwm_apply()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
238 static int lpc18xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity pola… in lpc18xx_pwm_enable()
273 static void lpc18xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_disable()
284 static int lpc18xx_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_request()
305 static void lpc18xx_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_free()
313 static int lpc18xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in lpc18xx_pwm_apply()
H A 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()
H A Dpwm-renesas-tpu.c210 static int tpu_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_request()
236 static void tpu_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_free()
244 static int tpu_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in tpu_pwm_config()
353 static int tpu_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in tpu_pwm_set_polarity()
363 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()
395 static int tpu_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in tpu_pwm_apply()
H A Dpwm-cros-ec.c46 static int cros_ec_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in cros_ec_pwm_request()
59 static void cros_ec_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in cros_ec_pwm_free()
157 static int cros_ec_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in cros_ec_pwm_apply()
187 static int cros_ec_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in cros_ec_pwm_get_state()
224 struct pwm_device *pwm; in cros_ec_pwm_xlate() local
H A 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()
/openbmc/linux/include/linux/
H A Dpwm.h83 unsigned int pwm; member
102 static inline void pwm_get_state(const struct pwm_device *pwm, in pwm_get_state()
108 static inline bool pwm_is_enabled(const struct pwm_device *pwm) in pwm_is_enabled()
117 static inline void pwm_set_period(struct pwm_device *pwm, u64 period) in pwm_set_period()
123 static inline u64 pwm_get_period(const struct pwm_device *pwm) in pwm_get_period()
132 static inline void pwm_set_duty_cycle(struct pwm_device *pwm, unsigned int duty) in pwm_set_duty_cycle()
138 static inline u64 pwm_get_duty_cycle(const struct pwm_device *pwm) in pwm_get_duty_cycle()
147 static inline enum pwm_polarity pwm_get_polarity(const struct pwm_device *pwm) in pwm_get_polarity()
156 static inline void pwm_get_args(const struct pwm_device *pwm, in pwm_get_args()
179 static inline void pwm_init_state(const struct pwm_device *pwm, in pwm_init_state()
[all …]
/openbmc/u-boot/drivers/pwm/
H A Dpwm-imx.c18 struct pwm_regs *pwm = (struct pwm_regs *)pwm_id_to_reg(pwm_id); in pwm_init() local
29 struct pwm_regs *pwm = (struct pwm_regs *)pwm_id_to_reg(pwm_id); in pwm_config() local
53 struct pwm_regs *pwm = (struct pwm_regs *)pwm_id_to_reg(pwm_id); in pwm_enable() local
64 struct pwm_regs *pwm = (struct pwm_regs *)pwm_id_to_reg(pwm_id); in pwm_disable() local
/openbmc/u-boot/arch/arm/cpu/armv7/s5p-common/
H A Dpwm.c17 const struct s5p_timer *pwm = in pwm_enable() local
31 const struct s5p_timer *pwm = in pwm_disable() local
60 const struct s5p_timer *pwm = in pwm_config() local
117 const struct s5p_timer *pwm = in pwm_init() local

12345678910>>...12