| /linux/include/linux/ |
| H A D | pwm.h | 108 struct pwm_device { struct 129 static inline void pwm_get_state(const struct pwm_device *pwm, in pwm_get_state() argument 135 static inline bool pwm_is_enabled(const struct pwm_device *pwm) in pwm_is_enabled() 144 static inline u64 pwm_get_period(const struct pwm_device *pwm) in pwm_get_period() 153 static inline u64 pwm_get_duty_cycle(const struct pwm_device *pwm) in pwm_get_duty_cycle() 162 static inline enum pwm_polarity pwm_get_polarity(const struct pwm_device *pwm) in pwm_get_polarity() 171 static inline void pwm_get_args(const struct pwm_device *pwm, in pwm_get_args() 194 static inline void pwm_init_state(const struct pwm_device *pwm, in pwm_init_state() 294 int (*request)(struct pwm_chip *chip, struct pwm_device *pwm); 295 void (*free)(struct pwm_chip *chip, struct pwm_device *pwm); [all …]
|
| /linux/drivers/pwm/ |
| H A D | core.c | 167 static int __pwm_round_waveform_tohw(struct pwm_chip *chip, struct pwm_device *pwm, in __pwm_round_waveform_tohw() 179 static int __pwm_round_waveform_fromhw(struct pwm_chip *chip, struct pwm_device *pwm, in __pwm_round_waveform_fromhw() 191 static int __pwm_read_waveform(struct pwm_chip *chip, struct pwm_device *pwm, void *wfhw) in __pwm_read_waveform() 202 static int __pwm_write_waveform(struct pwm_chip *chip, struct pwm_device *pwm, const void *wfhw) in __pwm_write_waveform() 244 int pwm_round_waveform_might_sleep(struct pwm_device *pwm, struct pwm_waveform *wf) in pwm_round_waveform_might_sleep() 303 int pwm_get_waveform_might_sleep(struct pwm_device *pwm, struct pwm_waveform *wf) in pwm_get_waveform_might_sleep() 329 static int __pwm_set_waveform(struct pwm_device *pwm, in __pwm_set_waveform() 442 int pwm_set_waveform_might_sleep(struct pwm_device *pwm, in pwm_set_waveform_might_sleep() 484 static void pwm_apply_debug(struct pwm_device *pwm, in pwm_apply_debug() 621 static int __pwm_apply(struct pwm_device *pwm, const struct pwm_state *state) in __pwm_apply() [all …]
|
| H A D | pwm-twl-led.c | 69 static int twl4030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwmled_config() 103 static int twl4030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwmled_enable() 124 struct pwm_device *pwm) in twl4030_pwmled_disable() 142 static int twl4030_pwmled_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwmled_apply() 180 static int twl6030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwmled_config() 197 static int twl6030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_enable() 220 struct pwm_device *pwm) in twl6030_pwmled_disable() 240 static int twl6030_pwmled_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwmled_apply() 266 static int twl6030_pwmled_request(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_request() 288 static void twl6030_pwmled_free(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_free()
|
| H A D | pwm-lpss.c | 75 static inline u32 pwm_lpss_read(const struct pwm_device *pwm) in pwm_lpss_read() 82 static inline void pwm_lpss_write(const struct pwm_device *pwm, u32 value) in pwm_lpss_write() 89 static int pwm_lpss_wait_for_update(struct pwm_device *pwm) in pwm_lpss_wait_for_update() 115 static inline int pwm_lpss_is_updating(struct pwm_device *pwm) in pwm_lpss_is_updating() 125 static void pwm_lpss_prepare(struct pwm_lpss_chip *lpwm, struct pwm_device *pwm, in pwm_lpss_prepare() 160 static inline void pwm_lpss_cond_enable(struct pwm_device *pwm, bool cond) in pwm_lpss_cond_enable() 167 struct pwm_device *pwm, in pwm_lpss_prepare_enable() 186 static int pwm_lpss_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_lpss_apply() 209 static int pwm_lpss_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_lpss_get_state()
|
| H A D | pwm-twl.c | 59 static int twl_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl_pwm_config() 93 static int twl4030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_enable() 123 static void twl4030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_disable() 152 static int twl4030_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_request() 190 static void twl4030_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_free() 220 static int twl6030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwm_enable() 243 static void twl6030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwm_disable() 281 static int twl4030_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwm_apply() 306 static int twl6030_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwm_apply()
|
| H A D | pwm-loongson.c | 76 static int pwm_loongson_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_loongson_set_polarity() 96 static void pwm_loongson_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_loongson_disable() 106 static int pwm_loongson_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_loongson_enable() 118 static int pwm_loongson_config(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_loongson_config() 140 static int pwm_loongson_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_loongson_apply() 166 static int pwm_loongson_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_loongson_get_state() 244 struct pwm_device *pwm = &chip->pwms[0]; in pwm_loongson_suspend()
|
| H A D | pwm-sophgo-sg2042.c | 78 static void pwm_sg2042_set_dutycycle(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sg2042_set_dutycycle() 98 static int pwm_sg2042_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sg2042_apply() 116 static int pwm_sg2042_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sg2042_get_state() 143 static void pwm_sg2044_set_outputen(struct sg2042_pwm_ddata *ddata, struct pwm_device *pwm, in pwm_sg2044_set_outputen() 158 static void pwm_sg2044_set_outputdir(struct sg2042_pwm_ddata *ddata, struct pwm_device *pwm, in pwm_sg2044_set_outputdir() 173 static void pwm_sg2044_set_polarity(struct sg2042_pwm_ddata *ddata, struct pwm_device *pwm, in pwm_sg2044_set_polarity() 188 static int pwm_sg2044_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_sg2044_apply()
|
| H A D | pwm-max7360.c | 42 static int max7360_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in max7360_pwm_request() 57 struct pwm_device *pwm, in max7360_pwm_round_waveform_tohw() 87 static int max7360_pwm_round_waveform_fromhw(struct pwm_chip *chip, struct pwm_device *pwm, in max7360_pwm_round_waveform_fromhw() 109 struct pwm_device *pwm, in max7360_pwm_write_waveform() 128 struct pwm_device *pwm, in max7360_pwm_read_waveform()
|
| H A D | pwm-tiecap.c | 53 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 int ecap_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in ecap_pwm_apply() 298 struct pwm_device *pwm = chip->pwms; in ecap_pwm_suspend() 312 struct pwm_device *pwm = chip->pwms; in ecap_pwm_resume()
|
| H A D | pwm-lpc18xx-sct.c | 125 struct pwm_device *pwm, in lpc18xx_pwm_set_conflict_res() 164 struct pwm_device *pwm, u64 duty_ns) in lpc18xx_pwm_config_duty() 185 static int lpc18xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lpc18xx_pwm_config() 223 static int lpc18xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm, enum pwm_polarity pola… in lpc18xx_pwm_enable() 258 static void lpc18xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_disable() 269 static int lpc18xx_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_request() 290 static void lpc18xx_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in lpc18xx_pwm_free() 298 static int lpc18xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in lpc18xx_pwm_apply()
|
| H A D | pwm-lp3943.c | 55 static int lp3943_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_request() 79 static void lp3943_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_free() 87 static int lp3943_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lp3943_pwm_config() 151 static int lp3943_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_enable() 170 static void lp3943_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lp3943_pwm_disable() 183 static int lp3943_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in lp3943_pwm_apply()
|
| H A D | pwm-hibvt.c | 82 static void hibvt_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in hibvt_pwm_enable() 90 static void hibvt_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in hibvt_pwm_disable() 98 static void hibvt_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_config() 117 struct pwm_device *pwm, in hibvt_pwm_set_polarity() 130 static int hibvt_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_get_state() 153 static int hibvt_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in hibvt_pwm_apply()
|
| H A D | pwm-samsung.c | 121 struct pwm_device *pwm) in __pwm_samsung_manual_update() 229 static int pwm_samsung_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_request() 245 static int pwm_samsung_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_enable() 271 static void pwm_samsung_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_disable() 297 struct pwm_device *pwm) in pwm_samsung_manual_update() 308 static int __pwm_samsung_config(struct pwm_chip *chip, struct pwm_device *pwm, in __pwm_samsung_config() 380 static int pwm_samsung_config(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_samsung_config() 411 struct pwm_device *pwm, in pwm_samsung_set_polarity() 423 static int pwm_samsung_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_samsung_apply() 607 struct pwm_device *pwm = &chip->pwms[i]; in pwm_samsung_resume()
|
| H A D | pwm-jz4740.c | 49 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() 88 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() 123 static int jz4740_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in jz4740_pwm_apply()
|
| H A D | pwm-imx1.c | 65 struct pwm_device *pwm, u64 duty_ns, u64 period_ns) in pwm_imx1_config() 95 static int pwm_imx1_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_imx1_enable() 112 static void pwm_imx1_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_imx1_disable() 124 static int pwm_imx1_apply(struct pwm_chip *chip, struct pwm_device *pwm, in pwm_imx1_apply()
|
| H A D | pwm-lpc32xx.c | 30 static int lpc32xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in lpc32xx_pwm_config() 63 static int lpc32xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc32xx_pwm_enable() 80 static void lpc32xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in lpc32xx_pwm_disable() 92 static int lpc32xx_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in lpc32xx_pwm_apply()
|
| H A D | pwm-renesas-tpu.c | 212 static int tpu_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_request() 234 static void tpu_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_free() 242 static int tpu_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in tpu_pwm_config() 351 static int tpu_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in tpu_pwm_set_polarity() 362 static int tpu_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_enable() 385 static void tpu_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in tpu_pwm_disable() 396 static int tpu_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in tpu_pwm_apply()
|
| H A D | pwm-argon-fan-hat.c | 22 struct pwm_device *pwm, in argon_fan_hat_round_waveform_tohw() 37 struct pwm_device *pwm, in argon_fan_hat_round_waveform_fromhw() 51 struct pwm_device *pwm, in argon_fan_hat_write_waveform()
|
| H A D | pwm-sti.c | 92 struct pwm_device *cur; 156 static int sti_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in sti_pwm_config() 161 struct pwm_device *cur = pc->cur; in sti_pwm_config() 242 static int sti_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in sti_pwm_enable() 275 static void sti_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in sti_pwm_disable() 288 static void sti_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in sti_pwm_free() 295 static int sti_pwm_capture(struct pwm_chip *chip, struct pwm_device *pwm, in sti_pwm_capture() 376 static int sti_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in sti_pwm_apply()
|
| H A D | pwm-fsl-ftm.c | 87 static int fsl_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in fsl_pwm_request() 99 static void fsl_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in fsl_pwm_free() 201 struct pwm_device *pwm) in fsl_pwm_is_any_pwm_enabled() 213 struct pwm_device *pwm) in fsl_pwm_is_other_pwm_enabled() 225 struct pwm_device *pwm, in fsl_pwm_apply_config() 297 static int fsl_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in fsl_pwm_apply() 483 struct pwm_device *pwm = &chip->pwms[i]; in fsl_pwm_suspend() 507 struct pwm_device *pwm = &chip->pwms[i]; in fsl_pwm_resume()
|
| H A D | pwm-rzg2l-gpt.c | 136 static int rzg2l_gpt_request(struct pwm_chip *chip, struct pwm_device *pwm) in rzg2l_gpt_request() 147 static void rzg2l_gpt_free(struct pwm_chip *chip, struct pwm_device *pwm) in rzg2l_gpt_free() 172 struct pwm_device *pwm) in rzg2l_gpt_enable() 190 struct pwm_device *pwm) in rzg2l_gpt_disable() 223 static int rzg2l_gpt_get_state(struct pwm_chip *chip, struct pwm_device *pwm, in rzg2l_gpt_get_state() 259 static int rzg2l_gpt_config(struct pwm_chip *chip, struct pwm_device *pwm, in rzg2l_gpt_config() 346 static int rzg2l_gpt_apply(struct pwm_chip *chip, struct pwm_device *pwm, in rzg2l_gpt_apply()
|
| H A D | pwm-berlin.c | 75 static int berlin_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in berlin_pwm_config() 114 struct pwm_device *pwm, in berlin_pwm_set_polarity() 132 static int berlin_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in berlin_pwm_enable() 145 struct pwm_device *pwm) in berlin_pwm_disable() 155 static int berlin_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in berlin_pwm_apply()
|
| H A D | pwm-vt8500.c | 72 static int vt8500_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in vt8500_pwm_config() 126 static int vt8500_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in vt8500_pwm_enable() 146 static void vt8500_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in vt8500_pwm_disable() 160 struct pwm_device *pwm, in vt8500_pwm_set_polarity() 179 static int vt8500_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, in vt8500_pwm_apply()
|
| /linux/rust/kernel/ |
| H A D | pwm.rs | 76 /// Wrapper for a PWM device [`struct pwm_device`](srctree/include/linux/pwm.h). 78 pub struct Device(Opaque<bindings::pwm_device>); 87 pub(crate) unsafe fn from_raw<'a>(ptr: *mut bindings::pwm_device) -> &'a Self { 93 /// Returns a raw pointer to the underlying `pwm_device`. 94 fn as_raw(&self) -> *mut bindings::pwm_device { in hwpwm() 129 // SAFETY: `self.as_raw()` provides a valid `*mut pwm_device` pointer. in set_waveform() 140 // SAFETY: `self.as_raw()` provides a valid `*mut pwm_device` pointer. in round_waveform() 319 pwm_ptr: *mut bindings::pwm_device, in request_callback() argument 337 pwm_ptr: *mut bindings::pwm_device, in capture_callback() argument 364 pwm_ptr: *mut bindings::pwm_device, in round_waveform_tohw_callback() argument 89 as_raw(&self) -> *mut bindings::pwm_device as_raw() argument 394 round_waveform_fromhw_callback( chip_ptr: *mut bindings::pwm_chip, pwm_ptr: *mut bindings::pwm_device, wfhw_ptr: *const c_void, wf_ptr: *mut bindings::pwm_waveform, ) -> c_int round_waveform_fromhw_callback() argument 425 read_waveform_callback( chip_ptr: *mut bindings::pwm_chip, pwm_ptr: *mut bindings::pwm_device, wfhw_ptr: *mut c_void, ) -> c_int read_waveform_callback() argument 449 write_waveform_callback( chip_ptr: *mut bindings::pwm_chip, pwm_ptr: *mut bindings::pwm_device, wfhw_ptr: *const c_void, ) -> c_int write_waveform_callback() argument [all...] |
| /linux/include/trace/events/ |
| H A D | pwm.h | 12 TP_PROTO(struct pwm_device *pwm, args) 135 TP_PROTO(struct pwm_device *pwm, const struct pwm_state *state, int err), 163 TP_PROTO(struct pwm_device *pwm, const struct pwm_state *state, int err), 170 TP_PROTO(struct pwm_device *pwm, const struct pwm_state *state, int err),
|