Searched refs:pwm_chip (Results 1 - 41 of 41) sorted by relevance

/linux-4.4.14/drivers/pwm/
H A Dpwm-img.c61 struct pwm_chip chip;
71 static inline struct img_pwm_chip *to_img_pwm_chip(struct pwm_chip *chip) to_img_pwm_chip()
88 static int img_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, img_pwm_config()
93 struct img_pwm_chip *pwm_chip = to_img_pwm_chip(chip); img_pwm_config() local
94 unsigned int max_timebase = pwm_chip->data->max_timebase; img_pwm_config()
96 if (period_ns < pwm_chip->min_period_ns || img_pwm_config()
97 period_ns > pwm_chip->max_period_ns) { img_pwm_config()
102 input_clk_hz = clk_get_rate(pwm_chip->pwm_clk); img_pwm_config()
126 val = img_pwm_readl(pwm_chip, PWM_CTRL_CFG); img_pwm_config()
130 img_pwm_writel(pwm_chip, PWM_CTRL_CFG, val); img_pwm_config()
134 img_pwm_writel(pwm_chip, PWM_CH_CFG(pwm->hwpwm), val); img_pwm_config()
139 static int img_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) img_pwm_enable()
142 struct img_pwm_chip *pwm_chip = to_img_pwm_chip(chip); img_pwm_enable() local
144 val = img_pwm_readl(pwm_chip, PWM_CTRL_CFG); img_pwm_enable()
146 img_pwm_writel(pwm_chip, PWM_CTRL_CFG, val); img_pwm_enable()
148 regmap_update_bits(pwm_chip->periph_regs, PERIP_PWM_PDM_CONTROL, img_pwm_enable()
155 static void img_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) img_pwm_disable()
158 struct img_pwm_chip *pwm_chip = to_img_pwm_chip(chip); img_pwm_disable() local
160 val = img_pwm_readl(pwm_chip, PWM_CTRL_CFG); img_pwm_disable()
162 img_pwm_writel(pwm_chip, PWM_CTRL_CFG, val); img_pwm_disable()
273 struct img_pwm_chip *pwm_chip = platform_get_drvdata(pdev); img_pwm_remove() local
277 for (i = 0; i < pwm_chip->chip.npwm; i++) { img_pwm_remove()
278 val = img_pwm_readl(pwm_chip, PWM_CTRL_CFG); img_pwm_remove()
280 img_pwm_writel(pwm_chip, PWM_CTRL_CFG, val); img_pwm_remove()
283 clk_disable_unprepare(pwm_chip->pwm_clk); img_pwm_remove()
284 clk_disable_unprepare(pwm_chip->sys_clk); img_pwm_remove()
286 return pwmchip_remove(&pwm_chip->chip); img_pwm_remove()
H A Dpwm-bfin.c18 struct pwm_chip chip;
30 static int bfin_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) bfin_pwm_request()
55 static void bfin_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) bfin_pwm_free()
65 static int bfin_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, bfin_pwm_config()
90 static int bfin_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) bfin_pwm_enable()
99 static void bfin_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) bfin_pwm_disable()
H A Dpwm-crc.c37 * @chip: the abstract pwm_chip structure.
41 struct pwm_chip chip;
45 static inline struct crystalcove_pwm *to_crc_pwm(struct pwm_chip *pc) to_crc_pwm()
50 static int crc_pwm_enable(struct pwm_chip *c, struct pwm_device *pwm) crc_pwm_enable()
59 static void crc_pwm_disable(struct pwm_chip *c, struct pwm_device *pwm) crc_pwm_disable()
66 static int crc_pwm_config(struct pwm_chip *c, struct pwm_device *pwm, crc_pwm_config()
H A Dpwm-bcm2835.c30 struct pwm_chip chip;
37 static inline struct bcm2835_pwm *to_bcm2835_pwm(struct pwm_chip *chip) to_bcm2835_pwm()
42 static int bcm2835_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) bcm2835_pwm_request()
55 static void bcm2835_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) bcm2835_pwm_free()
65 static int bcm2835_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, bcm2835_pwm_config()
82 static int bcm2835_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) bcm2835_pwm_enable()
94 static void bcm2835_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) bcm2835_pwm_disable()
104 static int bcm2835_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, bcm2835_set_polarity()
H A Dpwm-ep93xx.c48 struct pwm_chip chip;
51 static inline struct ep93xx_pwm *to_ep93xx_pwm(struct pwm_chip *chip) to_ep93xx_pwm()
56 static int ep93xx_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) ep93xx_pwm_request()
63 static void ep93xx_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) ep93xx_pwm_free()
70 static int ep93xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, ep93xx_pwm_config()
122 static int ep93xx_pwm_polarity(struct pwm_chip *chip, struct pwm_device *pwm, ep93xx_pwm_polarity()
146 static int ep93xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) ep93xx_pwm_enable()
160 static void ep93xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) ep93xx_pwm_disable()
H A Dpwm-imx.c56 struct pwm_chip chip;
58 int (*config)(struct pwm_chip *chip,
60 void (*set_enable)(struct pwm_chip *chip, bool enable);
65 static int imx_pwm_config_v1(struct pwm_chip *chip, imx_pwm_config_v1()
94 static void imx_pwm_set_enable_v1(struct pwm_chip *chip, bool enable) imx_pwm_set_enable_v1()
109 static int imx_pwm_config_v2(struct pwm_chip *chip, imx_pwm_config_v2()
188 static void imx_pwm_set_enable_v2(struct pwm_chip *chip, bool enable) imx_pwm_set_enable_v2()
203 static int imx_pwm_config(struct pwm_chip *chip, imx_pwm_config()
220 static int imx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) imx_pwm_enable()
234 static void imx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) imx_pwm_disable()
251 int (*config)(struct pwm_chip *chip,
253 void (*set_enable)(struct pwm_chip *chip, bool enable);
H A Dpwm-puv3.c27 struct pwm_chip chip;
32 static inline struct puv3_pwm_chip *to_puv3(struct pwm_chip *chip) to_puv3()
41 static int puv3_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, puv3_pwm_config()
82 static int puv3_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) puv3_pwm_enable()
89 static void puv3_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) puv3_pwm_disable()
H A Dpwm-clps711x.c20 struct pwm_chip chip;
26 static inline struct clps711x_chip *to_clps711x_chip(struct pwm_chip *chip) to_clps711x_chip()
54 static int clps711x_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) clps711x_pwm_request()
68 static int clps711x_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, clps711x_pwm_config()
83 static int clps711x_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) clps711x_pwm_enable()
94 static void clps711x_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) clps711x_pwm_disable()
109 static struct pwm_device *clps711x_pwm_xlate(struct pwm_chip *chip, clps711x_pwm_xlate()
H A Dpwm-jz4740.c41 struct pwm_chip chip;
45 static inline struct jz4740_pwm_chip *to_jz4740(struct pwm_chip *chip) to_jz4740()
50 static int jz4740_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) jz4740_pwm_request()
76 static void jz4740_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) jz4740_pwm_free()
88 static int jz4740_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) jz4740_pwm_enable()
99 static void jz4740_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) jz4740_pwm_disable()
108 static int jz4740_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, jz4740_pwm_config()
H A Dpwm-twl-led.c60 struct pwm_chip chip;
64 static inline struct twl_pwmled_chip *to_twl(struct pwm_chip *chip) to_twl()
69 static int twl4030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, twl4030_pwmled_config()
103 static int twl4030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) twl4030_pwmled_enable()
127 static void twl4030_pwmled_disable(struct pwm_chip *chip, twl4030_pwmled_disable()
151 static int twl6030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, twl6030_pwmled_config()
168 static int twl6030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) twl6030_pwmled_enable()
194 static void twl6030_pwmled_disable(struct pwm_chip *chip, twl6030_pwmled_disable()
220 static int twl6030_pwmled_request(struct pwm_chip *chip, struct pwm_device *pwm) twl6030_pwmled_request()
246 static void twl6030_pwmled_free(struct pwm_chip *chip, struct pwm_device *pwm) twl6030_pwmled_free()
H A Dpwm-berlin.c31 struct pwm_chip chip;
36 static inline struct berlin_pwm_chip *to_berlin_pwm_chip(struct pwm_chip *chip) to_berlin_pwm_chip()
58 static int berlin_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm_dev, berlin_pwm_config()
97 static int berlin_pwm_set_polarity(struct pwm_chip *chip, berlin_pwm_set_polarity()
116 static int berlin_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm_dev) berlin_pwm_enable()
128 static void berlin_pwm_disable(struct pwm_chip *chip, berlin_pwm_disable()
H A Dpwm-pxa.c47 struct pwm_chip chip;
54 static inline struct pxa_pwm_chip *to_pxa_pwm_chip(struct pwm_chip *chip) to_pxa_pwm_chip()
63 static int pxa_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, pxa_pwm_config()
107 static int pxa_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) pxa_pwm_enable()
114 static void pxa_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) pxa_pwm_disable()
155 pxa_pwm_of_xlate(struct pwm_chip *pc, const struct of_phandle_args *args) pxa_pwm_of_xlate()
H A Dpwm-ab8500.c24 struct pwm_chip chip;
27 static int ab8500_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, ab8500_pwm_config()
57 static int ab8500_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) ab8500_pwm_enable()
70 static void ab8500_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) ab8500_pwm_disable()
H A Dpwm-lpc32xx.c22 struct pwm_chip chip;
34 static int lpc32xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, lpc32xx_pwm_config()
80 static int lpc32xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) lpc32xx_pwm_enable()
97 static void lpc32xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) lpc32xx_pwm_disable()
H A Dpwm-rockchip.c34 struct pwm_chip chip;
52 void (*set_enable)(struct pwm_chip *chip,
56 static inline struct rockchip_pwm_chip *to_rockchip_pwm_chip(struct pwm_chip *c) to_rockchip_pwm_chip()
61 static void rockchip_pwm_set_enable_v1(struct pwm_chip *chip, rockchip_pwm_set_enable_v1()
78 static void rockchip_pwm_set_enable_v2(struct pwm_chip *chip, rockchip_pwm_set_enable_v2()
101 static int rockchip_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, rockchip_pwm_config()
137 static int rockchip_pwm_set_polarity(struct pwm_chip *chip, rockchip_pwm_set_polarity()
150 static int rockchip_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) rockchip_pwm_enable()
164 static void rockchip_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) rockchip_pwm_disable()
H A Dpwm-twl.c60 struct pwm_chip chip;
66 static inline struct twl_pwm_chip *to_twl(struct pwm_chip *chip) to_twl()
71 static int twl_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, twl_pwm_config()
105 static int twl4030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) twl4030_pwm_enable()
135 static void twl4030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) twl4030_pwm_disable()
164 static int twl4030_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) twl4030_pwm_request()
202 static void twl4030_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) twl4030_pwm_free()
232 static int twl6030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) twl6030_pwm_enable()
255 static void twl6030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) twl6030_pwm_disable()
H A Dsysfs.c251 struct pwm_chip *chip = dev_get_drvdata(parent); export_store()
279 struct pwm_chip *chip = dev_get_drvdata(parent); unexport_store()
299 const struct pwm_chip *chip = dev_get_drvdata(parent); npwm_show()
311 ATTRIBUTE_GROUPS(pwm_chip); variable
324 void pwmchip_sysfs_export(struct pwm_chip *chip) pwmchip_sysfs_export()
329 * If device_create() fails the pwm_chip is still usable by pwmchip_sysfs_export()
336 "device_create failed for pwm_chip sysfs export\n"); pwmchip_sysfs_export()
340 void pwmchip_sysfs_unexport(struct pwm_chip *chip) pwmchip_sysfs_unexport()
H A Dpwm-lpss.c37 struct pwm_chip chip;
63 static inline struct pwm_lpss_chip *to_lpwm(struct pwm_chip *chip) to_lpwm()
82 static int pwm_lpss_config(struct pwm_chip *chip, struct pwm_device *pwm, pwm_lpss_config()
124 static int pwm_lpss_enable(struct pwm_chip *chip, struct pwm_device *pwm) pwm_lpss_enable()
131 static void pwm_lpss_disable(struct pwm_chip *chip, struct pwm_device *pwm) pwm_lpss_disable()
H A Dpwm-mtk-disp.c44 struct pwm_chip chip;
50 static inline struct mtk_disp_pwm *to_mtk_disp_pwm(struct pwm_chip *chip) to_mtk_disp_pwm()
67 static int mtk_disp_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, mtk_disp_pwm_config()
122 static int mtk_disp_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) mtk_disp_pwm_enable()
142 static void mtk_disp_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) mtk_disp_pwm_disable()
H A Dpwm-atmel.c62 struct pwm_chip chip;
69 void (*config)(struct pwm_chip *chip, struct pwm_device *pwm,
73 static inline struct atmel_pwm_chip *to_atmel_pwm_chip(struct pwm_chip *chip) to_atmel_pwm_chip()
107 static int atmel_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, atmel_pwm_config()
162 static void atmel_pwm_config_v1(struct pwm_chip *chip, struct pwm_device *pwm, atmel_pwm_config_v1()
189 static void atmel_pwm_config_v2(struct pwm_chip *chip, struct pwm_device *pwm, atmel_pwm_config_v2()
210 static int atmel_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, atmel_pwm_set_polarity()
237 static int atmel_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) atmel_pwm_enable()
253 static void atmel_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) atmel_pwm_disable()
286 void (*config)(struct pwm_chip *chip, struct pwm_device *pwm,
H A Dpwm-lpc18xx-sct.c96 struct pwm_chip chip;
110 to_lpc18xx_pwm_chip(struct pwm_chip *chip) to_lpc18xx_pwm_chip()
148 static void lpc18xx_pwm_config_period(struct pwm_chip *chip, int period_ns) lpc18xx_pwm_config_period()
165 static void lpc18xx_pwm_config_duty(struct pwm_chip *chip, lpc18xx_pwm_config_duty()
184 static int lpc18xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, lpc18xx_pwm_config()
229 static int lpc18xx_pwm_set_polarity(struct pwm_chip *chip, lpc18xx_pwm_set_polarity()
236 static int lpc18xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) lpc18xx_pwm_enable()
271 static void lpc18xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) lpc18xx_pwm_disable()
282 static int lpc18xx_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) lpc18xx_pwm_request()
304 static void lpc18xx_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) lpc18xx_pwm_free()
H A Dcore.c72 static void free_pwms(struct pwm_chip *chip) free_pwms()
87 static struct pwm_chip *pwmchip_find_by_name(const char *name) pwmchip_find_by_name()
89 struct pwm_chip *chip; pwmchip_find_by_name()
135 of_pwm_xlate_with_flags(struct pwm_chip *pc, const struct of_phandle_args *args) of_pwm_xlate_with_flags()
161 of_pwm_simple_xlate(struct pwm_chip *pc, const struct of_phandle_args *args) of_pwm_simple_xlate()
180 static void of_pwmchip_add(struct pwm_chip *chip) of_pwmchip_add()
193 static void of_pwmchip_remove(struct pwm_chip *chip) of_pwmchip_remove()
240 int pwmchip_add_with_polarity(struct pwm_chip *chip, pwmchip_add_with_polarity()
304 int pwmchip_add(struct pwm_chip *chip) pwmchip_add()
319 int pwmchip_remove(struct pwm_chip *chip) pwmchip_remove()
397 struct pwm_device *pwm_request_from_chip(struct pwm_chip *chip, pwm_request_from_chip()
534 static struct pwm_chip *of_node_to_pwmchip(struct device_node *np) of_node_to_pwmchip()
536 struct pwm_chip *chip; of_node_to_pwmchip()
574 struct pwm_chip *pc; of_pwm_get()
683 struct pwm_chip *chip = NULL; pwm_get()
897 static void pwm_dbg_show(struct pwm_chip *chip, struct seq_file *s) pwm_dbg_show()
938 struct pwm_chip *chip = list_entry(v, struct pwm_chip, list); pwm_seq_show()
H A Dpwm-lp3943.c26 struct pwm_chip chip;
31 static inline struct lp3943_pwm *to_lp3943_pwm(struct pwm_chip *_chip) to_lp3943_pwm()
64 static int lp3943_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) lp3943_pwm_request()
90 static void lp3943_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) lp3943_pwm_free()
98 static int lp3943_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, lp3943_pwm_config()
156 static int lp3943_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) lp3943_pwm_enable()
175 static void lp3943_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) lp3943_pwm_disable()
H A Dpwm-rcar.c39 struct pwm_chip chip;
44 static inline struct rcar_pwm_chip *to_rcar_pwm_chip(struct pwm_chip *chip) to_rcar_pwm_chip()
135 static int rcar_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) rcar_pwm_request()
142 static void rcar_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) rcar_pwm_free()
149 static int rcar_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, rcar_pwm_config()
175 static int rcar_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) rcar_pwm_enable()
191 static void rcar_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) rcar_pwm_disable()
H A Dpwm-tiecap.c50 struct pwm_chip chip;
56 static inline struct ecap_pwm_chip *to_ecap_pwm_chip(struct pwm_chip *chip) to_ecap_pwm_chip()
65 static int ecap_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, ecap_pwm_config()
125 static int ecap_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, ecap_pwm_set_polarity()
145 static int ecap_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) ecap_pwm_enable()
163 static void ecap_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) ecap_pwm_disable()
180 static void ecap_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) ecap_pwm_free()
H A Dpwm-mxs.c43 struct pwm_chip chip;
50 static int mxs_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, mxs_pwm_config()
101 static int mxs_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) mxs_pwm_enable()
115 static void mxs_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) mxs_pwm_disable()
H A Dpwm-atmel-tcb.c41 struct pwm_chip chip;
47 static inline struct atmel_tcb_pwm_chip *to_tcb_chip(struct pwm_chip *chip) to_tcb_chip()
52 static int atmel_tcb_pwm_set_polarity(struct pwm_chip *chip, atmel_tcb_pwm_set_polarity()
63 static int atmel_tcb_pwm_request(struct pwm_chip *chip, atmel_tcb_pwm_request()
121 static void atmel_tcb_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) atmel_tcb_pwm_free()
132 static void atmel_tcb_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) atmel_tcb_pwm_disable()
188 static int atmel_tcb_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) atmel_tcb_pwm_enable()
270 static int atmel_tcb_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, atmel_tcb_pwm_config()
H A Dpwm-atmel-hlcdc.c41 struct pwm_chip chip;
47 static inline struct atmel_hlcdc_pwm *to_atmel_hlcdc_pwm(struct pwm_chip *chip) to_atmel_hlcdc_pwm()
52 static int atmel_hlcdc_pwm_config(struct pwm_chip *c, atmel_hlcdc_pwm_config()
139 static int atmel_hlcdc_pwm_set_polarity(struct pwm_chip *c, atmel_hlcdc_pwm_set_polarity()
154 static int atmel_hlcdc_pwm_enable(struct pwm_chip *c, struct pwm_device *pwm) atmel_hlcdc_pwm_enable()
179 static void atmel_hlcdc_pwm_disable(struct pwm_chip *c, atmel_hlcdc_pwm_disable()
H A Dpwm-sun4i.c75 struct pwm_chip chip;
82 static inline struct sun4i_pwm_chip *to_sun4i_pwm_chip(struct pwm_chip *chip) to_sun4i_pwm_chip()
99 static int sun4i_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, sun4i_pwm_config()
189 static int sun4i_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, sun4i_pwm_set_polarity()
218 static int sun4i_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) sun4i_pwm_enable()
240 static void sun4i_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) sun4i_pwm_disable()
H A Dpwm-pca9685.c79 struct pwm_chip chip;
86 static inline struct pca9685 *to_pca(struct pwm_chip *chip) to_pca()
91 static int pca9685_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, pca9685_pwm_config()
205 static int pca9685_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) pca9685_pwm_enable()
242 static void pca9685_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) pca9685_pwm_disable()
263 static int pca9685_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) pca9685_pwm_request()
274 static void pca9685_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) pca9685_pwm_free()
H A Dpwm-renesas-tpu.c91 struct pwm_chip chip;
218 static int tpu_pwm_request(struct pwm_chip *chip, struct pwm_device *_pwm) tpu_pwm_request()
244 static void tpu_pwm_free(struct pwm_chip *chip, struct pwm_device *_pwm) tpu_pwm_free()
252 static int tpu_pwm_config(struct pwm_chip *chip, struct pwm_device *_pwm, tpu_pwm_config()
335 static int tpu_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *_pwm, tpu_pwm_set_polarity()
345 static int tpu_pwm_enable(struct pwm_chip *chip, struct pwm_device *_pwm) tpu_pwm_enable()
367 static void tpu_pwm_disable(struct pwm_chip *chip, struct pwm_device *_pwm) tpu_pwm_disable()
H A Dpwm-brcmstb.c67 struct pwm_chip chip;
88 static inline struct brcmstb_pwm *to_brcmstb_pwm(struct pwm_chip *chip) to_brcmstb_pwm()
106 static int brcmstb_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, brcmstb_pwm_config()
214 static int brcmstb_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) brcmstb_pwm_enable()
223 static void brcmstb_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) brcmstb_pwm_disable()
H A Dpwm-spear.c56 struct pwm_chip chip;
59 static inline struct spear_pwm_chip *to_spear_pwm_chip(struct pwm_chip *chip) to_spear_pwm_chip()
77 static int spear_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, spear_pwm_config()
137 static int spear_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) spear_pwm_enable()
154 static void spear_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) spear_pwm_disable()
H A Dpwm-tegra.c42 struct pwm_chip chip;
50 static inline struct tegra_pwm_chip *to_tegra_pwm_chip(struct pwm_chip *chip) to_tegra_pwm_chip()
66 static int tegra_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, tegra_pwm_config()
133 static int tegra_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) tegra_pwm_enable()
150 static void tegra_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) tegra_pwm_disable()
H A Dpwm-vt8500.c59 struct pwm_chip chip;
80 static int vt8500_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, vt8500_pwm_config()
134 static int vt8500_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) vt8500_pwm_enable()
154 static void vt8500_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) vt8500_pwm_disable()
167 static int vt8500_pwm_set_polarity(struct pwm_chip *chip, vt8500_pwm_set_polarity()
H A Dpwm-bcm-kona.c69 struct pwm_chip chip;
74 static inline struct kona_pwmc *to_kona_pwmc(struct pwm_chip *_chip) to_kona_pwmc()
111 static int kona_pwmc_config(struct pwm_chip *chip, struct pwm_device *pwm, kona_pwmc_config()
176 static int kona_pwmc_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, kona_pwmc_set_polarity()
208 static int kona_pwmc_enable(struct pwm_chip *chip, struct pwm_device *pwm) kona_pwmc_enable()
229 static void kona_pwmc_disable(struct pwm_chip *chip, struct pwm_device *pwm) kona_pwmc_disable()
H A Dpwm-sti.c58 struct pwm_chip chip;
73 static inline struct sti_pwm_chip *to_sti_pwmchip(struct pwm_chip *chip) to_sti_pwmchip()
115 static int sti_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, sti_pwm_config()
197 static int sti_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) sti_pwm_enable()
226 static void sti_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) sti_pwm_disable()
241 static void sti_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) sti_pwm_free()
H A Dpwm-fsl-ftm.c79 struct pwm_chip chip;
94 static inline struct fsl_pwm_chip *to_fsl_chip(struct pwm_chip *chip) to_fsl_chip()
99 static int fsl_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) fsl_pwm_request()
106 static void fsl_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) fsl_pwm_free()
233 static int fsl_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, fsl_pwm_config()
280 static int fsl_pwm_set_polarity(struct pwm_chip *chip, fsl_pwm_set_polarity()
323 static int fsl_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) fsl_pwm_enable()
356 static void fsl_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) fsl_pwm_disable()
H A Dpwm-tiehrpwm.c127 struct pwm_chip chip;
136 static inline struct ehrpwm_pwm_chip *to_ehrpwm_pwm_chip(struct pwm_chip *chip) to_ehrpwm_pwm_chip()
236 static int ehrpwm_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, ehrpwm_pwm_config()
323 static int ehrpwm_pwm_set_polarity(struct pwm_chip *chip, ehrpwm_pwm_set_polarity()
333 static int ehrpwm_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) ehrpwm_pwm_enable()
373 static void ehrpwm_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) ehrpwm_pwm_disable()
406 static void ehrpwm_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) ehrpwm_pwm_free()
H A Dpwm-samsung.c83 struct pwm_chip chip;
109 struct samsung_pwm_chip *to_samsung_pwm_chip(struct pwm_chip *chip) to_samsung_pwm_chip()
205 static int pwm_samsung_request(struct pwm_chip *chip, struct pwm_device *pwm) pwm_samsung_request()
226 static void pwm_samsung_free(struct pwm_chip *chip, struct pwm_device *pwm) pwm_samsung_free()
232 static int pwm_samsung_enable(struct pwm_chip *chip, struct pwm_device *pwm) pwm_samsung_enable()
256 static void pwm_samsung_disable(struct pwm_chip *chip, struct pwm_device *pwm) pwm_samsung_disable()
291 static int pwm_samsung_config(struct pwm_chip *chip, struct pwm_device *pwm, pwm_samsung_config()
399 static int pwm_samsung_set_polarity(struct pwm_chip *chip, pwm_samsung_set_polarity()
/linux-4.4.14/include/linux/
H A Dpwm.h61 struct pwm_chip;
101 struct pwm_chip *chip;
159 int (*request)(struct pwm_chip *chip, struct pwm_device *pwm);
160 void (*free)(struct pwm_chip *chip, struct pwm_device *pwm);
161 int (*config)(struct pwm_chip *chip, struct pwm_device *pwm,
163 int (*set_polarity)(struct pwm_chip *chip, struct pwm_device *pwm,
165 int (*enable)(struct pwm_chip *chip, struct pwm_device *pwm);
166 void (*disable)(struct pwm_chip *chip, struct pwm_device *pwm);
168 void (*dbg_show)(struct pwm_chip *chip, struct seq_file *s);
174 * struct pwm_chip - abstract a PWM controller
186 struct pwm_chip { struct
195 struct pwm_device * (*of_xlate)(struct pwm_chip *pc,
205 int pwmchip_add_with_polarity(struct pwm_chip *chip,
207 int pwmchip_add(struct pwm_chip *chip);
208 int pwmchip_remove(struct pwm_chip *chip);
209 struct pwm_device *pwm_request_from_chip(struct pwm_chip *chip,
213 struct pwm_device *of_pwm_xlate_with_flags(struct pwm_chip *pc,
237 static inline int pwmchip_add(struct pwm_chip *chip) pwmchip_add()
242 static inline int pwmchip_add_inversed(struct pwm_chip *chip) pwmchip_add_inversed()
247 static inline int pwmchip_remove(struct pwm_chip *chip) pwmchip_remove()
252 static inline struct pwm_device *pwm_request_from_chip(struct pwm_chip *chip, pwm_request_from_chip()
332 void pwmchip_sysfs_export(struct pwm_chip *chip);
333 void pwmchip_sysfs_unexport(struct pwm_chip *chip);
335 static inline void pwmchip_sysfs_export(struct pwm_chip *chip) pwmchip_sysfs_export()
339 static inline void pwmchip_sysfs_unexport(struct pwm_chip *chip) pwmchip_sysfs_unexport()

Completed in 419 milliseconds