Lines Matching refs:stm32_pwm

29 struct stm32_pwm {  struct
41 static inline struct stm32_pwm *to_stm32_pwm_dev(struct pwm_chip *chip) in to_stm32_pwm_dev() argument
43 return container_of(chip, struct stm32_pwm, chip); in to_stm32_pwm_dev()
46 static u32 active_channels(struct stm32_pwm *dev) in active_channels()
55 static int write_ccrx(struct stm32_pwm *dev, int ch, u32 value) in write_ccrx()
108 static int stm32_pwm_raw_capture(struct stm32_pwm *priv, struct pwm_device *pwm, in stm32_pwm_raw_capture()
172 struct stm32_pwm *priv = to_stm32_pwm_dev(chip); in stm32_pwm_capture()
322 static int stm32_pwm_config(struct stm32_pwm *priv, int ch, in stm32_pwm_config()
385 static int stm32_pwm_set_polarity(struct stm32_pwm *priv, int ch, in stm32_pwm_set_polarity()
400 static int stm32_pwm_enable(struct stm32_pwm *priv, int ch) in stm32_pwm_enable()
425 static void stm32_pwm_disable(struct stm32_pwm *priv, int ch) in stm32_pwm_disable()
447 struct stm32_pwm *priv = to_stm32_pwm_dev(chip); in stm32_pwm_apply()
474 struct stm32_pwm *priv = to_stm32_pwm_dev(chip); in stm32_pwm_apply_locked()
491 static int stm32_pwm_set_breakinput(struct stm32_pwm *priv, in stm32_pwm_set_breakinput()
513 static int stm32_pwm_apply_breakinputs(struct stm32_pwm *priv) in stm32_pwm_apply_breakinputs()
527 static int stm32_pwm_probe_breakinputs(struct stm32_pwm *priv, in stm32_pwm_probe_breakinputs()
563 static void stm32_pwm_detect_complementary(struct stm32_pwm *priv) in stm32_pwm_detect_complementary()
579 static int stm32_pwm_detect_channels(struct stm32_pwm *priv) in stm32_pwm_detect_channels()
613 struct stm32_pwm *priv; in stm32_pwm_probe()
649 struct stm32_pwm *priv = platform_get_drvdata(pdev); in stm32_pwm_remove()
662 struct stm32_pwm *priv = dev_get_drvdata(dev); in stm32_pwm_suspend()
683 struct stm32_pwm *priv = dev_get_drvdata(dev); in stm32_pwm_resume()