aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/matrox
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-04-28 05:15:47 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-28 11:58:42 -0400
commit5ae121705bed9ea7425daef4d7d29038f7312f3f (patch)
treefa1527459b056ad59acfbf1fa59c5a8880f6ac22 /drivers/video/matrox
parente7a05aa9e697ff6fc165d45671cdcca601942f62 (diff)
video: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Cc: "Antonino A. Daplas" <adaplas@pol.net> Cc: Krzysztof Helt <krzysztof.h1@wp.pl> Cc: Antonino Daplas <adaplas@gmail.com> Cc: Antonino A. Daplas <adaplas@gmail.com> Cc: Antonino Daplas <adaplas@pol.net> Cc: Richard Purdie <rpurdie@rpsys.net> Cc: Jean Delvare <khali@linux-fr.org> Cc: Adrian Bunk <bunk@stusta.de> Cc: Russell King <rmk+kernel@arm.linux.org.uk> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Ben Dooks <ben-linux@fluff.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/matrox')
-rw-r--r--drivers/video/matrox/matroxfb_DAC1064.c36
-rw-r--r--drivers/video/matrox/matroxfb_Ti3026.c16
-rw-r--r--drivers/video/matrox/matroxfb_accel.c14
-rw-r--r--drivers/video/matrox/matroxfb_base.c42
-rw-r--r--drivers/video/matrox/matroxfb_crtc2.c2
-rw-r--r--drivers/video/matrox/matroxfb_maven.c2
-rw-r--r--drivers/video/matrox/matroxfb_misc.c12
7 files changed, 62 insertions, 62 deletions
diff --git a/drivers/video/matrox/matroxfb_DAC1064.c b/drivers/video/matrox/matroxfb_DAC1064.c
index c4b570b4a4df..0ce3b0a89798 100644
--- a/drivers/video/matrox/matroxfb_DAC1064.c
+++ b/drivers/video/matrox/matroxfb_DAC1064.c
@@ -37,7 +37,7 @@ static void DAC1064_calcclock(CPMINFO unsigned int freq, unsigned int fmax, unsi
37 unsigned int fvco; 37 unsigned int fvco;
38 unsigned int p; 38 unsigned int p;
39 39
40 DBG(__FUNCTION__) 40 DBG(__func__)
41 41
42 /* only for devices older than G450 */ 42 /* only for devices older than G450 */
43 43
@@ -83,7 +83,7 @@ static const unsigned char MGA1064_DAC[] = {
83static void DAC1064_setpclk(WPMINFO unsigned long fout) { 83static void DAC1064_setpclk(WPMINFO unsigned long fout) {
84 unsigned int m, n, p; 84 unsigned int m, n, p;
85 85
86 DBG(__FUNCTION__) 86 DBG(__func__)
87 87
88 DAC1064_calcclock(PMINFO fout, ACCESS_FBINFO(max_pixel_clock), &m, &n, &p); 88 DAC1064_calcclock(PMINFO fout, ACCESS_FBINFO(max_pixel_clock), &m, &n, &p);
89 ACCESS_FBINFO(hw).DACclk[0] = m; 89 ACCESS_FBINFO(hw).DACclk[0] = m;
@@ -95,7 +95,7 @@ static void DAC1064_setmclk(WPMINFO int oscinfo, unsigned long fmem) {
95 u_int32_t mx; 95 u_int32_t mx;
96 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); 96 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw);
97 97
98 DBG(__FUNCTION__) 98 DBG(__func__)
99 99
100 if (ACCESS_FBINFO(devflags.noinit)) { 100 if (ACCESS_FBINFO(devflags.noinit)) {
101 /* read MCLK and give up... */ 101 /* read MCLK and give up... */
@@ -338,7 +338,7 @@ void DAC1064_global_restore(WPMINFO2) {
338static int DAC1064_init_1(WPMINFO struct my_timming* m) { 338static int DAC1064_init_1(WPMINFO struct my_timming* m) {
339 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); 339 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw);
340 340
341 DBG(__FUNCTION__) 341 DBG(__func__)
342 342
343 memcpy(hw->DACreg, MGA1064_DAC, sizeof(MGA1064_DAC_regs)); 343 memcpy(hw->DACreg, MGA1064_DAC, sizeof(MGA1064_DAC_regs));
344 switch (ACCESS_FBINFO(fbcon).var.bits_per_pixel) { 344 switch (ACCESS_FBINFO(fbcon).var.bits_per_pixel) {
@@ -374,7 +374,7 @@ static int DAC1064_init_1(WPMINFO struct my_timming* m) {
374static int DAC1064_init_2(WPMINFO struct my_timming* m) { 374static int DAC1064_init_2(WPMINFO struct my_timming* m) {
375 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); 375 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw);
376 376
377 DBG(__FUNCTION__) 377 DBG(__func__)
378 378
379 if (ACCESS_FBINFO(fbcon).var.bits_per_pixel > 16) { /* 256 entries */ 379 if (ACCESS_FBINFO(fbcon).var.bits_per_pixel > 16) { /* 256 entries */
380 int i; 380 int i;
@@ -418,7 +418,7 @@ static void DAC1064_restore_1(WPMINFO2) {
418 418
419 CRITFLAGS 419 CRITFLAGS
420 420
421 DBG(__FUNCTION__) 421 DBG(__func__)
422 422
423 CRITBEGIN 423 CRITBEGIN
424 424
@@ -448,7 +448,7 @@ static void DAC1064_restore_2(WPMINFO2) {
448 unsigned int i; 448 unsigned int i;
449#endif 449#endif
450 450
451 DBG(__FUNCTION__) 451 DBG(__func__)
452 452
453#ifdef DEBUG 453#ifdef DEBUG
454 dprintk(KERN_DEBUG "DAC1064regs "); 454 dprintk(KERN_DEBUG "DAC1064regs ");
@@ -521,7 +521,7 @@ static struct matrox_altout g450out = {
521static int MGA1064_init(WPMINFO struct my_timming* m) { 521static int MGA1064_init(WPMINFO struct my_timming* m) {
522 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); 522 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw);
523 523
524 DBG(__FUNCTION__) 524 DBG(__func__)
525 525
526 if (DAC1064_init_1(PMINFO m)) return 1; 526 if (DAC1064_init_1(PMINFO m)) return 1;
527 if (matroxfb_vgaHWinit(PMINFO m)) return 1; 527 if (matroxfb_vgaHWinit(PMINFO m)) return 1;
@@ -543,7 +543,7 @@ static int MGA1064_init(WPMINFO struct my_timming* m) {
543static int MGAG100_init(WPMINFO struct my_timming* m) { 543static int MGAG100_init(WPMINFO struct my_timming* m) {
544 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); 544 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw);
545 545
546 DBG(__FUNCTION__) 546 DBG(__func__)
547 547
548 if (DAC1064_init_1(PMINFO m)) return 1; 548 if (DAC1064_init_1(PMINFO m)) return 1;
549 hw->MXoptionReg &= ~0x2000; 549 hw->MXoptionReg &= ~0x2000;
@@ -565,7 +565,7 @@ static int MGAG100_init(WPMINFO struct my_timming* m) {
565#ifdef CONFIG_FB_MATROX_MYSTIQUE 565#ifdef CONFIG_FB_MATROX_MYSTIQUE
566static void MGA1064_ramdac_init(WPMINFO2) { 566static void MGA1064_ramdac_init(WPMINFO2) {
567 567
568 DBG(__FUNCTION__) 568 DBG(__func__)
569 569
570 /* ACCESS_FBINFO(features.DAC1064.vco_freq_min) = 120000; */ 570 /* ACCESS_FBINFO(features.DAC1064.vco_freq_min) = 120000; */
571 ACCESS_FBINFO(features.pll.vco_freq_min) = 62000; 571 ACCESS_FBINFO(features.pll.vco_freq_min) = 62000;
@@ -594,7 +594,7 @@ static void MGAG100_progPixClock(CPMINFO int flags, int m, int n, int p) {
594 int selClk; 594 int selClk;
595 int clk; 595 int clk;
596 596
597 DBG(__FUNCTION__) 597 DBG(__func__)
598 598
599 outDAC1064(PMINFO M1064_XPIXCLKCTRL, inDAC1064(PMINFO M1064_XPIXCLKCTRL) | M1064_XPIXCLKCTRL_DIS | 599 outDAC1064(PMINFO M1064_XPIXCLKCTRL, inDAC1064(PMINFO M1064_XPIXCLKCTRL) | M1064_XPIXCLKCTRL_DIS |
600 M1064_XPIXCLKCTRL_PLL_UP); 600 M1064_XPIXCLKCTRL_PLL_UP);
@@ -636,7 +636,7 @@ static void MGAG100_progPixClock(CPMINFO int flags, int m, int n, int p) {
636static void MGAG100_setPixClock(CPMINFO int flags, int freq) { 636static void MGAG100_setPixClock(CPMINFO int flags, int freq) {
637 unsigned int m, n, p; 637 unsigned int m, n, p;
638 638
639 DBG(__FUNCTION__) 639 DBG(__func__)
640 640
641 DAC1064_calcclock(PMINFO freq, ACCESS_FBINFO(max_pixel_clock), &m, &n, &p); 641 DAC1064_calcclock(PMINFO freq, ACCESS_FBINFO(max_pixel_clock), &m, &n, &p);
642 MGAG100_progPixClock(PMINFO flags, m, n, p); 642 MGAG100_progPixClock(PMINFO flags, m, n, p);
@@ -650,7 +650,7 @@ static int MGA1064_preinit(WPMINFO2) {
650 2048, 0}; 650 2048, 0};
651 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); 651 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw);
652 652
653 DBG(__FUNCTION__) 653 DBG(__func__)
654 654
655 /* ACCESS_FBINFO(capable.cfb4) = 0; ... preinitialized by 0 */ 655 /* ACCESS_FBINFO(capable.cfb4) = 0; ... preinitialized by 0 */
656 ACCESS_FBINFO(capable.text) = 1; 656 ACCESS_FBINFO(capable.text) = 1;
@@ -683,7 +683,7 @@ static int MGA1064_preinit(WPMINFO2) {
683 683
684static void MGA1064_reset(WPMINFO2) { 684static void MGA1064_reset(WPMINFO2) {
685 685
686 DBG(__FUNCTION__); 686 DBG(__func__);
687 687
688 MGA1064_ramdac_init(PMINFO2); 688 MGA1064_ramdac_init(PMINFO2);
689} 689}
@@ -819,7 +819,7 @@ static int MGAG100_preinit(WPMINFO2) {
819 u_int32_t q; 819 u_int32_t q;
820#endif 820#endif
821 821
822 DBG(__FUNCTION__) 822 DBG(__func__)
823 823
824 /* there are some instabilities if in_div > 19 && vco < 61000 */ 824 /* there are some instabilities if in_div > 19 && vco < 61000 */
825 if (ACCESS_FBINFO(devflags.g450dac)) { 825 if (ACCESS_FBINFO(devflags.g450dac)) {
@@ -956,7 +956,7 @@ static void MGAG100_reset(WPMINFO2) {
956 u_int8_t b; 956 u_int8_t b;
957 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); 957 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw);
958 958
959 DBG(__FUNCTION__) 959 DBG(__func__)
960 960
961 { 961 {
962#ifdef G100_BROKEN_IBM_82351 962#ifdef G100_BROKEN_IBM_82351
@@ -1015,7 +1015,7 @@ static void MGA1064_restore(WPMINFO2) {
1015 1015
1016 CRITFLAGS 1016 CRITFLAGS
1017 1017
1018 DBG(__FUNCTION__) 1018 DBG(__func__)
1019 1019
1020 CRITBEGIN 1020 CRITBEGIN
1021 1021
@@ -1041,7 +1041,7 @@ static void MGAG100_restore(WPMINFO2) {
1041 1041
1042 CRITFLAGS 1042 CRITFLAGS
1043 1043
1044 DBG(__FUNCTION__) 1044 DBG(__func__)
1045 1045
1046 CRITBEGIN 1046 CRITBEGIN
1047 1047
diff --git a/drivers/video/matrox/matroxfb_Ti3026.c b/drivers/video/matrox/matroxfb_Ti3026.c
index 9445cdb759b1..13524821e242 100644
--- a/drivers/video/matrox/matroxfb_Ti3026.c
+++ b/drivers/video/matrox/matroxfb_Ti3026.c
@@ -283,7 +283,7 @@ static int Ti3026_calcclock(CPMINFO unsigned int freq, unsigned int fmax, int* i
283 unsigned int fvco; 283 unsigned int fvco;
284 unsigned int lin, lfeed, lpost; 284 unsigned int lin, lfeed, lpost;
285 285
286 DBG(__FUNCTION__) 286 DBG(__func__)
287 287
288 fvco = PLL_calcclock(PMINFO freq, fmax, &lin, &lfeed, &lpost); 288 fvco = PLL_calcclock(PMINFO freq, fmax, &lin, &lfeed, &lpost);
289 fvco >>= (*post = lpost); 289 fvco >>= (*post = lpost);
@@ -297,7 +297,7 @@ static int Ti3026_setpclk(WPMINFO int clk) {
297 unsigned int pixfeed, pixin, pixpost; 297 unsigned int pixfeed, pixin, pixpost;
298 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); 298 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw);
299 299
300 DBG(__FUNCTION__) 300 DBG(__func__)
301 301
302 f_pll = Ti3026_calcclock(PMINFO clk, ACCESS_FBINFO(max_pixel_clock), &pixin, &pixfeed, &pixpost); 302 f_pll = Ti3026_calcclock(PMINFO clk, ACCESS_FBINFO(max_pixel_clock), &pixin, &pixfeed, &pixpost);
303 303
@@ -365,7 +365,7 @@ static int Ti3026_init(WPMINFO struct my_timming* m) {
365 u_int8_t muxctrl = isInterleave(MINFO) ? TVP3026_XMUXCTRL_MEMORY_64BIT : TVP3026_XMUXCTRL_MEMORY_32BIT; 365 u_int8_t muxctrl = isInterleave(MINFO) ? TVP3026_XMUXCTRL_MEMORY_64BIT : TVP3026_XMUXCTRL_MEMORY_32BIT;
366 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); 366 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw);
367 367
368 DBG(__FUNCTION__) 368 DBG(__func__)
369 369
370 memcpy(hw->DACreg, MGADACbpp32, sizeof(hw->DACreg)); 370 memcpy(hw->DACreg, MGADACbpp32, sizeof(hw->DACreg));
371 switch (ACCESS_FBINFO(fbcon).var.bits_per_pixel) { 371 switch (ACCESS_FBINFO(fbcon).var.bits_per_pixel) {
@@ -440,7 +440,7 @@ static void ti3026_setMCLK(WPMINFO int fout){
440 unsigned int rfhcnt, mclk_ctl; 440 unsigned int rfhcnt, mclk_ctl;
441 int tmout; 441 int tmout;
442 442
443 DBG(__FUNCTION__) 443 DBG(__func__)
444 444
445 f_pll = Ti3026_calcclock(PMINFO fout, ACCESS_FBINFO(max_pixel_clock), &mclk_n, &mclk_m, &mclk_p); 445 f_pll = Ti3026_calcclock(PMINFO fout, ACCESS_FBINFO(max_pixel_clock), &mclk_n, &mclk_m, &mclk_p);
446 446
@@ -534,7 +534,7 @@ static void ti3026_setMCLK(WPMINFO int fout){
534 534
535static void ti3026_ramdac_init(WPMINFO2) { 535static void ti3026_ramdac_init(WPMINFO2) {
536 536
537 DBG(__FUNCTION__) 537 DBG(__func__)
538 538
539 ACCESS_FBINFO(features.pll.vco_freq_min) = 110000; 539 ACCESS_FBINFO(features.pll.vco_freq_min) = 110000;
540 ACCESS_FBINFO(features.pll.ref_freq) = 114545; 540 ACCESS_FBINFO(features.pll.ref_freq) = 114545;
@@ -554,7 +554,7 @@ static void Ti3026_restore(WPMINFO2) {
554 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); 554 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw);
555 CRITFLAGS 555 CRITFLAGS
556 556
557 DBG(__FUNCTION__) 557 DBG(__func__)
558 558
559#ifdef DEBUG 559#ifdef DEBUG
560 dprintk(KERN_INFO "EXTVGA regs: "); 560 dprintk(KERN_INFO "EXTVGA regs: ");
@@ -662,7 +662,7 @@ static void Ti3026_restore(WPMINFO2) {
662 662
663static void Ti3026_reset(WPMINFO2) { 663static void Ti3026_reset(WPMINFO2) {
664 664
665 DBG(__FUNCTION__) 665 DBG(__func__)
666 666
667 ti3026_ramdac_init(PMINFO2); 667 ti3026_ramdac_init(PMINFO2);
668} 668}
@@ -680,7 +680,7 @@ static int Ti3026_preinit(WPMINFO2) {
680 2048, 0}; 680 2048, 0};
681 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw); 681 struct matrox_hw_state* hw = &ACCESS_FBINFO(hw);
682 682
683 DBG(__FUNCTION__) 683 DBG(__func__)
684 684
685 ACCESS_FBINFO(millenium) = 1; 685 ACCESS_FBINFO(millenium) = 1;
686 ACCESS_FBINFO(milleniumII) = (ACCESS_FBINFO(pcidev)->device != PCI_DEVICE_ID_MATROX_MIL); 686 ACCESS_FBINFO(milleniumII) = (ACCESS_FBINFO(pcidev)->device != PCI_DEVICE_ID_MATROX_MIL);
diff --git a/drivers/video/matrox/matroxfb_accel.c b/drivers/video/matrox/matroxfb_accel.c
index 3660d2673bdc..9c3aeee1cc4f 100644
--- a/drivers/video/matrox/matroxfb_accel.c
+++ b/drivers/video/matrox/matroxfb_accel.c
@@ -113,7 +113,7 @@ void matrox_cfbX_init(WPMINFO2) {
113 u_int32_t mopmode; 113 u_int32_t mopmode;
114 int accel; 114 int accel;
115 115
116 DBG(__FUNCTION__) 116 DBG(__func__)
117 117
118 mpitch = ACCESS_FBINFO(fbcon).var.xres_virtual; 118 mpitch = ACCESS_FBINFO(fbcon).var.xres_virtual;
119 119
@@ -199,7 +199,7 @@ static void matrox_accel_bmove(WPMINFO int vxres, int sy, int sx, int dy, int dx
199 int start, end; 199 int start, end;
200 CRITFLAGS 200 CRITFLAGS
201 201
202 DBG(__FUNCTION__) 202 DBG(__func__)
203 203
204 CRITBEGIN 204 CRITBEGIN
205 205
@@ -235,7 +235,7 @@ static void matrox_accel_bmove_lin(WPMINFO int vxres, int sy, int sx, int dy, in
235 int start, end; 235 int start, end;
236 CRITFLAGS 236 CRITFLAGS
237 237
238 DBG(__FUNCTION__) 238 DBG(__func__)
239 239
240 CRITBEGIN 240 CRITBEGIN
241 241
@@ -287,7 +287,7 @@ static void matroxfb_accel_clear(WPMINFO u_int32_t color, int sy, int sx, int he
287 int width) { 287 int width) {
288 CRITFLAGS 288 CRITFLAGS
289 289
290 DBG(__FUNCTION__) 290 DBG(__func__)
291 291
292 CRITBEGIN 292 CRITBEGIN
293 293
@@ -315,7 +315,7 @@ static void matroxfb_cfb4_clear(WPMINFO u_int32_t bgx, int sy, int sx, int heigh
315 int whattodo; 315 int whattodo;
316 CRITFLAGS 316 CRITFLAGS
317 317
318 DBG(__FUNCTION__) 318 DBG(__func__)
319 319
320 CRITBEGIN 320 CRITBEGIN
321 321
@@ -388,7 +388,7 @@ static void matroxfb_1bpp_imageblit(WPMINFO u_int32_t fgx, u_int32_t bgx,
388 int easy; 388 int easy;
389 CRITFLAGS 389 CRITFLAGS
390 390
391 DBG_HEAVY(__FUNCTION__); 391 DBG_HEAVY(__func__);
392 392
393 step = (width + 7) >> 3; 393 step = (width + 7) >> 3;
394 charcell = height * step; 394 charcell = height * step;
@@ -469,7 +469,7 @@ static void matroxfb_1bpp_imageblit(WPMINFO u_int32_t fgx, u_int32_t bgx,
469static void matroxfb_imageblit(struct fb_info* info, const struct fb_image* image) { 469static void matroxfb_imageblit(struct fb_info* info, const struct fb_image* image) {
470 MINFO_FROM_INFO(info); 470 MINFO_FROM_INFO(info);
471 471
472 DBG_HEAVY(__FUNCTION__); 472 DBG_HEAVY(__func__);
473 473
474 if (image->depth == 1) { 474 if (image->depth == 1) {
475 u_int32_t fgx, bgx; 475 u_int32_t fgx, bgx;
diff --git a/drivers/video/matrox/matroxfb_base.c b/drivers/video/matrox/matroxfb_base.c
index b25972ac6eeb..54e82f35353d 100644
--- a/drivers/video/matrox/matroxfb_base.c
+++ b/drivers/video/matrox/matroxfb_base.c
@@ -312,7 +312,7 @@ static void matrox_pan_var(WPMINFO struct fb_var_screeninfo *var) {
312 312
313 CRITFLAGS 313 CRITFLAGS
314 314
315 DBG(__FUNCTION__) 315 DBG(__func__)
316 316
317 if (ACCESS_FBINFO(dead)) 317 if (ACCESS_FBINFO(dead))
318 return; 318 return;
@@ -392,7 +392,7 @@ static int matroxfb_open(struct fb_info *info, int user)
392{ 392{
393 MINFO_FROM_INFO(info); 393 MINFO_FROM_INFO(info);
394 394
395 DBG_LOOP(__FUNCTION__) 395 DBG_LOOP(__func__)
396 396
397 if (ACCESS_FBINFO(dead)) { 397 if (ACCESS_FBINFO(dead)) {
398 return -ENXIO; 398 return -ENXIO;
@@ -408,7 +408,7 @@ static int matroxfb_release(struct fb_info *info, int user)
408{ 408{
409 MINFO_FROM_INFO(info); 409 MINFO_FROM_INFO(info);
410 410
411 DBG_LOOP(__FUNCTION__) 411 DBG_LOOP(__func__)
412 412
413 if (user) { 413 if (user) {
414 if (0 == --ACCESS_FBINFO(userusecount)) { 414 if (0 == --ACCESS_FBINFO(userusecount)) {
@@ -425,7 +425,7 @@ static int matroxfb_pan_display(struct fb_var_screeninfo *var,
425 struct fb_info* info) { 425 struct fb_info* info) {
426 MINFO_FROM_INFO(info); 426 MINFO_FROM_INFO(info);
427 427
428 DBG(__FUNCTION__) 428 DBG(__func__)
429 429
430 matrox_pan_var(PMINFO var); 430 matrox_pan_var(PMINFO var);
431 return 0; 431 return 0;
@@ -434,7 +434,7 @@ static int matroxfb_pan_display(struct fb_var_screeninfo *var,
434static int matroxfb_get_final_bppShift(CPMINFO int bpp) { 434static int matroxfb_get_final_bppShift(CPMINFO int bpp) {
435 int bppshft2; 435 int bppshft2;
436 436
437 DBG(__FUNCTION__) 437 DBG(__func__)
438 438
439 bppshft2 = bpp; 439 bppshft2 = bpp;
440 if (!bppshft2) { 440 if (!bppshft2) {
@@ -451,7 +451,7 @@ static int matroxfb_test_and_set_rounding(CPMINFO int xres, int bpp) {
451 int over; 451 int over;
452 int rounding; 452 int rounding;
453 453
454 DBG(__FUNCTION__) 454 DBG(__func__)
455 455
456 switch (bpp) { 456 switch (bpp) {
457 case 0: return xres; 457 case 0: return xres;
@@ -482,7 +482,7 @@ static int matroxfb_pitch_adjust(CPMINFO int xres, int bpp) {
482 const int* width; 482 const int* width;
483 int xres_new; 483 int xres_new;
484 484
485 DBG(__FUNCTION__) 485 DBG(__func__)
486 486
487 if (!bpp) return xres; 487 if (!bpp) return xres;
488 488
@@ -504,7 +504,7 @@ static int matroxfb_pitch_adjust(CPMINFO int xres, int bpp) {
504 504
505static int matroxfb_get_cmap_len(struct fb_var_screeninfo *var) { 505static int matroxfb_get_cmap_len(struct fb_var_screeninfo *var) {
506 506
507 DBG(__FUNCTION__) 507 DBG(__func__)
508 508
509 switch (var->bits_per_pixel) { 509 switch (var->bits_per_pixel) {
510 case 4: 510 case 4:
@@ -548,7 +548,7 @@ static int matroxfb_decode_var(CPMINFO struct fb_var_screeninfo *var, int *visua
548 unsigned int vramlen; 548 unsigned int vramlen;
549 unsigned int memlen; 549 unsigned int memlen;
550 550
551 DBG(__FUNCTION__) 551 DBG(__func__)
552 552
553 switch (bpp) { 553 switch (bpp) {
554 case 4: if (!ACCESS_FBINFO(capable.cfb4)) return -EINVAL; 554 case 4: if (!ACCESS_FBINFO(capable.cfb4)) return -EINVAL;
@@ -648,7 +648,7 @@ static int matroxfb_setcolreg(unsigned regno, unsigned red, unsigned green,
648 struct matrox_fb_info* minfo = container_of(fb_info, struct matrox_fb_info, fbcon); 648 struct matrox_fb_info* minfo = container_of(fb_info, struct matrox_fb_info, fbcon);
649#endif 649#endif
650 650
651 DBG(__FUNCTION__) 651 DBG(__func__)
652 652
653 /* 653 /*
654 * Set a single color register. The values supplied are 654 * Set a single color register. The values supplied are
@@ -707,7 +707,7 @@ static int matroxfb_setcolreg(unsigned regno, unsigned red, unsigned green,
707static void matroxfb_init_fix(WPMINFO2) 707static void matroxfb_init_fix(WPMINFO2)
708{ 708{
709 struct fb_fix_screeninfo *fix = &ACCESS_FBINFO(fbcon).fix; 709 struct fb_fix_screeninfo *fix = &ACCESS_FBINFO(fbcon).fix;
710 DBG(__FUNCTION__) 710 DBG(__func__)
711 711
712 strcpy(fix->id,"MATROX"); 712 strcpy(fix->id,"MATROX");
713 713
@@ -722,7 +722,7 @@ static void matroxfb_init_fix(WPMINFO2)
722static void matroxfb_update_fix(WPMINFO2) 722static void matroxfb_update_fix(WPMINFO2)
723{ 723{
724 struct fb_fix_screeninfo *fix = &ACCESS_FBINFO(fbcon).fix; 724 struct fb_fix_screeninfo *fix = &ACCESS_FBINFO(fbcon).fix;
725 DBG(__FUNCTION__) 725 DBG(__func__)
726 726
727 fix->smem_start = ACCESS_FBINFO(video.base) + ACCESS_FBINFO(curr.ydstorg.bytes); 727 fix->smem_start = ACCESS_FBINFO(video.base) + ACCESS_FBINFO(curr.ydstorg.bytes);
728 fix->smem_len = ACCESS_FBINFO(video.len_usable) - ACCESS_FBINFO(curr.ydstorg.bytes); 728 fix->smem_len = ACCESS_FBINFO(video.len_usable) - ACCESS_FBINFO(curr.ydstorg.bytes);
@@ -753,7 +753,7 @@ static int matroxfb_set_par(struct fb_info *info)
753 struct fb_var_screeninfo *var; 753 struct fb_var_screeninfo *var;
754 MINFO_FROM_INFO(info); 754 MINFO_FROM_INFO(info);
755 755
756 DBG(__FUNCTION__) 756 DBG(__func__)
757 757
758 if (ACCESS_FBINFO(dead)) { 758 if (ACCESS_FBINFO(dead)) {
759 return -ENXIO; 759 return -ENXIO;
@@ -876,7 +876,7 @@ static int matroxfb_ioctl(struct fb_info *info,
876 void __user *argp = (void __user *)arg; 876 void __user *argp = (void __user *)arg;
877 MINFO_FROM_INFO(info); 877 MINFO_FROM_INFO(info);
878 878
879 DBG(__FUNCTION__) 879 DBG(__func__)
880 880
881 if (ACCESS_FBINFO(dead)) { 881 if (ACCESS_FBINFO(dead)) {
882 return -ENXIO; 882 return -ENXIO;
@@ -1175,7 +1175,7 @@ static int matroxfb_blank(int blank, struct fb_info *info)
1175 CRITFLAGS 1175 CRITFLAGS
1176 MINFO_FROM_INFO(info); 1176 MINFO_FROM_INFO(info);
1177 1177
1178 DBG(__FUNCTION__) 1178 DBG(__func__)
1179 1179
1180 if (ACCESS_FBINFO(dead)) 1180 if (ACCESS_FBINFO(dead))
1181 return 1; 1181 return 1;
@@ -1287,7 +1287,7 @@ static int matroxfb_getmemory(WPMINFO unsigned int maxSize, unsigned int *realSi
1287 unsigned char bytes[32]; 1287 unsigned char bytes[32];
1288 unsigned char* tmp; 1288 unsigned char* tmp;
1289 1289
1290 DBG(__FUNCTION__) 1290 DBG(__func__)
1291 1291
1292 vm = ACCESS_FBINFO(video.vbase); 1292 vm = ACCESS_FBINFO(video.vbase);
1293 maxSize &= ~0x1FFFFF; /* must be X*2MB (really it must be 2 or X*4MB) */ 1293 maxSize &= ~0x1FFFFF; /* must be X*2MB (really it must be 2 or X*4MB) */
@@ -1593,7 +1593,7 @@ static int initMatrox2(WPMINFO struct board* b){
1593 { }, 1593 { },
1594 }; 1594 };
1595 1595
1596 DBG(__FUNCTION__) 1596 DBG(__func__)
1597 1597
1598 /* set default values... */ 1598 /* set default values... */
1599 vesafb_defined.accel_flags = FB_ACCELF_TEXT; 1599 vesafb_defined.accel_flags = FB_ACCELF_TEXT;
@@ -2006,7 +2006,7 @@ static int matroxfb_probe(struct pci_dev* pdev, const struct pci_device_id* dumm
2006#ifndef CONFIG_FB_MATROX_MULTIHEAD 2006#ifndef CONFIG_FB_MATROX_MULTIHEAD
2007 static int registered = 0; 2007 static int registered = 0;
2008#endif 2008#endif
2009 DBG(__FUNCTION__) 2009 DBG(__func__)
2010 2010
2011 svid = pdev->subsystem_vendor; 2011 svid = pdev->subsystem_vendor;
2012 sid = pdev->subsystem_device; 2012 sid = pdev->subsystem_device;
@@ -2301,7 +2301,7 @@ static void __exit matrox_done(void) {
2301static int __init matroxfb_setup(char *options) { 2301static int __init matroxfb_setup(char *options) {
2302 char *this_opt; 2302 char *this_opt;
2303 2303
2304 DBG(__FUNCTION__) 2304 DBG(__func__)
2305 2305
2306 if (!options || !*options) 2306 if (!options || !*options)
2307 return 0; 2307 return 0;
@@ -2444,7 +2444,7 @@ static int __init matroxfb_init(void)
2444 char *option = NULL; 2444 char *option = NULL;
2445 int err = 0; 2445 int err = 0;
2446 2446
2447 DBG(__FUNCTION__) 2447 DBG(__func__)
2448 2448
2449 if (fb_get_options("matroxfb", &option)) 2449 if (fb_get_options("matroxfb", &option))
2450 return -ENODEV; 2450 return -ENODEV;
@@ -2556,7 +2556,7 @@ MODULE_PARM_DESC(cmode, "Specify the video depth that should be used (8bit defau
2556 2556
2557int __init init_module(void){ 2557int __init init_module(void){
2558 2558
2559 DBG(__FUNCTION__) 2559 DBG(__func__)
2560 2560
2561 if (disabled) 2561 if (disabled)
2562 return -ENXIO; 2562 return -ENXIO;
diff --git a/drivers/video/matrox/matroxfb_crtc2.c b/drivers/video/matrox/matroxfb_crtc2.c
index a6ab5b6a58d0..7ac4c5f6145d 100644
--- a/drivers/video/matrox/matroxfb_crtc2.c
+++ b/drivers/video/matrox/matroxfb_crtc2.c
@@ -420,7 +420,7 @@ static int matroxfb_dh_ioctl(struct fb_info *info,
420#define m2info (container_of(info, struct matroxfb_dh_fb_info, fbcon)) 420#define m2info (container_of(info, struct matroxfb_dh_fb_info, fbcon))
421 MINFO_FROM(m2info->primary_dev); 421 MINFO_FROM(m2info->primary_dev);
422 422
423 DBG(__FUNCTION__) 423 DBG(__func__)
424 424
425 switch (cmd) { 425 switch (cmd) {
426 case FBIOGET_VBLANK: 426 case FBIOGET_VBLANK:
diff --git a/drivers/video/matrox/matroxfb_maven.c b/drivers/video/matrox/matroxfb_maven.c
index 0cd58f84fb46..89da27bd5c49 100644
--- a/drivers/video/matrox/matroxfb_maven.c
+++ b/drivers/video/matrox/matroxfb_maven.c
@@ -220,7 +220,7 @@ static int matroxfb_PLL_mavenclock(const struct matrox_pll_features2* pll,
220 unsigned int scrlen; 220 unsigned int scrlen;
221 unsigned int fmax; 221 unsigned int fmax;
222 222
223 DBG(__FUNCTION__) 223 DBG(__func__)
224 224
225 scrlen = htotal * (vtotal - 1); 225 scrlen = htotal * (vtotal - 1);
226 fwant = htotal * vtotal; 226 fwant = htotal * vtotal;
diff --git a/drivers/video/matrox/matroxfb_misc.c b/drivers/video/matrox/matroxfb_misc.c
index ab7fb50bc1de..aaa3e538e5da 100644
--- a/drivers/video/matrox/matroxfb_misc.c
+++ b/drivers/video/matrox/matroxfb_misc.c
@@ -90,13 +90,13 @@
90#include <linux/matroxfb.h> 90#include <linux/matroxfb.h>
91 91
92void matroxfb_DAC_out(CPMINFO int reg, int val) { 92void matroxfb_DAC_out(CPMINFO int reg, int val) {
93 DBG_REG(__FUNCTION__) 93 DBG_REG(__func__)
94 mga_outb(M_RAMDAC_BASE+M_X_INDEX, reg); 94 mga_outb(M_RAMDAC_BASE+M_X_INDEX, reg);
95 mga_outb(M_RAMDAC_BASE+M_X_DATAREG, val); 95 mga_outb(M_RAMDAC_BASE+M_X_DATAREG, val);
96} 96}
97 97
98int matroxfb_DAC_in(CPMINFO int reg) { 98int matroxfb_DAC_in(CPMINFO int reg) {
99 DBG_REG(__FUNCTION__) 99 DBG_REG(__func__)
100 mga_outb(M_RAMDAC_BASE+M_X_INDEX, reg); 100 mga_outb(M_RAMDAC_BASE+M_X_INDEX, reg);
101 return mga_inb(M_RAMDAC_BASE+M_X_DATAREG); 101 return mga_inb(M_RAMDAC_BASE+M_X_DATAREG);
102} 102}
@@ -104,7 +104,7 @@ int matroxfb_DAC_in(CPMINFO int reg) {
104void matroxfb_var2my(struct fb_var_screeninfo* var, struct my_timming* mt) { 104void matroxfb_var2my(struct fb_var_screeninfo* var, struct my_timming* mt) {
105 unsigned int pixclock = var->pixclock; 105 unsigned int pixclock = var->pixclock;
106 106
107 DBG(__FUNCTION__) 107 DBG(__func__)
108 108
109 if (!pixclock) pixclock = 10000; /* 10ns = 100MHz */ 109 if (!pixclock) pixclock = 10000; /* 10ns = 100MHz */
110 mt->pixclock = 1000000000 / pixclock; 110 mt->pixclock = 1000000000 / pixclock;
@@ -131,7 +131,7 @@ int matroxfb_PLL_calcclock(const struct matrox_pll_features* pll, unsigned int f
131 unsigned int fwant; 131 unsigned int fwant;
132 unsigned int p; 132 unsigned int p;
133 133
134 DBG(__FUNCTION__) 134 DBG(__func__)
135 135
136 fwant = freq; 136 fwant = freq;
137 137
@@ -192,7 +192,7 @@ int matroxfb_vgaHWinit(WPMINFO struct my_timming* m) {
192 int i; 192 int i;
193 struct matrox_hw_state * const hw = &ACCESS_FBINFO(hw); 193 struct matrox_hw_state * const hw = &ACCESS_FBINFO(hw);
194 194
195 DBG(__FUNCTION__) 195 DBG(__func__)
196 196
197 hw->SEQ[0] = 0x00; 197 hw->SEQ[0] = 0x00;
198 hw->SEQ[1] = 0x01; /* or 0x09 */ 198 hw->SEQ[1] = 0x01; /* or 0x09 */
@@ -336,7 +336,7 @@ void matroxfb_vgaHWrestore(WPMINFO2) {
336 struct matrox_hw_state * const hw = &ACCESS_FBINFO(hw); 336 struct matrox_hw_state * const hw = &ACCESS_FBINFO(hw);
337 CRITFLAGS 337 CRITFLAGS
338 338
339 DBG(__FUNCTION__) 339 DBG(__func__)
340 340
341 dprintk(KERN_INFO "MiscOutReg: %02X\n", hw->MiscOutReg); 341 dprintk(KERN_INFO "MiscOutReg: %02X\n", hw->MiscOutReg);
342 dprintk(KERN_INFO "SEQ regs: "); 342 dprintk(KERN_INFO "SEQ regs: ");