/drivers/pwm/ |
D | core.c | 32 static struct pwm_device *pwm_to_device(unsigned int pwm) in pwm_to_device() 37 static int alloc_pwms(int pwm, unsigned int count) in alloc_pwms() 65 struct pwm_device *pwm = &chip->pwms[i]; in free_pwms() local 99 static int pwm_device_request(struct pwm_device *pwm, const char *label) in pwm_device_request() 126 struct pwm_device *pwm; in of_pwm_xlate_with_flags() local 156 struct pwm_device *pwm; in of_pwm_simple_xlate() local 204 int pwm_set_chip_data(struct pwm_device *pwm, void *data) in pwm_set_chip_data() 221 void *pwm_get_chip_data(struct pwm_device *pwm) in pwm_get_chip_data() 254 struct pwm_device *pwm; in pwmchip_add_with_polarity() local 347 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-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-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() 118 static inline void pwm_lpss_cond_enable(struct pwm_device *pwm, bool cond) in pwm_lpss_cond_enable() 124 static int pwm_lpss_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_lpss_apply() 162 static void pwm_lpss_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_lpss_get_state()
|
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-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-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-pca9685.c | 89 struct pwm_device *pwm; in pca9685_pwm_gpio_request() local 107 static bool pca9685_pwm_is_gpio(struct pca9685 *pca, struct pwm_device *pwm) in pca9685_pwm_is_gpio() 136 struct pwm_device *pwm = &pca->chip.pwms[offset]; in pca9685_pwm_gpio_get() local 148 struct pwm_device *pwm = &pca->chip.pwms[offset]; in pca9685_pwm_gpio_set() local 162 struct pwm_device *pwm; in pca9685_pwm_gpio_free() local 221 struct pwm_device *pwm) in pca9685_pwm_is_gpio() 242 static int pca9685_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in pca9685_pwm_config() 347 static int pca9685_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pca9685_pwm_enable() 384 static void pca9685_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pca9685_pwm_disable() 405 static int pca9685_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in pca9685_pwm_request() [all …]
|
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-jz4740.c | 35 static int jz4740_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_request() 49 static void jz4740_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_free() 56 static int jz4740_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_enable() 67 static void jz4740_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_disable() 90 static int jz4740_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in jz4740_pwm_apply()
|
D | pwm-crc.c | 42 static int crc_pwm_enable(struct pwm_chip *c, struct pwm_device *pwm) in crc_pwm_enable() 51 static void crc_pwm_disable(struct pwm_chip *c, struct pwm_device *pwm) in crc_pwm_disable() 58 static int crc_pwm_config(struct pwm_chip *c, struct pwm_device *pwm, in crc_pwm_config() 99 struct crystalcove_pwm *pwm; in crystalcove_pwm_probe() local 122 struct crystalcove_pwm *pwm = platform_get_drvdata(pdev); in crystalcove_pwm_remove() 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-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-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-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-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-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-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-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-tegra.c | 66 static int tegra_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in tegra_pwm_config() 134 static int tegra_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in tegra_pwm_enable() 151 static void tegra_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in tegra_pwm_disable() 172 struct tegra_pwm_chip *pwm; in tegra_pwm_probe() local 246 struct pwm_device *pwm = &pc->chip.pwms[i]; in tegra_pwm_remove() local
|
D | pwm-lp3943.c | 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() 153 static int lp3943_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_enable() 172 static void lp3943_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_disable()
|
D | pwm-mediatek.c | 70 struct pwm_device *pwm) in pwm_mediatek_clk_enable() 98 struct pwm_device *pwm) in pwm_mediatek_clk_disable() 120 static int pwm_mediatek_config(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_mediatek_config() 171 static int pwm_mediatek_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_mediatek_enable() 188 static void pwm_mediatek_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_mediatek_disable()
|
/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
|