Home
last modified time | relevance | path

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

123456

/kernel/linux/linux-5.10/drivers/pwm/
H A 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()
152 static int hibvt_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_apply()
193 struct hibvt_pwm_chip *pwm_chip; in hibvt_pwm_probe() local
198 pwm_chip in hibvt_pwm_probe()
254 struct hibvt_pwm_chip *pwm_chip; hibvt_pwm_remove() local
[all...]
H A 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()
137 val = img_pwm_readl(pwm_chip, PWM_CTRL_CFG); in img_pwm_config()
141 img_pwm_writel(pwm_chip, PWM_CTRL_CF in img_pwm_config()
156 struct img_pwm_chip *pwm_chip = to_img_pwm_chip(chip); img_pwm_enable() local
177 struct img_pwm_chip *pwm_chip = to_img_pwm_chip(chip); img_pwm_disable() local
209 struct img_pwm_chip *pwm_chip = dev_get_drvdata(dev); img_pwm_runtime_suspend() local
219 struct img_pwm_chip *pwm_chip = dev_get_drvdata(dev); img_pwm_runtime_resume() local
331 struct img_pwm_chip *pwm_chip = platform_get_drvdata(pdev); img_pwm_remove() local
343 struct img_pwm_chip *pwm_chip = dev_get_drvdata(dev); img_pwm_suspend() local
365 struct img_pwm_chip *pwm_chip = dev_get_drvdata(dev); img_pwm_resume() local
[all...]
H A Dpwm-cros-ec.c25 struct pwm_chip chip;
36 static inline struct cros_ec_pwm_device *pwm_to_cros_ec_pwm(struct pwm_chip *c) in pwm_to_cros_ec_pwm()
41 static int cros_ec_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in cros_ec_pwm_request()
54 static void cros_ec_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in cros_ec_pwm_free()
115 static int cros_ec_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in cros_ec_pwm_apply()
142 static void cros_ec_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in cros_ec_pwm_get_state()
175 cros_ec_pwm_xlate(struct pwm_chip *pc, const struct of_phandle_args *args) in cros_ec_pwm_xlate()
238 struct pwm_chip *chip; in cros_ec_pwm_probe()
280 struct pwm_chip *chip = &ec_pwm->chip; in cros_ec_pwm_remove()
H A Dpwm-sl28cpld.c83 struct pwm_chip pwm_chip; member
88 container_of(_chip, struct sl28cpld_pwm, pwm_chip)
90 static void sl28cpld_pwm_get_state(struct pwm_chip *chip, in sl28cpld_pwm_get_state()
120 static int sl28cpld_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in sl28cpld_pwm_apply()
203 struct pwm_chip *chip; in sl28cpld_pwm_probe()
228 /* Initialize the pwm_chip structure */ in sl28cpld_pwm_probe()
229 chip = &priv->pwm_chip; in sl28cpld_pwm_probe()
235 ret = pwmchip_add(&priv->pwm_chip); in sl28cpld_pwm_probe()
251 return pwmchip_remove(&priv->pwm_chip); in sl28cpld_pwm_remove()
[all...]
H A 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()
H A 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()
H A 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()
H A 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 *chi
[all...]
H A 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()
H A 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()
H A Dpwm-jz4740.c28 struct pwm_chip chip;
32 static inline struct jz4740_pwm_chip *to_jz4740(struct pwm_chip *chip) in to_jz4740()
50 static int jz4740_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_request()
79 static void jz4740_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_free()
87 static int jz4740_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_enable()
101 static void jz4740_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_disable()
124 static int jz4740_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in jz4740_pwm_apply()
H A 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()
/kernel/linux/linux-6.6/drivers/pwm/
H A 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 int hibvt_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_get_state()
154 static int hibvt_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_apply()
195 struct hibvt_pwm_chip *pwm_chip; in hibvt_pwm_probe() local
198 pwm_chip in hibvt_pwm_probe()
250 struct hibvt_pwm_chip *pwm_chip; hibvt_pwm_remove() local
[all...]
H A Dpwm-twl-led.c65 struct pwm_chip chip;
69 static inline struct twl_pwmled_chip *to_twl(struct pwm_chip *chip) in to_twl()
74 static int twl4030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwmled_config()
108 static int twl4030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwmled_enable()
132 static void twl4030_pwmled_disable(struct pwm_chip *chip, in twl4030_pwmled_disable()
156 static int twl4030_pwmled_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwmled_apply()
195 static int twl6030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwmled_config()
212 static int twl6030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_enable()
238 static void twl6030_pwmled_disable(struct pwm_chip *chip, in twl6030_pwmled_disable()
264 static int twl6030_pwmled_apply(struct pwm_chip *chi
[all...]
H A 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()
282 static int twl4030_pwm_apply(struct pwm_chip *chi
[all...]
H A Dpwm-imx1.c31 struct pwm_chip chip;
36 static int pwm_imx1_clk_prepare_enable(struct pwm_chip *chip) in pwm_imx1_clk_prepare_enable()
54 static void pwm_imx1_clk_disable_unprepare(struct pwm_chip *chip) in pwm_imx1_clk_disable_unprepare()
62 static int pwm_imx1_config(struct pwm_chip *chip, in pwm_imx1_config()
93 static int pwm_imx1_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_imx1_enable()
110 static void pwm_imx1_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_imx1_disable()
122 static int pwm_imx1_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_imx1_apply()
H A Dcore.c54 static void free_pwms(struct pwm_chip *chip) in free_pwms()
62 static struct pwm_chip *pwmchip_find_by_name(const char *name) in pwmchip_find_by_name()
64 struct pwm_chip *chip; in pwmchip_find_by_name()
130 of_pwm_xlate_with_flags(struct pwm_chip *chip, const struct of_phandle_args *args) in of_pwm_xlate_with_flags()
161 of_pwm_single_xlate(struct pwm_chip *chip, const struct of_phandle_args *args) in of_pwm_single_xlate()
186 static void of_pwmchip_add(struct pwm_chip *chip) in of_pwmchip_add()
205 static void of_pwmchip_remove(struct pwm_chip *chip) in of_pwmchip_remove()
241 static bool pwm_ops_check(const struct pwm_chip *chip) in pwm_ops_check()
263 int pwmchip_add(struct pwm_chip *chip) in pwmchip_add()
317 void pwmchip_remove(struct pwm_chip *chi
[all...]
H A Dpwm-berlin.c50 struct pwm_chip chip;
55 static inline struct berlin_pwm_chip *to_berlin_pwm_chip(struct pwm_chip *chip) in to_berlin_pwm_chip()
73 static int berlin_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in berlin_pwm_request()
84 static void berlin_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in berlin_pwm_free()
91 static int berlin_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in berlin_pwm_config()
129 static int berlin_pwm_set_polarity(struct pwm_chip *chip, in berlin_pwm_set_polarity()
148 static int berlin_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in berlin_pwm_enable()
160 static void berlin_pwm_disable(struct pwm_chip *chip, in berlin_pwm_disable()
171 static int berlin_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in berlin_pwm_apply()
H A Dpwm-cros-ec.c29 struct pwm_chip chip;
41 static inline struct cros_ec_pwm_device *pwm_to_cros_ec_pwm(struct pwm_chip *chip) in pwm_to_cros_ec_pwm()
46 static int cros_ec_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in cros_ec_pwm_request()
59 static void cros_ec_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in cros_ec_pwm_free()
157 static int cros_ec_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in cros_ec_pwm_apply()
187 static int cros_ec_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in cros_ec_pwm_get_state()
222 cros_ec_pwm_xlate(struct pwm_chip *chip, const struct of_phandle_args *args) in cros_ec_pwm_xlate()
286 struct pwm_chip *chip; in cros_ec_pwm_probe()
336 struct pwm_chip *chip = &ec_pwm->chip; in cros_ec_pwm_remove()
H A Dpwm-jz4740.c28 struct pwm_chip chip;
32 static inline struct jz4740_pwm_chip *to_jz4740(struct pwm_chip *chip) in to_jz4740()
50 static int jz4740_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_request()
79 static void jz4740_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_free()
87 static int jz4740_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_enable()
100 static void jz4740_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_disable()
122 static int jz4740_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in jz4740_pwm_apply()
H A Dpwm-clps711x.c15 struct pwm_chip chip;
21 static inline struct clps711x_chip *to_clps711x_chip(struct pwm_chip *chip) in to_clps711x_chip()
26 static int clps711x_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in clps711x_pwm_request()
40 static int clps711x_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in clps711x_pwm_apply()
78 static struct pwm_device *clps711x_pwm_xlate(struct pwm_chip *chip, in clps711x_pwm_xlate()
H A Dpwm-ntxec.c28 struct pwm_chip chip;
31 static struct ntxec_pwm *ntxec_pwm_from_chip(struct pwm_chip *chip) in ntxec_pwm_from_chip()
57 static int ntxec_pwm_set_raw_period_and_duty_cycle(struct pwm_chip *chip, in ntxec_pwm_set_raw_period_and_duty_cycle()
83 static int ntxec_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm_dev, in ntxec_pwm_apply()
141 struct pwm_chip *chip; in ntxec_pwm_probe()
/kernel/linux/linux-5.10/include/linux/
H A Dpwm.h12 struct pwm_chip;
82 struct pwm_chip *chip;
259 int (*request)(struct pwm_chip *chip, struct pwm_device *pwm);
260 void (*free)(struct pwm_chip *chip, struct pwm_device *pwm);
261 int (*capture)(struct pwm_chip *chip, struct pwm_device *pwm,
263 int (*apply)(struct pwm_chip *chip, struct pwm_device *pwm,
265 void (*get_state)(struct pwm_chip *chip, struct pwm_device *pwm,
270 int (*config)(struct pwm_chip *chip, struct pwm_device *pwm,
272 int (*set_polarity)(struct pwm_chip *chip, struct pwm_device *pwm,
274 int (*enable)(struct pwm_chip *chi
289 struct pwm_chip { global() struct
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dpwm.h9 struct pwm_chip;
84 struct pwm_chip *chip;
273 int (*request)(struct pwm_chip *chip, struct pwm_device *pwm);
274 void (*free)(struct pwm_chip *chip, struct pwm_device *pwm);
275 int (*capture)(struct pwm_chip *chip, struct pwm_device *pwm,
277 int (*apply)(struct pwm_chip *chip, struct pwm_device *pwm,
279 int (*get_state)(struct pwm_chip *chip, struct pwm_device *pwm,
285 * struct pwm_chip - abstract a PWM controller
295 struct pwm_chip { struct
301 struct pwm_device * (*of_xlate)(struct pwm_chip *chi
[all...]
/kernel/linux/linux-5.10/drivers/staging/greybus/
H A 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()

Completed in 13 milliseconds

123456