Home
last modified time | relevance | path

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

/openbmc/linux/drivers/pwm/
H A Dpwm-imx-tpm.c89 struct pwm_state *real_state, in pwm_imx_tpm_round_state() argument
116 real_state->period = DIV_ROUND_CLOSEST_ULL(tmp, rate); in pwm_imx_tpm_round_state()
124 real_state->duty_cycle = 0; in pwm_imx_tpm_round_state()
126 real_state->duty_cycle = state->duty_cycle; in pwm_imx_tpm_round_state()
128 tmp = (u64)p->mod * real_state->duty_cycle; in pwm_imx_tpm_round_state()
129 p->val = DIV64_U64_ROUND_CLOSEST(tmp, real_state->period); in pwm_imx_tpm_round_state()
131 real_state->polarity = state->polarity; in pwm_imx_tpm_round_state()
132 real_state->enabled = state->enabled; in pwm_imx_tpm_round_state()
298 struct pwm_state real_state; in pwm_imx_tpm_apply() local
301 ret = pwm_imx_tpm_round_state(chip, &param, &real_state, state); in pwm_imx_tpm_apply()
[all …]