/linux-4.4.14/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 110 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 163 struct pwm_device *pwm; in of_pwm_simple_xlate() local 206 int pwm_set_chip_data(struct pwm_device *pwm, void *data) in pwm_set_chip_data() 223 void *pwm_get_chip_data(struct pwm_device *pwm) in pwm_get_chip_data() 243 struct pwm_device *pwm; in pwmchip_add_with_polarity() local 327 struct pwm_device *pwm = &chip->pwms[i]; in pwmchip_remove() local [all …]
|
D | pwm-bfin.c | 30 static int bfin_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in bfin_pwm_request() 55 static void bfin_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in bfin_pwm_free() 65 static int bfin_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in bfin_pwm_config() 90 static int bfin_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in bfin_pwm_enable() 99 static void bfin_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in bfin_pwm_disable() 117 struct bfin_pwm_chip *pwm; in bfin_pwm_probe() local 144 struct bfin_pwm_chip *pwm = platform_get_drvdata(pdev); in bfin_pwm_remove() local
|
D | sysfs.c | 28 struct pwm_device *pwm; member 47 const struct pwm_device *pwm = child_to_pwm_device(child); in period_show() local 56 struct pwm_device *pwm = child_to_pwm_device(child); in period_store() local 73 const struct pwm_device *pwm = child_to_pwm_device(child); in duty_cycle_show() local 82 struct pwm_device *pwm = child_to_pwm_device(child); in duty_cycle_store() local 99 const struct pwm_device *pwm = child_to_pwm_device(child); in enable_show() local 108 struct pwm_device *pwm = child_to_pwm_device(child); in enable_store() local 134 const struct pwm_device *pwm = child_to_pwm_device(child); in polarity_show() local 154 struct pwm_device *pwm = child_to_pwm_device(child); in polarity_store() local 191 static int pwm_export_child(struct device *parent, struct pwm_device *pwm) in pwm_export_child() [all …]
|
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-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-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
|
D | pwm-tiecap.c | 65 static int ecap_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in ecap_pwm_config() 125 static int ecap_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in ecap_pwm_set_polarity() 145 static int ecap_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in ecap_pwm_enable() 163 static void ecap_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in ecap_pwm_disable() 180 static void ecap_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in ecap_pwm_free() 304 struct pwm_device *pwm = pc->chip.pwms; in ecap_pwm_suspend() local 318 struct pwm_device *pwm = pc->chip.pwms; in ecap_pwm_resume() local
|
D | pwm-jz4740.c | 50 static int jz4740_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_request() 76 static void jz4740_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_free() 88 static int jz4740_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_enable() 99 static void jz4740_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_disable() 108 static int jz4740_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in jz4740_pwm_config()
|
D | pwm-bcm2835.c | 42 static int bcm2835_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in bcm2835_pwm_request() 55 static void bcm2835_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in bcm2835_pwm_free() 65 static int bcm2835_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in bcm2835_pwm_config() 82 static int bcm2835_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in bcm2835_pwm_enable() 94 static void bcm2835_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in bcm2835_pwm_disable() 104 static int bcm2835_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in bcm2835_set_polarity()
|
D | pwm-berlin.c | 61 struct berlin_pwm_chip *pwm = to_berlin_pwm_chip(chip); in berlin_pwm_config() local 101 struct berlin_pwm_chip *pwm = to_berlin_pwm_chip(chip); in berlin_pwm_set_polarity() local 118 struct berlin_pwm_chip *pwm = to_berlin_pwm_chip(chip); in berlin_pwm_enable() local 131 struct berlin_pwm_chip *pwm = to_berlin_pwm_chip(chip); in berlin_pwm_disable() local 155 struct berlin_pwm_chip *pwm; in berlin_pwm_probe() local 198 struct berlin_pwm_chip *pwm = platform_get_drvdata(pdev); in berlin_pwm_remove() local
|
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()
|
D | pwm-lpss.c | 68 static inline u32 pwm_lpss_read(const struct pwm_device *pwm) in pwm_lpss_read() 75 static inline void pwm_lpss_write(const struct pwm_device *pwm, u32 value) in pwm_lpss_write() 82 static int pwm_lpss_config(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_lpss_config() 124 static int pwm_lpss_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_lpss_enable() 131 static void pwm_lpss_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_lpss_disable()
|
D | pwm-tegra.c | 66 static int tegra_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in tegra_pwm_config() 133 static int tegra_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in tegra_pwm_enable() 150 static void tegra_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in tegra_pwm_disable() 171 struct tegra_pwm_chip *pwm; in tegra_pwm_probe() local 215 struct pwm_device *pwm = &pc->chip.pwms[i]; in tegra_pwm_remove() local
|
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() 157 struct pwm_device *pwm; in pxa_pwm_of_xlate() local 171 struct pxa_pwm_chip *pwm; in pwm_probe() local
|
D | pwm-rockchip.c | 62 struct pwm_device *pwm, bool enable) in rockchip_pwm_set_enable_v1() 79 struct pwm_device *pwm, bool enable) in rockchip_pwm_set_enable_v2() 101 static int rockchip_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in rockchip_pwm_config() 138 struct pwm_device *pwm, in rockchip_pwm_set_polarity() 150 static int rockchip_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in rockchip_pwm_enable() 164 static void rockchip_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in rockchip_pwm_disable()
|
D | pwm-samsung.c | 120 static void pwm_samsung_set_divisor(struct samsung_pwm_chip *pwm, in pwm_samsung_set_divisor() 205 static int pwm_samsung_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_request() 226 static void pwm_samsung_free(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_free() 232 static int pwm_samsung_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_enable() 256 static void pwm_samsung_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_disable() 273 struct pwm_device *pwm) in pwm_samsung_manual_update() 291 static int pwm_samsung_config(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_samsung_config() 400 struct pwm_device *pwm, in pwm_samsung_set_polarity() 597 struct pwm_device *pwm = &chip->chip.pwms[i]; in pwm_samsung_suspend() local
|
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() local
|
D | pwm-atmel-tcb.c | 53 struct pwm_device *pwm, in atmel_tcb_pwm_set_polarity() 64 struct pwm_device *pwm) in atmel_tcb_pwm_request() 121 static void atmel_tcb_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in atmel_tcb_pwm_free() 132 static void atmel_tcb_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in atmel_tcb_pwm_disable() 188 static int atmel_tcb_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in atmel_tcb_pwm_enable() 270 static int atmel_tcb_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in atmel_tcb_pwm_config()
|
D | pwm-sun4i.c | 99 static int sun4i_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in sun4i_pwm_config() 189 static int sun4i_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in sun4i_pwm_set_polarity() 218 static int sun4i_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in sun4i_pwm_enable() 240 static void sun4i_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in sun4i_pwm_disable() 308 struct sun4i_pwm_chip *pwm; in sun4i_pwm_probe() local 369 struct sun4i_pwm_chip *pwm = platform_get_drvdata(pdev); in sun4i_pwm_remove() local
|
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-atmel.c | 107 static int atmel_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in atmel_pwm_config() 162 static void atmel_pwm_config_v1(struct pwm_chip *chip, struct pwm_device *pwm, in atmel_pwm_config_v1() 189 static void atmel_pwm_config_v2(struct pwm_chip *chip, struct pwm_device *pwm, in atmel_pwm_config_v2() 210 static int atmel_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in atmel_pwm_set_polarity() 237 static int atmel_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in atmel_pwm_enable() 253 static void atmel_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in atmel_pwm_disable()
|
D | pwm-pca9685.c | 91 static int pca9685_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in pca9685_pwm_config() 205 static int pca9685_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pca9685_pwm_enable() 242 static void pca9685_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pca9685_pwm_disable() 263 static int pca9685_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in pca9685_pwm_request() 274 static void pca9685_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in pca9685_pwm_free()
|
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() 156 static int lp3943_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_enable() 175 static void lp3943_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_disable()
|
D | pwm-rcar.c | 135 static int rcar_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in rcar_pwm_request() 142 static void rcar_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in rcar_pwm_free() 149 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()
|
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-lpc32xx.c | 34 static int lpc32xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lpc32xx_pwm_config() 80 static int lpc32xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc32xx_pwm_enable() 97 static void lpc32xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc32xx_pwm_disable()
|
D | pwm-imx.c | 66 struct pwm_device *pwm, int duty_ns, int period_ns) in imx_pwm_config_v1() 110 struct pwm_device *pwm, int duty_ns, int period_ns) in imx_pwm_config_v2() 204 struct pwm_device *pwm, int duty_ns, int period_ns) in imx_pwm_config() 220 static int imx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in imx_pwm_enable() 234 static void imx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in imx_pwm_disable()
|
D | pwm-atmel-hlcdc.c | 53 struct pwm_device *pwm, in atmel_hlcdc_pwm_config() 140 struct pwm_device *pwm, in atmel_hlcdc_pwm_set_polarity() 154 static int atmel_hlcdc_pwm_enable(struct pwm_chip *c, struct pwm_device *pwm) in atmel_hlcdc_pwm_enable() 180 struct pwm_device *pwm) in atmel_hlcdc_pwm_disable()
|
D | pwm-tiehrpwm.c | 236 static int ehrpwm_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in ehrpwm_pwm_config() 324 struct pwm_device *pwm, enum pwm_polarity polarity) in ehrpwm_pwm_set_polarity() 333 static int ehrpwm_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in ehrpwm_pwm_enable() 373 static void ehrpwm_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in ehrpwm_pwm_disable() 406 static void ehrpwm_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in ehrpwm_pwm_free() 566 struct pwm_device *pwm = &pc->chip.pwms[i]; in ehrpwm_pwm_suspend() local 583 struct pwm_device *pwm = &pc->chip.pwms[i]; in ehrpwm_pwm_resume() local
|
D | pwm-mxs.c | 50 static int mxs_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in mxs_pwm_config() 101 static int mxs_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in mxs_pwm_enable() 115 static void mxs_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in mxs_pwm_disable()
|
D | pwm-img.c | 88 static int img_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in img_pwm_config() 139 static int img_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in img_pwm_enable() 155 static void img_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in img_pwm_disable() 191 struct img_pwm_chip *pwm; in img_pwm_probe() local
|
D | pwm-bcm-kona.c | 111 static int kona_pwmc_config(struct pwm_chip *chip, struct pwm_device *pwm, in kona_pwmc_config() 176 static int kona_pwmc_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in kona_pwmc_set_polarity() 208 static int kona_pwmc_enable(struct pwm_chip *chip, struct pwm_device *pwm) in kona_pwmc_enable() 229 static void kona_pwmc_disable(struct pwm_chip *chip, struct pwm_device *pwm) in kona_pwmc_disable()
|
D | pwm-fsl-ftm.c | 99 static int fsl_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in fsl_pwm_request() 106 static void fsl_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in fsl_pwm_free() 233 static int fsl_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in fsl_pwm_config() 281 struct pwm_device *pwm, in fsl_pwm_set_polarity() 323 static int fsl_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in fsl_pwm_enable() 356 static void fsl_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in fsl_pwm_disable()
|
D | pwm-mtk-disp.c | 67 static int mtk_disp_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in mtk_disp_pwm_config() 122 static int mtk_disp_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in mtk_disp_pwm_enable() 142 static void mtk_disp_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in mtk_disp_pwm_disable()
|
D | pwm-spear.c | 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()
|
D | pwm-sti.c | 115 static int sti_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in sti_pwm_config() 197 static int sti_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in sti_pwm_enable() 226 static void sti_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in sti_pwm_disable() 241 static void sti_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in sti_pwm_free()
|
D | pwm-brcmstb.c | 106 static int brcmstb_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in brcmstb_pwm_config() 214 static int brcmstb_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in brcmstb_pwm_enable() 223 static void brcmstb_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in brcmstb_pwm_disable()
|
/linux-4.4.14/include/linux/ |
D | pwm.h | 42 static inline void pwm_free(struct pwm_device *pwm) in pwm_free() 46 static inline int pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns) in pwm_config() 51 static inline int pwm_enable(struct pwm_device *pwm) in pwm_enable() 56 static inline void pwm_disable(struct pwm_device *pwm) in pwm_disable() 100 unsigned int pwm; member 110 static inline bool pwm_is_enabled(const struct pwm_device *pwm) in pwm_is_enabled() 115 static inline void pwm_set_period(struct pwm_device *pwm, unsigned int period) in pwm_set_period() 121 static inline unsigned int pwm_get_period(const struct pwm_device *pwm) in pwm_get_period() 126 static inline void pwm_set_duty_cycle(struct pwm_device *pwm, unsigned int duty) in pwm_set_duty_cycle() 132 static inline unsigned int pwm_get_duty_cycle(const struct pwm_device *pwm) in pwm_get_duty_cycle() [all …]
|
D | f75375s.h | 17 u8 pwm[2]; member
|
D | leds-pca9532.h | 42 u8 pwm[2]; member
|
/linux-4.4.14/drivers/hwmon/ |
D | pwm-fan.c | 33 struct pwm_device *pwm; member 41 static int __set_pwm(struct pwm_fan_ctx *ctx, unsigned long pwm) in __set_pwm() 70 static void pwm_fan_update_state(struct pwm_fan_ctx *ctx, unsigned long pwm) in pwm_fan_update_state() 85 unsigned long pwm; in set_pwm() local
|
D | max31790.c | 73 u16 pwm[NR_CHANNEL]; member 261 int pwm; in get_pwm() local 278 unsigned long pwm; in set_pwm() local
|
D | f71882fg.c | 105 #define F71882FG_REG_POINT_PWM(pwm, point) (0xAA + (point) + (16 * (pwm))) argument 106 #define F71882FG_REG_POINT_TEMP(pwm, point) (0xA6 + (point) + (16 * (pwm))) argument 298 u8 pwm[4]; member 1980 int pwm = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_pwm() local 2001 int err, pwm = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_pwm() local 2180 int pwm = to_sensor_dev_attr_2(devattr)->index; in show_pwm_auto_point_temp() local 2192 int err, pwm = to_sensor_dev_attr_2(devattr)->index; in store_pwm_auto_point_temp() local
|
D | max6650.c | 306 int pwm; in get_pwm() local 329 unsigned long pwm; in set_pwm() local
|
D | gpio-fan.c | 195 u8 pwm = fan_data->speed_index * 255 / (fan_data->num_speed - 1); in show_pwm() local 204 unsigned long pwm; in set_pwm() local
|
D | g760a.c | 63 #define PWM_TO_CNT(pwm) (0xff-(pwm)) argument
|
D | asb100.c | 165 static u8 ASB100_PWM_TO_REG(int pwm) in ASB100_PWM_TO_REG() 212 u8 pwm; /* Register encoding */ member
|
D | adm1031.c | 95 u8 pwm[2]; member 255 static int AUTO_TEMP_MAX_TO_REG(int val, int reg, int pwm) in AUTO_TEMP_MAX_TO_REG()
|
D | adt7470.c | 165 u8 pwm[ADT7470_PWM_COUNT]; member 202 u8 cfg, pwm[4], pwm_cfg[2]; in adt7470_read_temperatures() local
|
D | max6639.c | 95 u8 pwm[2]; /* Register value: Duty cycle 0..120 */ member
|
D | nct6683.c | 328 u8 pwm[NCT6683_NUM_REG_PWM]; member 928 int pwm = index; /* pwm index */ in nct6683_pwm_is_visible() local
|
D | w83l786ng.c | 142 u8 pwm[2]; member
|
D | smsc47m1.c | 137 u8 pwm[3]; /* Register value (bit 0 is disable) */ member
|
D | pc87360.c | 204 u8 pwm[3]; /* Register value */ member 387 static struct sensor_device_attribute pwm[] = { variable
|
D | nct6775.c | 738 static enum pwm_enable reg_to_pwm_enable(int pwm, int mode) in reg_to_pwm_enable() 945 u8 pwm[7][NUM_FAN]; /* [0]=pwm, [1]=pwm_start, [2]=pwm_floor, member 2316 int pwm; in show_pwm() local 2992 int pwm = index / 36; /* pwm index */ in nct6775_pwm_is_visible() local
|
D | f75375s.c | 115 u8 pwm[2]; member
|
D | pc87427.c | 69 u8 pwm[4]; /* register values */ member
|
D | lm63.c | 379 int pwm; in show_pwm1() local
|
D | vt1211.c | 135 u8 pwm[2]; member
|
D | adt7475.c | 183 u8 pwm[4][3]; member
|
D | w83791d.c | 315 u8 pwm[5]; /* pwm duty cycle */ member
|
D | w83792d.c | 292 u8 pwm[7]; /* The 7 PWM outputs */ member
|
D | lm93.c | 595 static u8 LM93_PWM_TO_REG(int pwm, enum pwm_freq freq) in LM93_PWM_TO_REG() 1986 struct lm93_data *data, int pwm) in lm93_disable_fan_smart_tach()
|
D | w83781d.c | 240 u8 pwm[4]; /* Register value */ member
|
D | f71805f.c | 188 u8 pwm[3]; member
|
D | adt7462.c | 221 u8 pwm[ADT7462_PWM_COUNT]; member
|
D | lm85.c | 314 u8 pwm[3]; /* Register value */ member
|
D | w83793.c | 252 u8 pwm[8][3]; /* Register value */ member
|
D | dme1737.c | 244 u8 pwm[6]; member
|
D | adm1026.c | 263 u8 pwm; member
|
D | w83627ehf.c | 487 u8 pwm[4]; member
|
D | w83627hf.c | 380 u8 pwm[3]; /* Register value */ member
|
D | w83795.c | 372 u8 pwm[8][5]; /* member
|
D | it87.c | 2499 u8 pwm[3]; in it87_check_pwm() local
|
/linux-4.4.14/drivers/input/keyboard/ |
D | lm8323.c | 159 struct lm8323_pwm pwm[LM8323_NUM_PWMS]; member 363 static void pwm_done(struct lm8323_pwm *pwm) in pwm_done() 428 static void lm8323_write_pwm_one(struct lm8323_pwm *pwm, int pos, u16 cmd) in lm8323_write_pwm_one() 440 static void lm8323_write_pwm(struct lm8323_pwm *pwm, int kill, in lm8323_write_pwm() 455 struct lm8323_pwm *pwm = work_to_pwm(work); in lm8323_pwm_work() local 512 struct lm8323_pwm *pwm = cdev_to_pwm(led_cdev); in lm8323_pwm_set_brightness() local 538 struct lm8323_pwm *pwm = cdev_to_pwm(led_cdev); in lm8323_pwm_show_time() local 547 struct lm8323_pwm *pwm = cdev_to_pwm(led_cdev); in lm8323_pwm_store_time() local 570 struct lm8323_pwm *pwm; in init_pwm() local 636 int pwm; in lm8323_probe() local
|
/linux-4.4.14/drivers/clk/ |
D | clk-pwm.c | 19 struct pwm_device *pwm; member 61 struct pwm_device *pwm; in clk_pwm_probe() local
|
/linux-4.4.14/drivers/media/dvb-frontends/ |
D | tda1002x.h | 65 struct i2c_adapter* i2c, u8 pwm) in tda10021_attach() 79 struct i2c_adapter *i2c, u8 pwm) in tda10023_attach()
|
D | ves1820.h | 49 struct i2c_adapter* i2c, u8 pwm) in ves1820_attach()
|
D | ves1820.c | 43 u8 pwm; member 376 u8 pwm) in ves1820_attach()
|
D | tda10021.c | 42 u8 pwm; member 451 u8 pwm) in tda10021_attach()
|
D | tda10023.c | 49 u8 pwm; member 523 u8 pwm) in tda10023_attach()
|
D | atbm8830.c | 388 u32 pwm; in atbm8830_read_signal_strength() local
|
/linux-4.4.14/arch/arm/boot/dts/ |
D | spear320.dtsi | 86 pwm: pwm@a8000000 { label
|
D | sun5i-a13.dtsi | 155 pwm: pwm@01c20e00 { label
|
D | imx28-cfa10055.dts | 130 pwm: pwm@80064000 { label
|
D | spear1340.dtsi | 97 pwm: pwm@e0180000 { label
|
D | imx28-cfa10058.dts | 89 pwm: pwm@80064000 { label
|
D | imx28-cfa10057.dts | 116 pwm: pwm@80064000 { label
|
D | bcm28155-ap.dts | 72 pwm: pwm@3e01a000 { label
|
D | spear320-hmi.dts | 164 pwm: pwm@a8000000 { label
|
D | imx23-evk.dts | 98 pwm: pwm@80064000 { label
|
D | sun5i-a10s.dtsi | 168 pwm: pwm@01c20e00 { label
|
D | s3c64xx.dtsi | 166 pwm: pwm@7f006000 { label
|
D | tegra20-paz00.dts | 270 pwm: pwm@7000a000 { label
|
D | tegra20-harmony.dts | 274 pwm: pwm@7000a000 { label
|
D | tegra20.dtsi | 379 pwm: pwm@7000a000 { label
|
D | imx28-apf28dev.dts | 134 pwm: pwm@80064000 { label
|
D | tegra20-ventana.dts | 321 pwm: pwm@7000a000 { label
|
D | imx28-m28cu3.dts | 170 pwm: pwm@80064000 { label
|
D | imx1.dtsi | 117 pwm: pwm@00208000 { label
|
D | tegra114.dtsi | 314 pwm: pwm@7000a000 { label
|
D | tegra20-seaboard.dts | 325 pwm: pwm@7000a000 { label
|
D | tegra30.dtsi | 442 pwm: pwm@7000a000 { label
|
D | lpc32xx.dtsi | 292 pwm: pwm@4005C000 { label
|
D | tegra124.dtsi | 380 pwm: pwm@0,7000a000 { label
|
D | imx28-cfa10049.dts | 210 pwm: pwm@80064000 { label
|
D | wm8850.dtsi | 224 pwm: pwm@d8220000 { label
|
D | imx28-m28evk.dts | 192 pwm: pwm@80064000 { label
|
D | imx23.dtsi | 501 pwm: pwm@80064000 { label
|
D | wm8750.dtsi | 237 pwm: pwm@d8220000 { label
|
D | imx28-evk.dts | 212 pwm: pwm@80064000 { label
|
D | bcm11351.dtsi | 215 pwm: pwm@3e01a000 { label
|
D | berlin2cd.dtsi | 384 pwm: pwm@f20000 { label
|
D | s5pv210.dtsi | 300 pwm: pwm@e2500000 { label
|
D | berlin2.dtsi | 423 pwm: pwm@f20000 { label
|
D | imx27.dtsi | 137 pwm: pwm@10006000 { label
|
D | exynos4415.dtsi | 633 pwm: pwm@139D0000 { label
|
D | exynos3250.dtsi | 603 pwm: pwm@139D0000 { label
|
D | sun8i-a23-a33.dtsi | 451 pwm: pwm@01c21400 { label
|
D | berlin2q.dtsi | 498 pwm: pwm@f20000 { label
|
D | exynos5250.dtsi | 656 pwm: pwm@12dd0000 { label
|
D | exynos4.dtsi | 637 pwm: pwm@139D0000 { label
|
D | exynos5420.dtsi | 497 pwm: pwm@12dd0000 { label
|
D | imx28.dtsi | 1102 pwm: pwm@80064000 { label
|
D | sun4i-a10.dtsi | 992 pwm: pwm@01c20e00 { label
|
D | sun7i-a20.dtsi | 1186 pwm: pwm@01c20e00 { label
|
D | atlas7.dtsi | 1231 pwm: pwm@18630000 { label
|
/linux-4.4.14/include/linux/mfd/ |
D | lm3533.h | 53 u8 pwm; /* 0 - 0x3f */ member 60 u8 pwm; /* 0 - 0x3f */ member
|
D | 88pm860x.h | 407 int pwm; member
|
/linux-4.4.14/drivers/leds/ |
D | leds-lm3530.c | 234 struct lm3530_pwm_data *pwm = &pdata->pwm_data; in lm3530_init_registers() local 312 struct lm3530_pwm_data *pwm = &pdata->pwm_data; in lm3530_brightness_set() local 374 struct lm3530_pwm_data *pwm; in lm3530_mode_set() local
|
D | leds-pca9532.c | 49 u8 pwm[2]; member 103 static int pca9532_calcpwm(struct i2c_client *client, int pwm, int blink, in pca9532_calcpwm() 129 static int pca9532_setpwm(struct i2c_client *client, int pwm) in pca9532_setpwm()
|
D | leds-pwm.c | 29 struct pwm_device *pwm; member
|
D | leds-tlc591xx.c | 108 u8 pwm = TLC591XX_REG_PWM(led->led_no); in tlc591xx_set_pwm() local
|
/linux-4.4.14/drivers/video/backlight/ |
D | lp8788_bl.c | 52 struct pwm_device *pwm; member 130 struct pwm_device *pwm; in lp8788_pwm_ctrl() local
|
D | lp855x_bl.c | 75 struct pwm_device *pwm; member 240 struct pwm_device *pwm; in lp855x_pwm_ctrl() local
|
D | 88pm860x_bl.c | 33 int pwm; member
|
D | pwm_bl.c | 28 struct pwm_device *pwm; member
|
/linux-4.4.14/drivers/media/pci/mantis/ |
D | mantis_vp2040.c | 111 u8 pwm; in read_pwm() local
|
D | mantis_vp2033.c | 55 u8 pwm; in read_pwm() local
|
/linux-4.4.14/drivers/input/misc/ |
D | pwm-beeper.c | 27 struct pwm_device *pwm; member
|
D | twl4030-vibra.c | 104 int pwm; in vibra_play_work() local
|
D | max8997_haptic.c | 58 struct pwm_device *pwm; member
|
/linux-4.4.14/arch/arm64/boot/dts/exynos/ |
D | exynos7.dtsi | 526 pwm: pwm@136c0000 { label
|
/linux-4.4.14/drivers/macintosh/ |
D | windfarm_smu_controls.c | 54 static int smu_set_fan(int pwm, u8 id, u16 value) in smu_set_fan()
|
/linux-4.4.14/drivers/regulator/ |
D | pwm-regulator.c | 26 struct pwm_device *pwm; member
|
D | max8973-regulator.c | 215 int pwm; in max8973_dcdc_set_mode() local
|
D | qcom_rpm-regulator.c | 664 bool pwm; in rpm_reg_of_parse() local
|
/linux-4.4.14/drivers/clk/mxs/ |
D | clk-imx23.c | 91 clk32k, dri, pwm, filt, uart, ssp, gpmi, spdif, emi, saif, enumerator
|
D | clk-imx28.c | 145 clk32k_div, rtc, lradc, spdif_div, clk32k, pwm, uart, ssp0, enumerator
|
/linux-4.4.14/drivers/gpu/drm/gma500/ |
D | cdv_intel_lvds.c | 764 u32 pwm; in cdv_intel_lvds_init() local
|
/linux-4.4.14/drivers/media/pci/ttpci/ |
D | budget.c | 445 u8 pwm; in read_pwm() local
|
D | budget-av.c | 1171 u8 pwm; in read_pwm() local
|
D | av7110.c | 2113 u8 pwm; in read_pwm() local
|
/linux-4.4.14/drivers/clocksource/ |
D | samsung_pwm_timer.c | 83 static struct samsung_pwm_clocksource pwm; variable
|
/linux-4.4.14/drivers/video/fbdev/ |
D | ssd1307fb.c | 74 struct pwm_device *pwm; member
|
/linux-4.4.14/drivers/platform/x86/ |
D | compal-laptop.c | 309 static void set_pwm(int pwm) in set_pwm()
|
/linux-4.4.14/drivers/media/usb/ttusb-budget/ |
D | dvb-ttusb-budget.c | 1390 u8 pwm; in read_pwm() local
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | mpc52xx.h | 111 u32 pwm; /* GPTx + 0x08 */ member
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
D | intel_panel.c | 1386 u32 pwm; in get_backlight_max_vbt() local
|
D | intel_drv.h | 184 struct pwm_device *pwm; member
|