Lines Matching refs:ri

203 	struct rasops_info *ri;  in vncfb_attach()  local
251 ri = &vncfb_console_screen.scr_ri; in vncfb_attach()
254 vncfb_defaultscreen.textops = &ri->ri_ops; in vncfb_attach()
255 vncfb_defaultscreen.capabilities = ri->ri_caps; in vncfb_attach()
256 vncfb_defaultscreen.nrows = ri->ri_rows; in vncfb_attach()
257 vncfb_defaultscreen.ncols = ri->ri_cols; in vncfb_attach()
258 wsdisplay_cnattach(&vncfb_defaultscreen, ri, 0, 0, defattr); in vncfb_attach()
292 struct rasops_info *ri = &scr->scr_ri; in vncfb_init_screen() local
294 ri->ri_width = sc->sc_width; in vncfb_init_screen()
295 ri->ri_height = sc->sc_height; in vncfb_init_screen()
296 ri->ri_depth = sc->sc_depth; in vncfb_init_screen()
297 ri->ri_stride = sc->sc_width * ri->ri_depth / 8; in vncfb_init_screen()
298 ri->ri_bits = sc->sc_framebuf; in vncfb_init_screen()
299 ri->ri_flg = RI_CENTER | RI_FULLCLEAR; in vncfb_init_screen()
301 ri->ri_flg |= RI_CLEAR; in vncfb_init_screen()
303 rasops_init(ri, sc->sc_height / 8, sc->sc_width / 8); in vncfb_init_screen()
304 ri->ri_caps = WSSCREEN_WSCOLORS; in vncfb_init_screen()
305 rasops_reconfig(ri, sc->sc_height / ri->ri_font->fontheight, in vncfb_init_screen()
306 sc->sc_width / ri->ri_font->fontwidth); in vncfb_init_screen()
308 ri->ri_hw = scr; in vncfb_init_screen()
310 ops->putchar = ri->ri_ops.putchar; in vncfb_init_screen()
311 ops->copyrows = ri->ri_ops.copyrows; in vncfb_init_screen()
312 ops->eraserows = ri->ri_ops.eraserows; in vncfb_init_screen()
313 ops->copycols = ri->ri_ops.copycols; in vncfb_init_screen()
314 ops->erasecols = ri->ri_ops.erasecols; in vncfb_init_screen()
315 ops->cursor = ri->ri_ops.cursor; in vncfb_init_screen()
317 ri->ri_ops.copyrows = vncfb_copyrows; in vncfb_init_screen()
318 ri->ri_ops.copycols = vncfb_copycols; in vncfb_init_screen()
319 ri->ri_ops.eraserows = vncfb_eraserows; in vncfb_init_screen()
320 ri->ri_ops.erasecols = vncfb_erasecols; in vncfb_init_screen()
321 ri->ri_ops.putchar = vncfb_putchar; in vncfb_init_screen()
322 ri->ri_ops.cursor = vncfb_cursor; in vncfb_init_screen()
328 struct rasops_info *ri = priv; in vncfb_putchar() local
329 struct vcons_screen *scr = ri->ri_hw; in vncfb_putchar()
334 ops->putchar(ri, row, col, c, attr); in vncfb_putchar()
336 x = ri->ri_xorigin + (col * ri->ri_font->fontwidth); in vncfb_putchar()
337 y = ri->ri_yorigin + (row * ri->ri_font->fontheight); in vncfb_putchar()
338 w = ri->ri_font->fontwidth; in vncfb_putchar()
339 h = ri->ri_font->fontheight; in vncfb_putchar()
347 struct rasops_info *ri = priv; in vncfb_copycols() local
348 struct vcons_screen *scr = ri->ri_hw; in vncfb_copycols()
353 ops->copycols(ri, row, srccol, dstcol, ncols); in vncfb_copycols()
355 y = ri->ri_yorigin + (row * ri->ri_font->fontheight); in vncfb_copycols()
356 h = ri->ri_font->fontheight; in vncfb_copycols()
358 x = ri->ri_xorigin + (srccol * ri->ri_font->fontwidth); in vncfb_copycols()
359 w = (dstcol - srccol) * ri->ri_font->fontwidth; in vncfb_copycols()
362 x = ri->ri_xorigin + (dstcol * ri->ri_font->fontwidth); in vncfb_copycols()
363 w = (srccol - dstcol) * ri->ri_font->fontwidth; in vncfb_copycols()
372 struct rasops_info *ri = priv; in vncfb_erasecols() local
373 struct vcons_screen *scr = ri->ri_hw; in vncfb_erasecols()
378 ops->erasecols(ri, row, startcol, ncols, fillattr); in vncfb_erasecols()
380 y = ri->ri_yorigin + (row * ri->ri_font->fontheight); in vncfb_erasecols()
381 h = ri->ri_font->fontheight; in vncfb_erasecols()
382 x = ri->ri_xorigin + (startcol * ri->ri_font->fontwidth); in vncfb_erasecols()
383 w = ncols * ri->ri_font->fontwidth; in vncfb_erasecols()
384 c = ri->ri_devcmap[(fillattr >> 16) & 0xf] & 0xffffff; in vncfb_erasecols()
392 struct rasops_info *ri = priv; in vncfb_copyrows() local
393 struct vcons_screen *scr = ri->ri_hw; in vncfb_copyrows()
404 ops->copyrows(ri, srcrow, dstrow, nrows); in vncfb_copyrows()
406 fontheight = ri->ri_font->fontheight; in vncfb_copyrows()
407 x = ri->ri_xorigin; in vncfb_copyrows()
408 y = ri->ri_yorigin + dstrow * fontheight; in vncfb_copyrows()
409 w = ri->ri_width; in vncfb_copyrows()
412 srcx = ri->ri_xorigin; in vncfb_copyrows()
413 srcy = ri->ri_yorigin + srcrow * fontheight; in vncfb_copyrows()
421 struct rasops_info *ri = priv; in vncfb_eraserows() local
422 struct vcons_screen *scr = ri->ri_hw; in vncfb_eraserows()
427 ops->eraserows(ri, row, nrows, fillattr); in vncfb_eraserows()
429 y = ri->ri_yorigin + (row * ri->ri_font->fontheight); in vncfb_eraserows()
430 h = nrows * ri->ri_font->fontheight; in vncfb_eraserows()
431 x = ri->ri_xorigin; in vncfb_eraserows()
432 w = ri->ri_width; in vncfb_eraserows()
433 c = ri->ri_devcmap[(fillattr >> 16) & 0xf] & 0xffffff; in vncfb_eraserows()
441 struct rasops_info *ri = priv; in vncfb_cursor() local
442 struct vcons_screen *scr = ri->ri_hw; in vncfb_cursor()
447 w = ri->ri_font->fontwidth; in vncfb_cursor()
448 h = ri->ri_font->fontheight; in vncfb_cursor()
450 ox = ri->ri_ccol * w + ri->ri_xorigin; in vncfb_cursor()
451 oy = ri->ri_crow * h + ri->ri_yorigin; in vncfb_cursor()
453 ops->cursor(ri, on, row, col); in vncfb_cursor()
455 x = ri->ri_ccol * w + ri->ri_xorigin; in vncfb_cursor()
456 y = ri->ri_crow * h + ri->ri_yorigin; in vncfb_cursor()