/linux/drivers/pwm/ |
A D | core.c | 127 struct pwm_device *pwm; in of_pwm_xlate_with_flags() local 244 struct pwm_device *pwm; in pwmchip_add() local 394 struct pwm_device *pwm; in pwm_request_from_chip() local 418 void pwm_free(struct pwm_device *pwm) in pwm_free() 727 struct pwm_device *pwm) in pwm_device_link_add() 775 struct pwm_device *pwm = NULL; in of_pwm_get() local 856 struct pwm_device *pwm; in acpi_pwm_get() local 940 struct pwm_device *pwm; in pwm_get() local 1051 void pwm_put(struct pwm_device *pwm) in pwm_put() 1093 struct pwm_device *pwm; in devm_pwm_get() local [all …]
|
A D | sysfs.c | 19 struct pwm_device *pwm; member 53 struct pwm_device *pwm = export->pwm; in period_store() local 88 struct pwm_device *pwm = export->pwm; in duty_cycle_store() local 123 struct pwm_device *pwm = export->pwm; in enable_store() local 182 struct pwm_device *pwm = export->pwm; in polarity_store() local 315 struct pwm_device *pwm; in export_store() local 378 struct pwm_device *pwm, in pwm_class_get_state() 401 struct pwm_device *pwm, in pwm_class_apply_state() 419 struct pwm_device *pwm = &chip->pwms[i]; in pwm_class_resume_npwm() local 443 struct pwm_device *pwm = &chip->pwms[i]; in pwm_class_suspend() local [all …]
|
A D | pwm-lpss.c | 37 static inline u32 pwm_lpss_read(const struct pwm_device *pwm) in pwm_lpss_read() 44 static inline void pwm_lpss_write(const struct pwm_device *pwm, u32 value) in pwm_lpss_write() 51 static int pwm_lpss_wait_for_update(struct pwm_device *pwm) in pwm_lpss_wait_for_update() 77 static inline int pwm_lpss_is_updating(struct pwm_device *pwm) in pwm_lpss_is_updating() 87 static void pwm_lpss_prepare(struct pwm_lpss_chip *lpwm, struct pwm_device *pwm, in pwm_lpss_prepare() 122 static inline void pwm_lpss_cond_enable(struct pwm_device *pwm, bool cond) in pwm_lpss_cond_enable() 129 struct pwm_device *pwm, in pwm_lpss_prepare_enable() 148 static int pwm_lpss_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_lpss_apply() 171 static void pwm_lpss_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_lpss_get_state()
|
A D | pwm-twl.c | 32 #define TWL4030_PWM_TOGGLE(pwm, x) ((x) << (pwm)) argument 46 #define TWL6030_PWM_TOGGLE(pwm, x) ((x) << (pwm * 3)) argument 60 static int twl_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl_pwm_config() 94 static int twl4030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_enable() 124 static void twl4030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_disable() 153 static int twl4030_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_request() 191 static void twl4030_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_free() 221 static int twl6030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwm_enable() 244 static void twl6030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwm_disable()
|
A D | pwm-vt8500.c | 31 #define REG_CTRL(pwm) (((pwm) << 4) + 0x00) argument 32 #define REG_SCALAR(pwm) (((pwm) << 4) + 0x04) argument 33 #define REG_PERIOD(pwm) (((pwm) << 4) + 0x08) argument 34 #define REG_DUTY(pwm) (((pwm) << 4) + 0x0C) argument 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()
|
A D | pwm-renesas-tpu.c | 92 static void tpu_pwm_write(struct tpu_pwm_device *pwm, int reg_nr, u16 value) in tpu_pwm_write() 100 static void tpu_pwm_set_pin(struct tpu_pwm_device *pwm, in tpu_pwm_set_pin() 127 static void tpu_pwm_start_stop(struct tpu_pwm_device *pwm, int start) in tpu_pwm_start_stop() 144 static int tpu_pwm_timer_start(struct tpu_pwm_device *pwm) in tpu_pwm_timer_start() 191 static void tpu_pwm_timer_stop(struct tpu_pwm_device *pwm) in tpu_pwm_timer_stop() 213 struct tpu_pwm_device *pwm; in tpu_pwm_request() local 238 struct tpu_pwm_device *pwm = pwm_get_chip_data(_pwm); in tpu_pwm_free() local 248 struct tpu_pwm_device *pwm = pwm_get_chip_data(_pwm); in tpu_pwm_config() local 330 struct tpu_pwm_device *pwm = pwm_get_chip_data(_pwm); in tpu_pwm_set_polarity() local 339 struct tpu_pwm_device *pwm = pwm_get_chip_data(_pwm); in tpu_pwm_enable() local [all …]
|
A D | pwm-twl-led.c | 58 static int twl4030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwmled_config() 92 static int twl4030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwmled_enable() 117 struct pwm_device *pwm) in twl4030_pwmled_disable() 140 static int twl6030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwmled_config() 157 static int twl6030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_enable() 184 struct pwm_device *pwm) in twl6030_pwmled_disable() 209 static int twl6030_pwmled_request(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_request() 235 static void twl6030_pwmled_free(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_free()
|
A D | pwm-tiecap.c | 50 static int ecap_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in ecap_pwm_config() 108 static int ecap_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in ecap_pwm_set_polarity() 132 static int ecap_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in ecap_pwm_enable() 151 static void ecap_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in ecap_pwm_disable() 168 static int ecap_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in ecap_pwm_apply() 295 struct pwm_device *pwm = pc->chip.pwms; in ecap_pwm_suspend() local 309 struct pwm_device *pwm = pc->chip.pwms; in ecap_pwm_resume() local
|
A D | pwm-samsung.c | 121 struct pwm_device *pwm) in __pwm_samsung_manual_update() 134 static void pwm_samsung_set_divisor(struct samsung_pwm_chip *pwm, in pwm_samsung_set_divisor() 228 static int pwm_samsung_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_request() 249 static void pwm_samsung_free(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_free() 254 static int pwm_samsung_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_enable() 280 static void pwm_samsung_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_disable() 306 struct pwm_device *pwm) in pwm_samsung_manual_update() 317 static int __pwm_samsung_config(struct pwm_chip *chip, struct pwm_device *pwm, in __pwm_samsung_config() 398 static int pwm_samsung_config(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_samsung_config() 429 struct pwm_device *pwm, in pwm_samsung_set_polarity() [all …]
|
A D | pwm-clps711x.c | 43 static unsigned int clps711x_get_duty(struct pwm_device *pwm, unsigned int v) in clps711x_get_duty() 49 static int clps711x_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in clps711x_pwm_request() 63 static int clps711x_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in clps711x_pwm_config() 78 static int clps711x_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in clps711x_pwm_enable() 89 static void clps711x_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in clps711x_pwm_disable()
|
A D | pwm-jz4740.c | 50 static int jz4740_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_request() 78 static void jz4740_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_free() 86 static int jz4740_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_enable() 100 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()
|
A D | pwm-berlin.c | 72 static int berlin_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in berlin_pwm_request() 83 static void berlin_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in berlin_pwm_free() 90 static int berlin_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in berlin_pwm_config() 129 struct pwm_device *pwm, in berlin_pwm_set_polarity() 147 static int berlin_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in berlin_pwm_enable() 160 struct pwm_device *pwm) in berlin_pwm_disable() 170 static int berlin_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in berlin_pwm_apply()
|
A D | pwm-fsl-ftm.c | 89 static int fsl_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in fsl_pwm_request() 105 static void fsl_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in fsl_pwm_free() 205 struct pwm_device *pwm) in fsl_pwm_is_any_pwm_enabled() 217 struct pwm_device *pwm) in fsl_pwm_is_other_pwm_enabled() 229 struct pwm_device *pwm, in fsl_pwm_apply_config() 300 static int fsl_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in fsl_pwm_apply() 477 struct pwm_device *pwm = &fpc->chip.pwms[i]; in fsl_pwm_suspend() local 500 struct pwm_device *pwm = &fpc->chip.pwms[i]; in fsl_pwm_resume() local
|
A D | pwm-lpc18xx-sct.c | 125 struct pwm_device *pwm, in lpc18xx_pwm_set_conflict_res() 163 struct pwm_device *pwm, int duty_ns) in lpc18xx_pwm_config_duty() 181 static int lpc18xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lpc18xx_pwm_config() 227 struct pwm_device *pwm, in lpc18xx_pwm_set_polarity() 233 static int lpc18xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_enable() 268 static void lpc18xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_disable() 279 static int lpc18xx_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_request() 300 static void lpc18xx_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_free() 327 struct pwm_device *pwm; in lpc18xx_pwm_probe() local
|
A D | pwm-hibvt.c | 83 static void hibvt_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in hibvt_pwm_enable() 91 static void hibvt_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in hibvt_pwm_disable() 99 static void hibvt_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_config() 118 struct pwm_device *pwm, in hibvt_pwm_set_polarity() 131 static void hibvt_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_get_state() 151 static int hibvt_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_apply()
|
A D | pwm-meson.c | 120 static int meson_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in meson_pwm_request() 153 static void meson_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in meson_pwm_free() 161 static int meson_pwm_calc(struct meson_pwm *meson, struct pwm_device *pwm, in meson_pwm_calc() 225 static void meson_pwm_enable(struct meson_pwm *meson, struct pwm_device *pwm) in meson_pwm_enable() 253 static void meson_pwm_disable(struct meson_pwm *meson, struct pwm_device *pwm) in meson_pwm_disable() 267 static int meson_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in meson_pwm_apply() 311 struct pwm_device *pwm, u32 cnt) in meson_pwm_cnt_to_ns() 330 static void meson_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in meson_pwm_get_state()
|
A D | pwm-atmel-tcb.c | 72 struct pwm_device *pwm, in atmel_tcb_pwm_set_polarity() 83 struct pwm_device *pwm) in atmel_tcb_pwm_request() 139 static void atmel_tcb_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in atmel_tcb_pwm_free() 149 static void atmel_tcb_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in atmel_tcb_pwm_disable() 206 static int atmel_tcb_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in atmel_tcb_pwm_enable() 290 static int atmel_tcb_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in atmel_tcb_pwm_config() 368 static int atmel_tcb_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in atmel_tcb_pwm_apply()
|
A D | pwm-pxa.c | 60 static int pxa_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in pxa_pwm_config() 104 static int pxa_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pxa_pwm_enable() 111 static void pxa_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pxa_pwm_disable() 154 struct pwm_device *pwm; in pxa_pwm_of_xlate() local
|
A D | pwm-cros-ec.c | 41 static int cros_ec_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in cros_ec_pwm_request() 54 static void cros_ec_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in cros_ec_pwm_free() 115 static int cros_ec_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in cros_ec_pwm_apply() 145 static void cros_ec_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in cros_ec_pwm_get_state() 179 struct pwm_device *pwm; in cros_ec_pwm_xlate() local
|
A D | pwm-stmpe.c | 39 static int stmpe_24xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in stmpe_24xx_pwm_enable() 65 struct pwm_device *pwm) in stmpe_24xx_pwm_disable() 99 static int stmpe_24xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in stmpe_24xx_pwm_config() 272 struct stmpe_pwm *pwm; in stmpe_pwm_probe() local
|
A D | pwm-lp3943.c | 61 static int lp3943_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_request() 87 static void lp3943_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_free() 95 static int lp3943_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lp3943_pwm_config() 153 static int lp3943_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_enable() 172 static void lp3943_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_disable()
|
A D | pwm-mediatek.c | 73 struct pwm_device *pwm) in pwm_mediatek_clk_enable() 101 struct pwm_device *pwm) in pwm_mediatek_clk_disable() 117 static int pwm_mediatek_config(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_mediatek_config() 172 static int pwm_mediatek_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_mediatek_enable() 189 static void pwm_mediatek_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_mediatek_disable()
|
A D | pwm-sifive.c | 61 static int pwm_sifive_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_sifive_request() 72 static void pwm_sifive_free(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_sifive_free() 109 static void pwm_sifive_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sifive_get_state() 149 static int pwm_sifive_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sifive_apply() 293 struct pwm_device *pwm; in pwm_sifive_remove() local
|
/linux/include/linux/ |
A D | pwm.h | 86 unsigned int pwm; member 159 static inline void pwm_get_args(const struct pwm_device *pwm, in pwm_get_args() 366 static inline int pwm_enable(struct pwm_device *pwm) in pwm_enable() 385 static inline void pwm_disable(struct pwm_device *pwm) in pwm_disable() 436 static inline void pwm_free(struct pwm_device *pwm) in pwm_free() 441 static inline int pwm_apply_state(struct pwm_device *pwm, in pwm_apply_state() 460 static inline int pwm_capture(struct pwm_device *pwm, in pwm_capture() 467 static inline int pwm_enable(struct pwm_device *pwm) in pwm_enable() 473 static inline void pwm_disable(struct pwm_device *pwm) in pwm_disable() 521 static inline void pwm_put(struct pwm_device *pwm) in pwm_put() [all …]
|
/linux/drivers/staging/greybus/ |
A D | pwm.c | 22 struct pwm_chip *pwm; member 190 static int gb_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in gb_pwm_request() 197 static void gb_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in gb_pwm_free() 207 static int gb_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in gb_pwm_config() 215 static int gb_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in gb_pwm_set_polarity() 223 static int gb_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in gb_pwm_enable() 230 static void gb_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in gb_pwm_disable() 252 struct pwm_chip *pwm; in gb_pwm_probe() local
|