Lines Matching refs:se_config
448 struct malidp_se_config *se_config, in malidp500_se_set_scaling_coeffs() argument
452 u8 h = (u8)se_config->hcoeff - 1; in malidp500_se_set_scaling_coeffs()
453 u8 v = (u8)se_config->vcoeff - 1; in malidp500_se_set_scaling_coeffs()
459 if ((h == v) && (se_config->hcoeff != old_config->hcoeff || in malidp500_se_set_scaling_coeffs()
460 se_config->vcoeff != old_config->vcoeff)) { in malidp500_se_set_scaling_coeffs()
466 if (se_config->vcoeff != old_config->vcoeff) in malidp500_se_set_scaling_coeffs()
470 if (se_config->hcoeff != old_config->hcoeff) in malidp500_se_set_scaling_coeffs()
480 struct malidp_se_config *se_config, in malidp500_se_calc_mclk() argument
487 unsigned long input_size = se_config->input_w * se_config->input_h; in malidp500_se_calc_mclk()
497 if (se_config->scale_enable) { in malidp500_se_calc_mclk()
498 a = 15 * input_size / (htotal * se_config->output_h); in malidp500_se_calc_mclk()
807 struct malidp_se_config *se_config, in malidp550_se_set_scaling_coeffs() argument
812 u32 new_value = MALIDP550_SE_CTL_VCSEL(se_config->vcoeff) | in malidp550_se_set_scaling_coeffs()
813 MALIDP550_SE_CTL_HCSEL(se_config->hcoeff); in malidp550_se_set_scaling_coeffs()
821 struct malidp_se_config *se_config, in malidp550_se_calc_mclk() argument
831 if (se_config->scale_enable) { in malidp550_se_calc_mclk()
832 numerator = max(se_config->input_w, se_config->output_w) * in malidp550_se_calc_mclk()
833 se_config->input_h; in malidp550_se_calc_mclk()
834 numerator += se_config->output_w * in malidp550_se_calc_mclk()
835 (se_config->output_h - in malidp550_se_calc_mclk()
836 min(se_config->input_h, se_config->output_h)); in malidp550_se_calc_mclk()
837 denominator = (htotal - 2) * se_config->output_h; in malidp550_se_calc_mclk()