/kernel/linux/linux-5.10/drivers/pwm/ |
D | core.c | 35 static struct pwm_device *pwm_to_device(unsigned int pwm) in pwm_to_device() 40 static int alloc_pwms(int pwm, unsigned int count) in alloc_pwms() 68 struct pwm_device *pwm = &chip->pwms[i]; in free_pwms() local 102 static int pwm_device_request(struct pwm_device *pwm, const char *label) in pwm_device_request() 137 struct pwm_device *pwm; in of_pwm_xlate_with_flags() local 167 struct pwm_device *pwm; in of_pwm_simple_xlate() local 215 int pwm_set_chip_data(struct pwm_device *pwm, void *data) in pwm_set_chip_data() 232 void *pwm_get_chip_data(struct pwm_device *pwm) in pwm_get_chip_data() 276 struct pwm_device *pwm; in pwmchip_add_with_polarity() local 365 struct pwm_device *pwm = &chip->pwms[i]; in pwmchip_remove() local [all …]
|
D | sysfs.c | 19 struct pwm_device *pwm; member 40 const struct pwm_device *pwm = child_to_pwm_device(child); in period_show() local 53 struct pwm_device *pwm = export->pwm; in period_store() local 75 const struct pwm_device *pwm = child_to_pwm_device(child); in duty_cycle_show() local 88 struct pwm_device *pwm = export->pwm; in duty_cycle_store() local 110 const struct pwm_device *pwm = child_to_pwm_device(child); in enable_show() local 123 struct pwm_device *pwm = export->pwm; in enable_store() local 158 const struct pwm_device *pwm = child_to_pwm_device(child); in polarity_show() local 182 struct pwm_device *pwm = export->pwm; in polarity_store() local 207 struct pwm_device *pwm = child_to_pwm_device(child); in capture_show() local [all …]
|
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() 82 static void pwm_lpss_prepare(struct pwm_lpss_chip *lpwm, struct pwm_device *pwm, in pwm_lpss_prepare() 117 static inline void pwm_lpss_cond_enable(struct pwm_device *pwm, bool cond) in pwm_lpss_cond_enable() 124 struct pwm_device *pwm, in pwm_lpss_prepare_enable() 143 static int pwm_lpss_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_lpss_apply() 166 static void pwm_lpss_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_lpss_get_state()
|
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() 93 struct berlin_pwm_chip *pwm = to_berlin_pwm_chip(chip); in berlin_pwm_config() local 132 struct berlin_pwm_chip *pwm = to_berlin_pwm_chip(chip); in berlin_pwm_set_polarity() local 149 struct berlin_pwm_chip *pwm = to_berlin_pwm_chip(chip); in berlin_pwm_enable() local 162 struct berlin_pwm_chip *pwm = to_berlin_pwm_chip(chip); in berlin_pwm_disable() local 188 struct berlin_pwm_chip *pwm; in berlin_pwm_probe() local 230 struct berlin_pwm_chip *pwm = platform_get_drvdata(pdev); in berlin_pwm_remove() local 242 struct berlin_pwm_chip *pwm = dev_get_drvdata(dev); in berlin_pwm_suspend() local 265 struct berlin_pwm_chip *pwm = dev_get_drvdata(dev); in berlin_pwm_resume() local
|
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()
|
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()
|
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 …]
|
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()
|
D | pwm-ep93xx.c | 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_config(struct pwm_chip *chip, struct pwm_device *pwm, in ep93xx_pwm_config() 113 static int ep93xx_pwm_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in ep93xx_pwm_polarity() 137 static int ep93xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in ep93xx_pwm_enable() 151 static void ep93xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in ep93xx_pwm_disable()
|
D | pwm-tiecap.c | 50 static int ecap_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in ecap_pwm_config() 111 static int ecap_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in ecap_pwm_set_polarity() 135 static int ecap_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in ecap_pwm_enable() 154 static void ecap_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in ecap_pwm_disable() 171 static void ecap_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in ecap_pwm_free() 279 struct pwm_device *pwm = pc->chip.pwms; in ecap_pwm_suspend() local 293 struct pwm_device *pwm = pc->chip.pwms; in ecap_pwm_resume() local
|
D | pwm-bcm2835.c | 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_config(struct pwm_chip *chip, struct pwm_device *pwm, in bcm2835_pwm_config() 87 static int bcm2835_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in bcm2835_pwm_enable() 99 static void bcm2835_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in bcm2835_pwm_disable() 109 static int bcm2835_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in bcm2835_set_polarity()
|
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()
|
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()
|
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 168 struct pxa_pwm_chip *pwm; in pwm_probe() local
|
D | pwm-samsung.c | 120 static void pwm_samsung_set_divisor(struct samsung_pwm_chip *pwm, in pwm_samsung_set_divisor() 214 static int pwm_samsung_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_request() 235 static void pwm_samsung_free(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_free() 240 static int pwm_samsung_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_enable() 266 static void pwm_samsung_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_disable() 285 struct pwm_device *pwm) in pwm_samsung_manual_update() 303 static int __pwm_samsung_config(struct pwm_chip *chip, struct pwm_device *pwm, in __pwm_samsung_config() 384 static int pwm_samsung_config(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_samsung_config() 415 struct pwm_device *pwm, in pwm_samsung_set_polarity() 608 struct pwm_device *pwm = &chip->pwms[i]; in pwm_samsung_resume() local
|
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
|
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()
|
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() 489 struct pwm_device *pwm = &fpc->chip.pwms[i]; in fsl_pwm_suspend() local 512 struct pwm_device *pwm = &fpc->chip.pwms[i]; in fsl_pwm_resume() local
|
D | pwm-crc.c | 54 static int crc_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in crc_pwm_apply() 124 static void crc_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in crc_pwm_get_state() 161 struct crystalcove_pwm *pwm; in crystalcove_pwm_probe() local 184 struct crystalcove_pwm *pwm = platform_get_drvdata(pdev); in crystalcove_pwm_remove() local
|
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()
|
D | pwm-ab8500.c | 27 static int ab8500_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in ab8500_pwm_config() 57 static int ab8500_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in ab8500_pwm_enable() 70 static void ab8500_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in ab8500_pwm_disable()
|
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() 142 static void cros_ec_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in cros_ec_pwm_get_state() 176 struct pwm_device *pwm; in cros_ec_pwm_xlate() local
|
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
|
/kernel/linux/linux-5.10/include/linux/ |
D | pwm.h | 81 unsigned int pwm; member 95 static inline void pwm_get_state(const struct pwm_device *pwm, in pwm_get_state() 101 static inline bool pwm_is_enabled(const struct pwm_device *pwm) in pwm_is_enabled() 110 static inline void pwm_set_period(struct pwm_device *pwm, u64 period) in pwm_set_period() 116 static inline u64 pwm_get_period(const struct pwm_device *pwm) in pwm_get_period() 125 static inline void pwm_set_duty_cycle(struct pwm_device *pwm, unsigned int duty) in pwm_set_duty_cycle() 131 static inline u64 pwm_get_duty_cycle(const struct pwm_device *pwm) in pwm_get_duty_cycle() 140 static inline enum pwm_polarity pwm_get_polarity(const struct pwm_device *pwm) in pwm_get_polarity() 149 static inline void pwm_get_args(const struct pwm_device *pwm, in pwm_get_args() 172 static inline void pwm_init_state(const struct pwm_device *pwm, in pwm_init_state() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/greybus/ |
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
|