Lines Matching refs:up_count
4199 unsigned int up_count, down_count; in ni_m_series_pwm_config() local
4205 up_count = DIV_ROUND_CLOSEST(data[2], in ni_m_series_pwm_config()
4209 up_count = data[2] / devpriv->clock_ns; in ni_m_series_pwm_config()
4212 up_count = in ni_m_series_pwm_config()
4233 if (up_count * devpriv->clock_ns != data[2] || in ni_m_series_pwm_config()
4235 data[2] = up_count * devpriv->clock_ns; in ni_m_series_pwm_config()
4239 ni_writel(dev, NI_M_CAL_PWM_HIGH_TIME(up_count) | in ni_m_series_pwm_config()
4242 devpriv->pwm_up_count = up_count; in ni_m_series_pwm_config()
4259 unsigned int up_count, down_count; in ni_6143_pwm_config() local
4265 up_count = DIV_ROUND_CLOSEST(data[2], in ni_6143_pwm_config()
4269 up_count = data[2] / devpriv->clock_ns; in ni_6143_pwm_config()
4272 up_count = in ni_6143_pwm_config()
4293 if (up_count * devpriv->clock_ns != data[2] || in ni_6143_pwm_config()
4295 data[2] = up_count * devpriv->clock_ns; in ni_6143_pwm_config()
4299 ni_writel(dev, up_count, NI6143_CALIB_HI_TIME_REG); in ni_6143_pwm_config()
4300 devpriv->pwm_up_count = up_count; in ni_6143_pwm_config()