Searched refs:pwm_device (Results 1 - 25 of 93) sorted by relevance

1234

/linux-master/include/linux/
H A Dpwm.h68 * struct pwm_device - PWM channel object
77 struct pwm_device { struct
98 static inline void pwm_get_state(const struct pwm_device *pwm,
104 static inline bool pwm_is_enabled(const struct pwm_device *pwm)
113 static inline u64 pwm_get_period(const struct pwm_device *pwm)
122 static inline u64 pwm_get_duty_cycle(const struct pwm_device *pwm)
131 static inline enum pwm_polarity pwm_get_polarity(const struct pwm_device *pwm)
140 static inline void pwm_get_args(const struct pwm_device *pwm,
163 static inline void pwm_init_state(const struct pwm_device *pwm,
256 int (*request)(struct pwm_chip *chip, struct pwm_device *pw
[all...]
/linux-master/include/trace/events/
H A Dpwm.h13 TP_PROTO(struct pwm_device *pwm, const struct pwm_state *state, int err),
18 __field(struct pwm_device *, pwm)
43 TP_PROTO(struct pwm_device *pwm, const struct pwm_state *state, int err),
50 TP_PROTO(struct pwm_device *pwm, const struct pwm_state *state, int err),
/linux-master/drivers/pwm/
H A Dsysfs.c19 struct pwm_device *pwm;
29 static struct pwm_device *child_to_pwm_device(struct device *child)
40 const struct pwm_device *pwm = child_to_pwm_device(child);
53 struct pwm_device *pwm = export->pwm;
75 const struct pwm_device *pwm = child_to_pwm_device(child);
88 struct pwm_device *pwm = export->pwm;
110 const struct pwm_device *pwm = child_to_pwm_device(child);
123 struct pwm_device *pwm = export->pwm;
158 const struct pwm_device *pwm = child_to_pwm_device(child);
182 struct pwm_device *pw
[all...]
H A Dpwm-lpss.c74 static inline u32 pwm_lpss_read(const struct pwm_device *pwm)
81 static inline void pwm_lpss_write(const struct pwm_device *pwm, u32 value)
88 static int pwm_lpss_wait_for_update(struct pwm_device *pwm)
114 static inline int pwm_lpss_is_updating(struct pwm_device *pwm)
124 static void pwm_lpss_prepare(struct pwm_lpss_chip *lpwm, struct pwm_device *pwm,
159 static inline void pwm_lpss_cond_enable(struct pwm_device *pwm, bool cond)
166 struct pwm_device *pwm,
185 static int pwm_lpss_apply(struct pwm_chip *chip, struct pwm_device *pwm,
208 static int pwm_lpss_get_state(struct pwm_chip *chip, struct pwm_device *pwm,
H A Dpwm-twl-led.c73 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)
132 struct pwm_device *pwm)
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)
237 struct pwm_device *pwm)
262 static int twl6030_pwmled_apply(struct pwm_chip *chip, struct pwm_device *pwm,
288 static int twl6030_pwmled_request(struct pwm_chip *chip, struct pwm_device *pwm)
314 static void twl6030_pwmled_free(struct pwm_chip *chip, struct pwm_device *pw
[all...]
H A Dpwm-twl.c59 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 *chip, struct pwm_device *pwm,
H A Dcore.c32 static void pwm_apply_debug(struct pwm_device *pwm,
143 static int __pwm_apply(struct pwm_device *pwm, const struct pwm_state *state)
183 int pwm_apply_might_sleep(struct pwm_device *pwm, const struct pwm_state *state)
218 int pwm_apply_atomic(struct pwm_device *pwm, const struct pwm_state *state)
235 int pwm_adjust_config(struct pwm_device *pwm)
291 int pwm_capture(struct pwm_device *pwm, struct pwm_capture *result,
334 static int pwm_device_request(struct pwm_device *pwm, const char *label)
390 struct pwm_device *pwm_request_from_chip(struct pwm_chip *chip,
394 struct pwm_device *pwm;
413 struct pwm_device *
[all...]
H A Dpwm-lpc32xx.c30 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,
H A Dpwm-imx1.c65 struct pwm_device *pwm, u64 duty_ns, u64 period_ns)
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,
H A Dpwm-lp3943.c55 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,
H A Dpwm-tiecap.c49 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,
294 struct pwm_device *pwm = chip->pwms;
308 struct pwm_device *pwm = chip->pwms;
H A Dpwm-berlin.c75 static int berlin_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
114 struct pwm_device *pwm,
132 static int berlin_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm)
145 struct pwm_device *pwm)
155 static int berlin_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
H A Dpwm-vt8500.c72 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)
160 struct pwm_device *pwm,
179 static int vt8500_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
H A Dpwm-jz4740.c49 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,
H A Dpwm-ep93xx.c46 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,
H A Dpwm-dwc-core.c39 struct pwm_device *pwm,
98 static int dwc_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
120 static int dwc_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm,
H A Dpwm-mediatek.c74 struct pwm_device *pwm)
102 struct pwm_device *pwm)
118 static int pwm_mediatek_config(struct pwm_chip *chip, struct pwm_device *pwm,
173 static int pwm_mediatek_enable(struct pwm_chip *chip, struct pwm_device *pwm)
190 static void pwm_mediatek_disable(struct pwm_chip *chip, struct pwm_device *pwm)
202 static int pwm_mediatek_apply(struct pwm_chip *chip, struct pwm_device *pwm,
H A Dpwm-hibvt.c82 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,
117 struct pwm_device *pwm,
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,
H A Dpwm-clps711x.c25 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,
H A Dpwm-lpc18xx-sct.c127 struct pwm_device *pwm,
170 struct pwm_device *pwm, u64 duty_ns)
191 static int lpc18xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
234 static int lpc18xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity polarity)
269 static void lpc18xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm)
280 static int lpc18xx_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm)
301 static void lpc18xx_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm)
309 static int lpc18xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
H A Dpwm-fsl-ftm.c86 static int fsl_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm)
101 static void fsl_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm)
200 struct pwm_device *pwm)
212 struct pwm_device *pwm)
224 struct pwm_device *pwm,
296 static int fsl_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
471 struct pwm_device *pwm = &chip->pwms[i];
495 struct pwm_device *pwm = &chip->pwms[i];
H A Dpwm-cros-ec.c134 static int cros_ec_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
164 static int cros_ec_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm,
198 static struct pwm_device *
201 struct pwm_device *pwm;
H A Dpwm-spear.c75 static int spear_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
135 static int spear_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm)
152 static void spear_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm)
164 static int spear_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
H A Dpwm-stmpe.c38 static int stmpe_24xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm)
64 struct pwm_device *pwm)
97 static int stmpe_24xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
262 static int stmpe_24xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,
H A Dpwm-renesas-tpu.c212 static int tpu_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm)
234 static void tpu_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm)
242 static int tpu_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
351 static int tpu_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm,
362 static int tpu_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm)
385 static void tpu_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm)
396 static int tpu_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,

Completed in 189 milliseconds

1234