aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
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
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')
-rw-r--r--drivers/video/amifb.c2
-rw-r--r--drivers/video/aty/aty128fb.c2
-rw-r--r--drivers/video/aty/mach64_ct.c16
-rw-r--r--drivers/video/bf54x-lq043fb.c6
-rw-r--r--drivers/video/cfbimgblt.c2
-rw-r--r--drivers/video/cirrusfb.c4
-rw-r--r--drivers/video/console/fbcon.c2
-rw-r--r--drivers/video/imsttfb.c2
-rw-r--r--drivers/video/imxfb.c6
-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
-rw-r--r--drivers/video/modedb.c2
-rw-r--r--drivers/video/nvidia/nvidia.c6
-rw-r--r--drivers/video/pm2fb.c2
-rw-r--r--drivers/video/pm3fb.c2
-rw-r--r--drivers/video/riva/fbdev.c6
-rw-r--r--drivers/video/s3c2410fb.c6
-rw-r--r--drivers/video/sa1100fb.h2
-rw-r--r--drivers/video/sis/sis.h2
-rw-r--r--drivers/video/sstfb.c10
-rw-r--r--drivers/video/stifb.c4
-rw-r--r--drivers/video/sysimgblt.c2
-rw-r--r--drivers/video/tdfxfb.c2
28 files changed, 106 insertions, 106 deletions
diff --git a/drivers/video/amifb.c b/drivers/video/amifb.c
index 4c9ec3f58c52..e6492c1048bf 100644
--- a/drivers/video/amifb.c
+++ b/drivers/video/amifb.c
@@ -96,7 +96,7 @@
96#endif 96#endif
97 97
98#ifdef DEBUG 98#ifdef DEBUG
99# define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt, __FUNCTION__ , ## args) 99# define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt, __func__ , ## args)
100#else 100#else
101# define DPRINTK(fmt, args...) 101# define DPRINTK(fmt, args...)
102#endif 102#endif
diff --git a/drivers/video/aty/aty128fb.c b/drivers/video/aty/aty128fb.c
index 27faffdee11b..24ee96c4e9e9 100644
--- a/drivers/video/aty/aty128fb.c
+++ b/drivers/video/aty/aty128fb.c
@@ -91,7 +91,7 @@
91#undef DEBUG 91#undef DEBUG
92 92
93#ifdef DEBUG 93#ifdef DEBUG
94#define DBG(fmt, args...) printk(KERN_DEBUG "aty128fb: %s " fmt, __FUNCTION__, ##args); 94#define DBG(fmt, args...) printk(KERN_DEBUG "aty128fb: %s " fmt, __func__, ##args);
95#else 95#else
96#define DBG(fmt, args...) 96#define DBG(fmt, args...)
97#endif 97#endif
diff --git a/drivers/video/aty/mach64_ct.c b/drivers/video/aty/mach64_ct.c
index cc9e9779b75f..c50c7cf26fe9 100644
--- a/drivers/video/aty/mach64_ct.c
+++ b/drivers/video/aty/mach64_ct.c
@@ -197,7 +197,7 @@ static int aty_dsp_gt(const struct fb_info *info, u32 bpp, struct pll_ct *pll)
197 pll->dsp_config = (dsp_precision << 20) | (pll->dsp_loop_latency << 16) | dsp_xclks; 197 pll->dsp_config = (dsp_precision << 20) | (pll->dsp_loop_latency << 16) | dsp_xclks;
198#ifdef DEBUG 198#ifdef DEBUG
199 printk("atyfb(%s): dsp_config 0x%08x, dsp_on_off 0x%08x\n", 199 printk("atyfb(%s): dsp_config 0x%08x, dsp_on_off 0x%08x\n",
200 __FUNCTION__, pll->dsp_config, pll->dsp_on_off); 200 __func__, pll->dsp_config, pll->dsp_on_off);
201#endif 201#endif
202 return 0; 202 return 0;
203} 203}
@@ -225,7 +225,7 @@ static int aty_valid_pll_ct(const struct fb_info *info, u32 vclk_per, struct pll
225 (par->ref_clk_per * pll->pll_ref_div); 225 (par->ref_clk_per * pll->pll_ref_div);
226#ifdef DEBUG 226#ifdef DEBUG
227 printk("atyfb(%s): pllvclk=%d MHz, vclk=%d MHz\n", 227 printk("atyfb(%s): pllvclk=%d MHz, vclk=%d MHz\n",
228 __FUNCTION__, pllvclk, pllvclk / pll->vclk_post_div_real); 228 __func__, pllvclk, pllvclk / pll->vclk_post_div_real);
229#endif 229#endif
230 pll->pll_vclk_cntl = 0x03; /* VCLK = PLL_VCLK/VCLKx_POST */ 230 pll->pll_vclk_cntl = 0x03; /* VCLK = PLL_VCLK/VCLKx_POST */
231 231
@@ -269,7 +269,7 @@ static u32 aty_pll_to_var_ct(const struct fb_info *info, const union aty_pll *pl
269 } 269 }
270#endif 270#endif
271#ifdef DEBUG 271#ifdef DEBUG
272 printk("atyfb(%s): calculated 0x%08X(%i)\n", __FUNCTION__, ret, ret); 272 printk("atyfb(%s): calculated 0x%08X(%i)\n", __func__, ret, ret);
273#endif 273#endif
274 return ret; 274 return ret;
275} 275}
@@ -284,11 +284,11 @@ void aty_set_pll_ct(const struct fb_info *info, const union aty_pll *pll)
284#ifdef DEBUG 284#ifdef DEBUG
285 printk("atyfb(%s): about to program:\n" 285 printk("atyfb(%s): about to program:\n"
286 "pll_ext_cntl=0x%02x pll_gen_cntl=0x%02x pll_vclk_cntl=0x%02x\n", 286 "pll_ext_cntl=0x%02x pll_gen_cntl=0x%02x pll_vclk_cntl=0x%02x\n",
287 __FUNCTION__, 287 __func__,
288 pll->ct.pll_ext_cntl, pll->ct.pll_gen_cntl, pll->ct.pll_vclk_cntl); 288 pll->ct.pll_ext_cntl, pll->ct.pll_gen_cntl, pll->ct.pll_vclk_cntl);
289 289
290 printk("atyfb(%s): setting clock %lu for FeedBackDivider %i, ReferenceDivider %i, PostDivider %i(%i)\n", 290 printk("atyfb(%s): setting clock %lu for FeedBackDivider %i, ReferenceDivider %i, PostDivider %i(%i)\n",
291 __FUNCTION__, 291 __func__,
292 par->clk_wr_offset, pll->ct.vclk_fb_div, 292 par->clk_wr_offset, pll->ct.vclk_fb_div,
293 pll->ct.pll_ref_div, pll->ct.vclk_post_div, pll->ct.vclk_post_div_real); 293 pll->ct.pll_ref_div, pll->ct.vclk_post_div, pll->ct.vclk_post_div_real);
294#endif 294#endif
@@ -428,7 +428,7 @@ static int __devinit aty_init_pll_ct(const struct fb_info *info,
428 428
429#ifdef DEBUG 429#ifdef DEBUG
430 printk("atyfb(%s): mclk_fb_mult=%d, xclk_post_div=%d\n", 430 printk("atyfb(%s): mclk_fb_mult=%d, xclk_post_div=%d\n",
431 __FUNCTION__, pll->ct.mclk_fb_mult, pll->ct.xclk_post_div); 431 __func__, pll->ct.mclk_fb_mult, pll->ct.xclk_post_div);
432#endif 432#endif
433 433
434 memcntl = aty_ld_le32(MEM_CNTL, par); 434 memcntl = aty_ld_le32(MEM_CNTL, par);
@@ -540,7 +540,7 @@ static int __devinit aty_init_pll_ct(const struct fb_info *info,
540 pllmclk = (1000000 * pll->ct.mclk_fb_mult * pll->ct.mclk_fb_div) / 540 pllmclk = (1000000 * pll->ct.mclk_fb_mult * pll->ct.mclk_fb_div) /
541 (par->ref_clk_per * pll->ct.pll_ref_div); 541 (par->ref_clk_per * pll->ct.pll_ref_div);
542 printk("atyfb(%s): pllmclk=%d MHz, xclk=%d MHz\n", 542 printk("atyfb(%s): pllmclk=%d MHz, xclk=%d MHz\n",
543 __FUNCTION__, pllmclk, pllmclk / pll->ct.xclk_post_div_real); 543 __func__, pllmclk, pllmclk / pll->ct.xclk_post_div_real);
544#endif 544#endif
545 545
546 if (M64_HAS(SDRAM_MAGIC_PLL) && (par->ram_type >= SDRAM)) 546 if (M64_HAS(SDRAM_MAGIC_PLL) && (par->ram_type >= SDRAM))
@@ -581,7 +581,7 @@ static int __devinit aty_init_pll_ct(const struct fb_info *info,
581 pllsclk = (1000000 * 2 * pll->ct.sclk_fb_div) / 581 pllsclk = (1000000 * 2 * pll->ct.sclk_fb_div) /
582 (par->ref_clk_per * pll->ct.pll_ref_div); 582 (par->ref_clk_per * pll->ct.pll_ref_div);
583 printk("atyfb(%s): use sclk, pllsclk=%d MHz, sclk=mclk=%d MHz\n", 583 printk("atyfb(%s): use sclk, pllsclk=%d MHz, sclk=mclk=%d MHz\n",
584 __FUNCTION__, pllsclk, pllsclk / sclk_post_div_real); 584 __func__, pllsclk, pllsclk / sclk_post_div_real);
585#endif 585#endif
586 } 586 }
587 587
diff --git a/drivers/video/bf54x-lq043fb.c b/drivers/video/bf54x-lq043fb.c
index 850212de7b53..49834a67a623 100644
--- a/drivers/video/bf54x-lq043fb.c
+++ b/drivers/video/bf54x-lq043fb.c
@@ -336,7 +336,7 @@ static int bfin_bf54x_fb_check_var(struct fb_var_screeninfo *var,
336{ 336{
337 337
338 if (var->bits_per_pixel != LCD_BPP) { 338 if (var->bits_per_pixel != LCD_BPP) {
339 pr_debug("%s: depth not supported: %u BPP\n", __FUNCTION__, 339 pr_debug("%s: depth not supported: %u BPP\n", __func__,
340 var->bits_per_pixel); 340 var->bits_per_pixel);
341 return -EINVAL; 341 return -EINVAL;
342 } 342 }
@@ -345,7 +345,7 @@ static int bfin_bf54x_fb_check_var(struct fb_var_screeninfo *var,
345 info->var.xres_virtual != var->xres_virtual || 345 info->var.xres_virtual != var->xres_virtual ||
346 info->var.yres_virtual != var->yres_virtual) { 346 info->var.yres_virtual != var->yres_virtual) {
347 pr_debug("%s: Resolution not supported: X%u x Y%u \n", 347 pr_debug("%s: Resolution not supported: X%u x Y%u \n",
348 __FUNCTION__, var->xres, var->yres); 348 __func__, var->xres, var->yres);
349 return -EINVAL; 349 return -EINVAL;
350 } 350 }
351 351
@@ -355,7 +355,7 @@ static int bfin_bf54x_fb_check_var(struct fb_var_screeninfo *var,
355 355
356 if ((info->fix.line_length * var->yres_virtual) > info->fix.smem_len) { 356 if ((info->fix.line_length * var->yres_virtual) > info->fix.smem_len) {
357 pr_debug("%s: Memory Limit requested yres_virtual = %u\n", 357 pr_debug("%s: Memory Limit requested yres_virtual = %u\n",
358 __FUNCTION__, var->yres_virtual); 358 __func__, var->yres_virtual);
359 return -ENOMEM; 359 return -ENOMEM;
360 } 360 }
361 361
diff --git a/drivers/video/cfbimgblt.c b/drivers/video/cfbimgblt.c
index ff3136bd464b..baed57d3cfff 100644
--- a/drivers/video/cfbimgblt.c
+++ b/drivers/video/cfbimgblt.c
@@ -38,7 +38,7 @@
38#define DEBUG 38#define DEBUG
39 39
40#ifdef DEBUG 40#ifdef DEBUG
41#define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt,__FUNCTION__,## args) 41#define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt,__func__,## args)
42#else 42#else
43#define DPRINTK(fmt, args...) 43#define DPRINTK(fmt, args...)
44#endif 44#endif
diff --git a/drivers/video/cirrusfb.c b/drivers/video/cirrusfb.c
index ccfbdc5a40db..35ac9d956b3d 100644
--- a/drivers/video/cirrusfb.c
+++ b/drivers/video/cirrusfb.c
@@ -81,7 +81,7 @@
81/* debug output */ 81/* debug output */
82#ifdef CIRRUSFB_DEBUG 82#ifdef CIRRUSFB_DEBUG
83#define DPRINTK(fmt, args...) \ 83#define DPRINTK(fmt, args...) \
84 printk(KERN_DEBUG "%s: " fmt, __FUNCTION__ , ## args) 84 printk(KERN_DEBUG "%s: " fmt, __func__ , ## args)
85#else 85#else
86#define DPRINTK(fmt, args...) 86#define DPRINTK(fmt, args...)
87#endif 87#endif
@@ -91,7 +91,7 @@
91#define assert(expr) \ 91#define assert(expr) \
92 if (!(expr)) { \ 92 if (!(expr)) { \
93 printk("Assertion failed! %s,%s,%s,line=%d\n", \ 93 printk("Assertion failed! %s,%s,%s,line=%d\n", \
94 #expr, __FILE__, __FUNCTION__, __LINE__); \ 94 #expr, __FILE__, __func__, __LINE__); \
95 } 95 }
96#else 96#else
97#define assert(expr) 97#define assert(expr)
diff --git a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
index 025d4f5e1f6f..8eda7b60df8f 100644
--- a/drivers/video/console/fbcon.c
+++ b/drivers/video/console/fbcon.c
@@ -92,7 +92,7 @@
92#include "fbcon.h" 92#include "fbcon.h"
93 93
94#ifdef FBCONDEBUG 94#ifdef FBCONDEBUG
95# define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt, __FUNCTION__ , ## args) 95# define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt, __func__ , ## args)
96#else 96#else
97# define DPRINTK(fmt, args...) 97# define DPRINTK(fmt, args...)
98#endif 98#endif
diff --git a/drivers/video/imsttfb.c b/drivers/video/imsttfb.c
index 04696f93dfc9..15d50b9906ce 100644
--- a/drivers/video/imsttfb.c
+++ b/drivers/video/imsttfb.c
@@ -1478,7 +1478,7 @@ imsttfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
1478 1478
1479 dp = pci_device_to_OF_node(pdev); 1479 dp = pci_device_to_OF_node(pdev);
1480 if(dp) 1480 if(dp)
1481 printk(KERN_INFO "%s: OF name %s\n",__FUNCTION__, dp->name); 1481 printk(KERN_INFO "%s: OF name %s\n",__func__, dp->name);
1482 else 1482 else
1483 printk(KERN_ERR "imsttfb: no OF node for pci device\n"); 1483 printk(KERN_ERR "imsttfb: no OF node for pci device\n");
1484#endif /* CONFIG_PPC_OF */ 1484#endif /* CONFIG_PPC_OF */
diff --git a/drivers/video/imxfb.c b/drivers/video/imxfb.c
index 11609552a387..94e4d3ac1a05 100644
--- a/drivers/video/imxfb.c
+++ b/drivers/video/imxfb.c
@@ -415,7 +415,7 @@ static void imxfb_setup_gpio(struct imxfb_info *fbi)
415static int imxfb_suspend(struct platform_device *dev, pm_message_t state) 415static int imxfb_suspend(struct platform_device *dev, pm_message_t state)
416{ 416{
417 struct imxfb_info *fbi = platform_get_drvdata(dev); 417 struct imxfb_info *fbi = platform_get_drvdata(dev);
418 pr_debug("%s\n",__FUNCTION__); 418 pr_debug("%s\n",__func__);
419 419
420 imxfb_disable_controller(fbi); 420 imxfb_disable_controller(fbi);
421 return 0; 421 return 0;
@@ -424,7 +424,7 @@ static int imxfb_suspend(struct platform_device *dev, pm_message_t state)
424static int imxfb_resume(struct platform_device *dev) 424static int imxfb_resume(struct platform_device *dev)
425{ 425{
426 struct imxfb_info *fbi = platform_get_drvdata(dev); 426 struct imxfb_info *fbi = platform_get_drvdata(dev);
427 pr_debug("%s\n",__FUNCTION__); 427 pr_debug("%s\n",__func__);
428 428
429 imxfb_enable_controller(fbi); 429 imxfb_enable_controller(fbi);
430 return 0; 430 return 0;
@@ -440,7 +440,7 @@ static int __init imxfb_init_fbinfo(struct device *dev)
440 struct fb_info *info = dev_get_drvdata(dev); 440 struct fb_info *info = dev_get_drvdata(dev);
441 struct imxfb_info *fbi = info->par; 441 struct imxfb_info *fbi = info->par;
442 442
443 pr_debug("%s\n",__FUNCTION__); 443 pr_debug("%s\n",__func__);
444 444
445 info->pseudo_palette = kmalloc( sizeof(u32) * 16, GFP_KERNEL); 445 info->pseudo_palette = kmalloc( sizeof(u32) * 16, GFP_KERNEL);
446 if (!info->pseudo_palette) 446 if (!info->pseudo_palette)
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: ");
diff --git a/drivers/video/modedb.c b/drivers/video/modedb.c
index 640351c9a9e1..473562191586 100644
--- a/drivers/video/modedb.c
+++ b/drivers/video/modedb.c
@@ -22,7 +22,7 @@
22 ((v).xres == (x) && (v).yres == (y)) 22 ((v).xres == (x) && (v).yres == (y))
23 23
24#ifdef DEBUG 24#ifdef DEBUG
25#define DPRINTK(fmt, args...) printk("modedb %s: " fmt, __FUNCTION__ , ## args) 25#define DPRINTK(fmt, args...) printk("modedb %s: " fmt, __func__ , ## args)
26#else 26#else
27#define DPRINTK(fmt, args...) 27#define DPRINTK(fmt, args...)
28#endif 28#endif
diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c
index 4f46e9cf8cca..9dbb5a5a267b 100644
--- a/drivers/video/nvidia/nvidia.c
+++ b/drivers/video/nvidia/nvidia.c
@@ -43,14 +43,14 @@
43#define NVTRACE if (0) printk 43#define NVTRACE if (0) printk
44#endif 44#endif
45 45
46#define NVTRACE_ENTER(...) NVTRACE("%s START\n", __FUNCTION__) 46#define NVTRACE_ENTER(...) NVTRACE("%s START\n", __func__)
47#define NVTRACE_LEAVE(...) NVTRACE("%s END\n", __FUNCTION__) 47#define NVTRACE_LEAVE(...) NVTRACE("%s END\n", __func__)
48 48
49#ifdef CONFIG_FB_NVIDIA_DEBUG 49#ifdef CONFIG_FB_NVIDIA_DEBUG
50#define assert(expr) \ 50#define assert(expr) \
51 if (!(expr)) { \ 51 if (!(expr)) { \
52 printk( "Assertion failed! %s,%s,%s,line=%d\n",\ 52 printk( "Assertion failed! %s,%s,%s,line=%d\n",\
53 #expr,__FILE__,__FUNCTION__,__LINE__); \ 53 #expr,__FILE__,__func__,__LINE__); \
54 BUG(); \ 54 BUG(); \
55 } 55 }
56#else 56#else
diff --git a/drivers/video/pm2fb.c b/drivers/video/pm2fb.c
index 540249f741c3..3f1ca2adda3d 100644
--- a/drivers/video/pm2fb.c
+++ b/drivers/video/pm2fb.c
@@ -56,7 +56,7 @@
56#undef PM2FB_MASTER_DEBUG 56#undef PM2FB_MASTER_DEBUG
57#ifdef PM2FB_MASTER_DEBUG 57#ifdef PM2FB_MASTER_DEBUG
58#define DPRINTK(a, b...) \ 58#define DPRINTK(a, b...) \
59 printk(KERN_DEBUG "pm2fb: %s: " a, __FUNCTION__ , ## b) 59 printk(KERN_DEBUG "pm2fb: %s: " a, __func__ , ## b)
60#else 60#else
61#define DPRINTK(a, b...) 61#define DPRINTK(a, b...)
62#endif 62#endif
diff --git a/drivers/video/pm3fb.c b/drivers/video/pm3fb.c
index f00048bb3025..68089d1456c2 100644
--- a/drivers/video/pm3fb.c
+++ b/drivers/video/pm3fb.c
@@ -45,7 +45,7 @@
45#undef PM3FB_MASTER_DEBUG 45#undef PM3FB_MASTER_DEBUG
46#ifdef PM3FB_MASTER_DEBUG 46#ifdef PM3FB_MASTER_DEBUG
47#define DPRINTK(a, b...) \ 47#define DPRINTK(a, b...) \
48 printk(KERN_DEBUG "pm3fb: %s: " a, __FUNCTION__ , ## b) 48 printk(KERN_DEBUG "pm3fb: %s: " a, __func__ , ## b)
49#else 49#else
50#define DPRINTK(a, b...) 50#define DPRINTK(a, b...)
51#endif 51#endif
diff --git a/drivers/video/riva/fbdev.c b/drivers/video/riva/fbdev.c
index 08a9b56cb575..d94c57ffbdb1 100644
--- a/drivers/video/riva/fbdev.c
+++ b/drivers/video/riva/fbdev.c
@@ -70,14 +70,14 @@
70#define NVTRACE if(0) printk 70#define NVTRACE if(0) printk
71#endif 71#endif
72 72
73#define NVTRACE_ENTER(...) NVTRACE("%s START\n", __FUNCTION__) 73#define NVTRACE_ENTER(...) NVTRACE("%s START\n", __func__)
74#define NVTRACE_LEAVE(...) NVTRACE("%s END\n", __FUNCTION__) 74#define NVTRACE_LEAVE(...) NVTRACE("%s END\n", __func__)
75 75
76#ifdef CONFIG_FB_RIVA_DEBUG 76#ifdef CONFIG_FB_RIVA_DEBUG
77#define assert(expr) \ 77#define assert(expr) \
78 if(!(expr)) { \ 78 if(!(expr)) { \
79 printk( "Assertion failed! %s,%s,%s,line=%d\n",\ 79 printk( "Assertion failed! %s,%s,%s,line=%d\n",\
80 #expr,__FILE__,__FUNCTION__,__LINE__); \ 80 #expr,__FILE__,__func__,__LINE__); \
81 BUG(); \ 81 BUG(); \
82 } 82 }
83#else 83#else
diff --git a/drivers/video/s3c2410fb.c b/drivers/video/s3c2410fb.c
index 71fa6edb5c47..13b38cbbe4cf 100644
--- a/drivers/video/s3c2410fb.c
+++ b/drivers/video/s3c2410fb.c
@@ -430,9 +430,9 @@ static void s3c2410fb_activate_var(struct fb_info *info)
430 struct fb_var_screeninfo *var = &info->var; 430 struct fb_var_screeninfo *var = &info->var;
431 int clkdiv = s3c2410fb_calc_pixclk(fbi, var->pixclock) / 2; 431 int clkdiv = s3c2410fb_calc_pixclk(fbi, var->pixclock) / 2;
432 432
433 dprintk("%s: var->xres = %d\n", __FUNCTION__, var->xres); 433 dprintk("%s: var->xres = %d\n", __func__, var->xres);
434 dprintk("%s: var->yres = %d\n", __FUNCTION__, var->yres); 434 dprintk("%s: var->yres = %d\n", __func__, var->yres);
435 dprintk("%s: var->bpp = %d\n", __FUNCTION__, var->bits_per_pixel); 435 dprintk("%s: var->bpp = %d\n", __func__, var->bits_per_pixel);
436 436
437 if (type == S3C2410_LCDCON1_TFT) { 437 if (type == S3C2410_LCDCON1_TFT) {
438 s3c2410fb_calculate_tft_lcd_regs(info, &fbi->regs); 438 s3c2410fb_calculate_tft_lcd_regs(info, &fbi->regs);
diff --git a/drivers/video/sa1100fb.h b/drivers/video/sa1100fb.h
index 48066ef3af05..f465b27ed860 100644
--- a/drivers/video/sa1100fb.h
+++ b/drivers/video/sa1100fb.h
@@ -132,7 +132,7 @@ struct sa1100fb_info {
132 * Debug macros 132 * Debug macros
133 */ 133 */
134#if DEBUG 134#if DEBUG
135# define DPRINTK(fmt, args...) printk("%s: " fmt, __FUNCTION__ , ## args) 135# define DPRINTK(fmt, args...) printk("%s: " fmt, __func__ , ## args)
136#else 136#else
137# define DPRINTK(fmt, args...) 137# define DPRINTK(fmt, args...)
138#endif 138#endif
diff --git a/drivers/video/sis/sis.h b/drivers/video/sis/sis.h
index 9b05da6268f7..a14e82211037 100644
--- a/drivers/video/sis/sis.h
+++ b/drivers/video/sis/sis.h
@@ -55,7 +55,7 @@
55#undef SISFBDEBUG 55#undef SISFBDEBUG
56 56
57#ifdef SISFBDEBUG 57#ifdef SISFBDEBUG
58#define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt, __FUNCTION__ , ## args) 58#define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt, __func__ , ## args)
59#define TWDEBUG(x) printk(KERN_INFO x "\n"); 59#define TWDEBUG(x) printk(KERN_INFO x "\n");
60#else 60#else
61#define DPRINTK(fmt, args...) 61#define DPRINTK(fmt, args...)
diff --git a/drivers/video/sstfb.c b/drivers/video/sstfb.c
index 97784f9c184d..5b11a00f49bc 100644
--- a/drivers/video/sstfb.c
+++ b/drivers/video/sstfb.c
@@ -1006,7 +1006,7 @@ static int sst_set_pll_att_ti(struct fb_info *info,
1006 break; 1006 break;
1007 default: 1007 default:
1008 dprintk("%s: wrong clock code '%d'\n", 1008 dprintk("%s: wrong clock code '%d'\n",
1009 __FUNCTION__, clock); 1009 __func__, clock);
1010 return 0; 1010 return 0;
1011 } 1011 }
1012 udelay(300); 1012 udelay(300);
@@ -1048,7 +1048,7 @@ static int sst_set_pll_ics(struct fb_info *info,
1048 break; 1048 break;
1049 default: 1049 default:
1050 dprintk("%s: wrong clock code '%d'\n", 1050 dprintk("%s: wrong clock code '%d'\n",
1051 __FUNCTION__, clock); 1051 __func__, clock);
1052 return 0; 1052 return 0;
1053 } 1053 }
1054 udelay(300); 1054 udelay(300);
@@ -1079,7 +1079,7 @@ static void sst_set_vidmod_att_ti(struct fb_info *info, const int bpp)
1079 sst_dac_write(DACREG_RMR, (cr0 & 0x0f) | DACREG_CR0_16BPP); 1079 sst_dac_write(DACREG_RMR, (cr0 & 0x0f) | DACREG_CR0_16BPP);
1080 break; 1080 break;
1081 default: 1081 default:
1082 dprintk("%s: bad depth '%u'\n", __FUNCTION__, bpp); 1082 dprintk("%s: bad depth '%u'\n", __func__, bpp);
1083 break; 1083 break;
1084 } 1084 }
1085} 1085}
@@ -1093,7 +1093,7 @@ static void sst_set_vidmod_ics(struct fb_info *info, const int bpp)
1093 sst_dac_write(DACREG_ICS_CMD, DACREG_ICS_CMD_16BPP); 1093 sst_dac_write(DACREG_ICS_CMD, DACREG_ICS_CMD_16BPP);
1094 break; 1094 break;
1095 default: 1095 default:
1096 dprintk("%s: bad depth '%u'\n", __FUNCTION__, bpp); 1096 dprintk("%s: bad depth '%u'\n", __func__, bpp);
1097 break; 1097 break;
1098 } 1098 }
1099} 1099}
@@ -1133,7 +1133,7 @@ static int __devinit sst_detect_dactype(struct fb_info *info, struct sstfb_par *
1133 } 1133 }
1134 if (!ret) 1134 if (!ret)
1135 return 0; 1135 return 0;
1136 f_dprintk("%s found %s\n", __FUNCTION__, dacs[i].name); 1136 f_dprintk("%s found %s\n", __func__, dacs[i].name);
1137 par->dac_sw = dacs[i]; 1137 par->dac_sw = dacs[i];
1138 return 1; 1138 return 1;
1139} 1139}
diff --git a/drivers/video/stifb.c b/drivers/video/stifb.c
index f98be301140c..598d35eff935 100644
--- a/drivers/video/stifb.c
+++ b/drivers/video/stifb.c
@@ -164,11 +164,11 @@ static int __initdata stifb_bpp_pref[MAX_STI_ROMS];
164# define DEBUG_ON() debug_on=1 164# define DEBUG_ON() debug_on=1
165# define WRITE_BYTE(value,fb,reg) do { if (debug_on) \ 165# define WRITE_BYTE(value,fb,reg) do { if (debug_on) \
166 printk(KERN_DEBUG "%30s: WRITE_BYTE(0x%06x) = 0x%02x (old=0x%02x)\n", \ 166 printk(KERN_DEBUG "%30s: WRITE_BYTE(0x%06x) = 0x%02x (old=0x%02x)\n", \
167 __FUNCTION__, reg, value, READ_BYTE(fb,reg)); \ 167 __func__, reg, value, READ_BYTE(fb,reg)); \
168 gsc_writeb((value),(fb)->info.fix.mmio_start + (reg)); } while (0) 168 gsc_writeb((value),(fb)->info.fix.mmio_start + (reg)); } while (0)
169# define WRITE_WORD(value,fb,reg) do { if (debug_on) \ 169# define WRITE_WORD(value,fb,reg) do { if (debug_on) \
170 printk(KERN_DEBUG "%30s: WRITE_WORD(0x%06x) = 0x%08x (old=0x%08x)\n", \ 170 printk(KERN_DEBUG "%30s: WRITE_WORD(0x%06x) = 0x%08x (old=0x%08x)\n", \
171 __FUNCTION__, reg, value, READ_WORD(fb,reg)); \ 171 __func__, reg, value, READ_WORD(fb,reg)); \
172 gsc_writel((value),(fb)->info.fix.mmio_start + (reg)); } while (0) 172 gsc_writel((value),(fb)->info.fix.mmio_start + (reg)); } while (0)
173#endif /* DEBUG_STIFB_REGS */ 173#endif /* DEBUG_STIFB_REGS */
174 174
diff --git a/drivers/video/sysimgblt.c b/drivers/video/sysimgblt.c
index 88daa9b6f69a..186c6f607be2 100644
--- a/drivers/video/sysimgblt.c
+++ b/drivers/video/sysimgblt.c
@@ -18,7 +18,7 @@
18#define DEBUG 18#define DEBUG
19 19
20#ifdef DEBUG 20#ifdef DEBUG
21#define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt,__FUNCTION__,## args) 21#define DPRINTK(fmt, args...) printk(KERN_DEBUG "%s: " fmt,__func__,## args)
22#else 22#else
23#define DPRINTK(fmt, args...) 23#define DPRINTK(fmt, args...)
24#endif 24#endif
diff --git a/drivers/video/tdfxfb.c b/drivers/video/tdfxfb.c
index 71e179ea5f95..ea9f19d25597 100644
--- a/drivers/video/tdfxfb.c
+++ b/drivers/video/tdfxfb.c
@@ -70,7 +70,7 @@
70 70
71#include <video/tdfx.h> 71#include <video/tdfx.h>
72 72
73#define DPRINTK(a, b...) pr_debug("fb: %s: " a, __FUNCTION__ , ## b) 73#define DPRINTK(a, b...) pr_debug("fb: %s: " a, __func__ , ## b)
74 74
75#ifdef CONFIG_MTRR 75#ifdef CONFIG_MTRR
76#include <asm/mtrr.h> 76#include <asm/mtrr.h>