Lines Matching refs:pwm_freq_hz
1294 static u32 cnp_hz_to_pwm(struct intel_connector *connector, u32 pwm_freq_hz) in cnp_hz_to_pwm() argument
1298 return DIV_ROUND_CLOSEST(KHz(dev_priv->rawclk_freq), pwm_freq_hz); in cnp_hz_to_pwm()
1304 static u32 bxt_hz_to_pwm(struct intel_connector *connector, u32 pwm_freq_hz) in bxt_hz_to_pwm() argument
1306 return DIV_ROUND_CLOSEST(KHz(19200), pwm_freq_hz); in bxt_hz_to_pwm()
1314 static u32 spt_hz_to_pwm(struct intel_connector *connector, u32 pwm_freq_hz) in spt_hz_to_pwm() argument
1324 return DIV_ROUND_CLOSEST(MHz(24), pwm_freq_hz * mul); in spt_hz_to_pwm()
1332 static u32 lpt_hz_to_pwm(struct intel_connector *connector, u32 pwm_freq_hz) in lpt_hz_to_pwm() argument
1348 return DIV_ROUND_CLOSEST(clock, pwm_freq_hz * mul); in lpt_hz_to_pwm()
1355 static u32 pch_hz_to_pwm(struct intel_connector *connector, u32 pwm_freq_hz) in pch_hz_to_pwm() argument
1359 return DIV_ROUND_CLOSEST(KHz(dev_priv->rawclk_freq), pwm_freq_hz * 128); in pch_hz_to_pwm()
1370 static u32 i9xx_hz_to_pwm(struct intel_connector *connector, u32 pwm_freq_hz) in i9xx_hz_to_pwm() argument
1380 return DIV_ROUND_CLOSEST(clock, pwm_freq_hz * 32); in i9xx_hz_to_pwm()
1388 static u32 i965_hz_to_pwm(struct intel_connector *connector, u32 pwm_freq_hz) in i965_hz_to_pwm() argument
1398 return DIV_ROUND_CLOSEST(clock, pwm_freq_hz * 128); in i965_hz_to_pwm()
1406 static u32 vlv_hz_to_pwm(struct intel_connector *connector, u32 pwm_freq_hz) in vlv_hz_to_pwm() argument
1422 return DIV_ROUND_CLOSEST(clock, pwm_freq_hz * mul); in vlv_hz_to_pwm()
1429 u16 pwm_freq_hz = dev_priv->vbt.backlight.pwm_freq_hz; in get_backlight_max_vbt() local
1437 if (pwm_freq_hz) { in get_backlight_max_vbt()
1439 pwm_freq_hz); in get_backlight_max_vbt()
1441 pwm_freq_hz = 200; in get_backlight_max_vbt()
1443 pwm_freq_hz); in get_backlight_max_vbt()
1446 pwm = panel->backlight.hz_to_pwm(connector, pwm_freq_hz); in get_backlight_max_vbt()