/linux-master/include/linux/ |
H A D | pwm.h | 9 struct pwm_chip; 81 struct pwm_chip *chip; 256 int (*request)(struct pwm_chip *chip, struct pwm_device *pwm); 257 void (*free)(struct pwm_chip *chip, struct pwm_device *pwm); 258 int (*capture)(struct pwm_chip *chip, struct pwm_device *pwm, 260 int (*apply)(struct pwm_chip *chip, struct pwm_device *pwm, 262 int (*get_state)(struct pwm_chip *chip, struct pwm_device *pwm, 267 * struct pwm_chip - abstract a PWM controller 278 struct pwm_chip { struct 285 struct pwm_device * (*of_xlate)(struct pwm_chip *chi [all...] |
/linux-master/include/linux/platform_data/x86/ |
H A D | pwm-lpss.h | 30 struct pwm_chip *devm_pwm_lpss_probe(struct device *dev, void __iomem *base,
|
/linux-master/drivers/staging/greybus/ |
H A D | pwm.c | 19 struct pwm_chip chip; 22 static inline struct gb_pwm_chip *pwm_chip_to_gb_pwm_chip(struct pwm_chip *chip) 44 static int gb_pwm_activate_operation(struct pwm_chip *chip, u8 which) 66 static int gb_pwm_deactivate_operation(struct pwm_chip *chip, u8 which) 88 static int gb_pwm_config_operation(struct pwm_chip *chip, 113 static int gb_pwm_set_polarity_operation(struct pwm_chip *chip, 137 static int gb_pwm_enable_operation(struct pwm_chip *chip, u8 which) 159 static int gb_pwm_disable_operation(struct pwm_chip *chip, u8 which) 177 static int gb_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) 182 static void gb_pwm_free(struct pwm_chip *chi [all...] |
/linux-master/drivers/pwm/ |
H A D | pwm-imx1.c | 33 static inline struct pwm_imx1_chip *to_pwm_imx1_chip(struct pwm_chip *chip) 38 static int pwm_imx1_clk_prepare_enable(struct pwm_chip *chip) 56 static void pwm_imx1_clk_disable_unprepare(struct pwm_chip *chip) 64 static int pwm_imx1_config(struct pwm_chip *chip, 95 static int pwm_imx1_enable(struct pwm_chip *chip, struct pwm_device *pwm) 112 static void pwm_imx1_disable(struct pwm_chip *chip, struct pwm_device *pwm) 124 static int pwm_imx1_apply(struct pwm_chip *chip, struct pwm_device *pwm, 161 struct pwm_chip *chip;
|
H A D | pwm-dwc.h | 44 struct pwm_chip *chips[]; 59 static inline struct dwc_pwm *to_dwc_pwm(struct pwm_chip *chip) 74 extern struct pwm_chip *dwc_pwm_alloc(struct device *dev);
|
H A D | pwm-lpc32xx.c | 25 static inline struct lpc32xx_pwm_chip *to_lpc32xx_pwm_chip(struct pwm_chip *chip) 30 static int lpc32xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, 63 static int lpc32xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) 80 static void lpc32xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) 92 static int lpc32xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, 123 struct pwm_chip *chip;
|
H A D | pwm-twl-led.c | 68 static inline struct twl_pwmled_chip *to_twl(struct pwm_chip *chip) 73 static int twl4030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, 107 static int twl4030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) 131 static void twl4030_pwmled_disable(struct pwm_chip *chip, 155 static int twl4030_pwmled_apply(struct pwm_chip *chip, struct pwm_device *pwm, 193 static int twl6030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, 210 static int twl6030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) 236 static void twl6030_pwmled_disable(struct pwm_chip *chip, 262 static int twl6030_pwmled_apply(struct pwm_chip *chip, struct pwm_device *pwm, 288 static int twl6030_pwmled_request(struct pwm_chip *chi [all...] |
H A D | pwm-clps711x.c | 20 static inline struct clps711x_chip *to_clps711x_chip(struct pwm_chip *chip) 25 static int clps711x_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) 39 static int clps711x_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, 78 struct pwm_chip *chip;
|
H A D | pwm-clk.c | 35 static inline struct pwm_clk_chip *to_pwm_clk_chip(struct pwm_chip *chip) 40 static int pwm_clk_apply(struct pwm_chip *chip, struct pwm_device *pwm, 86 struct pwm_chip *chip; 112 struct pwm_chip *chip = platform_get_drvdata(pdev);
|
H A D | pwm-ntxec.c | 30 static struct ntxec_pwm *ntxec_pwm_from_chip(struct pwm_chip *chip) 56 static int ntxec_pwm_set_raw_period_and_duty_cycle(struct pwm_chip *chip, 82 static int ntxec_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm_dev, 139 struct pwm_chip *chip;
|
H A D | pwm-berlin.c | 57 static inline struct berlin_pwm_chip *to_berlin_pwm_chip(struct pwm_chip *chip) 75 static int berlin_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, 113 static int berlin_pwm_set_polarity(struct pwm_chip *chip, 132 static int berlin_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) 144 static void berlin_pwm_disable(struct pwm_chip *chip, 155 static int berlin_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, 200 struct pwm_chip *chip; 230 struct pwm_chip *chip = dev_get_drvdata(dev); 250 struct pwm_chip *chip = dev_get_drvdata(dev);
|
H A D | pwm-tiecap.c | 40 static inline struct ecap_pwm_chip *to_ecap_pwm_chip(struct pwm_chip *chip) 49 static int ecap_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, 107 static int ecap_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, 131 static int ecap_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) 150 static void ecap_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) 167 static int ecap_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, 220 struct pwm_chip *chip; 271 static void ecap_pwm_save_context(struct pwm_chip *chip) 282 static void ecap_pwm_restore_context(struct pwm_chip *chip) 293 struct pwm_chip *chi [all...] |
H A D | pwm-twl.c | 54 static inline struct twl_pwm_chip *to_twl(struct pwm_chip *chip) 59 static int twl_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, 93 static int twl4030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) 123 static void twl4030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) 152 static int twl4030_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) 190 static void twl4030_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) 220 static int twl6030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) 243 static void twl6030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) 281 static int twl4030_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, 306 static int twl6030_pwm_apply(struct pwm_chip *chi [all...] |
H A D | pwm-pca9685.c | 88 static inline struct pca9685 *to_pca(struct pwm_chip *chip) 109 static int pca9685_read_reg(struct pwm_chip *chip, unsigned int reg, unsigned int *val) 122 static int pca9685_write_reg(struct pwm_chip *chip, unsigned int reg, unsigned int val) 136 static void pca9685_pwm_set_duty(struct pwm_chip *chip, int channel, unsigned int duty) 175 static unsigned int pca9685_pwm_get_duty(struct pwm_chip *chip, int channel) 251 struct pwm_chip *chip = gpiochip_get_data(gpio); 262 struct pwm_chip *chip = gpiochip_get_data(gpio); 270 struct pwm_chip *chip = gpiochip_get_data(gpio); 277 struct pwm_chip *chip = gpiochip_get_data(gpio); 312 static int pca9685_pwm_gpio_probe(struct pwm_chip *chi [all...] |
H A D | pwm-vt8500.c | 52 static inline struct vt8500_chip *to_vt8500_chip(struct pwm_chip *chip) 58 static inline void vt8500_pwm_busy_wait(struct pwm_chip *chip, int nr, u8 bitmask) 72 static int vt8500_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, 126 static int vt8500_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) 146 static void vt8500_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) 159 static int vt8500_pwm_set_polarity(struct pwm_chip *chip, 179 static int vt8500_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, 237 struct pwm_chip *chip;
|
H A D | pwm-jz4740.c | 32 static inline struct jz4740_pwm_chip *to_jz4740(struct pwm_chip *chip) 37 static bool jz4740_pwm_can_use_chn(struct pwm_chip *chip, unsigned int channel) 49 static int jz4740_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) 79 static void jz4740_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) 88 static int jz4740_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) 101 static void jz4740_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) 123 static int jz4740_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, 226 struct pwm_chip *chip;
|
H A D | pwm-lp3943.c | 28 static inline struct lp3943_pwm *to_lp3943_pwm(struct pwm_chip *chip) 55 static int lp3943_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) 79 static void lp3943_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) 87 static int lp3943_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, 151 static int lp3943_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) 170 static void lp3943_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) 183 static int lp3943_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, 275 struct pwm_chip *chip;
|
H A D | pwm-ep93xx.c | 41 static inline struct ep93xx_pwm *to_ep93xx_pwm(struct pwm_chip *chip) 46 static int ep93xx_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) 53 static void ep93xx_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) 60 static int ep93xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, 165 struct pwm_chip *chip;
|
H A D | core.c | 36 struct pwm_chip *chip = pwm->chip; 145 struct pwm_chip *chip; 310 static struct pwm_chip *pwmchip_find_by_name(const char *name) 312 struct pwm_chip *chip; 337 struct pwm_chip *chip = pwm->chip; 390 struct pwm_device *pwm_request_from_chip(struct pwm_chip *chip, 414 of_pwm_xlate_with_flags(struct pwm_chip *chip, const struct of_phandle_args *args) 438 of_pwm_single_xlate(struct pwm_chip *chip, const struct of_phandle_args *args) 459 static void *pwmchip_priv(struct pwm_chip *chip) 465 void pwmchip_put(struct pwm_chip *chi [all...] |
H A D | pwm-tegra.c | 79 static inline struct tegra_pwm_chip *to_tegra_pwm_chip(struct pwm_chip *chip) 94 static int tegra_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, 211 static int tegra_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) 228 static void tegra_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) 240 static int tegra_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, 272 struct pwm_chip *chip; 352 struct pwm_chip *chip = platform_get_drvdata(pdev); 364 struct pwm_chip *chip = dev_get_drvdata(dev); 381 struct pwm_chip *chip = dev_get_drvdata(dev);
|
H A D | pwm-hibvt.c | 65 static inline struct hibvt_pwm_chip *to_hibvt_pwm_chip(struct pwm_chip *chip) 82 static void hibvt_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) 90 static void hibvt_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) 98 static void hibvt_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, 116 static void hibvt_pwm_set_polarity(struct pwm_chip *chip, 130 static int hibvt_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, 153 static int hibvt_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, 193 struct pwm_chip *chip; 248 struct pwm_chip *chip = platform_get_drvdata(pdev);
|
H A D | pwm-rz-mtu3.c | 91 static inline struct rz_mtu3_pwm_chip *to_rz_mtu3_pwm_chip(struct pwm_chip *chip) 165 static int rz_mtu3_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) 195 static void rz_mtu3_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) 212 static int rz_mtu3_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) 244 static void rz_mtu3_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) 269 static int rz_mtu3_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, 318 static int rz_mtu3_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, 405 static int rz_mtu3_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, 443 struct pwm_chip *chip = dev_get_drvdata(dev); 453 struct pwm_chip *chi [all...] |
H A D | pwm-pxa.c | 58 static inline struct pxa_pwm_chip *to_pxa_pwm_chip(struct pwm_chip *chip) 67 static int pxa_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, 102 static int pxa_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, 161 struct pwm_chip *chip;
|
H A D | pwm-sl28cpld.c | 88 static inline struct sl28cpld_pwm *sl28cpld_pwm_from_chip(struct pwm_chip *chip) 93 static int sl28cpld_pwm_get_state(struct pwm_chip *chip, 125 static int sl28cpld_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, 207 struct pwm_chip *chip; 233 /* Initialize the pwm_chip structure */
|
H A D | pwm-raspberrypi-poe.c | 40 struct raspberrypi_pwm *raspberrypi_pwm_from_chip(struct pwm_chip *chip) 84 static int raspberrypi_pwm_get_state(struct pwm_chip *chip, 99 static int raspberrypi_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, 144 struct pwm_chip *chip;
|