Lines Matching refs:gamma

115 static void i9xx_plane_linear_gamma(u16 gamma[8])  in i9xx_plane_linear_gamma()
122 gamma[i] = (in[i] << 8) / 32; in i9xx_plane_linear_gamma()
408 u16 gamma[8]; in vlv_sprite_update_gamma() local
415 i9xx_plane_linear_gamma(gamma); in vlv_sprite_update_gamma()
421 gamma[i] << 16 | gamma[i] << 8 | gamma[i]); in vlv_sprite_update_gamma()
786 u16 gamma[18]) in ivb_sprite_linear_gamma()
801 gamma[i] = min((scale * i << 10) / 16, (1 << 10) - 1); in ivb_sprite_linear_gamma()
803 gamma[i] = min((scale * i << 10) / 16, 1 << 10); in ivb_sprite_linear_gamma()
806 gamma[i] = 3 << 10; in ivb_sprite_linear_gamma()
815 u16 gamma[18]; in ivb_sprite_update_gamma() local
821 ivb_sprite_linear_gamma(plane_state, gamma); in ivb_sprite_update_gamma()
826 gamma[i] << 20 | gamma[i] << 10 | gamma[i]); in ivb_sprite_update_gamma()
828 intel_de_write_fw(dev_priv, SPRGAMC16(pipe, 0), gamma[i]); in ivb_sprite_update_gamma()
829 intel_de_write_fw(dev_priv, SPRGAMC16(pipe, 1), gamma[i]); in ivb_sprite_update_gamma()
830 intel_de_write_fw(dev_priv, SPRGAMC16(pipe, 2), gamma[i]); in ivb_sprite_update_gamma()
833 intel_de_write_fw(dev_priv, SPRGAMC17(pipe, 0), gamma[i]); in ivb_sprite_update_gamma()
834 intel_de_write_fw(dev_priv, SPRGAMC17(pipe, 1), gamma[i]); in ivb_sprite_update_gamma()
835 intel_de_write_fw(dev_priv, SPRGAMC17(pipe, 2), gamma[i]); in ivb_sprite_update_gamma()
1116 u16 gamma[8]; in g4x_sprite_update_gamma() local
1123 i9xx_plane_linear_gamma(gamma); in g4x_sprite_update_gamma()
1129 gamma[i] << 16 | gamma[i] << 8 | gamma[i]); in g4x_sprite_update_gamma()
1132 static void ilk_sprite_linear_gamma(u16 gamma[17]) in ilk_sprite_linear_gamma()
1137 gamma[i] = (i << 10) / 16; in ilk_sprite_linear_gamma()
1146 u16 gamma[17]; in ilk_sprite_update_gamma() local
1153 ilk_sprite_linear_gamma(gamma); in ilk_sprite_update_gamma()
1158 gamma[i] << 20 | gamma[i] << 10 | gamma[i]); in ilk_sprite_update_gamma()
1160 intel_de_write_fw(dev_priv, DVSGAMCMAX_ILK(pipe, 0), gamma[i]); in ilk_sprite_update_gamma()
1161 intel_de_write_fw(dev_priv, DVSGAMCMAX_ILK(pipe, 1), gamma[i]); in ilk_sprite_update_gamma()
1162 intel_de_write_fw(dev_priv, DVSGAMCMAX_ILK(pipe, 2), gamma[i]); in ilk_sprite_update_gamma()