| /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
|
| /kernel/linux/linux-4.19/drivers/pwm/ |
| D | core.c | 44 static struct pwm_device *pwm_to_device(unsigned int pwm) in pwm_to_device() 49 static int alloc_pwms(int pwm, unsigned int count) in alloc_pwms() 77 struct pwm_device *pwm = &chip->pwms[i]; in free_pwms() local 111 static int pwm_device_request(struct pwm_device *pwm, const char *label) in pwm_device_request() 138 struct pwm_device *pwm; in of_pwm_xlate_with_flags() local 168 struct pwm_device *pwm; in of_pwm_simple_xlate() local 216 int pwm_set_chip_data(struct pwm_device *pwm, void *data) in pwm_set_chip_data() 233 void *pwm_get_chip_data(struct pwm_device *pwm) in pwm_get_chip_data() 266 struct pwm_device *pwm; in pwmchip_add_with_polarity() local 358 struct pwm_device *pwm = &chip->pwms[i]; in pwmchip_remove() local [all …]
|
| D | sysfs.c | 28 struct pwm_device *pwm; member 48 const struct pwm_device *pwm = child_to_pwm_device(child); in period_show() local 61 struct pwm_device *pwm = export->pwm; in period_store() local 83 const struct pwm_device *pwm = child_to_pwm_device(child); in duty_cycle_show() local 96 struct pwm_device *pwm = export->pwm; in duty_cycle_store() local 118 const struct pwm_device *pwm = child_to_pwm_device(child); in enable_show() local 131 struct pwm_device *pwm = export->pwm; in enable_store() local 166 const struct pwm_device *pwm = child_to_pwm_device(child); in polarity_show() local 190 struct pwm_device *pwm = export->pwm; in polarity_store() local 215 struct pwm_device *pwm = child_to_pwm_device(child); in capture_show() local [all …]
|
| 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 | 43 #define TWL4030_PWM_TOGGLE(pwm, x) ((x) << (pwm)) argument 57 #define TWL6030_PWM_TOGGLE(pwm, x) ((x) << (pwm * 3)) argument 71 static int twl_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl_pwm_config() 105 static int twl4030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_enable() 135 static void twl4030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_disable() 164 static int twl4030_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_request() 202 static void twl4030_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_free() 232 static int twl6030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwm_enable() 255 static void twl6030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwm_disable()
|
| D | pwm-jz4740.c | 39 static int jz4740_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_request() 53 static void jz4740_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_free() 60 static int jz4740_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_enable() 71 static void jz4740_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_disable() 86 static int jz4740_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in jz4740_pwm_config() 135 struct pwm_device *pwm, enum pwm_polarity polarity) in jz4740_pwm_set_polarity()
|
| D | pwm-vt8500.c | 39 #define REG_CTRL(pwm) (((pwm) << 4) + 0x00) argument 40 #define REG_SCALAR(pwm) (((pwm) << 4) + 0x04) argument 41 #define REG_PERIOD(pwm) (((pwm) << 4) + 0x08) argument 42 #define REG_DUTY(pwm) (((pwm) << 4) + 0x0C) argument 80 static int vt8500_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in vt8500_pwm_config() 134 static int vt8500_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in vt8500_pwm_enable() 154 static void vt8500_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in vt8500_pwm_disable() 168 struct pwm_device *pwm, in vt8500_pwm_set_polarity()
|
| D | pwm-renesas-tpu.c | 100 static void tpu_pwm_write(struct tpu_pwm_device *pwm, int reg_nr, u16 value) in tpu_pwm_write() 108 static void tpu_pwm_set_pin(struct tpu_pwm_device *pwm, in tpu_pwm_set_pin() 135 static void tpu_pwm_start_stop(struct tpu_pwm_device *pwm, int start) in tpu_pwm_start_stop() 152 static int tpu_pwm_timer_start(struct tpu_pwm_device *pwm) in tpu_pwm_timer_start() 199 static void tpu_pwm_timer_stop(struct tpu_pwm_device *pwm) in tpu_pwm_timer_stop() 221 struct tpu_pwm_device *pwm; in tpu_pwm_request() local 246 struct tpu_pwm_device *pwm = pwm_get_chip_data(_pwm); in tpu_pwm_free() local 256 struct tpu_pwm_device *pwm = pwm_get_chip_data(_pwm); in tpu_pwm_config() local 338 struct tpu_pwm_device *pwm = pwm_get_chip_data(_pwm); in tpu_pwm_set_polarity() local 347 struct tpu_pwm_device *pwm = pwm_get_chip_data(_pwm); in tpu_pwm_enable() local [all …]
|
| 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() 128 struct pwm_device *pwm) in twl4030_pwmled_disable() 151 static int twl6030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwmled_config() 168 static int twl6030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_enable() 195 struct pwm_device *pwm) in twl6030_pwmled_disable() 220 static int twl6030_pwmled_request(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_request() 246 static void twl6030_pwmled_free(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_free()
|
| D | pwm-lpss.c | 49 static inline u32 pwm_lpss_read(const struct pwm_device *pwm) in pwm_lpss_read() 56 static inline void pwm_lpss_write(const struct pwm_device *pwm, u32 value) in pwm_lpss_write() 63 static int pwm_lpss_wait_for_update(struct pwm_device *pwm) in pwm_lpss_wait_for_update() 89 static inline int pwm_lpss_is_updating(struct pwm_device *pwm) in pwm_lpss_is_updating() 94 static void pwm_lpss_prepare(struct pwm_lpss_chip *lpwm, struct pwm_device *pwm, in pwm_lpss_prepare() 131 static inline void pwm_lpss_cond_enable(struct pwm_device *pwm, bool cond) in pwm_lpss_cond_enable() 137 static int pwm_lpss_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_lpss_apply()
|
| D | pwm-ep93xx.c | 56 static int ep93xx_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in ep93xx_pwm_request() 63 static void ep93xx_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in ep93xx_pwm_free() 70 static int ep93xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in ep93xx_pwm_config() 122 static int ep93xx_pwm_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in ep93xx_pwm_polarity() 146 static int ep93xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in ep93xx_pwm_enable() 160 static void ep93xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in ep93xx_pwm_disable()
|
| D | pwm-crc.c | 50 static int crc_pwm_enable(struct pwm_chip *c, struct pwm_device *pwm) in crc_pwm_enable() 59 static void crc_pwm_disable(struct pwm_chip *c, struct pwm_device *pwm) in crc_pwm_disable() 66 static int crc_pwm_config(struct pwm_chip *c, struct pwm_device *pwm, in crc_pwm_config() 107 struct crystalcove_pwm *pwm; in crystalcove_pwm_probe() local 130 struct crystalcove_pwm *pwm = platform_get_drvdata(pdev); in crystalcove_pwm_remove() local
|
| /kernel/linux/linux-4.19/include/linux/ |
| D | pwm.h | 80 unsigned int pwm; member 93 static inline void pwm_get_state(const struct pwm_device *pwm, in pwm_get_state() 99 static inline bool pwm_is_enabled(const struct pwm_device *pwm) in pwm_is_enabled() 108 static inline void pwm_set_period(struct pwm_device *pwm, unsigned int period) in pwm_set_period() 114 static inline unsigned int pwm_get_period(const struct pwm_device *pwm) in pwm_get_period() 123 static inline void pwm_set_duty_cycle(struct pwm_device *pwm, unsigned int duty) in pwm_set_duty_cycle() 129 static inline unsigned int pwm_get_duty_cycle(const struct pwm_device *pwm) in pwm_get_duty_cycle() 138 static inline enum pwm_polarity pwm_get_polarity(const struct pwm_device *pwm) in pwm_get_polarity() 147 static inline void pwm_get_args(const struct pwm_device *pwm, in pwm_get_args() 170 static inline void pwm_init_state(const struct pwm_device *pwm, in pwm_init_state() [all …]
|
| /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
|
| /kernel/linux/linux-4.19/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
|