Lines Matching refs:ri
161 struct rasops_info *ri;
284 ri = &sc->sc_console_screen.scr_ri;
304 ri->ri_devcmap[(defattr >> 16) & 0xff]);
307 ri->ri_devcmap[(defattr >> 16) & 0xff],
310 ri->ri_devcmap[(defattr >> 16) & 0xff],
313 sc->sc_defaultscreen_descr.textops = &ri->ri_ops;
314 sc->sc_defaultscreen_descr.capabilities = ri->ri_caps;
315 sc->sc_defaultscreen_descr.nrows = ri->ri_rows;
316 sc->sc_defaultscreen_descr.ncols = ri->ri_cols;
317 wsdisplay_cnattach(&sc->sc_defaultscreen_descr, ri, 0, 0,
498 struct rasops_info *ri = &scr->scr_ri;
500 ri->ri_depth = 8;
501 ri->ri_width = sc->sc_width;
502 ri->ri_height = sc->sc_height;
503 ri->ri_stride = sc->sc_stride;
504 ri->ri_flg = RI_CENTER /*| RI_FULLCLEAR*/;
507 ri->ri_bits = sc->sc_fb0;
509 ri->ri_bits = sc->sc_shadow;
512 ri->ri_flg |= RI_CLEAR;
515 rasops_init(ri, 0, 0);
516 ri->ri_caps = WSSCREEN_WSCOLORS;
518 rasops_reconfig(ri, sc->sc_height / ri->ri_font->fontheight,
519 sc->sc_width / ri->ri_font->fontwidth);
521 ri->ri_hw = scr;
522 sc->putchar = ri->ri_ops.putchar;
523 sc->copyrows = ri->ri_ops.copyrows;
524 sc->eraserows = ri->ri_ops.eraserows;
525 sc->copycols = ri->ri_ops.copycols;
526 sc->erasecols = ri->ri_ops.erasecols;
529 ri->ri_ops.copyrows = wcfb_acc_copyrows;
530 ri->ri_ops.copycols = wcfb_acc_copycols;
531 ri->ri_ops.eraserows = wcfb_acc_eraserows;
532 ri->ri_ops.erasecols = wcfb_acc_erasecols;
533 ri->ri_ops.putchar = wcfb_acc_putchar;
534 ri->ri_ops.cursor = wcfb_acc_cursor;
536 ri->ri_ops.copyrows = wcfb_copyrows;
537 ri->ri_ops.copycols = wcfb_copycols;
538 ri->ri_ops.eraserows = wcfb_eraserows;
539 ri->ri_ops.erasecols = wcfb_erasecols;
540 ri->ri_ops.putchar = wcfb_putchar;
541 ri->ri_ops.cursor = wcfb_cursor;
548 struct rasops_info *ri = cookie;
549 struct vcons_screen *scr = ri->ri_hw;
551 int offset = (ri->ri_yorigin + row * ri->ri_font->fontheight) *
552 sc->sc_stride + ri->ri_xorigin + col * ri->ri_font->fontwidth;
556 sc->putchar(ri, row, col, c, attr);
560 for (i = 0; i < ri->ri_font->fontheight; i++) {
561 memcpy(to0, from, ri->ri_font->fontwidth);
562 memcpy(to1, from, ri->ri_font->fontwidth);
582 struct rasops_info *ri = cookie;
583 struct vcons_screen *scr = ri->ri_hw;
589 if (ri->ri_flg & RI_CURSOR) {
591 coffset = ri->ri_ccol + (ri->ri_crow * ri->ri_cols);
593 wcfb_putchar(cookie, ri->ri_crow,
594 ri->ri_ccol, scr->scr_chars[coffset],
596 ri->ri_flg &= ~RI_CURSOR;
598 ri->ri_crow = row;
599 ri->ri_ccol = col;
602 coffset = col + (row * ri->ri_cols);
609 wcfb_putchar(cookie, ri->ri_crow, ri->ri_ccol,
611 ri->ri_flg |= RI_CURSOR;
614 ri->ri_crow = row;
615 ri->ri_ccol = col;
616 ri->ri_flg &= ~RI_CURSOR;
623 struct rasops_info *ri = cookie;
624 struct vcons_screen *scr = ri->ri_hw;
626 int offset = (ri->ri_yorigin + row * ri->ri_font->fontheight) *
627 sc->sc_stride + ri->ri_xorigin + dstcol * ri->ri_font->fontwidth;
631 sc->copycols(ri, row, srccol, dstcol, ncols);
635 for (i = 0; i < ri->ri_font->fontheight; i++) {
636 memcpy(to0, from, ri->ri_font->fontwidth * ncols);
637 memcpy(to1, from, ri->ri_font->fontwidth * ncols);
647 struct rasops_info *ri = cookie;
648 struct vcons_screen *scr = ri->ri_hw;
650 int offset = (ri->ri_yorigin + row * ri->ri_font->fontheight) *
651 sc->sc_stride + ri->ri_xorigin + startcol * ri->ri_font->fontwidth;
655 sc->erasecols(ri, row, startcol, ncols, fillattr);
659 for (i = 0; i < ri->ri_font->fontheight; i++) {
660 memset(to0, ri->ri_devcmap[(fillattr >> 16) & 0xff],
661 ri->ri_font->fontwidth * ncols);
662 memset(to1, ri->ri_devcmap[(fillattr >> 16) & 0xff],
663 ri->ri_font->fontwidth * ncols);
672 struct rasops_info *ri = cookie;
673 struct vcons_screen *scr = ri->ri_hw;
675 int offset = (ri->ri_yorigin + dstrow * ri->ri_font->fontheight) *
676 sc->sc_stride + ri->ri_xorigin;
680 sc->copyrows(ri, srcrow, dstrow, nrows);
685 for (i = 0; i < ri->ri_font->fontheight * nrows; i++) {
686 memcpy(to0, from, ri->ri_emuwidth);
687 memcpy(to1, from, ri->ri_emuwidth);
697 struct rasops_info *ri = cookie;
698 struct vcons_screen *scr = ri->ri_hw;
700 int offset = (ri->ri_yorigin + row * ri->ri_font->fontheight) *
701 sc->sc_stride + ri->ri_xorigin;
705 sc->eraserows(ri, row, nrows, fillattr);
709 for (i = 0; i < ri->ri_font->fontheight * nrows; i++) {
710 memset(to0, ri->ri_devcmap[(fillattr >> 16) & 0xff],
711 ri->ri_emuwidth);
712 memset(to1, ri->ri_devcmap[(fillattr >> 16) & 0xff],
713 ri->ri_emuwidth);
845 struct rasops_info *ri = cookie;
846 struct vcons_screen *scr = ri->ri_hw;
848 struct wsdisplay_font *font = PICK_FONT(ri, c);
854 x = ri->ri_xorigin + col * wi;
855 y = ri->ri_yorigin + row * he;
856 bg = ri->ri_devcmap[(attr >> 16) & 0xf];
864 sc->putchar(ri, row, col, c, attr);
872 struct rasops_info *ri = cookie;
873 struct vcons_screen *scr = ri->ri_hw;
877 wi = ri->ri_font->fontwidth;
878 he = ri->ri_font->fontheight;
881 x = ri->ri_ccol * wi + ri->ri_xorigin;
882 y = ri->ri_crow * he + ri->ri_yorigin;
883 if (ri->ri_flg & RI_CURSOR) {
885 ri->ri_flg &= ~RI_CURSOR;
887 ri->ri_crow = row;
888 ri->ri_ccol = col;
890 x = ri->ri_ccol * wi + ri->ri_xorigin;
891 y = ri->ri_crow * he + ri->ri_yorigin;
893 ri->ri_flg |= RI_CURSOR;
906 struct rasops_info *ri = cookie;
907 struct vcons_screen *scr = ri->ri_hw;
912 xs = ri->ri_xorigin + ri->ri_font->fontwidth * srccol;
913 xd = ri->ri_xorigin + ri->ri_font->fontwidth * dstcol;
914 y = ri->ri_yorigin + ri->ri_font->fontheight * row;
915 width = ri->ri_font->fontwidth * ncols;
916 height = ri->ri_font->fontheight;
925 struct rasops_info *ri = cookie;
926 struct vcons_screen *scr = ri->ri_hw;
931 x = ri->ri_xorigin + ri->ri_font->fontwidth * startcol;
932 y = ri->ri_yorigin + ri->ri_font->fontheight * row;
933 width = ri->ri_font->fontwidth * ncols;
934 height = ri->ri_font->fontheight;
937 wcfb_rectfill(sc, x, y, width, height, ri->ri_devcmap[bg]);
944 struct rasops_info *ri = cookie;
945 struct vcons_screen *scr = ri->ri_hw;
950 x = ri->ri_xorigin;
951 ys = ri->ri_yorigin + ri->ri_font->fontheight * srcrow;
952 yd = ri->ri_yorigin + ri->ri_font->fontheight * dstrow;
953 width = ri->ri_emuwidth;
954 height = ri->ri_font->fontheight * nrows;
962 struct rasops_info *ri = cookie;
963 struct vcons_screen *scr = ri->ri_hw;
968 x = ri->ri_xorigin;
969 y = ri->ri_yorigin + ri->ri_font->fontheight * row;
970 width = ri->ri_emuwidth;
971 height = ri->ri_font->fontheight * nrows;
974 wcfb_rectfill(sc, x, y, width, height, ri->ri_devcmap[bg]);