Home
last modified time | relevance | path

Searched refs:pwm_chip (Results 1 – 25 of 59) sorted by relevance

123

/Linux-v5.4/drivers/pwm/
Dpwm-hibvt.c36 struct pwm_chip chip;
66 static inline struct hibvt_pwm_chip *to_hibvt_pwm_chip(struct pwm_chip *chip) in to_hibvt_pwm_chip()
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()
117 static void hibvt_pwm_set_polarity(struct pwm_chip *chip, 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()
192 struct hibvt_pwm_chip *pwm_chip; in hibvt_pwm_probe() local
197 pwm_chip = devm_kzalloc(&pdev->dev, sizeof(*pwm_chip), GFP_KERNEL); in hibvt_pwm_probe()
[all …]
Dpwm-img.c63 struct pwm_chip chip;
75 static inline struct img_pwm_chip *to_img_pwm_chip(struct pwm_chip *chip) in to_img_pwm_chip()
92 static int img_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in img_pwm_config()
97 struct img_pwm_chip *pwm_chip = to_img_pwm_chip(chip); in img_pwm_config() local
98 unsigned int max_timebase = pwm_chip->data->max_timebase; in img_pwm_config()
101 if (period_ns < pwm_chip->min_period_ns || in img_pwm_config()
102 period_ns > pwm_chip->max_period_ns) { in img_pwm_config()
107 input_clk_hz = clk_get_rate(pwm_chip->pwm_clk); in img_pwm_config()
135 val = img_pwm_readl(pwm_chip, PWM_CTRL_CFG); in img_pwm_config()
139 img_pwm_writel(pwm_chip, PWM_CTRL_CFG, val); in img_pwm_config()
[all …]
Dpwm-ep93xx.c39 struct pwm_chip chip;
42 static inline struct ep93xx_pwm *to_ep93xx_pwm(struct pwm_chip *chip) in to_ep93xx_pwm()
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()
Dpwm-clps711x.c15 struct pwm_chip chip;
21 static inline struct clps711x_chip *to_clps711x_chip(struct pwm_chip *chip) in to_clps711x_chip()
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()
104 static struct pwm_device *clps711x_pwm_xlate(struct pwm_chip *chip, in clps711x_pwm_xlate()
Dpwm-jz4740.c26 struct pwm_chip chip;
30 static inline struct jz4740_pwm_chip *to_jz4740(struct pwm_chip *chip) in to_jz4740()
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()
Dpwm-twl-led.c49 struct pwm_chip chip;
53 static inline struct twl_pwmled_chip *to_twl(struct pwm_chip *chip) in to_twl()
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()
116 static void twl4030_pwmled_disable(struct pwm_chip *chip, 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()
183 static void twl6030_pwmled_disable(struct pwm_chip *chip, 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()
Dpwm-bcm2835.c27 struct pwm_chip chip;
33 static inline struct bcm2835_pwm *to_bcm2835_pwm(struct pwm_chip *chip) in to_bcm2835_pwm()
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()
Dcore.c60 static void free_pwms(struct pwm_chip *chip) in free_pwms()
76 static struct pwm_chip *pwmchip_find_by_name(const char *name) in pwmchip_find_by_name()
78 struct pwm_chip *chip; in pwmchip_find_by_name()
124 of_pwm_xlate_with_flags(struct pwm_chip *pc, const struct of_phandle_args *args) in of_pwm_xlate_with_flags()
154 of_pwm_simple_xlate(struct pwm_chip *pc, const struct of_phandle_args *args) in of_pwm_simple_xlate()
178 static void of_pwmchip_add(struct pwm_chip *chip) in of_pwmchip_add()
191 static void of_pwmchip_remove(struct pwm_chip *chip) in of_pwmchip_remove()
251 int pwmchip_add_with_polarity(struct pwm_chip *chip, in pwmchip_add_with_polarity()
321 int pwmchip_add(struct pwm_chip *chip) in pwmchip_add()
336 int pwmchip_remove(struct pwm_chip *chip) in pwmchip_remove()
[all …]
Dpwm-crc.c33 struct pwm_chip chip;
37 static inline struct crystalcove_pwm *to_crc_pwm(struct pwm_chip *pc) in to_crc_pwm()
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()
Dpwm-imx1.c32 struct pwm_chip chip;
37 static int pwm_imx1_clk_prepare_enable(struct pwm_chip *chip) in pwm_imx1_clk_prepare_enable()
55 static void pwm_imx1_clk_disable_unprepare(struct pwm_chip *chip) in pwm_imx1_clk_disable_unprepare()
63 static int pwm_imx1_config(struct pwm_chip *chip, in pwm_imx1_config()
94 static int pwm_imx1_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_imx1_enable()
111 static void pwm_imx1_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_imx1_disable()
Dpwm-cros-ec.c25 struct pwm_chip chip;
28 static inline struct cros_ec_pwm_device *pwm_to_cros_ec_pwm(struct pwm_chip *c) in pwm_to_cros_ec_pwm()
95 static int cros_ec_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in cros_ec_pwm_apply()
114 static void cros_ec_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in cros_ec_pwm_get_state()
134 cros_ec_pwm_xlate(struct pwm_chip *pc, const struct of_phandle_args *args) in cros_ec_pwm_xlate()
190 struct pwm_chip *chip; in cros_ec_pwm_probe()
232 struct pwm_chip *chip = &ec_pwm->chip; in cros_ec_pwm_remove()
Dpwm-puv3.c24 struct pwm_chip chip;
29 static inline struct puv3_pwm_chip *to_puv3(struct pwm_chip *chip) in to_puv3()
38 static int puv3_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in puv3_pwm_config()
79 static int puv3_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in puv3_pwm_enable()
86 static void puv3_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in puv3_pwm_disable()
Dpwm-twl.c49 struct pwm_chip chip;
55 static inline struct twl_pwm_chip *to_twl(struct pwm_chip *chip) in to_twl()
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()
Dpwm-berlin.c49 struct pwm_chip chip;
54 static inline struct berlin_pwm_chip *to_berlin_pwm_chip(struct pwm_chip *chip) in to_berlin_pwm_chip()
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()
128 static int berlin_pwm_set_polarity(struct pwm_chip *chip, in berlin_pwm_set_polarity()
147 static int berlin_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm_dev) in berlin_pwm_enable()
159 static void berlin_pwm_disable(struct pwm_chip *chip, in berlin_pwm_disable()
Dpwm-pxa.c44 struct pwm_chip chip;
51 static inline struct pxa_pwm_chip *to_pxa_pwm_chip(struct pwm_chip *chip) in to_pxa_pwm_chip()
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()
152 pxa_pwm_of_xlate(struct pwm_chip *pc, const struct of_phandle_args *args) in pxa_pwm_of_xlate()
Dpwm-sifive.c45 struct pwm_chip chip;
56 struct pwm_sifive_ddata *pwm_sifive_chip_to_ddata(struct pwm_chip *c) in pwm_sifive_chip_to_ddata()
61 static int pwm_sifive_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_sifive_request()
72 static void pwm_sifive_free(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_sifive_free()
109 static void pwm_sifive_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sifive_get_state()
130 static int pwm_sifive_enable(struct pwm_chip *chip, bool enable) in pwm_sifive_enable()
149 static int pwm_sifive_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sifive_apply()
234 struct pwm_chip *chip; in pwm_sifive_probe()
Dpwm-lp3943.c23 struct pwm_chip chip;
28 static inline struct lp3943_pwm *to_lp3943_pwm(struct pwm_chip *_chip) in to_lp3943_pwm()
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()
Dpwm-lpc18xx-sct.c93 struct pwm_chip chip;
107 to_lpc18xx_pwm_chip(struct pwm_chip *chip) in to_lpc18xx_pwm_chip()
145 static void lpc18xx_pwm_config_period(struct pwm_chip *chip, int period_ns) in lpc18xx_pwm_config_period()
162 static void lpc18xx_pwm_config_duty(struct pwm_chip *chip, in lpc18xx_pwm_config_duty()
181 static int lpc18xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lpc18xx_pwm_config()
226 static int lpc18xx_pwm_set_polarity(struct pwm_chip *chip, 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()
Dpwm-ab8500.c24 struct pwm_chip chip;
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()
Dpwm-imx27.c87 struct pwm_chip chip;
92 static int pwm_imx27_clk_prepare_enable(struct pwm_chip *chip) in pwm_imx27_clk_prepare_enable()
110 static void pwm_imx27_clk_disable_unprepare(struct pwm_chip *chip) in pwm_imx27_clk_disable_unprepare()
118 static void pwm_imx27_get_state(struct pwm_chip *chip, in pwm_imx27_get_state()
171 static void pwm_imx27_sw_reset(struct pwm_chip *chip) in pwm_imx27_sw_reset()
189 static void pwm_imx27_wait_fifo_slot(struct pwm_chip *chip, in pwm_imx27_wait_fifo_slot()
211 static int pwm_imx27_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_imx27_apply()
Dpwm-mediatek.c51 struct pwm_chip chip;
64 to_pwm_mediatek_chip(struct pwm_chip *chip) in to_pwm_mediatek_chip()
69 static int pwm_mediatek_clk_enable(struct pwm_chip *chip, in pwm_mediatek_clk_enable()
97 static void pwm_mediatek_clk_disable(struct pwm_chip *chip, 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()
Dpwm-tiecap.c35 struct pwm_chip chip;
41 static inline struct ecap_pwm_chip *to_ecap_pwm_chip(struct pwm_chip *chip) in to_ecap_pwm_chip()
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()
Dpwm-imx-tpm.c62 struct pwm_chip chip;
78 to_imx_tpm_pwm_chip(struct pwm_chip *chip) in to_imx_tpm_pwm_chip()
89 static int pwm_imx_tpm_round_state(struct pwm_chip *chip, in pwm_imx_tpm_round_state()
137 static void pwm_imx_tpm_get_state(struct pwm_chip *chip, in pwm_imx_tpm_get_state()
172 static int pwm_imx_tpm_apply_hw(struct pwm_chip *chip, in pwm_imx_tpm_apply_hw()
290 static int pwm_imx_tpm_apply(struct pwm_chip *chip, in pwm_imx_tpm_apply()
310 static int pwm_imx_tpm_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_imx_tpm_request()
321 static void pwm_imx_tpm_free(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_imx_tpm_free()
/Linux-v5.4/include/linux/
Dpwm.h12 struct pwm_chip;
81 struct pwm_chip *chip;
260 int (*request)(struct pwm_chip *chip, struct pwm_device *pwm);
261 void (*free)(struct pwm_chip *chip, struct pwm_device *pwm);
262 int (*capture)(struct pwm_chip *chip, struct pwm_device *pwm,
264 int (*apply)(struct pwm_chip *chip, struct pwm_device *pwm,
266 void (*get_state)(struct pwm_chip *chip, struct pwm_device *pwm,
271 int (*config)(struct pwm_chip *chip, struct pwm_device *pwm,
273 int (*set_polarity)(struct pwm_chip *chip, struct pwm_device *pwm,
275 int (*enable)(struct pwm_chip *chip, struct pwm_device *pwm);
[all …]
/Linux-v5.4/drivers/staging/greybus/
Dpwm.c21 struct pwm_chip chip;
22 struct pwm_chip *pwm;
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()

123