Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/pwm/
H A Dpwm-imx-tpm.c89 struct pwm_state *real_state, in pwm_imx_tpm_round_state() argument
114 real_state->period = DIV_ROUND_CLOSEST_ULL(tmp, rate); in pwm_imx_tpm_round_state()
122 real_state->duty_cycle = 0; in pwm_imx_tpm_round_state()
124 real_state->duty_cycle = state->duty_cycle; in pwm_imx_tpm_round_state()
126 tmp = (u64)p->mod * real_state->duty_cycle; in pwm_imx_tpm_round_state()
127 p->val = DIV64_U64_ROUND_CLOSEST(tmp, real_state->period); in pwm_imx_tpm_round_state()
129 real_state->polarity = state->polarity; in pwm_imx_tpm_round_state()
130 real_state->enabled = state->enabled; in pwm_imx_tpm_round_state()
294 struct pwm_state real_state; in pwm_imx_tpm_apply() local
297 ret = pwm_imx_tpm_round_state(chip, &param, &real_state, state); in pwm_imx_tpm_apply()
[all …]