Lines Matching refs:pwm_freq_hz
1271 static u32 spt_hz_to_pwm(struct intel_connector *connector, u32 pwm_freq_hz) in spt_hz_to_pwm() argument
1284 return clock / (pwm_freq_hz * mul); in spt_hz_to_pwm()
1292 static u32 lpt_hz_to_pwm(struct intel_connector *connector, u32 pwm_freq_hz) in lpt_hz_to_pwm() argument
1308 return clock / (pwm_freq_hz * mul); in lpt_hz_to_pwm()
1315 static u32 pch_hz_to_pwm(struct intel_connector *connector, u32 pwm_freq_hz) in pch_hz_to_pwm() argument
1320 return clock / (pwm_freq_hz * 128); in pch_hz_to_pwm()
1331 static u32 i9xx_hz_to_pwm(struct intel_connector *connector, u32 pwm_freq_hz) in i9xx_hz_to_pwm() argument
1342 return clock / (pwm_freq_hz * 32); in i9xx_hz_to_pwm()
1349 static u32 i965_hz_to_pwm(struct intel_connector *connector, u32 pwm_freq_hz) in i965_hz_to_pwm() argument
1355 return clock / (pwm_freq_hz * 128); in i965_hz_to_pwm()
1363 static u32 vlv_hz_to_pwm(struct intel_connector *connector, u32 pwm_freq_hz) in vlv_hz_to_pwm() argument
1371 return KHz(19200) / (pwm_freq_hz * 16); in vlv_hz_to_pwm()
1373 return MHz(25) / (pwm_freq_hz * 16); in vlv_hz_to_pwm()
1376 return MHz(clock) / (pwm_freq_hz * 128); in vlv_hz_to_pwm()
1385 u16 pwm_freq_hz = dev_priv->vbt.backlight.pwm_freq_hz; in get_backlight_max_vbt() local
1388 if (!pwm_freq_hz) { in get_backlight_max_vbt()
1398 pwm = panel->backlight.hz_to_pwm(connector, pwm_freq_hz); in get_backlight_max_vbt()
1404 DRM_DEBUG_KMS("backlight frequency %u Hz from VBT\n", pwm_freq_hz); in get_backlight_max_vbt()