Home
last modified time | relevance | path

Searched refs:dutycycle (Results 1 – 2 of 2) sorted by relevance

/drivers/regulator/
Dpwm-regulator.c48 unsigned int dutycycle; member
58 unsigned int dutycycle; in pwm_regulator_init_state() local
62 dutycycle = pwm_get_relative_duty_cycle(&pwm_state, 100); in pwm_regulator_init_state()
65 if (dutycycle == drvdata->duty_cycle_table[i].dutycycle) { in pwm_regulator_init_state()
91 drvdata->duty_cycle_table[selector].dutycycle, 100); in pwm_regulator_set_voltage_sel()
196 unsigned int dutycycle; in pwm_regulator_set_voltage() local
211 dutycycle = DIV_ROUND_CLOSEST_ULL((u64)(req_min_uV - min_uV) * in pwm_regulator_set_voltage()
216 dutycycle = min_uV_duty - dutycycle; in pwm_regulator_set_voltage()
218 dutycycle = min_uV_duty + dutycycle; in pwm_regulator_set_voltage()
220 pwm_set_relative_duty_cycle(&pstate, dutycycle, duty_unit); in pwm_regulator_set_voltage()
/drivers/pwm/
Dcore.c724 u64 dutycycle = (u64)state.duty_cycle * pargs.period; in pwm_adjust_config() local
726 do_div(dutycycle, state.period); in pwm_adjust_config()
727 state.duty_cycle = dutycycle; in pwm_adjust_config()