Lines Matching refs:fsl_pwm_chip
42 struct fsl_pwm_chip {
56 static inline struct fsl_pwm_chip *to_fsl_chip(struct pwm_chip *chip)
58 return container_of(chip, struct fsl_pwm_chip, chip);
61 static void ftm_clear_write_protection(struct fsl_pwm_chip *fpc)
70 static void ftm_set_write_protection(struct fsl_pwm_chip *fpc)
90 struct fsl_pwm_chip *fpc = to_fsl_chip(chip);
104 struct fsl_pwm_chip *fpc = to_fsl_chip(chip);
115 static unsigned int fsl_pwm_ticks_to_ns(struct fsl_pwm_chip *fpc,
128 static bool fsl_pwm_calculate_period_clk(struct fsl_pwm_chip *fpc,
155 static bool fsl_pwm_calculate_period(struct fsl_pwm_chip *fpc,
186 static unsigned int fsl_pwm_calculate_duty(struct fsl_pwm_chip *fpc,
200 static bool fsl_pwm_is_any_pwm_enabled(struct fsl_pwm_chip *fpc,
212 static bool fsl_pwm_is_other_pwm_enabled(struct fsl_pwm_chip *fpc,
224 static int fsl_pwm_apply_config(struct fsl_pwm_chip *fpc,
299 struct fsl_pwm_chip *fpc = to_fsl_chip(chip);
356 static int fsl_pwm_init(struct fsl_pwm_chip *fpc)
396 struct fsl_pwm_chip *fpc;
465 struct fsl_pwm_chip *fpc = dev_get_drvdata(dev);
491 struct fsl_pwm_chip *fpc = dev_get_drvdata(dev);