Searched refs:real_state (Results 1 – 1 of 1) sorted by relevance
91 struct pwm_state *real_state, in pwm_imx_tpm_round_state() argument116 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() local299 ret = pwm_imx_tpm_round_state(chip, ¶m, &real_state, state); in pwm_imx_tpm_apply()[all …]