Lines Matching defs:ri
313 struct rasops_info *ri = &scr->scr_ri;
325 cnt = (ri->ri_rows + WSDISPLAY_SCROLLBACK_LINES) * ri->ri_cols;
329 scr->scr_offset_to_zero = ri->ri_cols * WSDISPLAY_SCROLLBACK_LINES;
332 cnt = ri->ri_rows * ri->ri_cols;
355 size = ri->ri_cols * ri->ri_rows;
378 struct rasops_info *ri = &scr->scr_ri;
398 vdp->eraserows = ri->ri_ops.eraserows;
399 vdp->erasecols = ri->ri_ops.erasecols;
400 scr->putchar = ri->ri_ops.putchar;
405 vdp->copycols = ri->ri_ops.copycols;
411 vdp->copyrows = ri->ri_ops.copyrows;
417 vdp->cursor = ri->ri_ops.cursor;
420 ri->ri_ops.eraserows = vcons_eraserows;
421 ri->ri_ops.erasecols = vcons_erasecols;
422 ri->ri_ops.putchar = vcons_putchar;
423 ri->ri_ops.cursor = vcons_cursor;
424 ri->ri_ops.copycols = vcons_copycols;
425 ri->ri_ops.copyrows = vcons_copyrows;
428 ri->ri_hw = scr;
430 i = ri->ri_ops.allocattr(ri, WS_DEFAULT_FG, WS_DEFAULT_BG, 0, defattr);
463 struct rasops_info *ri;
471 ri = &scr->scr_ri;
479 if (ri->ri_flg & RI_ENABLE_ALPHA) {
500 vdp->eraserows(ri, 0, ri->ri_rows, scr->scr_defattr);
507 ri->ri_font = font;
508 wsfont_unlock(ri->ri_wsfcookie);
509 ri->ri_wsfcookie = fcookie;
512 DPRINTF("caps %x %x\n", scr->scr_type->capabilities, ri->ri_caps);
514 scr->scr_type->nrows = ri->ri_rows;
515 scr->scr_type->ncols = ri->ri_cols;
516 DPRINTF("new size %d %d\n", ri->ri_rows, ri->ri_cols);
527 vdp->eraserows = ri->ri_ops.eraserows;
528 vdp->erasecols = ri->ri_ops.erasecols;
529 scr->putchar = ri->ri_ops.putchar;
530 vdp->cursor = ri->ri_ops.cursor;
535 vdp->copycols = ri->ri_ops.copycols;
541 vdp->copyrows = ri->ri_ops.copyrows;
547 vdp->cursor = ri->ri_ops.cursor;
551 ri->ri_ops.eraserows = vcons_eraserows;
552 ri->ri_ops.erasecols = vcons_erasecols;
553 ri->ri_ops.putchar = vcons_putchar;
554 ri->ri_ops.cursor = vcons_cursor;
555 ri->ri_ops.copycols = vcons_copycols;
556 ri->ri_ops.copyrows = vcons_copyrows;
655 struct rasops_info *ri = &scr->scr_ri;
669 if (ri->ri_flg & RI_FULLCLEAR) {
670 vdp->eraserows(ri, 0, ri->ri_rows,
681 for (i = 0; i < ri->ri_rows; i++) {
683 for (j = 0; j < ri->ri_cols; j++) {
716 vdp->erasecols(ri, i, start,
723 vdp->erasecols(ri, i, start,
728 scr->putchar(ri, i, j, c, a);
740 vdp->erasecols(ri, i, start, j - start, last_a);
743 ri->ri_flg &= ~RI_CURSOR;
744 scr->scr_vd->private->cursor(ri, 1, ri->ri_crow, ri->ri_ccol);
746 vdp->cursor_offset = ri->ri_crow * ri->ri_cols + ri->ri_ccol;
758 struct rasops_info *ri = &scr->scr_ri;
781 for (i = 0; i < ri->ri_rows; i++) {
782 for (j = 0; j < ri->ri_cols; j++) {
791 scr->putchar(ri, i, j,
800 ri->ri_flg &= ~RI_CURSOR;
801 scr->scr_vd->private->cursor(ri, 1, ri->ri_crow, ri->ri_ccol);
802 vdp->cursor_offset = ri->ri_crow * ri->ri_cols + ri->ri_ccol;
968 struct rasops_info *ri = cookie;
969 struct vcons_screen *scr = ri->ri_hw;
970 int from = srccol + row * ri->ri_cols;
971 int to = dstcol + row * ri->ri_cols;
985 struct rasops_info *ri = cookie;
986 struct vcons_screen *scr = ri->ri_hw;
1008 struct rasops_info *ri = cookie;
1009 struct vcons_screen *scr = ri->ri_hw;
1024 ppos = ri->ri_cols * row + dstcol;
1042 if (ri->ri_crow == row &&
1043 (ri->ri_ccol >= dstcol && ri->ri_ccol < (dstcol + ncols )))
1044 ri->ri_flg &= ~RI_CURSOR;
1052 struct rasops_info *ri = cookie;
1053 struct vcons_screen *scr = ri->ri_hw;
1054 int start = startcol + row * ri->ri_cols;
1070 struct rasops_info *ri = cookie;
1071 struct vcons_screen *scr = ri->ri_hw;
1074 int i, pos = row * ri->ri_cols + startcol;
1087 struct rasops_info *ri = cookie;
1088 struct vcons_screen *scr = ri->ri_hw;
1111 struct rasops_info *ri = cookie;
1112 struct vcons_screen *scr = ri->ri_hw;
1118 from = ri->ri_cols * srcrow;
1119 to = ri->ri_cols * dstrow;
1126 from = ri->ri_cols * srcrow + offset;
1127 to = ri->ri_cols * dstrow + offset;
1128 len = ri->ri_cols * nrows;
1141 struct rasops_info *ri = cookie;
1142 struct vcons_screen *scr = ri->ri_hw;
1163 struct rasops_info *ri = cookie;
1164 struct vcons_screen *scr = ri->ri_hw;
1178 ppos = ri->ri_cols * dstrow;
1181 for (c = 0; c < ri->ri_cols; c++) {
1198 if (ri->ri_crow >= dstrow && ri->ri_crow < (dstrow + nrows))
1199 ri->ri_flg &= ~RI_CURSOR;
1207 struct rasops_info *ri = cookie;
1208 struct vcons_screen *scr = ri->ri_hw;
1212 start = ri->ri_cols * row + offset;
1213 end = ri->ri_cols * (row + nrows) + offset;
1227 struct rasops_info *ri = cookie;
1228 struct vcons_screen *scr = ri->ri_hw;
1231 int i, pos = row * ri->ri_cols, end = (row+nrows) * ri->ri_cols;
1244 struct rasops_info *ri = cookie;
1245 struct vcons_screen *scr = ri->ri_hw;
1266 struct rasops_info *ri = cookie;
1267 struct vcons_screen *scr = ri->ri_hw;
1271 if ((row >= 0) && (row < ri->ri_rows) && (col >= 0) &&
1272 (col < ri->ri_cols)) {
1273 pos = col + row * ri->ri_cols;
1289 struct rasops_info *ri = cookie;
1290 struct vcons_screen *scr = ri->ri_hw;
1293 int pos = row * ri->ri_cols + col;
1310 struct rasops_info *ri = cookie;
1311 struct vcons_screen *scr = ri->ri_hw;
1325 if (row == ri->ri_crow && col == ri->ri_ccol) {
1326 ri->ri_flg &= ~RI_CURSOR;
1338 struct rasops_info *ri = cookie;
1339 struct vcons_screen *scr = ri->ri_hw;
1366 struct rasops_info *ri = cookie;
1367 struct vcons_screen *scr = ri->ri_hw;
1373 ofs = offset + ri->ri_crow * ri->ri_cols + ri->ri_ccol;
1374 if ((ri->ri_flg & RI_CURSOR) &&
1376 scr->putchar(cookie, ri->ri_crow, ri->ri_ccol,
1378 ri->ri_flg &= ~RI_CURSOR;
1380 ri->ri_crow = row;
1381 ri->ri_ccol = col;
1382 ofs = offset + ri->ri_crow * ri->ri_cols + ri->ri_ccol;
1393 ri->ri_flg |= RI_CURSOR;
1403 struct rasops_info *ri;
1409 ri = &scr->scr_ri;
1413 if (wsc->col < 0 || wsc->col > (ri->ri_cols * ri->ri_rows))
1416 rem = wsc->col % ri->ri_cols;
1417 wsc->row = wsc->col / ri->ri_cols;
1421 if (__predict_false(wsc->col < 0 || wsc->col >= ri->ri_cols))
1424 if (__predict_false(wsc->row < 0 || wsc->row >= ri->ri_rows))
1428 error = ri->ri_ops.allocattr(ri, wsc->foreground,
1432 vcons_putchar(ri, wsc->row, wsc->col, wsc->letter, attr);
1443 struct rasops_info *ri;
1449 ri = &scr->scr_ri;
1453 if (wsc->col < 0 || wsc->col > (ri->ri_cols * ri->ri_rows))
1456 rem = wsc->col % ri->ri_cols;
1457 wsc->row = wsc->col / ri->ri_cols;
1461 if (__predict_false(wsc->col < 0 || wsc->col >= ri->ri_cols))
1464 if (__predict_false(wsc->row < 0 || wsc->row >= ri->ri_rows))
1468 offset = ri->ri_cols * wsc->row + wsc->col;