Lines Matching defs:fsl_pwm_chip
43 struct fsl_pwm_chip {
57 static inline struct fsl_pwm_chip *to_fsl_chip(struct pwm_chip *chip)
59 return container_of(chip, struct fsl_pwm_chip, chip);
62 static void ftm_clear_write_protection(struct fsl_pwm_chip *fpc)
72 static void ftm_set_write_protection(struct fsl_pwm_chip *fpc)
92 struct fsl_pwm_chip *fpc = to_fsl_chip(chip);
107 struct fsl_pwm_chip *fpc = to_fsl_chip(chip);
119 static unsigned int fsl_pwm_ticks_to_ns(struct fsl_pwm_chip *fpc,
132 static bool fsl_pwm_calculate_period_clk(struct fsl_pwm_chip *fpc,
159 static bool fsl_pwm_calculate_period(struct fsl_pwm_chip *fpc,
190 static unsigned int fsl_pwm_calculate_duty(struct fsl_pwm_chip *fpc,
204 static bool fsl_pwm_is_any_pwm_enabled(struct fsl_pwm_chip *fpc,
216 static bool fsl_pwm_is_other_pwm_enabled(struct fsl_pwm_chip *fpc,
228 static int fsl_pwm_apply_config(struct fsl_pwm_chip *fpc,
303 struct fsl_pwm_chip *fpc = to_fsl_chip(chip);
361 static int fsl_pwm_init(struct fsl_pwm_chip *fpc)
401 struct fsl_pwm_chip *fpc;
474 struct fsl_pwm_chip *fpc = platform_get_drvdata(pdev);
482 struct fsl_pwm_chip *fpc = dev_get_drvdata(dev);
508 struct fsl_pwm_chip *fpc = dev_get_drvdata(dev);