Lines Matching +full:0 +full:xc300
71 # define IS_OCS (0)
80 # define IS_ECS (0)
89 # define IS_AGA (0)
171 (0, 0) is somewhere in the upper-left corner :-)
203 (0, 0) is somewhere in the upper-left corner :-)
258 < 192 -> sprite 0 dma
373 #define CUSTOM_OFS(fld) ((long)&((struct CUSTOM*)0)->fld)
376 * BPLCON0 -- Bitplane Control Register 0
379 #define BPC0_HIRES (0x8000)
380 #define BPC0_BPU2 (0x4000) /* Bit plane used count */
381 #define BPC0_BPU1 (0x2000)
382 #define BPC0_BPU0 (0x1000)
383 #define BPC0_HAM (0x0800) /* HAM mode */
384 #define BPC0_DPF (0x0400) /* Double playfield */
385 #define BPC0_COLOR (0x0200) /* Enable colorburst */
386 #define BPC0_GAUD (0x0100) /* Genlock audio enable */
387 #define BPC0_UHRES (0x0080) /* Ultrahi res enable */
388 #define BPC0_SHRES (0x0040) /* Super hi res mode */
389 #define BPC0_BYPASS (0x0020) /* Bypass LUT - AGA */
390 #define BPC0_BPU3 (0x0010) /* AGA */
391 #define BPC0_LPEN (0x0008) /* Light pen enable */
392 #define BPC0_LACE (0x0004) /* Interlace */
393 #define BPC0_ERSY (0x0002) /* External resync */
394 #define BPC0_ECSENA (0x0001) /* ECS enable */
400 #define BPC2_ZDBPSEL2 (0x4000) /* Bitplane to be used for ZD - AGA */
401 #define BPC2_ZDBPSEL1 (0x2000)
402 #define BPC2_ZDBPSEL0 (0x1000)
403 #define BPC2_ZDBPEN (0x0800) /* Enable ZD with ZDBPSELx - AGA */
404 #define BPC2_ZDCTEN (0x0400) /* Enable ZD with palette bit #31 - AGA */
405 #define BPC2_KILLEHB (0x0200) /* Kill EHB mode - AGA */
406 #define BPC2_RDRAM (0x0100) /* Color table accesses read, not write - AGA */
407 #define BPC2_SOGEN (0x0080) /* SOG output pin high - AGA */
408 #define BPC2_PF2PRI (0x0040) /* PF2 priority over PF1 */
409 #define BPC2_PF2P2 (0x0020) /* PF2 priority wrt sprites */
410 #define BPC2_PF2P1 (0x0010)
411 #define BPC2_PF2P0 (0x0008)
412 #define BPC2_PF1P2 (0x0004) /* ditto PF1 */
413 #define BPC2_PF1P1 (0x0002)
414 #define BPC2_PF1P0 (0x0001)
420 #define BPC3_BANK2 (0x8000) /* Bits to select color register bank */
421 #define BPC3_BANK1 (0x4000)
422 #define BPC3_BANK0 (0x2000)
423 #define BPC3_PF2OF2 (0x1000) /* Bits for color table offset when PF2 */
424 #define BPC3_PF2OF1 (0x0800)
425 #define BPC3_PF2OF0 (0x0400)
426 #define BPC3_LOCT (0x0200) /* Color register writes go to low bits */
427 #define BPC3_SPRES1 (0x0080) /* Sprite resolution bits */
428 #define BPC3_SPRES0 (0x0040)
429 #define BPC3_BRDRBLNK (0x0020) /* Border blanked? */
430 #define BPC3_BRDRTRAN (0x0010) /* Border transparent? */
431 #define BPC3_ZDCLKEN (0x0004) /* ZD pin is 14 MHz (HIRES) clock output */
432 #define BPC3_BRDRSPRT (0x0002) /* Sprites in border? */
433 #define BPC3_EXTBLKEN (0x0001) /* BLANK programmable */
439 #define BPC4_BPLAM7 (0x8000) /* bitplane color XOR field */
440 #define BPC4_BPLAM6 (0x4000)
441 #define BPC4_BPLAM5 (0x2000)
442 #define BPC4_BPLAM4 (0x1000)
443 #define BPC4_BPLAM3 (0x0800)
444 #define BPC4_BPLAM2 (0x0400)
445 #define BPC4_BPLAM1 (0x0200)
446 #define BPC4_BPLAM0 (0x0100)
447 #define BPC4_ESPRM7 (0x0080) /* 4 high bits for even sprite colors */
448 #define BPC4_ESPRM6 (0x0040)
449 #define BPC4_ESPRM5 (0x0020)
450 #define BPC4_ESPRM4 (0x0010)
451 #define BPC4_OSPRM7 (0x0008) /* 4 high bits for odd sprite colors */
452 #define BPC4_OSPRM6 (0x0004)
453 #define BPC4_OSPRM5 (0x0002)
454 #define BPC4_OSPRM4 (0x0001)
460 #define BMC0_HARDDIS (0x4000) /* Disable hardware limits */
461 #define BMC0_LPENDIS (0x2000) /* Disable light pen latch */
462 #define BMC0_VARVBEN (0x1000) /* Enable variable vertical blank */
463 #define BMC0_LOLDIS (0x0800) /* Disable long/short line toggle */
464 #define BMC0_CSCBEN (0x0400) /* Composite sync/blank */
465 #define BMC0_VARVSYEN (0x0200) /* Enable variable vertical sync */
466 #define BMC0_VARHSYEN (0x0100) /* Enable variable horizontal sync */
467 #define BMC0_VARBEAMEN (0x0080) /* Enable variable beam counters */
468 #define BMC0_DUAL (0x0040) /* Enable alternate horizontal beam counter */
469 #define BMC0_PAL (0x0020) /* Set decodes for PAL */
470 #define BMC0_VARCSYEN (0x0010) /* Enable variable composite sync */
471 #define BMC0_BLANKEN (0x0008) /* Blank enable (no longer used on AGA) */
472 #define BMC0_CSYTRUE (0x0004) /* CSY polarity */
473 #define BMC0_VSYTRUE (0x0002) /* VSY polarity */
474 #define BMC0_HSYTRUE (0x0001) /* HSY polarity */
481 #define FMODE_SSCAN2 (0x8000) /* Sprite scan-doubling */
482 #define FMODE_BSCAN2 (0x4000) /* Use PF2 modulus every other line */
483 #define FMODE_SPAGEM (0x0008) /* Sprite page mode */
484 #define FMODE_SPR32 (0x0004) /* Sprite 32 bit fetch */
485 #define FMODE_BPAGEM (0x0002) /* Bitplane page mode */
486 #define FMODE_BPL32 (0x0001) /* Bitplane 32 bit fetch */
587 "d" (x2), "d" ((long)((x1) / 0x100000000ULL)), "0" ((long)(x1))); res;})
594 #define highw(x) ((u_long)(x)>>16 & 0xffff)
595 #define loww(x) ((u_long)(x) & 0xffff)
645 #define CWAIT(x, y) (((y) & 0x1fe) << 23 | ((x) & 0x7f0) << 13 | 0x0001fffe)
646 #define CEND (0xfffffffe)
661 static u_short currentcop = 0;
669 #define FBIOGET_FCURSORINFO 0x4607
670 #define FBIOGET_VCURSORINFO 0x4608
671 #define FBIOPUT_VCURSORINFO 0x4609
672 #define FBIOGET_CURSORSTATE 0x460A
673 #define FBIOPUT_CURSORSTATE 0x460B
699 #define FB_CURSOR_OFF 0
785 * Saved color entry 0 so we can restore it when unblanking
800 static u_short do_vmode_full = 0; /* Change the Video Mode */
801 static u_short do_vmode_pan = 0; /* Update the Video Mode */
802 static short do_blank = 0; /* (Un)Blank the Screen (±1) */
803 static u_short do_cursor = 0; /* Move the Cursor */
810 static u_short is_blanked = 0; /* Screen is Blanked */
811 static u_short is_lace = 0; /* Screen is laced */
845 0, FB_VMODE_NONINTERLACED | FB_VMODE_YWRAP
850 0, FB_VMODE_INTERLACED | FB_VMODE_YWRAP
854 0, FB_VMODE_NONINTERLACED | FB_VMODE_YWRAP
859 0, FB_VMODE_INTERLACED | FB_VMODE_YWRAP
863 0, FB_VMODE_NONINTERLACED | FB_VMODE_YWRAP
868 0, FB_VMODE_INTERLACED | FB_VMODE_YWRAP
872 0, FB_VMODE_NONINTERLACED | FB_VMODE_YWRAP
877 0, FB_VMODE_INTERLACED | FB_VMODE_YWRAP
881 0, FB_VMODE_DOUBLE | FB_VMODE_YWRAP
885 0, FB_VMODE_NONINTERLACED | FB_VMODE_YWRAP
890 0, FB_VMODE_INTERLACED | FB_VMODE_YWRAP
894 0, FB_VMODE_DOUBLE | FB_VMODE_YWRAP
898 0, FB_VMODE_NONINTERLACED | FB_VMODE_YWRAP
903 0, FB_VMODE_INTERLACED | FB_VMODE_YWRAP
913 0, FB_VMODE_NONINTERLACED | FB_VMODE_YWRAP
921 #if 0
930 "a2024-10", 10, 1024, 800, TAG_HIRES, 0, 0, 0, 0, 0, 0,
931 0, FB_VMODE_NONINTERLACED | FB_VMODE_YWRAP
934 "a2024-15", 15, 1024, 800, TAG_HIRES, 0, 0, 0, 0, 0, 0,
935 0, FB_VMODE_NONINTERLACED | FB_VMODE_YWRAP
951 #define DEFMODE_NTSC 0 /* "ntsc" for NTSC OCS/ECS */
957 static int amifb_ilbm = 0; /* interleaved or normal bitplanes */
975 * diwstrt_h 0 2047 1
976 * diwstrt_v 0 2047 1
977 * diwstop_h 0 4095 1
978 * diwstop_v 0 4095 1
980 * ddfstrt 0 2032 16
981 * ddfstop 0 2032 16
984 * hsstrt 0 2040 8
985 * hsstop 0 2040 8
987 * vsstrt 0 4095 1
988 * vsstop 0 4095 1
989 * hcenter 0 2040 8
991 * hbstrt 0 2047 1
992 * hbstop 0 2047 1
993 * vbstrt 0 4095 1
994 * vbstop 0 4095 1
1003 (((hscroll) << 12 & 0x3000) | ((hscroll) << 8 & 0xc300) | \
1004 ((hscroll) << 4 & 0x0c00) | ((hscroll) << 2 & 0x00f0) | \
1005 ((hscroll)>>2 & 0x000f))
1010 (((diwstrt_v) << 7 & 0xff00) | ((diwstrt_h)>>2 & 0x00ff))
1012 (((diwstop_v) << 7 & 0xff00) | ((diwstop_h)>>2 & 0x00ff))
1014 (((diwstop_h) << 3 & 0x2000) | ((diwstop_h) << 11 & 0x1800) | \
1015 ((diwstop_v)>>1 & 0x0700) | ((diwstrt_h)>>5 & 0x0020) | \
1016 ((diwstrt_h) << 3 & 0x0018) | ((diwstrt_v)>>9 & 0x0007))
1035 #define hbstrt2hw(hbstrt) (((hbstrt) << 8 & 0x0700) | ((hbstrt)>>3 & 0x00ff))
1036 #define hbstop2hw(hbstop) (((hbstop) << 8 & 0x0700) | ((hbstop)>>3 & 0x00ff))
1043 (((red & 0xf0) << 4) | (green & 0xf0) | ((blue & 0xf0)>>4))
1045 (((red & 0x0f) << 8) | ((green & 0x0f) << 4) | (blue & 0x0f))
1047 (((red & 0xf0) << 4) | (green & 0xf0) | ((blue & 0xf0)>>4))
1049 (((red & 0xc0) << 4) | (green & 0xc0) | ((blue & 0xc0)>>4))
1054 (((start_v) << 7 & 0xff00) | ((start_h)>>3 & 0x00ff))
1056 (((stop_v) << 7 & 0xff00) | ((start_v)>>4 & 0x0040) | \
1057 ((stop_v)>>5 & 0x0020) | ((start_h) << 3 & 0x0018) | \
1058 ((start_v)>>7 & 0x0004) | ((stop_v)>>8 & 0x0002) | \
1059 ((start_h)>>2 & 0x0001))
1062 #define get_vbpos() ((u_short)((*(u_long volatile *)&custom.vposr >> 7) & 0xffe))
1095 0 /* 140 ns */
1109 0, /* 1x */
1115 0, /* 1x */
1197 line_shift = 0; in ami_decode_var()
1231 par->bplcon3 = 0; in ami_decode_var()
1260 par->hsstrt = 0; in ami_decode_var()
1261 par->hsstop = 0; in ami_decode_var()
1262 par->vsstrt = 0; in ami_decode_var()
1263 par->vsstop = 0; in ami_decode_var()
1312 par->beamcon0 = 0; in ami_decode_var()
1316 par->beamcon0 = 0; in ami_decode_var()
1494 par->xoffset = par->yoffset = 0; in ami_decode_var()
1498 par->xoffset = par->yoffset = 0; in ami_decode_var()
1501 par->xoffset = par->yoffset = 0; in ami_decode_var()
1503 par->crsr.crsr_x = par->crsr.crsr_y = 0; in ami_decode_var()
1504 par->crsr.spot_x = par->crsr.spot_y = 0; in ami_decode_var()
1505 par->crsr.height = par->crsr.width = 0; in ami_decode_var()
1507 return 0; in ami_decode_var()
1520 memset(var, 0, sizeof(struct fb_var_screeninfo)); in ami_encode_var()
1533 var->grayscale = 0; in ami_encode_var()
1535 var->red.offset = 0; in ami_encode_var()
1536 var->red.msb_right = 0; in ami_encode_var()
1541 var->transp.offset = 0; in ami_encode_var()
1542 var->transp.length = 0; in ami_encode_var()
1543 var->transp.msb_right = 0; in ami_encode_var()
1548 var->nonstd = 0; in ami_encode_var()
1549 var->activate = 0; in ami_encode_var()
1570 var->sync = 0; in ami_encode_var()
1680 do_vmode_pan = 0; in ami_pan_var()
1704 custom.bplcon2 = (IS_OCS ? 0 : BPC2_KILLEHB) | BPC2_PF2P2 | BPC2_PF1P2; in ami_init_display()
1734 is_lace = par->bplcon0 & BPC0_LACE ? 1 : 0; in ami_init_display()
1739 custom.vposw = custom.vposr | 0x8000; in ami_init_display()
1744 custom.vposw = custom.vposr | 0x8000; in ami_init_display()
1760 if (do_blank > 0) { in ami_do_blank()
1762 red = green = blue = 0; in ami_do_blank()
1807 custom.color[0] = rgb2hw8_high(red, green, blue); in ami_do_blank()
1809 custom.color[0] = rgb2hw8_low(red, green, blue); in ami_do_blank()
1818 mask = 0x3333; in ami_do_blank()
1820 for (i = 12; i >= 0; i -= 4) in ami_do_blank()
1823 for (i = 3; i >= 0; i--) in ami_do_blank()
1827 custom.color[0] = rgb2hw4(red, green, blue); in ami_do_blank()
1828 is_blanked = do_blank > 0 ? do_blank : 0; in ami_do_blank()
1838 return 0; in ami_get_fix_cursorinfo()
1870 for (height = (short)var->height - 1; height >= 0; height--) { in ami_get_var_cursorinfo()
1871 bits = 0; words = delta; datawords = 0; in ami_get_var_cursorinfo()
1872 for (width = (short)var->width - 1; width >= 0; width--) { in ami_get_var_cursorinfo()
1873 if (bits == 0) { in ami_get_var_cursorinfo()
1876 asm volatile ("movew %1@(%3:w:2),%0 ; swap %0 ; movew %1@+,%0" in ami_get_var_cursorinfo()
1885 "clrb %0 ; swap %1 ; lslw #1,%1 ; roxlb #1,%0 ; " in ami_get_var_cursorinfo()
1886 "swap %1 ; lslw #1,%1 ; roxlb #1,%0" in ami_get_var_cursorinfo()
1896 if (bits > 0) { in ami_get_var_cursorinfo()
1899 while (--words >= 0) in ami_get_var_cursorinfo()
1902 asm volatile ("lea %0@(%4:w:2),%0 ; tstl %1 ; jeq 1f ; exg %0,%1\n1:" in ami_get_var_cursorinfo()
1903 : "=a" (lspr), "=a" (sspr) : "0" (lspr), "1" (sspr), "d" (delta)); in ami_get_var_cursorinfo()
1913 return 0; in ami_get_var_cursorinfo()
1949 memset(lspr, 0, (var->height + 4) << fmode << 2); in ami_set_var_cursorinfo()
1955 memset(lspr, 0, (var->height + 2) << fmode << 2); in ami_set_var_cursorinfo()
1958 for (height = (short)var->height - 1; height >= 0; height--) { in ami_set_var_cursorinfo()
1959 bits = 16; words = delta; datawords = 0; in ami_set_var_cursorinfo()
1960 for (width = (short)var->width - 1; width >= 0; width--) { in ami_set_var_cursorinfo()
1961 unsigned long tdata = 0; in ami_set_var_cursorinfo()
1967 "lsrb #1,%2 ; roxlw #1,%0 ; swap %0 ; " in ami_set_var_cursorinfo()
1968 "lsrb #1,%2 ; roxlw #1,%0 ; swap %0" in ami_set_var_cursorinfo()
1970 : "0" (datawords), "d" (tdata)); in ami_set_var_cursorinfo()
1972 datawords = ((datawords << 1) & 0xfffefffe); in ami_set_var_cursorinfo()
1976 if (--bits == 0) { in ami_set_var_cursorinfo()
1979 asm volatile ("swap %2 ; movew %2,%0@(%3:w:2) ; swap %2 ; movew %2,%0@+" in ami_set_var_cursorinfo()
1980 : "=a" (lspr) : "0" (lspr), "d" (datawords), "d" (delta)); in ami_set_var_cursorinfo()
1983 *lspr++ = (u_short) (datawords & 0xffff); in ami_set_var_cursorinfo()
1991 "swap %2 ; lslw %4,%2 ; movew %2,%0@(%3:w:2) ; " in ami_set_var_cursorinfo()
1992 "swap %2 ; lslw %4,%2 ; movew %2,%0@+" in ami_set_var_cursorinfo()
1993 : "=a" (lspr) : "0" (lspr), "d" (datawords), "d" (delta), "d" (bits)); in ami_set_var_cursorinfo()
1996 *lspr++ = (u_short) ((datawords & 0x0000ffff) >> bits); in ami_set_var_cursorinfo()
1999 while (--words >= 0) { in ami_set_var_cursorinfo()
2001 asm volatile ("moveql #0,%%d0 ; movew %%d0,%0@(%2:w:2) ; movew %%d0,%0@+" in ami_set_var_cursorinfo()
2002 : "=a" (lspr) : "0" (lspr), "d" (delta) : "d0"); in ami_set_var_cursorinfo()
2004 *(lspr + delta) = 0; in ami_set_var_cursorinfo()
2005 *lspr++ = 0; in ami_set_var_cursorinfo()
2009 asm volatile ("lea %0@(%4:w:2),%0 ; tstl %1 ; jeq 1f ; exg %0,%1\n1:" in ami_set_var_cursorinfo()
2010 : "=a" (lspr), "=a" (sspr) : "0" (lspr), "1" (sspr), "d" (delta)); in ami_set_var_cursorinfo()
2030 return 0; in ami_set_var_cursorinfo()
2039 return 0; in ami_get_cursorstate()
2050 return 0; in ami_set_cursorstate()
2060 cops = copdisplay.list[currentcop][0]; in ami_set_sprite()
2069 if (!is_blanked && cursorstate > 0 && par->crsr.height > 0 && in ami_set_sprite()
2078 lofsprite[0] = spr2hw_pos(vs, hs); in ami_set_sprite()
2079 shfsprite[0] = spr2hw_pos(vs + 1, hs); in ami_set_sprite()
2089 lofsprite[0] = spr2hw_pos(vs, hs) | (IS_AGA && (par->fmode & FMODE_BSCAN2) ? 0x80 : 0); in ami_set_sprite()
2114 (cop++)->l = CMOVE(0x0181, diwstrt); in ami_init_copper()
2115 (cop++)->l = CMOVE(0x0281, diwstop); in ami_init_copper()
2116 (cop++)->l = CMOVE(0x0000, diwhigh); in ami_init_copper()
2120 for (i = 0; i < 8; i++) { in ami_init_copper()
2121 (cop++)->l = CMOVE(0, spr[i].pos); in ami_init_copper()
2129 (cop++)->l = CMOVE(0, copjmp2); in ami_init_copper()
2133 custom.copjmp1 = 0; in ami_init_copper()
2156 if (IS_AGA && maxfmode + par->clk_shift == 0) in ami_rebuild_copper()
2169 for (i = 0; i < (short)par->bpp; i++, p += par->next_plane) { in ami_rebuild_copper()
2178 if (line >= 510 && IS_AGA && maxfmode + par->clk_shift == 0) in ami_rebuild_copper()
2187 for (i = 0; i < (short)par->bpp; i++, p += par->next_plane) { in ami_rebuild_copper()
2194 cops = copdisplay.rebuild[0]; in ami_rebuild_copper()
2203 for (i = 0; i < (short)par->bpp; i++, p += par->next_plane) { in ami_rebuild_copper()
2212 if (line > 510 && IS_AGA && maxfmode + par->clk_shift == 0) in ami_rebuild_copper()
2226 for (i = 0; i < (short)par->bpp; i++, p += par->next_plane) { in ami_rebuild_copper()
2249 (copl++)->l = CWAIT(0, 10); in ami_build_copper()
2251 (copl++)->l = CMOVE(0, sprpt[0]); in ami_build_copper()
2252 (copl++)->l = CMOVE2(0, sprpt[0]); in ami_build_copper()
2255 cops = copdisplay.list[currentcop][0]; in ami_build_copper()
2257 (cops++)->l = CWAIT(0, 10); in ami_build_copper()
2259 (cops++)->l = CMOVE(0, sprpt[0]); in ami_build_copper()
2260 (cops++)->l = CMOVE2(0, sprpt[0]); in ami_build_copper()
2271 #if 0 in ami_build_copper()
2282 p = ZTWO_PADDR(copdisplay.list[currentcop][0]); in ami_build_copper()
2288 copdisplay.rebuild[0] = cops; in ami_build_copper()
2295 #if 0 in ami_build_copper()
2324 if (vmin <= 0) in amifb_setup_mcap()
2329 if (vmax <= 0 || vmax <= vmin) in amifb_setup_mcap()
2334 if (hmin <= 0) in amifb_setup_mcap()
2339 if (hmax <= 0 || hmax <= hmin) in amifb_setup_mcap()
2353 return 0; in amifb_setup()
2365 min_fstrt = simple_strtoul(this_opt + 7, NULL, 0); in amifb_setup()
2373 return 0; in amifb_setup()
2390 return 0; in amifb_check_var()
2399 do_vmode_pan = 0; in amifb_set_par()
2400 do_vmode_full = 0; in amifb_set_par()
2416 info->fix.type_aux = 0; in amifb_set_par()
2422 info->fix.type_aux = 0; in amifb_set_par()
2428 info->fix.xpanstep = 0; in amifb_set_par()
2429 info->fix.ypanstep = 0; in amifb_set_par()
2433 info->fix.ywrapstep = 0; in amifb_set_par()
2441 return 0; in amifb_set_par()
2448 * entries in the var structure). Return != 0 for invalid regno.
2477 * Register 0 and the screen is blanked. in amifb_setcolreg()
2488 custom.bplcon3 = bplcon3 | (regno << 8 & 0xe000); in amifb_setcolreg()
2491 custom.bplcon3 = bplcon3 | (regno << 8 & 0xe000) | in amifb_setcolreg()
2504 mask = 0x3333; in amifb_setcolreg()
2518 return 0; in amifb_setcolreg()
2530 return 0; in amifb_blank()
2553 return 0; in amifb_pan_display()
2603 first = ~0UL >> dst_idx; in bitcpy()
2604 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitcpy()
2654 if (shift > 0) { in bitcpy()
2671 if (shift > 0) { in bitcpy()
2754 first = ~0UL << (BITS_PER_LONG - 1 - dst_idx); in bitcpy_rev()
2755 last = ~(~0UL << (BITS_PER_LONG - 1 - ((dst_idx - n) % BITS_PER_LONG))); in bitcpy_rev()
2805 if (shift < 0) { in bitcpy_rev()
2822 if (shift < 0) { in bitcpy_rev()
2895 first = ~0UL >> dst_idx; in bitcpy_not()
2896 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitcpy_not()
2946 if (shift > 0) { in bitcpy_not()
2963 if (shift > 0) { in bitcpy_not()
3035 first = ~0UL >> dst_idx; in bitfill32()
3036 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitfill32()
3091 first = ~0UL >> dst_idx; in bitxor32()
3092 last = ~(~0UL >> ((dst_idx + n) % BITS_PER_LONG)); in bitxor32()
3133 bitfill32(dst, dst_idx, color & 1 ? ~0 : 0, n); in fill_one_line()
3148 bitxor32(dst, dst_idx, color & 1 ? ~0 : 0, n); in xor_one_line()
3243 int rev_copy = 0; in amifb_copyarea()
3248 dx = area->dx > 0 ? area->dx : 0; in amifb_copyarea()
3249 dy = area->dy > 0 ? area->dy : 0; in amifb_copyarea()
3319 bitfill32(dst, dst_idx, fgcolor & 1 ? ~0 : 0, n); in expand_one_line()
3396 sizeof(crsr.fix)) ? -EFAULT : 0; in amifb_ioctl()
3405 sizeof(crsr.var)) ? -EFAULT : 0; in amifb_ioctl()
3419 sizeof(crsr.state)) ? -EFAULT : 0; in amifb_ioctl()
3446 return 0; in flash_cursor()
3466 do_cursor = do_vmode_pan = 0; in amifb_interrupt()
3470 do_cursor = 0; in amifb_interrupt()
3478 do_blank = 0; in amifb_interrupt()
3483 do_vmode_full = 0; in amifb_interrupt()
3516 return 0; in chipalloc()
3518 memset(aligned_chipptr, 0, size); in chipalloc()
3536 int tag, i, err = 0; in amifb_probe()
3565 maxdepth[TAG_SHRES] = 0; /* OCS means no SHRES */ in amifb_probe()
3641 for (i = 0; i < NUM_TOTAL_MODES; i++) { in amifb_probe()
3676 round_down_bpp = 0; in amifb_probe()
3689 assignchunk(copdisplay.list[0][0], copins *, chipptr, COPLISTSIZE); in amifb_probe()
3690 assignchunk(copdisplay.list[0][1], copins *, chipptr, COPLISTSIZE); in amifb_probe()
3691 assignchunk(copdisplay.list[1][0], copins *, chipptr, COPLISTSIZE); in amifb_probe()
3707 memset(dummysprite, 0, DUMMYSPRITEMEMSIZE); in amifb_probe()
3720 err = request_irq(IRQ_AMIGA_COPPER, amifb_interrupt, 0, in amifb_probe()
3725 err = fb_alloc_cmap(&info->cmap, 1 << info->var.bits_per_pixel, 0); in amifb_probe()
3738 return 0; in amifb_probe()