/linux/include/linux/ |
H A D | pwm.h | 81 struct pwm_device { struct 102 static inline void pwm_get_state(const struct pwm_device *pwm, in pwm_get_state() argument 108 static inline bool pwm_is_enabled(const struct pwm_device *pwm) in pwm_is_enabled() 117 static inline u64 pwm_get_period(const struct pwm_device *pwm) in pwm_get_period() 126 static inline u64 pwm_get_duty_cycle(const struct pwm_device *pwm) in pwm_get_duty_cycle() 135 static inline enum pwm_polarity pwm_get_polarity(const struct pwm_device *pwm) in pwm_get_polarity() 144 static inline void pwm_get_args(const struct pwm_device *pwm, in pwm_get_args() 167 static inline void pwm_init_state(const struct pwm_device *pwm, in pwm_init_state() 258 int (*request)(struct pwm_chip *chip, struct pwm_device *pwm); 259 void (*free)(struct pwm_chip *chip, struct pwm_device *pwm); [all …]
|
/linux/drivers/pwm/ |
H A D | core.c | 34 static void pwm_apply_debug(struct pwm_device *pwm, in pwm_apply_debug() 164 static int __pwm_apply(struct pwm_device *pwm, const struct pwm_state *state) in __pwm_apply() 220 int pwm_apply_might_sleep(struct pwm_device *pwm, const struct pwm_state *state) in pwm_apply_might_sleep() 255 int pwm_apply_atomic(struct pwm_device *pwm, const struct pwm_state *state) in pwm_apply_atomic() 272 int pwm_adjust_config(struct pwm_device *pwm) in pwm_adjust_config() 328 static int pwm_capture(struct pwm_device *pwm, struct pwm_capture *result, in pwm_capture() 362 static int pwm_device_request(struct pwm_device *pwm, const char *label) in pwm_device_request() 425 static struct pwm_device *pwm_request_from_chip(struct pwm_chip *chip, in pwm_request_from_chip() 429 struct pwm_device *pwm; in pwm_request_from_chip() 446 struct pwm_device * [all …]
|
H A D | pwm-lpss.c | 74 static inline u32 pwm_lpss_read(const struct pwm_device *pwm) in pwm_lpss_read() 81 static inline void pwm_lpss_write(const struct pwm_device *pwm, u32 value) in pwm_lpss_write() 88 static int pwm_lpss_wait_for_update(struct pwm_device *pwm) in pwm_lpss_wait_for_update() 114 static inline int pwm_lpss_is_updating(struct pwm_device *pwm) in pwm_lpss_is_updating() 124 static void pwm_lpss_prepare(struct pwm_lpss_chip *lpwm, struct pwm_device *pwm, in pwm_lpss_prepare() 159 static inline void pwm_lpss_cond_enable(struct pwm_device *pwm, bool cond) in pwm_lpss_cond_enable() 166 struct pwm_device *pwm, in pwm_lpss_prepare_enable() 185 static int pwm_lpss_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_lpss_apply() 208 static int pwm_lpss_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_lpss_get_state()
|
H A D | pwm-twl-led.c | 73 static int twl4030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwmled_config() 107 static int twl4030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwmled_enable() 132 struct pwm_device *pwm) in twl4030_pwmled_disable() 155 static int twl4030_pwmled_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwmled_apply() 193 static int twl6030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwmled_config() 210 static int twl6030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_enable() 237 struct pwm_device *pwm) in twl6030_pwmled_disable() 262 static int twl6030_pwmled_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwmled_apply() 288 static int twl6030_pwmled_request(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_request() 314 static void twl6030_pwmled_free(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_free()
|
H A D | pwm-twl.c | 59 static int twl_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl_pwm_config() 93 static int twl4030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_enable() 123 static void twl4030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_disable() 152 static int twl4030_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_request() 190 static void twl4030_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_free() 220 static int twl6030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwm_enable() 243 static void twl6030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwm_disable() 281 static int twl4030_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwm_apply() 306 static int twl6030_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwm_apply()
|
H A D | pwm-tiecap.c | 49 static int ecap_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in ecap_pwm_config() 107 static int ecap_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in ecap_pwm_set_polarity() 131 static int ecap_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in ecap_pwm_enable() 150 static void ecap_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in ecap_pwm_disable() 167 static int ecap_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in ecap_pwm_apply() 294 struct pwm_device *pwm = chip->pwms; in ecap_pwm_suspend() 308 struct pwm_device *pwm = chip->pwms; in ecap_pwm_resume()
|
H A D | pwm-lpc18xx-sct.c | 127 struct pwm_device *pwm, in lpc18xx_pwm_set_conflict_res() 170 struct pwm_device *pwm, u64 duty_ns) in lpc18xx_pwm_config_duty() 191 static int lpc18xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lpc18xx_pwm_config() 234 static int lpc18xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity pola… in lpc18xx_pwm_enable() 269 static void lpc18xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_disable() 280 static int lpc18xx_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_request() 301 static void lpc18xx_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_free() 309 static int lpc18xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in lpc18xx_pwm_apply()
|
H A D | pwm-lp3943.c | 55 static int lp3943_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_request() 79 static void lp3943_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_free() 87 static int lp3943_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lp3943_pwm_config() 151 static int lp3943_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_enable() 170 static void lp3943_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_disable() 183 static int lp3943_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in lp3943_pwm_apply()
|
H A D | pwm-hibvt.c | 82 static void hibvt_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in hibvt_pwm_enable() 90 static void hibvt_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in hibvt_pwm_disable() 98 static void hibvt_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_config() 117 struct pwm_device *pwm, in hibvt_pwm_set_polarity() 130 static int hibvt_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_get_state() 153 static int hibvt_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_apply()
|
H A D | pwm-imx1.c | 65 struct pwm_device *pwm, u64 duty_ns, u64 period_ns) in pwm_imx1_config() 95 static int pwm_imx1_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_imx1_enable() 112 static void pwm_imx1_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_imx1_disable() 124 static int pwm_imx1_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_imx1_apply()
|
H A D | pwm-lpc32xx.c | 30 static int lpc32xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lpc32xx_pwm_config() 63 static int lpc32xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc32xx_pwm_enable() 80 static void lpc32xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc32xx_pwm_disable() 92 static int lpc32xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in lpc32xx_pwm_apply()
|
H A D | pwm-jz4740.c | 49 static int jz4740_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_request() 79 static void jz4740_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_free() 88 static int jz4740_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_enable() 101 static void jz4740_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_disable() 123 static int jz4740_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in jz4740_pwm_apply()
|
H A D | pwm-samsung.c | 121 struct pwm_device *pwm) in __pwm_samsung_manual_update() 229 static int pwm_samsung_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_request() 245 static int pwm_samsung_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_enable() 271 static void pwm_samsung_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_disable() 297 struct pwm_device *pwm) in pwm_samsung_manual_update() 308 static int __pwm_samsung_config(struct pwm_chip *chip, struct pwm_device *pwm, in __pwm_samsung_config() 380 static int pwm_samsung_config(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_samsung_config() 411 struct pwm_device *pwm, in pwm_samsung_set_polarity() 423 static int pwm_samsung_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_samsung_apply() 607 struct pwm_device *pwm = &chip->pwms[i]; in pwm_samsung_resume()
|
H A D | pwm-adp5585.c | 35 static int pwm_adp5585_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_adp5585_request() 45 static void pwm_adp5585_free(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_adp5585_free() 55 struct pwm_device *pwm, in pwm_adp5585_apply() 111 struct pwm_device *pwm, in pwm_adp5585_get_state()
|
H A D | pwm-mediatek.c | 74 struct pwm_device *pwm) in pwm_mediatek_clk_enable() 102 struct pwm_device *pwm) in pwm_mediatek_clk_disable() 118 static int pwm_mediatek_config(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_mediatek_config() 173 static int pwm_mediatek_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_mediatek_enable() 190 static void pwm_mediatek_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_mediatek_disable() 202 static int pwm_mediatek_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_mediatek_apply()
|
H A D | pwm-renesas-tpu.c | 212 static int tpu_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_request() 234 static void tpu_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_free() 242 static int tpu_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in tpu_pwm_config() 351 static int tpu_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in tpu_pwm_set_polarity() 362 static int tpu_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_enable() 385 static void tpu_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_disable() 396 static int tpu_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in tpu_pwm_apply()
|
H A D | pwm-fsl-ftm.c | 86 static int fsl_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in fsl_pwm_request() 101 static void fsl_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in fsl_pwm_free() 200 struct pwm_device *pwm) in fsl_pwm_is_any_pwm_enabled() 212 struct pwm_device *pwm) in fsl_pwm_is_other_pwm_enabled() 224 struct pwm_device *pwm, in fsl_pwm_apply_config() 296 static int fsl_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in fsl_pwm_apply() 471 struct pwm_device *pwm = &chip->pwms[i]; in fsl_pwm_suspend() 495 struct pwm_device *pwm = &chip->pwms[i]; in fsl_pwm_resume()
|
H A D | pwm-berlin.c | 75 static int berlin_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in berlin_pwm_config() 114 struct pwm_device *pwm, in berlin_pwm_set_polarity() 132 static int berlin_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in berlin_pwm_enable() 145 struct pwm_device *pwm) in berlin_pwm_disable() 155 static int berlin_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in berlin_pwm_apply()
|
H A D | pwm-vt8500.c | 72 static int vt8500_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in vt8500_pwm_config() 126 static int vt8500_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in vt8500_pwm_enable() 146 static void vt8500_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in vt8500_pwm_disable() 160 struct pwm_device *pwm, in vt8500_pwm_set_polarity() 179 static int vt8500_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in vt8500_pwm_apply()
|
H A D | pwm-bcm-kona.c | 100 static int kona_pwmc_config(struct pwm_chip *chip, struct pwm_device *pwm, in kona_pwmc_config() 156 static int kona_pwmc_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in kona_pwmc_set_polarity() 188 static int kona_pwmc_enable(struct pwm_chip *chip, struct pwm_device *pwm) in kona_pwmc_enable() 202 static void kona_pwmc_disable(struct pwm_chip *chip, struct pwm_device *pwm) in kona_pwmc_disable() 224 static int kona_pwmc_apply(struct pwm_chip *chip, struct pwm_device *pwm, in kona_pwmc_apply()
|
H A D | pwm-spear.c | 75 static int spear_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in spear_pwm_config() 135 static int spear_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in spear_pwm_enable() 152 static void spear_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in spear_pwm_disable() 164 static int spear_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in spear_pwm_apply()
|
H A D | pwm-sti.c | 92 struct pwm_device *cur; 157 static int sti_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in sti_pwm_config() 162 struct pwm_device *cur = pc->cur; in sti_pwm_config() 243 static int sti_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in sti_pwm_enable() 279 static void sti_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in sti_pwm_disable() 298 static void sti_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in sti_pwm_free() 305 static int sti_pwm_capture(struct pwm_chip *chip, struct pwm_device *pwm, in sti_pwm_capture() 386 static int sti_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in sti_pwm_apply()
|
H A D | pwm-tiehrpwm.c | 217 static int ehrpwm_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in ehrpwm_pwm_config() 307 struct pwm_device *pwm, in ehrpwm_pwm_set_polarity() 318 static int ehrpwm_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in ehrpwm_pwm_enable() 356 static void ehrpwm_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in ehrpwm_pwm_disable() 390 static void ehrpwm_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in ehrpwm_pwm_free() 403 static int ehrpwm_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in ehrpwm_pwm_apply() 564 struct pwm_device *pwm = &chip->pwms[i]; in ehrpwm_pwm_suspend() 582 struct pwm_device *pwm = &chip->pwms[i]; in ehrpwm_pwm_resume()
|
H A D | pwm-sifive.c | 60 static int pwm_sifive_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_sifive_request() 71 static void pwm_sifive_free(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_sifive_free() 109 static int pwm_sifive_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sifive_get_state() 131 static int pwm_sifive_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sifive_apply() 318 struct pwm_device *pwm; in pwm_sifive_remove()
|
/linux/include/trace/events/ |
H A D | pwm.h | 13 TP_PROTO(struct pwm_device *pwm, const struct pwm_state *state, int err), 45 TP_PROTO(struct pwm_device *pwm, const struct pwm_state *state, int err), 52 TP_PROTO(struct pwm_device *pwm, const struct pwm_state *state, int err),
|