/linux/drivers/pwm/ |
H 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 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() [all …]
|
H A D | pwm-twl-led.c | 69 static int twl4030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwmled_config() 103 static int twl4030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwmled_enable() 124 struct pwm_device *pwm) in twl4030_pwmled_disable() 142 static int twl4030_pwmled_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwmled_apply() 180 static int twl6030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwmled_config() 197 static int twl6030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_enable() 220 struct pwm_device *pwm) in twl6030_pwmled_disable() 240 static int twl6030_pwmled_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwmled_apply() 266 static int twl6030_pwmled_request(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_request() 288 static void twl6030_pwmled_free(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_free()
|
H A D | pwm-vt8500.c | 28 #define REG_CTRL(pwm) (((pwm) << 4) + 0x00) argument 29 #define REG_SCALAR(pwm) (((pwm) << 4) + 0x04) argument 30 #define REG_PERIOD(pwm) (((pwm) << 4) + 0x08) argument 31 #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() 179 static int vt8500_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in vt8500_pwm_apply()
|
H A D | pwm-sophgo-sg2042.c | 78 static void pwm_sg2042_set_dutycycle(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sg2042_set_dutycycle() 98 static int pwm_sg2042_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sg2042_apply() 116 static int pwm_sg2042_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sg2042_get_state() 143 static void pwm_sg2044_set_outputen(struct sg2042_pwm_ddata *ddata, struct pwm_device *pwm, in pwm_sg2044_set_outputen() 158 static void pwm_sg2044_set_outputdir(struct sg2042_pwm_ddata *ddata, struct pwm_device *pwm, in pwm_sg2044_set_outputdir() 173 static void pwm_sg2044_set_polarity(struct sg2042_pwm_ddata *ddata, struct pwm_device *pwm, in pwm_sg2044_set_polarity() 188 static int pwm_sg2044_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sg2044_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() local
|
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-dwc-core.c | 24 static void __dwc_pwm_set_enable(struct dwc_pwm *dwc, int pwm, int enabled) in __dwc_pwm_set_enable() 39 struct pwm_device *pwm, in __dwc_pwm_configure_timer() 98 static int dwc_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in dwc_pwm_apply() 120 static int dwc_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in dwc_pwm_get_state()
|
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-lpc18xx-sct.c | 125 struct pwm_device *pwm, in lpc18xx_pwm_set_conflict_res() 164 struct pwm_device *pwm, u64 duty_ns) in lpc18xx_pwm_config_duty() 185 static int lpc18xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lpc18xx_pwm_config() 223 static int lpc18xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity pola… in lpc18xx_pwm_enable() 258 static void lpc18xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_disable() 269 static int lpc18xx_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_request() 290 static void lpc18xx_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_free() 298 static int lpc18xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in lpc18xx_pwm_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-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-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-rz-mtu3.c | 165 static int rz_mtu3_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in rz_mtu3_pwm_request() 195 static void rz_mtu3_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in rz_mtu3_pwm_free() 212 static int rz_mtu3_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in rz_mtu3_pwm_enable() 244 static void rz_mtu3_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in rz_mtu3_pwm_disable() 269 static int rz_mtu3_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in rz_mtu3_pwm_get_state() 318 static int rz_mtu3_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in rz_mtu3_pwm_config() 405 static int rz_mtu3_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in rz_mtu3_pwm_apply()
|
H A D | pwm-argon-fan-hat.c | 22 struct pwm_device *pwm, in argon_fan_hat_round_waveform_tohw() 37 struct pwm_device *pwm, in argon_fan_hat_round_waveform_fromhw() 51 struct pwm_device *pwm, in argon_fan_hat_write_waveform()
|
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-sifive.c | 77 static int pwm_sifive_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_sifive_request() 88 static void pwm_sifive_free(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_sifive_free() 126 static int pwm_sifive_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sifive_get_state() 153 static int pwm_sifive_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sifive_apply() 344 struct pwm_device *pwm; in pwm_sifive_remove() local
|
H A D | pwm-atmel-tcb.c | 69 struct pwm_device *pwm) in atmel_tcb_pwm_request() 115 static void atmel_tcb_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in atmel_tcb_pwm_free() 122 static void atmel_tcb_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm, in atmel_tcb_pwm_disable() 176 static int atmel_tcb_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm, in atmel_tcb_pwm_enable() 258 static int atmel_tcb_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in atmel_tcb_pwm_config() 331 static int atmel_tcb_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in atmel_tcb_pwm_apply()
|
H A D | pwm-rzg2l-gpt.c | 131 static int rzg2l_gpt_request(struct pwm_chip *chip, struct pwm_device *pwm) in rzg2l_gpt_request() 142 static void rzg2l_gpt_free(struct pwm_chip *chip, struct pwm_device *pwm) in rzg2l_gpt_free() 167 struct pwm_device *pwm) in rzg2l_gpt_enable() 185 struct pwm_device *pwm) in rzg2l_gpt_disable() 218 static int rzg2l_gpt_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in rzg2l_gpt_get_state() 254 static int rzg2l_gpt_config(struct pwm_chip *chip, struct pwm_device *pwm, in rzg2l_gpt_config() 337 static int rzg2l_gpt_apply(struct pwm_chip *chip, struct pwm_device *pwm, in rzg2l_gpt_apply()
|
H A D | pwm-adp5585.c | 48 static int pwm_adp5585_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_adp5585_request() 58 static void pwm_adp5585_free(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_adp5585_free() 68 struct pwm_device *pwm, in pwm_adp5585_apply() 121 struct pwm_device *pwm, in pwm_adp5585_get_state()
|
H A D | pwm-microchip-core.c | 68 static void mchp_core_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm, in mchp_core_pwm_enable() 148 static void mchp_core_pwm_apply_duty(struct pwm_chip *chip, struct pwm_device *pwm, in mchp_core_pwm_apply_duty() 271 static int mchp_core_pwm_apply_locked(struct pwm_chip *chip, struct pwm_device *pwm, in mchp_core_pwm_apply_locked() 357 static int mchp_core_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in mchp_core_pwm_apply() 367 static int mchp_core_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in mchp_core_pwm_get_state()
|
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-meson.c | 134 static int meson_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in meson_pwm_request() 151 static void meson_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in meson_pwm_free() 159 static int meson_pwm_calc(struct pwm_chip *chip, struct pwm_device *pwm, in meson_pwm_calc() 224 static void meson_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in meson_pwm_enable() 265 static void meson_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in meson_pwm_disable() 291 static int meson_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in meson_pwm_apply() 339 static int meson_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in meson_pwm_get_state()
|
H A D | pwm-axi-pwmgen.c | 72 struct pwm_device *pwm, in axi_pwmgen_round_waveform_tohw() 121 static int axi_pwmgen_round_waveform_fromhw(struct pwm_chip *chip, struct pwm_device *pwm, in axi_pwmgen_round_waveform_fromhw() 140 struct pwm_device *pwm, in axi_pwmgen_write_waveform() 165 struct pwm_device *pwm, in axi_pwmgen_read_waveform()
|
H A D | pwm-sti.c | 156 static int sti_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in sti_pwm_config() 242 static int sti_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in sti_pwm_enable() 275 static void sti_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in sti_pwm_disable() 288 static void sti_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in sti_pwm_free() 295 static int sti_pwm_capture(struct pwm_chip *chip, struct pwm_device *pwm, in sti_pwm_capture() 376 static int sti_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in sti_pwm_apply()
|