Lines Matching refs:fbc

296 #define CG6_DRAIN(fbc) do {						\  argument
297 while ((fbc)->fbc_s & GX_INPROGRESS) \
309 #define CG6_WAIT_READY(fbc) do { \ argument
310 while (((fbc)->fbc_s & GX_INPROGRESS/*GX_FULL*/) != 0) \
323 volatile struct cg6_fbc *fbc = sc->sc_fbc; in cg6_ras_init() local
325 CG6_DRAIN(fbc); in cg6_ras_init()
326 fbc->fbc_mode &= ~CG6_MODE_MASK; in cg6_ras_init()
327 fbc->fbc_mode |= CG6_MODE; in cg6_ras_init()
330 fbc->fbc_clip = 0; in cg6_ras_init()
331 fbc->fbc_s = 0; in cg6_ras_init()
332 fbc->fbc_offx = 0; in cg6_ras_init()
333 fbc->fbc_offy = 0; in cg6_ras_init()
334 fbc->fbc_clipminx = 0; in cg6_ras_init()
335 fbc->fbc_clipminy = 0; in cg6_ras_init()
336 fbc->fbc_clipmaxx = 0x3fff; in cg6_ras_init()
337 fbc->fbc_clipmaxy = 0x3fff; in cg6_ras_init()
363 volatile struct cg6_fbc *fbc = sc->sc_fbc; in cg6_ras_copyrows() local
389 CG6_WAIT_READY(fbc); in cg6_ras_copyrows()
391 fbc->fbc_alu = CG6_ALU_COPY; in cg6_ras_copyrows()
392 fbc->fbc_mode = GX_BLIT_SRC | GX_MODE_COLOR8; in cg6_ras_copyrows()
394 fbc->fbc_x0 = ri->ri_xorigin; in cg6_ras_copyrows()
395 fbc->fbc_y0 = ri->ri_yorigin + src; in cg6_ras_copyrows()
396 fbc->fbc_x1 = ri->ri_xorigin + ri->ri_emuwidth - 1; in cg6_ras_copyrows()
397 fbc->fbc_y1 = ri->ri_yorigin + src + n - 1; in cg6_ras_copyrows()
398 fbc->fbc_x2 = ri->ri_xorigin; in cg6_ras_copyrows()
399 fbc->fbc_y2 = ri->ri_yorigin + dst; in cg6_ras_copyrows()
400 fbc->fbc_x3 = ri->ri_xorigin + ri->ri_emuwidth - 1; in cg6_ras_copyrows()
401 fbc->fbc_y3 = ri->ri_yorigin + dst + n - 1; in cg6_ras_copyrows()
402 CG6_BLIT(fbc); in cg6_ras_copyrows()
413 volatile struct cg6_fbc *fbc = sc->sc_fbc; in cg6_ras_copycols() local
443 CG6_WAIT_READY(fbc); in cg6_ras_copycols()
445 fbc->fbc_alu = CG6_ALU_COPY; in cg6_ras_copycols()
446 fbc->fbc_mode = GX_BLIT_SRC | GX_MODE_COLOR8; in cg6_ras_copycols()
448 fbc->fbc_x0 = ri->ri_xorigin + src; in cg6_ras_copycols()
449 fbc->fbc_y0 = ri->ri_yorigin + row; in cg6_ras_copycols()
450 fbc->fbc_x1 = ri->ri_xorigin + src + n - 1; in cg6_ras_copycols()
451 fbc->fbc_y1 = ri->ri_yorigin + row + in cg6_ras_copycols()
453 fbc->fbc_x2 = ri->ri_xorigin + dst; in cg6_ras_copycols()
454 fbc->fbc_y2 = ri->ri_yorigin + row; in cg6_ras_copycols()
455 fbc->fbc_x3 = ri->ri_xorigin + dst + n - 1; in cg6_ras_copycols()
456 fbc->fbc_y3 = ri->ri_yorigin + row + in cg6_ras_copycols()
458 CG6_BLIT(fbc); in cg6_ras_copycols()
470 volatile struct cg6_fbc *fbc = sc->sc_fbc; in cg6_ras_erasecols() local
491 CG6_WAIT_READY(fbc); in cg6_ras_erasecols()
492 fbc->fbc_alu = CG6_ALU_FILL; in cg6_ras_erasecols()
493 fbc->fbc_mode = GX_BLIT_SRC | GX_MODE_COLOR8; in cg6_ras_erasecols()
495 fbc->fbc_fg = ri->ri_devcmap[(attr >> 16) & 0xff]; in cg6_ras_erasecols()
496 fbc->fbc_arecty = ri->ri_yorigin + row; in cg6_ras_erasecols()
497 fbc->fbc_arectx = ri->ri_xorigin + col; in cg6_ras_erasecols()
498 fbc->fbc_arecty = ri->ri_yorigin + row + in cg6_ras_erasecols()
500 fbc->fbc_arectx = ri->ri_xorigin + col + n - 1; in cg6_ras_erasecols()
501 CG6_DRAW(fbc); in cg6_ras_erasecols()
510 volatile struct cg6_fbc *fbc = sc->sc_fbc; in cg6_ras_eraserows() local
524 CG6_WAIT_READY(fbc); in cg6_ras_eraserows()
525 fbc->fbc_alu = CG6_ALU_FILL; in cg6_ras_eraserows()
526 fbc->fbc_mode = GX_BLIT_SRC | GX_MODE_COLOR8; in cg6_ras_eraserows()
528 fbc->fbc_fg = ri->ri_devcmap[(attr >> 16) & 0xff]; in cg6_ras_eraserows()
530 fbc->fbc_arecty = 0; in cg6_ras_eraserows()
531 fbc->fbc_arectx = 0; in cg6_ras_eraserows()
532 fbc->fbc_arecty = ri->ri_height - 1; in cg6_ras_eraserows()
533 fbc->fbc_arectx = ri->ri_width - 1; in cg6_ras_eraserows()
536 fbc->fbc_arecty = ri->ri_yorigin + row; in cg6_ras_eraserows()
537 fbc->fbc_arectx = ri->ri_xorigin; in cg6_ras_eraserows()
538 fbc->fbc_arecty = ri->ri_yorigin + row + in cg6_ras_eraserows()
540 fbc->fbc_arectx = ri->ri_xorigin + ri->ri_emuwidth - 1; in cg6_ras_eraserows()
542 CG6_DRAW(fbc); in cg6_ras_eraserows()
1319 volatile struct cg6_fbc *fbc = sc->sc_fbc; in cgsix_rectfill() local
1321 CG6_WAIT_READY(fbc); in cgsix_rectfill()
1323 fbc->fbc_alu = CG6_ALU_FILL; in cgsix_rectfill()
1324 fbc->fbc_mode = GX_BLIT_SRC | GX_MODE_COLOR8; in cgsix_rectfill()
1326 fbc->fbc_fg = col; in cgsix_rectfill()
1327 fbc->fbc_arecty = ys; in cgsix_rectfill()
1328 fbc->fbc_arectx = xs; in cgsix_rectfill()
1329 fbc->fbc_arecty = ys + he - 1; in cgsix_rectfill()
1330 fbc->fbc_arectx = xs + wi - 1; in cgsix_rectfill()
1331 CG6_DRAW(fbc); in cgsix_rectfill()
1339 volatile struct cg6_fbc *fbc = sc->sc_fbc; in cgsix_bitblt() local
1340 CG6_WAIT_READY(fbc); in cgsix_bitblt()
1342 fbc->fbc_alu = rop; in cgsix_bitblt()
1343 fbc->fbc_mode = GX_BLIT_SRC | GX_MODE_COLOR8; in cgsix_bitblt()
1345 fbc->fbc_x0 = xs; in cgsix_bitblt()
1346 fbc->fbc_y0 = ys; in cgsix_bitblt()
1347 fbc->fbc_x1 = xs + wi - 1; in cgsix_bitblt()
1348 fbc->fbc_y1 = ys + he - 1; in cgsix_bitblt()
1349 fbc->fbc_x2 = xd; in cgsix_bitblt()
1350 fbc->fbc_y2 = yd; in cgsix_bitblt()
1351 fbc->fbc_x3 = xd + wi - 1; in cgsix_bitblt()
1352 fbc->fbc_y3 = yd + he - 1; in cgsix_bitblt()
1353 CG6_BLIT(fbc); in cgsix_bitblt()
1360 volatile struct cg6_fbc *fbc=sc->sc_fbc; in cgsix_setup_mono() local
1362 CG6_WAIT_READY(fbc); in cgsix_setup_mono()
1364 fbc->fbc_x0 = x; in cgsix_setup_mono()
1365 fbc->fbc_x1 = x + wi - 1; in cgsix_setup_mono()
1366 fbc->fbc_y0 = y; in cgsix_setup_mono()
1367 fbc->fbc_incx = 0; in cgsix_setup_mono()
1368 fbc->fbc_incy = 1; in cgsix_setup_mono()
1369 fbc->fbc_fg = fg; in cgsix_setup_mono()
1370 fbc->fbc_bg = bg; in cgsix_setup_mono()
1371 fbc->fbc_mode = GX_BLIT_NOSRC | GX_MODE_COLOR1; in cgsix_setup_mono()
1372 fbc->fbc_alu = GX_PATTERN_ONES | ROP_OSTP(GX_ROP_CLEAR, GX_ROP_SET); in cgsix_setup_mono()
1382 volatile struct cg6_fbc *fbc = sc->sc_fbc; in cgsix_feed_line() local
1394 fbc->fbc_font = res; in cgsix_feed_line()
1419 volatile struct cg6_fbc *fbc = sc->sc_fbc; in cgsix_putchar() local
1456 fbc->fbc_incy = 0; in cgsix_putchar()
1469 volatile struct cg6_fbc *fbc = sc->sc_fbc; in cgsix_putchar_aa() local
1505 fbc->fbc_incx = 4; in cgsix_putchar_aa()
1506 fbc->fbc_incy = 0; in cgsix_putchar_aa()
1507 fbc->fbc_mode = GX_BLIT_NOSRC | GX_MODE_COLOR8; in cgsix_putchar_aa()
1508 fbc->fbc_alu = CG6_ALU_COPY; in cgsix_putchar_aa()
1509 fbc->fbc_clipmaxx = x + wi - 1; in cgsix_putchar_aa()
1529 CG6_WAIT_READY(fbc); in cgsix_putchar_aa()
1530 fbc->fbc_x0 = x; in cgsix_putchar_aa()
1531 fbc->fbc_x1 = x + 3; in cgsix_putchar_aa()
1532 fbc->fbc_y0 = y + i; in cgsix_putchar_aa()
1553 fbc->fbc_font = latch; in cgsix_putchar_aa()
1560 fbc->fbc_font = latch; in cgsix_putchar_aa()
1562 fbc->fbc_clipmaxx = 0x3fff; in cgsix_putchar_aa()
1606 volatile struct cg6_fbc *fbc = sc->sc_fbc; in cgsix_clearscreen() local
1608 CG6_WAIT_READY(fbc); in cgsix_clearscreen()
1610 fbc->fbc_alu = CG6_ALU_FILL; in cgsix_clearscreen()
1611 fbc->fbc_mode = GX_BLIT_SRC | GX_MODE_COLOR8; in cgsix_clearscreen()
1613 fbc->fbc_fg = ri->ri_devcmap[sc->sc_bg]; in cgsix_clearscreen()
1614 fbc->fbc_arectx = 0; in cgsix_clearscreen()
1615 fbc->fbc_arecty = 0; in cgsix_clearscreen()
1616 fbc->fbc_arectx = ri->ri_width - 1; in cgsix_clearscreen()
1617 fbc->fbc_arecty = ri->ri_height - 1; in cgsix_clearscreen()
1618 CG6_DRAW(fbc); in cgsix_clearscreen()
1626 volatile struct cg6_fbc *fbc = sc->sc_fbc; in cg6_invert() local
1628 CG6_WAIT_READY(fbc); in cg6_invert()
1630 fbc->fbc_alu = CG6_ALU_FLIP; in cg6_invert()
1631 fbc->fbc_mode = GX_BLIT_SRC | GX_MODE_COLOR8; in cg6_invert()
1632 fbc->fbc_arecty = y; in cg6_invert()
1633 fbc->fbc_arectx = x; in cg6_invert()
1634 fbc->fbc_arecty = y + he - 1; in cg6_invert()
1635 fbc->fbc_arectx = x + wi - 1; in cg6_invert()
1636 CG6_DRAW(fbc); in cg6_invert()