| /linux/drivers/pwm/ |
| H A D | pwm-gpio.c | 29 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 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-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 | 91 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 D | pwm-sprd.c | 71 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 D | pwm-apple.c | 44 const struct pwm_state *state) in apple_pwm_apply() 76 struct pwm_state *state) in apple_pwm_get_state()
|
| H A D | pwm-sifive.c | 126 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 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-iqs620a.c | 68 const struct pwm_state *state) in iqs620_pwm_apply() 113 struct pwm_state *state) in iqs620_pwm_get_state()
|
| H A D | pwm-sl28cpld.c | 94 struct pwm_state *state) in sl28cpld_pwm_get_state() 125 const struct pwm_state *state) in sl28cpld_pwm_apply()
|
| H A D | pwm-adp5585.c | 68 const struct pwm_state *state) in pwm_adp5585_apply() 121 struct pwm_state *state) in pwm_adp5585_get_state()
|
| H A D | pwm-intel-lgm.c | 63 const struct pwm_state *state) in lgm_pwm_apply() 88 struct pwm_state *state) in lgm_pwm_get_state()
|
| H A D | pwm-sunplus.c | 55 const struct pwm_state *state) in sunplus_pwm_apply() 127 struct pwm_state *state) in sunplus_pwm_get_state()
|
| H A D | pwm-rzg2l-gpt.c | 223 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 D | pwm-rz-mtu3.c | 270 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 D | pwm-fan.c | 43 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 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/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 | 504 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 D | ad4695.c | 816 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 D | pwm-beeper.c | 33 struct pwm_state state; in pwm_beeper_on() 126 struct pwm_state state; in pwm_beeper_probe()
|
| H A D | pwm-vibra.c | 41 struct pwm_state state; in pwm_vibrator_start() 131 struct pwm_state state; in pwm_vibrator_probe()
|