Lines Matching defs:ri
154 struct rasops_info *ri = &sc->sc_ri;
247 ri->ri_hw = sc;
248 ri->ri_bits = sc->sc_fb_dma_kva;
249 ri->ri_flg = RI_VCONS | RI_CENTER | RI_CLEAR | RI_WRONLY;
250 ri->ri_depth = 32;
251 ri->ri_width = sc->sc_fb_width;
252 ri->ri_height = sc->sc_fb_height;
253 ri->ri_stride = ri->ri_width * ri->ri_depth / 8;
254 ri->ri_bpos = 0; /* B8G8R8X8 */
255 ri->ri_bnum = 8;
256 ri->ri_gpos = 8;
257 ri->ri_gnum = 8;
258 ri->ri_rpos = 16;
259 ri->ri_rnum = 8;
260 rasops_init(ri, VIOGPU_HEIGHT, VIOGPU_WIDTH);
263 sc->sc_wsd.capabilities = ri->ri_caps;
264 sc->sc_wsd.nrows = ri->ri_rows;
265 sc->sc_wsd.ncols = ri->ri_cols;
266 sc->sc_wsd.textops = &ri->ri_ops;
267 sc->sc_wsd.fontwidth = ri->ri_font->fontwidth;
268 sc->sc_wsd.fontheight = ri->ri_font->fontheight;
274 printf(": %dx%d, %dbpp\n", ri->ri_width, ri->ri_height, ri->ri_depth);
280 ri->ri_ops.pack_attr(ri->ri_active, 0, 0, 0, &defattr);
281 wsdisplay_cnattach(&sc->sc_wsd, ri->ri_active, 0, 0, defattr);
287 waa.accesscookie = ri;
583 struct rasops_info *ri = v;
601 wdf->width = ri->ri_width;
602 wdf->height = ri->ri_height;
603 wdf->depth = ri->ri_depth;
604 wdf->stride = ri->ri_stride;
609 *(u_int *)data = ri->ri_stride;
629 struct rasops_info *ri = v;
630 struct viogpu_softc *sc = ri->ri_hw;
657 struct rasops_info *ri = &sc->ro;