Home
last modified time | relevance | path

Searched refs:pwm_state (Results 1 – 25 of 45) sorted by relevance

12

/linux/drivers/pwm/
H A Dpwm-gpio.c29 struct pwm_state state;
30 struct pwm_state next_state;
40 static void pwm_gpio_round(struct pwm_state *dest, const struct pwm_state *src) in pwm_gpio_round()
59 const struct pwm_state *state = &gpwm->state; in pwm_gpio_toggle()
101 const struct pwm_state *state) in pwm_gpio_apply()
154 struct pwm_state *state) in pwm_gpio_get_state()
H A Dpwm-microchip-core.c131 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 Dpwm-dwc-core.c40 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 Dpwm-keembay.c91 struct pwm_state *state) in keembay_pwm_get_state()
119 const struct pwm_state *state) in keembay_pwm_apply()
122 struct pwm_state current_state; in keembay_pwm_apply()
H A Dpwm-sprd.c71 struct pwm_state *state) in sprd_pwm_get_state()
163 const struct pwm_state *state) in sprd_pwm_apply()
167 struct pwm_state *cstate = &pwm->state; in sprd_pwm_apply()
H A Dpwm-apple.c44 const struct pwm_state *state) in apple_pwm_apply()
76 struct pwm_state *state) in apple_pwm_get_state()
H A Dpwm-sifive.c126 struct pwm_state *state) in pwm_sifive_get_state()
153 const struct pwm_state *state) in pwm_sifive_apply()
156 struct pwm_state cur_state; in pwm_sifive_apply()
H A Dpwm-crc.c53 const struct pwm_state *state) in crc_pwm_apply()
123 struct pwm_state *state) in crc_pwm_get_state()
H A Dpwm-ab8500.c36 const struct pwm_state *state) in ab8500_pwm_apply()
139 struct pwm_state *state) in ab8500_pwm_get_state()
H A Dpwm-iqs620a.c68 const struct pwm_state *state) in iqs620_pwm_apply()
113 struct pwm_state *state) in iqs620_pwm_get_state()
H A Dpwm-sl28cpld.c94 struct pwm_state *state) in sl28cpld_pwm_get_state()
125 const struct pwm_state *state) in sl28cpld_pwm_apply()
H A Dpwm-adp5585.c68 const struct pwm_state *state) in pwm_adp5585_apply()
121 struct pwm_state *state) in pwm_adp5585_get_state()
H A Dpwm-intel-lgm.c63 const struct pwm_state *state) in lgm_pwm_apply()
88 struct pwm_state *state) in lgm_pwm_get_state()
H A Dpwm-sunplus.c55 const struct pwm_state *state) in sunplus_pwm_apply()
127 struct pwm_state *state) in sunplus_pwm_get_state()
H A Dpwm-rzg2l-gpt.c223 struct pwm_state *state) in rzg2l_gpt_get_state()
259 const struct pwm_state *state) in rzg2l_gpt_config()
346 const struct pwm_state *state) in rzg2l_gpt_apply()
H A Dpwm-rz-mtu3.c270 struct pwm_state *state) in rz_mtu3_pwm_get_state()
319 const struct pwm_state *state) in rz_mtu3_pwm_config()
406 const struct pwm_state *state) in rz_mtu3_pwm_apply()
/linux/drivers/hwmon/
H A Dpwm-fan.c43 struct pwm_state pwm_state; member
103 struct pwm_state *state, in pwm_fan_enable_mode_2_state()
146 struct pwm_state *state = &ctx->pwm_state; in pwm_fan_power_on()
176 struct pwm_state *state = &ctx->pwm_state; in pwm_fan_power_off()
205 struct pwm_state *state = &ctx->pwm_state; in __set_pwm()
292 struct pwm_state *state = &ctx->pwm_state; in pwm_fan_update_enable()
532 pwm_init_state(ctx->pwm, &ctx->pwm_state); in pwm_fan_probe()
540 ctx->pwm_state.usage_power = true; in pwm_fan_probe()
547 if (ctx->pwm_state.period > ULONG_MAX / MAX_PWM + 1) { in pwm_fan_probe()
663 (ctx->pwm_state.period - 1), in pwm_fan_probe()
/linux/drivers/regulator/
H A Dpwm-regulator.c57 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/include/trace/events/
H A Dpwm.h135 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 Dpwm-ir-tx.c24 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 Dpwm_bl.c75 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 Dsharp-memory.c504 struct pwm_state pwm_state; in sharp_memory_init_pwm_vcom_signal() local
511 pwm_init_state(smd->pwm_vcom_signal, &pwm_state); in sharp_memory_init_pwm_vcom_signal()
512 pwm_set_relative_duty_cycle(&pwm_state, 1, 10); in sharp_memory_init_pwm_vcom_signal()
513 pwm_state.enabled = true; in sharp_memory_init_pwm_vcom_signal()
514 ret = pwm_apply_might_sleep(smd->pwm_vcom_signal, &pwm_state); in sharp_memory_init_pwm_vcom_signal()
/linux/drivers/iio/adc/
H A Dad4695.c816 struct pwm_state state; in ad4695_offload_buffer_postenable()
921 struct pwm_state state; in ad4695_offload_buffer_predisable()
1174 struct pwm_state state; in ad4695_read_raw()
1306 struct pwm_state state; in __ad4695_write_raw()
1688 struct pwm_state pwm_state; in ad4695_probe_spi_offload() local
1720 pwm_init_state(st->cnv_pwm, &pwm_state); in ad4695_probe_spi_offload()
1723 if (pwm_state.period == 0) in ad4695_probe_spi_offload()
1724 pwm_state.period = 100 * MILLI; in ad4695_probe_spi_offload()
1726 pwm_state.enabled = true; in ad4695_probe_spi_offload()
1728 ret = pwm_apply_might_sleep(st->cnv_pwm, &pwm_state); in ad4695_probe_spi_offload()
/linux/drivers/input/misc/
H A Dpwm-beeper.c33 struct pwm_state state; in pwm_beeper_on()
126 struct pwm_state state; in pwm_beeper_probe()
H A Dpwm-vibra.c41 struct pwm_state state; in pwm_vibrator_start()
131 struct pwm_state state; in pwm_vibrator_probe()

12