@@ -616,19 +616,19 @@ static void vlv_load_wgc_csc(struct intel_crtc *crtc,
616616 struct drm_i915_private * dev_priv = to_i915 (crtc -> base .dev );
617617 enum pipe pipe = crtc -> pipe ;
618618
619- intel_de_write_fw (dev_priv , PIPE_WGC_C01_C00 (pipe ),
619+ intel_de_write_fw (dev_priv , PIPE_WGC_C01_C00 (dev_priv , pipe ),
620620 csc -> coeff [1 ] << 16 | csc -> coeff [0 ]);
621- intel_de_write_fw (dev_priv , PIPE_WGC_C02 (pipe ),
621+ intel_de_write_fw (dev_priv , PIPE_WGC_C02 (dev_priv , pipe ),
622622 csc -> coeff [2 ]);
623623
624- intel_de_write_fw (dev_priv , PIPE_WGC_C11_C10 (pipe ),
624+ intel_de_write_fw (dev_priv , PIPE_WGC_C11_C10 (dev_priv , pipe ),
625625 csc -> coeff [4 ] << 16 | csc -> coeff [3 ]);
626- intel_de_write_fw (dev_priv , PIPE_WGC_C12 (pipe ),
626+ intel_de_write_fw (dev_priv , PIPE_WGC_C12 (dev_priv , pipe ),
627627 csc -> coeff [5 ]);
628628
629- intel_de_write_fw (dev_priv , PIPE_WGC_C21_C20 (pipe ),
629+ intel_de_write_fw (dev_priv , PIPE_WGC_C21_C20 (dev_priv , pipe ),
630630 csc -> coeff [7 ] << 16 | csc -> coeff [6 ]);
631- intel_de_write_fw (dev_priv , PIPE_WGC_C22 (pipe ),
631+ intel_de_write_fw (dev_priv , PIPE_WGC_C22 (dev_priv , pipe ),
632632 csc -> coeff [8 ]);
633633}
634634
@@ -639,25 +639,25 @@ static void vlv_read_wgc_csc(struct intel_crtc *crtc,
639639 enum pipe pipe = crtc -> pipe ;
640640 u32 tmp ;
641641
642- tmp = intel_de_read_fw (dev_priv , PIPE_WGC_C01_C00 (pipe ));
642+ tmp = intel_de_read_fw (dev_priv , PIPE_WGC_C01_C00 (dev_priv , pipe ));
643643 csc -> coeff [0 ] = tmp & 0xffff ;
644644 csc -> coeff [1 ] = tmp >> 16 ;
645645
646- tmp = intel_de_read_fw (dev_priv , PIPE_WGC_C02 (pipe ));
646+ tmp = intel_de_read_fw (dev_priv , PIPE_WGC_C02 (dev_priv , pipe ));
647647 csc -> coeff [2 ] = tmp & 0xffff ;
648648
649- tmp = intel_de_read_fw (dev_priv , PIPE_WGC_C11_C10 (pipe ));
649+ tmp = intel_de_read_fw (dev_priv , PIPE_WGC_C11_C10 (dev_priv , pipe ));
650650 csc -> coeff [3 ] = tmp & 0xffff ;
651651 csc -> coeff [4 ] = tmp >> 16 ;
652652
653- tmp = intel_de_read_fw (dev_priv , PIPE_WGC_C12 (pipe ));
653+ tmp = intel_de_read_fw (dev_priv , PIPE_WGC_C12 (dev_priv , pipe ));
654654 csc -> coeff [5 ] = tmp & 0xffff ;
655655
656- tmp = intel_de_read_fw (dev_priv , PIPE_WGC_C21_C20 (pipe ));
656+ tmp = intel_de_read_fw (dev_priv , PIPE_WGC_C21_C20 (dev_priv , pipe ));
657657 csc -> coeff [6 ] = tmp & 0xffff ;
658658 csc -> coeff [7 ] = tmp >> 16 ;
659659
660- tmp = intel_de_read_fw (dev_priv , PIPE_WGC_C22 (pipe ));
660+ tmp = intel_de_read_fw (dev_priv , PIPE_WGC_C22 (dev_priv , pipe ));
661661 csc -> coeff [8 ] = tmp & 0xffff ;
662662}
663663
@@ -1227,7 +1227,7 @@ static void i9xx_load_lut_8(struct intel_crtc *crtc,
12271227 lut = blob -> data ;
12281228
12291229 for (i = 0 ; i < 256 ; i ++ )
1230- intel_de_write_fw (dev_priv , PALETTE (pipe , i ),
1230+ intel_de_write_fw (dev_priv , PALETTE (dev_priv , pipe , i ),
12311231 i9xx_lut_8 (& lut [i ]));
12321232}
12331233
@@ -1240,9 +1240,11 @@ static void i9xx_load_lut_10(struct intel_crtc *crtc,
12401240 enum pipe pipe = crtc -> pipe ;
12411241
12421242 for (i = 0 ; i < lut_size - 1 ; i ++ ) {
1243- intel_de_write_fw (dev_priv , PALETTE (pipe , 2 * i + 0 ),
1243+ intel_de_write_fw (dev_priv ,
1244+ PALETTE (dev_priv , pipe , 2 * i + 0 ),
12441245 i9xx_lut_10_ldw (& lut [i ]));
1245- intel_de_write_fw (dev_priv , PALETTE (pipe , 2 * i + 1 ),
1246+ intel_de_write_fw (dev_priv ,
1247+ PALETTE (dev_priv , pipe , 2 * i + 1 ),
12461248 i9xx_lut_10_udw (& lut [i ]));
12471249 }
12481250}
@@ -1274,9 +1276,11 @@ static void i965_load_lut_10p6(struct intel_crtc *crtc,
12741276 enum pipe pipe = crtc -> pipe ;
12751277
12761278 for (i = 0 ; i < lut_size - 1 ; i ++ ) {
1277- intel_de_write_fw (dev_priv , PALETTE (pipe , 2 * i + 0 ),
1279+ intel_de_write_fw (dev_priv ,
1280+ PALETTE (dev_priv , pipe , 2 * i + 0 ),
12781281 i965_lut_10p6_ldw (& lut [i ]));
1279- intel_de_write_fw (dev_priv , PALETTE (pipe , 2 * i + 1 ),
1282+ intel_de_write_fw (dev_priv ,
1283+ PALETTE (dev_priv , pipe , 2 * i + 1 ),
12801284 i965_lut_10p6_udw (& lut [i ]));
12811285 }
12821286
@@ -3150,7 +3154,8 @@ static struct drm_property_blob *i9xx_read_lut_8(struct intel_crtc *crtc)
31503154 lut = blob -> data ;
31513155
31523156 for (i = 0 ; i < LEGACY_LUT_LENGTH ; i ++ ) {
3153- u32 val = intel_de_read_fw (dev_priv , PALETTE (pipe , i ));
3157+ u32 val = intel_de_read_fw (dev_priv ,
3158+ PALETTE (dev_priv , pipe , i ));
31543159
31553160 i9xx_lut_8_pack (& lut [i ], val );
31563161 }
@@ -3176,8 +3181,10 @@ static struct drm_property_blob *i9xx_read_lut_10(struct intel_crtc *crtc)
31763181 lut = blob -> data ;
31773182
31783183 for (i = 0 ; i < lut_size - 1 ; i ++ ) {
3179- ldw = intel_de_read_fw (dev_priv , PALETTE (pipe , 2 * i + 0 ));
3180- udw = intel_de_read_fw (dev_priv , PALETTE (pipe , 2 * i + 1 ));
3184+ ldw = intel_de_read_fw (dev_priv ,
3185+ PALETTE (dev_priv , pipe , 2 * i + 0 ));
3186+ udw = intel_de_read_fw (dev_priv ,
3187+ PALETTE (dev_priv , pipe , 2 * i + 1 ));
31813188
31823189 i9xx_lut_10_pack (& lut [i ], ldw , udw );
31833190 }
@@ -3224,8 +3231,10 @@ static struct drm_property_blob *i965_read_lut_10p6(struct intel_crtc *crtc)
32243231 lut = blob -> data ;
32253232
32263233 for (i = 0 ; i < lut_size - 1 ; i ++ ) {
3227- u32 ldw = intel_de_read_fw (dev_priv , PALETTE (pipe , 2 * i + 0 ));
3228- u32 udw = intel_de_read_fw (dev_priv , PALETTE (pipe , 2 * i + 1 ));
3234+ u32 ldw = intel_de_read_fw (dev_priv ,
3235+ PALETTE (dev_priv , pipe , 2 * i + 0 ));
3236+ u32 udw = intel_de_read_fw (dev_priv ,
3237+ PALETTE (dev_priv , pipe , 2 * i + 1 ));
32293238
32303239 i965_lut_10p6_pack (& lut [i ], ldw , udw );
32313240 }
0 commit comments