/linux-6.12.1/include/linux/ |
D | pwm.h | 63 struct pwm_state { struct 88 struct pwm_state state; argument 89 struct pwm_state last; 103 struct pwm_state *state) in pwm_get_state() 110 struct pwm_state state; in pwm_is_enabled() 119 struct pwm_state state; in pwm_get_period() 128 struct pwm_state state; in pwm_get_duty_cycle() 137 struct pwm_state state; in pwm_get_polarity() 168 struct pwm_state *state) in pwm_init_state() 198 pwm_get_relative_duty_cycle(const struct pwm_state *state, unsigned int scale) in pwm_get_relative_duty_cycle() [all …]
|
/linux-6.12.1/drivers/hwmon/ |
D | pwm-fan.c | 43 struct pwm_state pwm_state; member 99 struct pwm_state *state, in pwm_fan_enable_mode_2_state() 142 struct pwm_state *state = &ctx->pwm_state; in pwm_fan_power_on() 172 struct pwm_state *state = &ctx->pwm_state; in pwm_fan_power_off() 201 struct pwm_state *state = &ctx->pwm_state; in __set_pwm() 275 struct pwm_state *state = &ctx->pwm_state; in pwm_fan_update_enable() 508 pwm_init_state(ctx->pwm, &ctx->pwm_state); in pwm_fan_probe() 516 ctx->pwm_state.usage_power = true; in pwm_fan_probe() 523 if (ctx->pwm_state.period > ULONG_MAX / MAX_PWM + 1) { in pwm_fan_probe()
|
/linux-6.12.1/drivers/pwm/ |
D | pwm-gpio.c | 30 struct pwm_state state; 31 struct pwm_state next_state; 41 static void pwm_gpio_round(struct pwm_state *dest, const struct pwm_state *src) in pwm_gpio_round() 60 const struct pwm_state *state = &gpwm->state; in pwm_gpio_toggle() 102 const struct pwm_state *state) in pwm_gpio_apply() 155 struct pwm_state *state) in pwm_gpio_get_state()
|
D | core.c | 35 const struct pwm_state *state) in pwm_apply_debug() 37 struct pwm_state *last = &pwm->last; in pwm_apply_debug() 39 struct pwm_state s1 = { 0 }, s2 = { 0 }; in pwm_apply_debug() 121 *last = (struct pwm_state){ 0 }; in pwm_apply_debug() 140 static bool pwm_state_valid(const struct pwm_state *state) in pwm_state_valid() 164 static int __pwm_apply(struct pwm_device *pwm, const struct pwm_state *state) in __pwm_apply() 220 int pwm_apply_might_sleep(struct pwm_device *pwm, const struct pwm_state *state) in pwm_apply_might_sleep() 255 int pwm_apply_atomic(struct pwm_device *pwm, const struct pwm_state *state) in pwm_apply_atomic() 274 struct pwm_state state; in pwm_adjust_config() 397 struct pwm_state state = { 0, }; in pwm_device_request() [all …]
|
D | pwm-imx-tpm.c | 89 struct pwm_state *real_state, in pwm_imx_tpm_round_state() 90 const struct pwm_state *state) in pwm_imx_tpm_round_state() 139 struct pwm_state *state) in pwm_imx_tpm_get_state() 176 struct pwm_state *state, in pwm_imx_tpm_apply_hw() 184 struct pwm_state c; in pwm_imx_tpm_apply_hw() 294 const struct pwm_state *state) in pwm_imx_tpm_apply() 298 struct pwm_state real_state; in pwm_imx_tpm_apply()
|
D | pwm-microchip-core.c | 133 static u64 mchp_core_pwm_calc_duty(const struct pwm_state *state, u64 clk_rate, in mchp_core_pwm_calc_duty() 151 const struct pwm_state *state, u64 duty_steps, in mchp_core_pwm_apply_duty() 184 static int mchp_core_pwm_calc_period(const struct pwm_state *state, unsigned long clk_rate, in mchp_core_pwm_calc_period() 274 const struct pwm_state *state) in mchp_core_pwm_apply_locked() 360 const struct pwm_state *state) in mchp_core_pwm_apply() 377 struct pwm_state *state) in mchp_core_pwm_get_state()
|
D | pwm-stm32-lp.c | 34 const struct pwm_state *state) in stm32_pwm_lp_apply() 38 struct pwm_state cstate; in stm32_pwm_lp_apply() 160 struct pwm_state *state) in stm32_pwm_lp_get_state() 223 struct pwm_state state; in stm32_pwm_lp_suspend()
|
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()
|
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()
|
D | pwm-rockchip.c | 61 struct pwm_state *state) in rockchip_pwm_get_state() 103 const struct pwm_state *state) in rockchip_pwm_config() 187 const struct pwm_state *state) in rockchip_pwm_apply() 190 struct pwm_state curstate; in rockchip_pwm_apply()
|
D | pwm-lpss.c | 167 const struct pwm_state *state) in pwm_lpss_prepare_enable() 186 const struct pwm_state *state) in pwm_lpss_apply() 209 struct pwm_state *state) in pwm_lpss_get_state()
|
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()
|
D | pwm-visconti.c | 46 const struct pwm_state *state) in visconti_pwm_apply() 106 struct pwm_state *state) in visconti_pwm_get_state()
|
D | pwm-apple.c | 45 const struct pwm_state *state) in apple_pwm_apply() 77 struct pwm_state *state) in apple_pwm_get_state()
|
D | pwm-atmel.c | 193 const struct pwm_state *state, in atmel_pwm_calculate_cprd_and_pres() 226 static void atmel_pwm_calculate_cdty(const struct pwm_state *state, in atmel_pwm_calculate_cdty() 293 const struct pwm_state *state) in atmel_pwm_apply() 355 struct pwm_state *state) in atmel_pwm_get_state()
|
D | pwm-sun4i.c | 111 struct pwm_state *state) in sun4i_pwm_get_state() 170 const struct pwm_state *state, in sun4i_pwm_calculate() 233 const struct pwm_state *state) in sun4i_pwm_apply() 236 struct pwm_state cstate; in sun4i_pwm_apply()
|
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()
|
D | pwm-sifive.c | 110 struct pwm_state *state) in pwm_sifive_get_state() 132 const struct pwm_state *state) in pwm_sifive_apply() 135 struct pwm_state cur_state; in pwm_sifive_apply()
|
D | pwm-ab8500.c | 36 const struct pwm_state *state) in ab8500_pwm_apply() 139 struct pwm_state *state) in ab8500_pwm_get_state()
|
D | pwm-adp5585.c | 56 const struct pwm_state *state) in pwm_adp5585_apply() 112 struct pwm_state *state) in pwm_adp5585_get_state()
|
D | pwm-crc.c | 53 const struct pwm_state *state) in crc_pwm_apply() 123 struct pwm_state *state) in crc_pwm_get_state()
|
/linux-6.12.1/drivers/regulator/ |
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-6.12.1/include/trace/events/ |
D | pwm.h | 13 TP_PROTO(struct pwm_device *pwm, const struct pwm_state *state, int err), 45 TP_PROTO(struct pwm_device *pwm, const struct pwm_state *state, int err), 52 TP_PROTO(struct pwm_device *pwm, const struct pwm_state *state, int err),
|
/linux-6.12.1/drivers/media/rc/ |
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-6.12.1/drivers/video/backlight/ |
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()
|