| /linux/drivers/regulator/ |
| H A D | pwm-regulator.c | 57 struct pwm_state pwm_state; in pwm_regulator_init_state() local 61 pwm_get_state(drvdata->pwm, &pwm_state); in pwm_regulator_init_state() 62 dutycycle = pwm_get_relative_duty_cycle(&pwm_state, 100); in pwm_regulator_init_state() 86 struct pwm_state pstate; in pwm_regulator_set_voltage_sel() 154 struct pwm_state pstate; in pwm_regulator_get_voltage() 201 struct pwm_state pstate; in pwm_regulator_set_voltage() 328 struct pwm_state pstate; in pwm_regulator_init_boot_on()
|
| /linux/drivers/pwm/ |
| H A D | core.c | 80 static void pwm_wf2state(const struct pwm_waveform *wf, struct pwm_state *state) in pwm_wf2state() 84 *state = (struct pwm_state){ in pwm_wf2state() 91 *state = (struct pwm_state){ in pwm_wf2state() 98 *state = (struct pwm_state){ in pwm_wf2state() 104 static void pwm_state2wf(const struct pwm_state *state, struct pwm_waveform *wf) in pwm_state2wf() 485 const struct pwm_state *state) in pwm_apply_debug() 487 struct pwm_state *last = &pwm->last; in pwm_apply_debug() 489 struct pwm_state s1 = { 0 }, s2 = { 0 }; in pwm_apply_debug() 583 *last = (struct pwm_state){ 0 }; in pwm_apply_debug() 602 static bool pwm_state_valid(const struct pwm_state *state) in pwm_state_valid() [all …]
|
| H A D | pwm-microchip-core.c | 131 static u64 mchp_core_pwm_calc_duty(const struct pwm_state *state, u64 clk_rate, in mchp_core_pwm_calc_duty() 149 const struct pwm_state *state, u64 duty_steps, in mchp_core_pwm_apply_duty() 182 static int mchp_core_pwm_calc_period(const struct pwm_state *state, unsigned long clk_rate, in mchp_core_pwm_calc_period() 272 const struct pwm_state *state) in mchp_core_pwm_apply_locked() 358 const struct pwm_state *state) in mchp_core_pwm_apply() 368 struct pwm_state *state) in mchp_core_pwm_get_state()
|
| H A D | pwm-sophgo-sg2042.c | 79 const struct pwm_state *state) in pwm_sg2042_set_dutycycle() 99 const struct pwm_state *state) in pwm_sg2042_apply() 117 struct pwm_state *state) in pwm_sg2042_get_state() 174 const struct pwm_state *state) in pwm_sg2044_set_polarity() 189 const struct pwm_state *state) in pwm_sg2044_apply()
|
| H A D | pwm-dwc-core.c | 40 const struct pwm_state *state) in __dwc_pwm_configure_timer() 99 const struct pwm_state *state) in dwc_pwm_apply() 121 struct pwm_state *state) in dwc_pwm_get_state()
|
| H A D | pwm-keembay.c | 92 struct pwm_state *state) in keembay_pwm_get_state() 120 const struct pwm_state *state) in keembay_pwm_apply() 123 struct pwm_state current_state; in keembay_pwm_apply()
|
| H A D | pwm-rockchip.c | 63 struct pwm_state *state) in rockchip_pwm_get_state() 106 const struct pwm_state *state) in rockchip_pwm_config() 194 const struct pwm_state *state) in rockchip_pwm_apply() 197 struct pwm_state curstate; in rockchip_pwm_apply()
|
| H A D | pwm-sprd.c | 72 struct pwm_state *state) in sprd_pwm_get_state() 164 const struct pwm_state *state) in sprd_pwm_apply() 168 struct pwm_state *cstate = &pwm->state; in sprd_pwm_apply()
|
| H A D | pwm-stm32-lp.c | 123 const struct pwm_state *state) in stm32_pwm_lp_apply() 127 struct pwm_state cstate; in stm32_pwm_lp_apply() 296 struct pwm_state *state) in stm32_pwm_lp_get_state() 391 struct pwm_state state; in stm32_pwm_lp_suspend()
|
| H A D | pwm-atmel.c | 182 const struct pwm_state *state, in atmel_pwm_calculate_cprd_and_pres() 215 static void atmel_pwm_calculate_cdty(const struct pwm_state *state, in atmel_pwm_calculate_cdty() 282 const struct pwm_state *state) in atmel_pwm_apply() 344 struct pwm_state *state) in atmel_pwm_get_state()
|
| H A D | pwm-sun4i.c | 109 struct pwm_state *state) in sun4i_pwm_get_state() 168 const struct pwm_state *state, in sun4i_pwm_calculate() 231 const struct pwm_state *state) in sun4i_pwm_apply() 234 struct pwm_state cstate; in sun4i_pwm_apply()
|
| H A D | pwm-apple.c | 45 const struct pwm_state *state) in apple_pwm_apply() 77 struct pwm_state *state) in apple_pwm_get_state()
|
| H A D | pwm-visconti.c | 46 const struct pwm_state *state) in visconti_pwm_apply() 106 struct pwm_state *state) in visconti_pwm_get_state()
|
| H A D | pwm-sifive.c | 127 struct pwm_state *state) in pwm_sifive_get_state() 154 const struct pwm_state *state) in pwm_sifive_apply() 157 struct pwm_state cur_state; in pwm_sifive_apply()
|
| H A D | pwm-raspberrypi-poe.c | 86 struct pwm_state *state) in raspberrypi_pwm_get_state() 100 const struct pwm_state *state) in raspberrypi_pwm_apply()
|
| H A D | pwm-crc.c | 53 const struct pwm_state *state) in crc_pwm_apply() 123 struct pwm_state *state) in crc_pwm_get_state()
|
| H A D | pwm-ab8500.c | 36 const struct pwm_state *state) in ab8500_pwm_apply() 139 struct pwm_state *state) in ab8500_pwm_get_state()
|
| H A D | pwm-sl28cpld.c | 95 struct pwm_state *state) in sl28cpld_pwm_get_state() 126 const struct pwm_state *state) in sl28cpld_pwm_apply()
|
| H A D | pwm-iqs620a.c | 68 const struct pwm_state *state) in iqs620_pwm_apply() 113 struct pwm_state *state) in iqs620_pwm_get_state()
|
| /linux/include/trace/events/ |
| H A D | pwm.h | 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),
|
| /linux/drivers/media/rc/ |
| H A D | pwm-ir-tx.c | 24 struct pwm_state *state; 65 struct pwm_state state; in pwm_ir_tx_sleep() 98 struct pwm_state state; in pwm_ir_tx_atomic()
|
| /linux/drivers/video/backlight/ |
| H A D | pwm_bl.c | 75 static int compute_duty_cycle(struct pwm_bl_data *pb, int brightness, struct pwm_state *state) in compute_duty_cycle() 95 struct pwm_state state; in pwm_backlight_update_status() 447 struct pwm_state state; in pwm_backlight_probe() 619 struct pwm_state state; in pwm_backlight_remove() 636 struct pwm_state state; in pwm_backlight_shutdown() 650 struct pwm_state state; in pwm_backlight_suspend()
|
| /linux/drivers/gpu/drm/tiny/ |
| H A D | sharp-memory.c | 505 struct pwm_state pwm_state; in sharp_memory_init_pwm_vcom_signal() local 512 pwm_init_state(smd->pwm_vcom_signal, &pwm_state); in sharp_memory_init_pwm_vcom_signal() 513 pwm_set_relative_duty_cycle(&pwm_state, 1, 10); in sharp_memory_init_pwm_vcom_signal() 514 pwm_state.enabled = true; in sharp_memory_init_pwm_vcom_signal() 515 ret = pwm_apply_might_sleep(smd->pwm_vcom_signal, &pwm_state); in sharp_memory_init_pwm_vcom_signal()
|
| /linux/drivers/iio/adc/ |
| H A D | ad4695.c | 816 struct pwm_state state; in ad4695_offload_buffer_postenable() 928 struct pwm_state state; in ad4695_offload_buffer_predisable() 1181 struct pwm_state state; in ad4695_read_raw() 1313 struct pwm_state state; in __ad4695_write_raw() 1695 struct pwm_state pwm_state; in ad4695_probe_spi_offload() local 1727 pwm_init_state(st->cnv_pwm, &pwm_state); in ad4695_probe_spi_offload() 1730 if (pwm_state.period == 0) in ad4695_probe_spi_offload() 1731 pwm_state.period = 100 * MILLI; in ad4695_probe_spi_offload() 1733 pwm_state.enabled = true; in ad4695_probe_spi_offload() 1735 ret = pwm_apply_might_sleep(st->cnv_pwm, &pwm_state); in ad4695_probe_spi_offload()
|
| /linux/drivers/input/misc/ |
| H A D | pwm-beeper.c | 33 struct pwm_state state; in pwm_beeper_on() 126 struct pwm_state state; in pwm_beeper_probe()
|