/linux-4.19.296/include/linux/ |
D | pwm.h | 76 struct pwm_device { struct 93 static inline void pwm_get_state(const struct pwm_device *pwm, in pwm_get_state() argument 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 …]
|
/linux-4.19.296/drivers/pwm/ |
D | core.c | 44 static struct pwm_device *pwm_to_device(unsigned int pwm) in pwm_to_device() 77 struct pwm_device *pwm = &chip->pwms[i]; in free_pwms() 111 static int pwm_device_request(struct pwm_device *pwm, const char *label) in pwm_device_request() 135 struct pwm_device * 138 struct pwm_device *pwm; in of_pwm_xlate_with_flags() 165 static struct pwm_device * 168 struct pwm_device *pwm; in of_pwm_simple_xlate() 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() [all …]
|
D | sysfs.c | 28 struct pwm_device *pwm; 37 static struct pwm_device *child_to_pwm_device(struct device *child) in child_to_pwm_device() 48 const struct pwm_device *pwm = child_to_pwm_device(child); in period_show() 61 struct pwm_device *pwm = export->pwm; in period_store() 83 const struct pwm_device *pwm = child_to_pwm_device(child); in duty_cycle_show() 96 struct pwm_device *pwm = export->pwm; in duty_cycle_store() 118 const struct pwm_device *pwm = child_to_pwm_device(child); in enable_show() 131 struct pwm_device *pwm = export->pwm; in enable_store() 166 const struct pwm_device *pwm = child_to_pwm_device(child); in polarity_show() 190 struct pwm_device *pwm = export->pwm; in polarity_store() [all …]
|
D | pwm-clps711x.c | 48 static unsigned int clps711x_get_duty(struct pwm_device *pwm, unsigned int v) in clps711x_get_duty() 54 static int clps711x_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in clps711x_pwm_request() 68 static int clps711x_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in clps711x_pwm_config() 83 static int clps711x_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in clps711x_pwm_enable() 94 static void clps711x_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in clps711x_pwm_disable() 109 static struct pwm_device *clps711x_pwm_xlate(struct pwm_chip *chip, in clps711x_pwm_xlate()
|
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-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-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-rcar.c | 135 static int rcar_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in rcar_pwm_request() 140 static void rcar_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in rcar_pwm_free() 145 static int rcar_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in rcar_pwm_config() 175 static int rcar_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in rcar_pwm_enable() 191 static void rcar_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in rcar_pwm_disable() 266 static struct pwm_device *rcar_pwm_dev_to_pwm_dev(struct device *dev) in rcar_pwm_dev_to_pwm_dev() 276 struct pwm_device *pwm = rcar_pwm_dev_to_pwm_dev(dev); in rcar_pwm_suspend() 288 struct pwm_device *pwm = rcar_pwm_dev_to_pwm_dev(dev); in rcar_pwm_resume()
|
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-bcm2835.c | 41 static int bcm2835_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in bcm2835_pwm_request() 54 static void bcm2835_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in bcm2835_pwm_free() 64 static int bcm2835_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in bcm2835_pwm_config() 90 static int bcm2835_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in bcm2835_pwm_enable() 102 static void bcm2835_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in bcm2835_pwm_disable() 112 static int bcm2835_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in bcm2835_set_polarity()
|
D | pwm-tiecap.c | 63 static int ecap_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in ecap_pwm_config() 124 static int ecap_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in ecap_pwm_set_polarity() 148 static int ecap_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in ecap_pwm_enable() 167 static void ecap_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in ecap_pwm_disable() 184 static void ecap_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in ecap_pwm_free() 292 struct pwm_device *pwm = pc->chip.pwms; in ecap_pwm_suspend() 306 struct pwm_device *pwm = pc->chip.pwms; in ecap_pwm_resume()
|
D | pwm-pxa.c | 63 static int pxa_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in pxa_pwm_config() 107 static int pxa_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pxa_pwm_enable() 114 static void pxa_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pxa_pwm_disable() 154 static struct pwm_device * 157 struct pwm_device *pwm; in pxa_pwm_of_xlate()
|
D | pwm-lpc18xx-sct.c | 128 struct pwm_device *pwm, in lpc18xx_pwm_set_conflict_res() 166 struct pwm_device *pwm, int duty_ns) in lpc18xx_pwm_config_duty() 184 static int lpc18xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lpc18xx_pwm_config() 230 struct pwm_device *pwm, in lpc18xx_pwm_set_polarity() 236 static int lpc18xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_enable() 271 static void lpc18xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_disable() 282 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() 333 struct pwm_device *pwm; in lpc18xx_pwm_probe()
|
D | pwm-twl.c | 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-hibvt.c | 80 static void hibvt_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in hibvt_pwm_enable() 88 static void hibvt_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in hibvt_pwm_disable() 96 static void hibvt_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_config() 115 struct pwm_device *pwm, in hibvt_pwm_set_polarity() 128 static void hibvt_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_get_state() 148 static int hibvt_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_apply()
|
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_dev, in berlin_pwm_config() 129 struct pwm_device *pwm_dev, in berlin_pwm_set_polarity() 147 static int berlin_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm_dev) in berlin_pwm_enable() 160 struct pwm_device *pwm_dev) in berlin_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()
|
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-imx.c | 60 struct pwm_device *pwm, int duty_ns, int period_ns) in imx_pwm_config_v1() 88 static int imx_pwm_enable_v1(struct pwm_chip *chip, struct pwm_device *pwm) in imx_pwm_enable_v1() 105 static void imx_pwm_disable_v1(struct pwm_chip *chip, struct pwm_device *pwm) in imx_pwm_disable_v1() 136 struct pwm_device *pwm) in imx_pwm_wait_fifo_slot() 157 static int imx_pwm_apply_v2(struct pwm_chip *chip, struct pwm_device *pwm, in imx_pwm_apply_v2()
|
D | pwm-puv3.c | 41 static int puv3_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in puv3_pwm_config() 82 static int puv3_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in puv3_pwm_enable() 89 static void puv3_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in puv3_pwm_disable()
|
D | pwm-samsung.c | 217 static int pwm_samsung_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_request() 238 static void pwm_samsung_free(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_free() 243 static int pwm_samsung_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_enable() 269 static void pwm_samsung_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_disable() 288 struct pwm_device *pwm) in pwm_samsung_manual_update() 306 static int __pwm_samsung_config(struct pwm_chip *chip, struct pwm_device *pwm, in __pwm_samsung_config() 387 static int pwm_samsung_config(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_samsung_config() 418 struct pwm_device *pwm, in pwm_samsung_set_polarity() 611 struct pwm_device *pwm = &chip->pwms[i]; in pwm_samsung_resume()
|
D | pwm-fsl-ftm.c | 106 static int fsl_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in fsl_pwm_request() 122 static void fsl_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in fsl_pwm_free() 256 static int fsl_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in fsl_pwm_config() 304 struct pwm_device *pwm, in fsl_pwm_set_polarity() 343 static int fsl_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in fsl_pwm_enable() 357 static void fsl_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in fsl_pwm_disable() 512 struct pwm_device *pwm = &fpc->chip.pwms[i]; in fsl_pwm_suspend() 535 struct pwm_device *pwm = &fpc->chip.pwms[i]; in fsl_pwm_resume()
|
D | pwm-renesas-tpu.c | 218 static int tpu_pwm_request(struct pwm_chip *chip, struct pwm_device *_pwm) in tpu_pwm_request() 244 static void tpu_pwm_free(struct pwm_chip *chip, struct pwm_device *_pwm) in tpu_pwm_free() 252 static int tpu_pwm_config(struct pwm_chip *chip, struct pwm_device *_pwm, in tpu_pwm_config() 335 static int tpu_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *_pwm, in tpu_pwm_set_polarity() 345 static int tpu_pwm_enable(struct pwm_chip *chip, struct pwm_device *_pwm) in tpu_pwm_enable() 367 static void tpu_pwm_disable(struct pwm_chip *chip, struct pwm_device *_pwm) in tpu_pwm_disable()
|
D | pwm-mediatek.c | 85 static int mtk_pwm_clk_enable(struct pwm_chip *chip, struct pwm_device *pwm) in mtk_pwm_clk_enable() 115 static void mtk_pwm_clk_disable(struct pwm_chip *chip, struct pwm_device *pwm) in mtk_pwm_clk_disable() 140 static int mtk_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in mtk_pwm_config() 191 static int mtk_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in mtk_pwm_enable() 208 static void mtk_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in mtk_pwm_disable()
|
D | pwm-lp3943.c | 64 static int lp3943_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_request() 90 static void lp3943_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_free() 98 static int lp3943_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lp3943_pwm_config() 157 static int lp3943_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_enable() 176 static void lp3943_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_disable()
|