Lines Matching refs:pwm_device
83 struct pwm_device { struct
108 static inline void pwm_get_state(const struct pwm_device *pwm, in pwm_get_state() argument
114 static inline bool pwm_is_enabled(const struct pwm_device *pwm) in pwm_is_enabled()
123 static inline void pwm_set_period(struct pwm_device *pwm, u64 period) in pwm_set_period()
129 static inline u64 pwm_get_period(const struct pwm_device *pwm) in pwm_get_period()
138 static inline void pwm_set_duty_cycle(struct pwm_device *pwm, unsigned int duty) in pwm_set_duty_cycle()
144 static inline u64 pwm_get_duty_cycle(const struct pwm_device *pwm) in pwm_get_duty_cycle()
153 static inline enum pwm_polarity pwm_get_polarity(const struct pwm_device *pwm) in pwm_get_polarity()
162 static inline void pwm_get_args(const struct pwm_device *pwm, in pwm_get_args()
185 static inline void pwm_init_state(const struct pwm_device *pwm, in pwm_init_state()
273 int (*request)(struct pwm_chip *chip, struct pwm_device *pwm);
274 void (*free)(struct pwm_chip *chip, struct pwm_device *pwm);
275 int (*capture)(struct pwm_chip *chip, struct pwm_device *pwm,
277 int (*apply)(struct pwm_chip *chip, struct pwm_device *pwm,
279 void (*get_state)(struct pwm_chip *chip, struct pwm_device *pwm,
284 int (*config)(struct pwm_chip *chip, struct pwm_device *pwm,
286 int (*set_polarity)(struct pwm_chip *chip, struct pwm_device *pwm,
288 int (*enable)(struct pwm_chip *chip, struct pwm_device *pwm);
289 void (*disable)(struct pwm_chip *chip, struct pwm_device *pwm);
311 struct pwm_device * (*of_xlate)(struct pwm_chip *pc,
317 struct pwm_device *pwms;
334 struct pwm_device *pwm_request(int pwm_id, const char *label);
335 void pwm_free(struct pwm_device *pwm);
336 int pwm_apply_state(struct pwm_device *pwm, const struct pwm_state *state);
337 int pwm_adjust_config(struct pwm_device *pwm);
347 static inline int pwm_config(struct pwm_device *pwm, int duty_ns, in pwm_config()
373 static inline int pwm_enable(struct pwm_device *pwm) in pwm_enable()
392 static inline void pwm_disable(struct pwm_device *pwm) in pwm_disable()
408 int pwm_capture(struct pwm_device *pwm, struct pwm_capture *result,
410 int pwm_set_chip_data(struct pwm_device *pwm, void *data);
411 void *pwm_get_chip_data(struct pwm_device *pwm);
418 struct pwm_device *pwm_request_from_chip(struct pwm_chip *chip,
422 struct pwm_device *of_pwm_xlate_with_flags(struct pwm_chip *pc,
425 struct pwm_device *pwm_get(struct device *dev, const char *con_id);
426 struct pwm_device *of_pwm_get(struct device *dev, struct device_node *np,
428 void pwm_put(struct pwm_device *pwm);
430 struct pwm_device *devm_pwm_get(struct device *dev, const char *con_id);
431 struct pwm_device *devm_of_pwm_get(struct device *dev, struct device_node *np,
433 struct pwm_device *devm_fwnode_pwm_get(struct device *dev,
437 static inline struct pwm_device *pwm_request(int pwm_id, const char *label) in pwm_request()
442 static inline void pwm_free(struct pwm_device *pwm) in pwm_free()
446 static inline int pwm_apply_state(struct pwm_device *pwm, in pwm_apply_state()
452 static inline int pwm_adjust_config(struct pwm_device *pwm) in pwm_adjust_config()
457 static inline int pwm_config(struct pwm_device *pwm, int duty_ns, in pwm_config()
463 static inline int pwm_capture(struct pwm_device *pwm, in pwm_capture()
470 static inline int pwm_enable(struct pwm_device *pwm) in pwm_enable()
475 static inline void pwm_disable(struct pwm_device *pwm) in pwm_disable()
479 static inline int pwm_set_chip_data(struct pwm_device *pwm, void *data) in pwm_set_chip_data()
484 static inline void *pwm_get_chip_data(struct pwm_device *pwm) in pwm_get_chip_data()
504 static inline struct pwm_device *pwm_request_from_chip(struct pwm_chip *chip, in pwm_request_from_chip()
511 static inline struct pwm_device *pwm_get(struct device *dev, in pwm_get()
517 static inline struct pwm_device *of_pwm_get(struct device *dev, in of_pwm_get()
524 static inline void pwm_put(struct pwm_device *pwm) in pwm_put()
528 static inline struct pwm_device *devm_pwm_get(struct device *dev, in devm_pwm_get()
534 static inline struct pwm_device *devm_of_pwm_get(struct device *dev, in devm_of_pwm_get()
541 static inline struct pwm_device *
549 static inline void pwm_apply_args(struct pwm_device *pwm) in pwm_apply_args()