/Linux-v6.1/drivers/pwm/ |
D | pwm-hibvt.c | 36 struct pwm_chip chip; 66 static inline struct hibvt_pwm_chip *to_hibvt_pwm_chip(struct pwm_chip *chip) in to_hibvt_pwm_chip() 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() 117 static void hibvt_pwm_set_polarity(struct pwm_chip *chip, 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() 192 struct hibvt_pwm_chip *pwm_chip; in hibvt_pwm_probe() local 195 pwm_chip = devm_kzalloc(&pdev->dev, sizeof(*pwm_chip), GFP_KERNEL); in hibvt_pwm_probe() [all …]
|
D | pwm-sl28cpld.c | 83 struct pwm_chip pwm_chip; member 88 container_of(_chip, struct sl28cpld_pwm, pwm_chip) 90 static void sl28cpld_pwm_get_state(struct pwm_chip *chip, in sl28cpld_pwm_get_state() 120 static int sl28cpld_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in sl28cpld_pwm_apply() 203 struct pwm_chip *chip; in sl28cpld_pwm_probe() 229 chip = &priv->pwm_chip; in sl28cpld_pwm_probe() 234 ret = devm_pwmchip_add(&pdev->dev, &priv->pwm_chip); in sl28cpld_pwm_probe()
|
D | pwm-twl-led.c | 65 struct pwm_chip chip; 69 static inline struct twl_pwmled_chip *to_twl(struct pwm_chip *chip) in to_twl() 74 static int twl4030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwmled_config() 108 static int twl4030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwmled_enable() 132 static void twl4030_pwmled_disable(struct pwm_chip *chip, in twl4030_pwmled_disable() 156 static int twl4030_pwmled_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwmled_apply() 195 static int twl6030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwmled_config() 212 static int twl6030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_enable() 238 static void twl6030_pwmled_disable(struct pwm_chip *chip, in twl6030_pwmled_disable() 264 static int twl6030_pwmled_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwmled_apply() [all …]
|
D | pwm-imx1.c | 32 struct pwm_chip chip; 37 static int pwm_imx1_clk_prepare_enable(struct pwm_chip *chip) in pwm_imx1_clk_prepare_enable() 55 static void pwm_imx1_clk_disable_unprepare(struct pwm_chip *chip) in pwm_imx1_clk_disable_unprepare() 63 static int pwm_imx1_config(struct pwm_chip *chip, in pwm_imx1_config() 94 static int pwm_imx1_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_imx1_enable() 111 static void pwm_imx1_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_imx1_disable() 123 static int pwm_imx1_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_imx1_apply()
|
D | core.c | 53 static void free_pwms(struct pwm_chip *chip) in free_pwms() 69 static struct pwm_chip *pwmchip_find_by_name(const char *name) in pwmchip_find_by_name() 71 struct pwm_chip *chip; in pwmchip_find_by_name() 125 of_pwm_xlate_with_flags(struct pwm_chip *pc, const struct of_phandle_args *args) in of_pwm_xlate_with_flags() 156 of_pwm_single_xlate(struct pwm_chip *pc, const struct of_phandle_args *args) in of_pwm_single_xlate() 181 static void of_pwmchip_add(struct pwm_chip *chip) in of_pwmchip_add() 200 static void of_pwmchip_remove(struct pwm_chip *chip) in of_pwmchip_remove() 236 static bool pwm_ops_check(const struct pwm_chip *chip) in pwm_ops_check() 258 int pwmchip_add(struct pwm_chip *chip) in pwmchip_add() 323 void pwmchip_remove(struct pwm_chip *chip) in pwmchip_remove() [all …]
|
D | pwm-cros-ec.c | 28 struct pwm_chip chip; 40 static inline struct cros_ec_pwm_device *pwm_to_cros_ec_pwm(struct pwm_chip *c) in pwm_to_cros_ec_pwm() 45 static int cros_ec_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in cros_ec_pwm_request() 58 static void cros_ec_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in cros_ec_pwm_free() 156 static int cros_ec_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in cros_ec_pwm_apply() 186 static void cros_ec_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in cros_ec_pwm_get_state() 218 cros_ec_pwm_xlate(struct pwm_chip *pc, const struct of_phandle_args *args) in cros_ec_pwm_xlate() 282 struct pwm_chip *chip; in cros_ec_pwm_probe() 332 struct pwm_chip *chip = &ec_pwm->chip; in cros_ec_pwm_remove()
|
D | pwm-twl.c | 49 struct pwm_chip chip; 55 static inline struct twl_pwm_chip *to_twl(struct pwm_chip *chip) in to_twl() 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() 282 static int twl4030_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwm_apply() [all …]
|
D | pwm-berlin.c | 49 struct pwm_chip chip; 54 static inline struct berlin_pwm_chip *to_berlin_pwm_chip(struct pwm_chip *chip) in to_berlin_pwm_chip() 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() 128 static int berlin_pwm_set_polarity(struct pwm_chip *chip, in berlin_pwm_set_polarity() 147 static int berlin_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in berlin_pwm_enable() 159 static void berlin_pwm_disable(struct pwm_chip *chip, in berlin_pwm_disable() 170 static int berlin_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in berlin_pwm_apply()
|
D | pwm-ntxec.c | 29 struct pwm_chip chip; 32 static struct ntxec_pwm *ntxec_pwm_from_chip(struct pwm_chip *chip) in ntxec_pwm_from_chip() 58 static int ntxec_pwm_set_raw_period_and_duty_cycle(struct pwm_chip *chip, in ntxec_pwm_set_raw_period_and_duty_cycle() 84 static int ntxec_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm_dev, in ntxec_pwm_apply() 142 struct pwm_chip *chip; in ntxec_pwm_probe()
|
D | pwm-pxa.c | 44 struct pwm_chip chip; 51 static inline struct pxa_pwm_chip *to_pxa_pwm_chip(struct pwm_chip *chip) in to_pxa_pwm_chip() 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() 118 static int pxa_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pxa_pwm_apply()
|
D | pwm-clps711x.c | 15 struct pwm_chip chip; 21 static inline struct clps711x_chip *to_clps711x_chip(struct pwm_chip *chip) in to_clps711x_chip() 26 static int clps711x_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in clps711x_pwm_request() 40 static int clps711x_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in clps711x_pwm_apply() 78 static struct pwm_device *clps711x_pwm_xlate(struct pwm_chip *chip, in clps711x_pwm_xlate()
|
D | pwm-jz4740.c | 28 struct pwm_chip chip; 32 static inline struct jz4740_pwm_chip *to_jz4740(struct pwm_chip *chip) in to_jz4740() 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()
|
D | pwm-lp3943.c | 23 struct pwm_chip chip; 28 static inline struct lp3943_pwm *to_lp3943_pwm(struct pwm_chip *_chip) in to_lp3943_pwm() 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() 159 static int lp3943_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_enable() 178 static void lp3943_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_disable() 191 static int lp3943_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in lp3943_pwm_apply()
|
D | pwm-mediatek.c | 54 struct pwm_chip chip; 67 to_pwm_mediatek_chip(struct pwm_chip *chip) in to_pwm_mediatek_chip() 72 static int pwm_mediatek_clk_enable(struct pwm_chip *chip, in pwm_mediatek_clk_enable() 100 static void pwm_mediatek_clk_disable(struct pwm_chip *chip, 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() 201 static int pwm_mediatek_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_mediatek_apply()
|
D | pwm-ep93xx.c | 39 struct pwm_chip chip; 42 static inline struct ep93xx_pwm *to_ep93xx_pwm(struct pwm_chip *chip) in to_ep93xx_pwm() 47 static int ep93xx_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in ep93xx_pwm_request() 54 static void ep93xx_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in ep93xx_pwm_free() 61 static int ep93xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in ep93xx_pwm_apply()
|
D | pwm-lpc18xx-sct.c | 95 struct pwm_chip chip; 110 to_lpc18xx_pwm_chip(struct pwm_chip *chip) in to_lpc18xx_pwm_chip() 148 static void lpc18xx_pwm_config_period(struct pwm_chip *chip, u64 period_ns) in lpc18xx_pwm_config_period() 170 static void lpc18xx_pwm_config_duty(struct pwm_chip *chip, in lpc18xx_pwm_config_duty() 192 static int lpc18xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lpc18xx_pwm_config() 237 static int lpc18xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity pola… in lpc18xx_pwm_enable() 272 static void lpc18xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_disable() 283 static int lpc18xx_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_request() 304 static void lpc18xx_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_free() 312 static int lpc18xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in lpc18xx_pwm_apply()
|
D | pwm-lpc32xx.c | 18 struct pwm_chip chip; 29 static int lpc32xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lpc32xx_pwm_config() 62 static int lpc32xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc32xx_pwm_enable() 79 static void lpc32xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc32xx_pwm_disable() 91 static int lpc32xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in lpc32xx_pwm_apply()
|
D | pwm-bcm-kona.c | 59 struct pwm_chip chip; 64 static inline struct kona_pwmc *to_kona_pwmc(struct pwm_chip *_chip) in to_kona_pwmc() 101 static int kona_pwmc_config(struct pwm_chip *chip, struct pwm_device *pwm, in kona_pwmc_config() 157 static int kona_pwmc_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in kona_pwmc_set_polarity() 189 static int kona_pwmc_enable(struct pwm_chip *chip, struct pwm_device *pwm) in kona_pwmc_enable() 203 static void kona_pwmc_disable(struct pwm_chip *chip, struct pwm_device *pwm) in kona_pwmc_disable() 225 static int kona_pwmc_apply(struct pwm_chip *chip, struct pwm_device *pwm, in kona_pwmc_apply()
|
D | pwm-spear.c | 56 struct pwm_chip chip; 59 static inline struct spear_pwm_chip *to_spear_pwm_chip(struct pwm_chip *chip) in to_spear_pwm_chip() 77 static int spear_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in spear_pwm_config() 137 static int spear_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in spear_pwm_enable() 154 static void spear_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in spear_pwm_disable() 166 static int spear_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in spear_pwm_apply()
|
D | pwm-bcm2835.c | 27 struct pwm_chip chip; 33 static inline struct bcm2835_pwm *to_bcm2835_pwm(struct pwm_chip *chip) in to_bcm2835_pwm() 38 static int bcm2835_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in bcm2835_pwm_request() 51 static void bcm2835_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in bcm2835_pwm_free() 61 static int bcm2835_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in bcm2835_pwm_apply()
|
D | pwm-renesas-tpu.c | 83 struct pwm_chip chip; 210 static int tpu_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_request() 236 static void tpu_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_free() 244 static int tpu_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in tpu_pwm_config() 353 static int tpu_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in tpu_pwm_set_polarity() 363 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() 395 static int tpu_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in tpu_pwm_apply()
|
D | pwm-imx-tpm.c | 60 struct pwm_chip chip; 76 to_imx_tpm_pwm_chip(struct pwm_chip *chip) in to_imx_tpm_pwm_chip() 87 static int pwm_imx_tpm_round_state(struct pwm_chip *chip, in pwm_imx_tpm_round_state() 135 static void pwm_imx_tpm_get_state(struct pwm_chip *chip, in pwm_imx_tpm_get_state() 170 static int pwm_imx_tpm_apply_hw(struct pwm_chip *chip, in pwm_imx_tpm_apply_hw() 288 static int pwm_imx_tpm_apply(struct pwm_chip *chip, in pwm_imx_tpm_apply() 308 static int pwm_imx_tpm_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_imx_tpm_request() 319 static void pwm_imx_tpm_free(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_imx_tpm_free()
|
D | pwm-sifive.c | 43 struct pwm_chip chip; 54 struct pwm_sifive_ddata *pwm_sifive_chip_to_ddata(struct pwm_chip *c) in pwm_sifive_chip_to_ddata() 59 static int pwm_sifive_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_sifive_request() 70 static void pwm_sifive_free(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_sifive_free() 108 static void pwm_sifive_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sifive_get_state() 128 static int pwm_sifive_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sifive_apply() 217 struct pwm_chip *chip; in pwm_sifive_probe()
|
D | pwm-tiecap.c | 35 struct pwm_chip chip; 41 static inline struct ecap_pwm_chip *to_ecap_pwm_chip(struct pwm_chip *chip) in to_ecap_pwm_chip() 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()
|
/Linux-v6.1/include/linux/ |
D | pwm.h | 9 struct pwm_chip; 84 struct pwm_chip *chip; 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, 295 struct pwm_chip { struct 301 struct pwm_device * (*of_xlate)(struct pwm_chip *pc, argument 391 int pwmchip_add(struct pwm_chip *chip); [all …]
|