Lines Matching refs:ri
125 struct rasops_info *ri = &scr->scr_ri;
127 ri->ri_width = sc->sc_width;
128 ri->ri_height = sc->sc_height;
129 ri->ri_depth = sc->sc_depth;
130 ri->ri_stride = sc->sc_stride;
131 ri->ri_bits = sc->sc_bits;
132 ri->ri_flg = RI_CENTER | RI_FULLCLEAR | RI_CLEAR;
135 KASSERT(ri->ri_depth == 32);
136 ri->ri_rnum = ri->ri_gnum = ri->ri_bnum = 8;
137 ri->ri_rpos = 8;
138 ri->ri_gpos = 16;
139 ri->ri_bpos = 24;
141 KASSERT(ri->ri_depth == 32);
142 ri->ri_rnum = ri->ri_gnum = ri->ri_bnum = 10;
143 ri->ri_rpos = 20;
144 ri->ri_gpos = 10;
145 ri->ri_bpos = 0;
151 rasops_init(ri, ri->ri_height / 8, ri->ri_width / 8);
152 ri->ri_caps = WSSCREEN_WSCOLORS | WSSCREEN_HILIT | WSSCREEN_UNDERLINE;
153 rasops_reconfig(ri, sc->sc_height / ri->ri_font->fontheight,
154 sc->sc_width / ri->ri_font->fontwidth);
156 ri->ri_hw = scr;
187 struct rasops_info *ri = &arm_simplefb_screen.scr_ri;
268 if (ri->ri_rows < 1 || ri->ri_cols < 1)
271 arm_simplefb_stdscreen.nrows = ri->ri_rows;
272 arm_simplefb_stdscreen.ncols = ri->ri_cols;
273 arm_simplefb_stdscreen.textops = &ri->ri_ops;
274 arm_simplefb_stdscreen.capabilities = ri->ri_caps;
276 wsdisplay_preattach(&arm_simplefb_stdscreen, ri, 0, 0, defattr);