Lines Matching refs:ri
199 struct rasops_info *ri = &lynxfb_console.fb.vcs.scr_ri;
239 (*ri->ri_ops.allocattr)(ri, 0, 0, 0, &defattr);
240 wsdisplay_preattach(&fb->wsd, ri, 0, 0, defattr);
272 struct rasops_info *ri;
343 ri = &fb->vcs.scr_ri;
348 fb->wsd.textops = &ri->ri_ops;
349 fb->wsd.capabilities = ri->ri_caps;
350 fb->wsd.nrows = ri->ri_rows;
351 fb->wsd.ncols = ri->ri_cols;
352 wsdisplay_cnattach(&fb->wsd, ri, 0, 0, defattr);
359 (*ri->ri_ops.allocattr)(ri, 0, 0, 0, &defattr);
469 struct rasops_info *ri = &sc->sc_fb->vcs.scr_ri;
472 if (offset < ri->ri_stride * ri->ri_height) {
489 offset < sc->sc_fbaddr + ri->ri_stride * ri->ri_height) {
509 struct rasops_info *ri = &scr->scr_ri;
511 ri->ri_width = fb->width;
512 ri->ri_height = fb->height;
513 ri->ri_depth = fb->depth;
514 ri->ri_stride = fb->stride;
515 ri->ri_flg = RI_CENTER;
516 ri->ri_bits = fb->fbaddr;
523 ri->ri_flg |= RI_CLEAR;
525 rasops_init(ri, 0, 0);
526 ri->ri_caps = WSSCREEN_WSCOLORS;
527 rasops_reconfig(ri, fb->height / ri->ri_font->fontheight,
528 fb->width / ri->ri_font->fontwidth);
530 ri->ri_hw = scr;
533 ri->ri_ops.copycols = lynxfb_vcons_copycols;
534 ri->ri_ops.copyrows = lynxfb_vcons_copyrows;
535 ri->ri_ops.erasecols = lynxfb_vcons_erasecols;
536 ri->ri_ops.eraserows = lynxfb_vcons_eraserows;
546 struct rasops_info *ri = &fb->vcs.scr_ri;
561 ri->ri_width = fb->width;
562 ri->ri_height = fb->height;
563 ri->ri_depth = fb->depth;
564 ri->ri_stride = fb->stride;
565 ri->ri_flg = RI_CENTER | RI_CLEAR | RI_NO_AUTO;
566 fb->fbaddr = ri->ri_bits = (void *)bus_space_vaddr(fb->memt, fb->memh);
567 ri->ri_hw = fb;
572 ri->ri_rnum = 5;
573 ri->ri_rpos = 11;
574 ri->ri_gnum = 6;
575 ri->ri_gpos = 5;
576 ri->ri_bnum = 5;
577 ri->ri_bpos = 0;
582 rasops_init(ri, 0, 0);
583 rasops_reconfig(ri, ri->ri_height / ri->ri_font->fontheight,
584 ri->ri_width / ri->ri_font->fontwidth);
587 fb->wsd.ncols = ri->ri_cols;
588 fb->wsd.nrows = ri->ri_rows;
589 fb->wsd.textops = &ri->ri_ops;
590 fb->wsd.fontwidth = ri->ri_font->fontwidth;
591 fb->wsd.fontheight = ri->ri_font->fontheight;
592 fb->wsd.capabilities = ri->ri_caps;
603 DPR_COORDS(ri->ri_width, ri->ri_width));
605 DPR_COORDS(ri->ri_width, ri->ri_width));
613 ri->ri_ops.copycols = lynxfb_copycols;
614 ri->ri_ops.copyrows = lynxfb_copyrows;
615 ri->ri_ops.erasecols = lynxfb_erasecols;
616 ri->ri_ops.eraserows = lynxfb_eraserows;
666 struct rasops_info *ri = &fb->vcs.scr_ri;
668 DPR_WRITE(fb, DPR_FG_COLOR, ri->ri_devcmap[bg]);
680 lynxfb_copyrows1(struct rasops_info *ri, int src, int dst, int num,
683 struct wsdisplay_font *f = ri->ri_font;
689 lynxfb_copyrect(fb, ri->ri_xorigin, ri->ri_yorigin + src,
690 ri->ri_xorigin, ri->ri_yorigin + dst, ri->ri_emuwidth, num);
694 lynxfb_copycols1(struct rasops_info *ri, int row, int src, int dst, int num,
697 struct wsdisplay_font *f = ri->ri_font;
704 lynxfb_copyrect(fb, ri->ri_xorigin + src, ri->ri_yorigin + row,
705 ri->ri_xorigin + dst, ri->ri_yorigin + row, num, f->fontheight);
709 lynxfb_erasecols1(struct rasops_info *ri, int row, int col, int num, long attr,
712 struct wsdisplay_font *f = ri->ri_font;
720 lynxfb_fillrect(fb, ri->ri_xorigin + col, ri->ri_yorigin + row,
725 lynxfb_eraserows1(struct rasops_info *ri, int row, int num, long attr,
728 struct wsdisplay_font *f = ri->ri_font;
732 if ((num == ri->ri_rows) && ISSET(ri->ri_flg, RI_FULLCLEAR)) {
733 num = ri->ri_height;
735 w = ri->ri_width;
738 x = ri->ri_xorigin;
739 y = ri->ri_yorigin + row * f->fontheight;
740 w = ri->ri_emuwidth;
749 struct rasops_info *ri = cookie;
750 struct lynxfb *fb = ri->ri_hw;
752 lynxfb_copyrows1(ri, src, dst, num, fb);
758 struct rasops_info *ri = cookie;
759 struct lynxfb *fb = ri->ri_hw;
761 lynxfb_copycols1(ri, row, src, dst, num, fb);
767 struct rasops_info *ri = cookie;
768 struct lynxfb *fb = ri->ri_hw;
770 lynxfb_erasecols1(ri, row, col, num, attr, fb);
776 struct rasops_info *ri = cookie;
777 struct lynxfb *fb = ri->ri_hw;
779 lynxfb_eraserows1(ri, row, num, attr, fb);
785 struct rasops_info *ri = cookie;
786 struct vcons_screen *scr = ri->ri_hw;
790 lynxfb_copyrows1(ri, src, dst, num, fb);
796 struct rasops_info *ri = cookie;
797 struct vcons_screen *scr = ri->ri_hw;
801 lynxfb_copycols1(ri, row, src, dst, num, fb);
807 struct rasops_info *ri = cookie;
808 struct vcons_screen *scr = ri->ri_hw;
812 lynxfb_erasecols1(ri, row, col, num, attr, fb);
818 struct rasops_info *ri = cookie;
819 struct vcons_screen *scr = ri->ri_hw;
823 lynxfb_eraserows1(ri, row, num, attr, fb);