Lines Matching refs:real_state
91 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 = DIV_ROUND_CLOSEST_ULL(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()
296 struct pwm_state real_state; in pwm_imx_tpm_apply() local
299 ret = pwm_imx_tpm_round_state(chip, ¶m, &real_state, state); in pwm_imx_tpm_apply()
304 ret = pwm_imx_tpm_apply_hw(chip, ¶m, &real_state, pwm); in pwm_imx_tpm_apply()