Lines Matching refs:pwm_chip
13 struct pwm_chip;
110 struct pwm_chip *chip;
288 int (*request)(struct pwm_chip *chip, struct pwm_device *pwm);
289 void (*free)(struct pwm_chip *chip, struct pwm_device *pwm);
290 int (*capture)(struct pwm_chip *chip, struct pwm_device *pwm,
294 int (*round_waveform_tohw)(struct pwm_chip *chip, struct pwm_device *pwm,
296 int (*round_waveform_fromhw)(struct pwm_chip *chip, struct pwm_device *pwm,
298 int (*read_waveform)(struct pwm_chip *chip, struct pwm_device *pwm,
300 int (*write_waveform)(struct pwm_chip *chip, struct pwm_device *pwm,
303 int (*apply)(struct pwm_chip *chip, struct pwm_device *pwm,
305 int (*get_state)(struct pwm_chip *chip, struct pwm_device *pwm,
324 struct pwm_chip { struct
331 struct pwm_device * (*of_xlate)(struct pwm_chip *chip, argument
357 static inline bool pwmchip_supports_waveform(struct pwm_chip *chip) in pwmchip_supports_waveform()
367 static inline struct device *pwmchip_parent(const struct pwm_chip *chip) in pwmchip_parent()
372 static inline void *pwmchip_get_drvdata(struct pwm_chip *chip) in pwmchip_get_drvdata()
377 static inline void pwmchip_set_drvdata(struct pwm_chip *chip, void *data) in pwmchip_set_drvdata()
473 void pwmchip_put(struct pwm_chip *chip);
474 struct pwm_chip *pwmchip_alloc(struct device *parent, unsigned int npwm, size_t sizeof_priv);
475 struct pwm_chip *devm_pwmchip_alloc(struct device *parent, unsigned int npwm, size_t sizeof_priv);
477 int __pwmchip_add(struct pwm_chip *chip, struct module *owner);
479 void pwmchip_remove(struct pwm_chip *chip);
481 int __devm_pwmchip_add(struct device *dev, struct pwm_chip *chip, struct module *owner);
484 struct pwm_device *of_pwm_xlate_with_flags(struct pwm_chip *chip,
486 struct pwm_device *of_pwm_single_xlate(struct pwm_chip *chip,
543 static inline void pwmchip_put(struct pwm_chip *chip) in pwmchip_put()
547 static inline struct pwm_chip *pwmchip_alloc(struct device *parent, in pwmchip_alloc()
554 static inline struct pwm_chip *devm_pwmchip_alloc(struct device *parent, in devm_pwmchip_alloc()
561 static inline int pwmchip_add(struct pwm_chip *chip) in pwmchip_add()
566 static inline int pwmchip_remove(struct pwm_chip *chip) in pwmchip_remove()
571 static inline int devm_pwmchip_add(struct device *dev, struct pwm_chip *chip) in devm_pwmchip_add()