Lines Matching refs:dc
145 #define IS_DRAWABLE(dc) \ argument
146 (((dc)->dc_state&HPCFB_DC_CURRENT)&& \
147 (((dc)->dc_state&(HPCFB_DC_DRAWING|HPCFB_DC_SWITCHREQ)) == 0))
430 hpcfb_init(struct hpcfb_fbconf *fbconf, struct hpcfb_devconfig *dc) in hpcfb_init() argument
436 dc->dc_fbaddr = (u_char *)fbaddr; in hpcfb_init()
439 ri = &dc->dc_rinfo; in hpcfb_init()
451 if (dc == &hpcfb_console_dc) in hpcfb_init()
485 aprint_error_dev(dc->dc_sc->sc_dev, "rasops_init() failed!"); in hpcfb_init()
490 hpcfb_cmap_reorder (fbconf, dc); in hpcfb_init()
492 dc->dc_curx = -1; in hpcfb_init()
493 dc->dc_cury = -1; in hpcfb_init()
494 dc->dc_rows = dc->dc_rinfo.ri_rows; in hpcfb_init()
495 dc->dc_cols = dc->dc_rinfo.ri_cols; in hpcfb_init()
497 dc->dc_max_row = 0; in hpcfb_init()
498 dc->dc_min_row = dc->dc_rows; in hpcfb_init()
499 dc->dc_scroll = 0; in hpcfb_init()
500 callout_init(&dc->dc_scroll_ch, 0); in hpcfb_init()
502 dc->dc_memsize = ri->ri_stride * ri->ri_height; in hpcfb_init()
511 hpcfb_cmap_reorder(struct hpcfb_fbconf *fbconf, struct hpcfb_devconfig *dc) in hpcfb_cmap_reorder() argument
513 struct rasops_info *ri = &dc->dc_rinfo; in hpcfb_cmap_reorder()
561 struct hpcfb_devconfig *dc = sc->sc_dc; in hpcfb_ioctl() local
572 wdf->height = dc->dc_rinfo.ri_height; in hpcfb_ioctl()
573 wdf->width = dc->dc_rinfo.ri_width; in hpcfb_ioctl()
574 wdf->depth = dc->dc_rinfo.ri_depth; in hpcfb_ioctl()
579 *(u_int *)data = dc->dc_rinfo.ri_stride; in hpcfb_ioctl()
586 if (dc->dc_state&HPCFB_DC_DRAWING) in hpcfb_ioctl()
587 dc->dc_state &= ~HPCFB_DC_ABORT; in hpcfb_ioctl()
591 dc->dc_state |= HPCFB_DC_UPDATEALL; in hpcfb_ioctl()
597 dc->dc_state |= HPCFB_DC_ABORT; in hpcfb_ioctl()
695 struct hpcfb_devconfig *dc = sc->sc_dc; in hpcfb_refresh_screen() local
699 if (dc == NULL) in hpcfb_refresh_screen()
703 if (dc->dc_state&HPCFB_DC_SCROLLPENDING) { in hpcfb_refresh_screen()
704 dc->dc_state &= ~HPCFB_DC_SCROLLPENDING; in hpcfb_refresh_screen()
705 dc->dc_state &= ~HPCFB_DC_UPDATE; in hpcfb_refresh_screen()
706 callout_stop(&dc->dc_scroll_ch); in hpcfb_refresh_screen()
712 dc->dc_state &= ~HPCFB_DC_UPDATEALL; in hpcfb_refresh_screen()
713 x = dc->dc_curx; in hpcfb_refresh_screen()
714 y = dc->dc_cury; in hpcfb_refresh_screen()
716 hpcfb_cursor_raw(dc, 0, y, x); /* disable cursor */ in hpcfb_refresh_screen()
718 hpcfb_redraw(dc, 0, dc->dc_rows, 1); in hpcfb_refresh_screen()
720 hpcfb_cursor_raw(dc, 1, y, x); /* enable cursor */ in hpcfb_refresh_screen()
728 struct hpcfb_devconfig *dc; in hpcfb_alloc_screen() local
732 dc = malloc(sizeof(*dc), M_DEVBUF, M_WAITOK|M_ZERO); in hpcfb_alloc_screen()
733 if (dc == NULL) in hpcfb_alloc_screen()
736 dc->dc_sc = sc; in hpcfb_alloc_screen()
737 if (hpcfb_init(&sc->sc_fbconflist[0], dc) != 0) { in hpcfb_alloc_screen()
738 free(dc, M_DEVBUF); in hpcfb_alloc_screen()
743 dc->dc_rinfo.ri_font); in hpcfb_alloc_screen()
747 sc->sc_accessops->setclut(sc->sc_accessctx, &dc->dc_rinfo); in hpcfb_alloc_screen()
749 dc->dc_rinfo.ri_width, dc->dc_rinfo.ri_height, in hpcfb_alloc_screen()
750 (1 << dc->dc_rinfo.ri_depth), in hpcfb_alloc_screen()
751 dc->dc_rinfo.ri_cols, dc->dc_rinfo.ri_rows); in hpcfb_alloc_screen()
758 hpcfb_stdscreen.nrows = dc->dc_rows; in hpcfb_alloc_screen()
759 hpcfb_stdscreen.ncols = dc->dc_cols; in hpcfb_alloc_screen()
760 hpcfb_stdscreen.capabilities = dc->dc_rinfo.ri_caps; in hpcfb_alloc_screen()
762 dc->dc_fbaddr = dc->dc_rinfo.ri_bits; in hpcfb_alloc_screen()
763 dc->dc_rows = dc->dc_rinfo.ri_rows; in hpcfb_alloc_screen()
764 dc->dc_cols = dc->dc_rinfo.ri_cols; in hpcfb_alloc_screen()
765 dc->dc_memsize = dc->dc_rinfo.ri_stride * dc->dc_rinfo.ri_height; in hpcfb_alloc_screen()
767 dc->dc_curx = -1; in hpcfb_alloc_screen()
768 dc->dc_cury = -1; in hpcfb_alloc_screen()
769 dc->dc_tvram = malloc(sizeof(struct hpcfb_tvrow)*dc->dc_rows, in hpcfb_alloc_screen()
771 if (dc->dc_tvram == NULL){ in hpcfb_alloc_screen()
772 free(dc, M_DEVBUF); in hpcfb_alloc_screen()
778 *cookiep = dc; in hpcfb_alloc_screen()
781 __FILE__, __LINE__, dc)); in hpcfb_alloc_screen()
789 struct hpcfb_devconfig *dc = cookie; in hpcfb_free_screen() local
794 if (dc == &hpcfb_console_dc) in hpcfb_free_screen()
797 free(dc->dc_tvram, M_DEVBUF); in hpcfb_free_screen()
798 free(dc, M_DEVBUF); in hpcfb_free_screen()
806 struct hpcfb_devconfig *dc = (struct hpcfb_devconfig *)cookie; in hpcfb_show_screen() local
810 __FILE__, __LINE__, dc)); in hpcfb_show_screen()
814 if (dc == NULL || odc == dc) { in hpcfb_show_screen()
843 struct hpcfb_devconfig *dc; in hpcfb_doswitch() local
848 dc = sc->sc_wantedscreen; in hpcfb_doswitch()
850 if (!dc) { in hpcfb_doswitch()
856 if (odc == dc) { in hpcfb_doswitch()
876 dc->dc_state |= HPCFB_DC_CURRENT; in hpcfb_doswitch()
877 dc->dc_state &= ~HPCFB_DC_ABORT; in hpcfb_doswitch()
878 dc->dc_rinfo.ri_bits = dc->dc_fbaddr; in hpcfb_doswitch()
879 sc->sc_dc = dc; in hpcfb_doswitch()
890 dc->dc_state &= ~HPCFB_DC_SWITCHREQ; in hpcfb_doswitch()
919 struct hpcfb_devconfig *dc = (struct hpcfb_devconfig *)cookie; in hpcfb_cursor() local
922 dc->dc_curx = col; in hpcfb_cursor()
923 dc->dc_cury = row; in hpcfb_cursor()
925 dc->dc_curx = -1; in hpcfb_cursor()
926 dc->dc_cury = -1; in hpcfb_cursor()
935 struct hpcfb_devconfig *dc = (struct hpcfb_devconfig *)cookie; in hpcfb_cursor_raw() local
936 struct hpcfb_softc *sc = dc->dc_sc; in hpcfb_cursor_raw()
937 struct rasops_info *ri = &dc->dc_rinfo; in hpcfb_cursor_raw()
942 if (dc->dc_state&HPCFB_DC_SCROLLPENDING) { in hpcfb_cursor_raw()
943 dc->dc_state |= HPCFB_DC_UPDATE; in hpcfb_cursor_raw()
947 if (!IS_DRAWABLE(dc)) { in hpcfb_cursor_raw()
954 dc->dc_state |= HPCFB_DC_DRAWING; in hpcfb_cursor_raw()
964 dc->dc_state &= ~HPCFB_DC_DRAWING; in hpcfb_cursor_raw()
973 struct hpcfb_devconfig *dc = (struct hpcfb_devconfig *)cookie; in hpcfb_mapchar() local
974 struct rasops_info *ri = &dc->dc_rinfo; in hpcfb_mapchar()
983 hpcfb_tv_putchar(struct hpcfb_devconfig *dc, int row, int col, u_int uc, in hpcfb_tv_putchar() argument
986 struct hpcfb_tvrow *vscn = dc->dc_tvram; in hpcfb_tv_putchar()
993 dc->dc_state |= HPCFB_DC_TDRAWING; in hpcfb_tv_putchar()
995 if (row < dc->dc_min_row) in hpcfb_tv_putchar()
996 dc->dc_min_row = row; in hpcfb_tv_putchar()
997 if (row > dc->dc_max_row) in hpcfb_tv_putchar()
998 dc->dc_max_row = row; in hpcfb_tv_putchar()
1011 dc->dc_state &= ~HPCFB_DC_TDRAWING; in hpcfb_tv_putchar()
1013 hpcfb_check_update(dc); in hpcfb_tv_putchar()
1020 struct hpcfb_devconfig *dc = (struct hpcfb_devconfig *)cookie; in hpcfb_putchar() local
1021 struct hpcfb_softc *sc = dc->dc_sc; in hpcfb_putchar()
1022 struct rasops_info *ri = &dc->dc_rinfo; in hpcfb_putchar()
1028 hpcfb_tv_putchar(dc, row, col, uc, attr); in hpcfb_putchar()
1030 if (dc->dc_state&HPCFB_DC_SCROLLPENDING) { in hpcfb_putchar()
1031 dc->dc_state |= HPCFB_DC_UPDATE; in hpcfb_putchar()
1036 if (!IS_DRAWABLE(dc)) { in hpcfb_putchar()
1043 dc->dc_state |= HPCFB_DC_DRAWING; in hpcfb_putchar()
1045 && (dc->dc_state&HPCFB_DC_CURRENT)) { in hpcfb_putchar()
1056 dc->dc_state &= ~HPCFB_DC_DRAWING; in hpcfb_putchar()
1058 hpcfb_check_update(dc); in hpcfb_putchar()
1066 hpcfb_tv_copycols(struct hpcfb_devconfig *dc, int row, int srccol, int dstcol, in hpcfb_tv_copycols() argument
1069 struct hpcfb_tvrow *vscn = dc->dc_tvram; in hpcfb_tv_copycols()
1076 dc->dc_state |= HPCFB_DC_TDRAWING; in hpcfb_tv_copycols()
1078 if (row < dc->dc_min_row) in hpcfb_tv_copycols()
1079 dc->dc_min_row = row; in hpcfb_tv_copycols()
1080 if (row > dc->dc_max_row) in hpcfb_tv_copycols()
1081 dc->dc_max_row = row; in hpcfb_tv_copycols()
1089 dc->dc_state &= ~HPCFB_DC_TDRAWING; in hpcfb_tv_copycols()
1091 hpcfb_check_update(dc); in hpcfb_tv_copycols()
1098 struct hpcfb_devconfig *dc = (struct hpcfb_devconfig *)cookie; in hpcfb_copycols() local
1099 struct hpcfb_softc *sc = dc->dc_sc; in hpcfb_copycols()
1100 struct rasops_info *ri = &dc->dc_rinfo; in hpcfb_copycols()
1105 hpcfb_tv_copycols(dc, row, srccol, dstcol, ncols); in hpcfb_copycols()
1107 if (dc->dc_state&HPCFB_DC_SCROLLPENDING) { in hpcfb_copycols()
1108 dc->dc_state |= HPCFB_DC_UPDATE; in hpcfb_copycols()
1112 if (!IS_DRAWABLE(dc)) { in hpcfb_copycols()
1119 dc->dc_state |= HPCFB_DC_DRAWING; in hpcfb_copycols()
1121 && (dc->dc_state&HPCFB_DC_CURRENT)) { in hpcfb_copycols()
1132 dc->dc_state &= ~HPCFB_DC_DRAWING; in hpcfb_copycols()
1134 hpcfb_check_update(dc); in hpcfb_copycols()
1143 hpcfb_tv_erasecols(struct hpcfb_devconfig *dc, in hpcfb_tv_erasecols() argument
1146 struct hpcfb_tvrow *vscn = dc->dc_tvram; in hpcfb_tv_erasecols()
1151 dc->dc_state |= HPCFB_DC_TDRAWING; in hpcfb_tv_erasecols()
1153 if (row < dc->dc_min_row) in hpcfb_tv_erasecols()
1154 dc->dc_min_row = row; in hpcfb_tv_erasecols()
1155 if (row > dc->dc_max_row) in hpcfb_tv_erasecols()
1156 dc->dc_max_row = row; in hpcfb_tv_erasecols()
1162 dc->dc_state &= ~HPCFB_DC_TDRAWING; in hpcfb_tv_erasecols()
1164 hpcfb_check_update(dc); in hpcfb_tv_erasecols()
1171 struct hpcfb_devconfig *dc = (struct hpcfb_devconfig *)cookie; in hpcfb_erasecols() local
1172 struct hpcfb_softc *sc = dc->dc_sc; in hpcfb_erasecols()
1173 struct rasops_info *ri = &dc->dc_rinfo; in hpcfb_erasecols()
1177 hpcfb_tv_erasecols(dc, row, startcol, ncols, attr); in hpcfb_erasecols()
1179 if (dc->dc_state&HPCFB_DC_SCROLLPENDING) { in hpcfb_erasecols()
1180 dc->dc_state |= HPCFB_DC_UPDATE; in hpcfb_erasecols()
1184 if (!IS_DRAWABLE(dc)) { in hpcfb_erasecols()
1191 dc->dc_state |= HPCFB_DC_DRAWING; in hpcfb_erasecols()
1193 && (dc->dc_state&HPCFB_DC_CURRENT)) { in hpcfb_erasecols()
1202 dc->dc_state &= ~HPCFB_DC_DRAWING; in hpcfb_erasecols()
1204 hpcfb_check_update(dc); in hpcfb_erasecols()
1212 hpcfb_tv_copyrows(struct hpcfb_devconfig *dc, int src, int dst, int num) in hpcfb_tv_copyrows() argument
1214 struct hpcfb_tvrow *vscn = dc->dc_tvram; in hpcfb_tv_copyrows()
1223 dc->dc_state |= HPCFB_DC_TDRAWING; in hpcfb_tv_copyrows()
1225 if (dst < dc->dc_min_row) in hpcfb_tv_copyrows()
1226 dc->dc_min_row = dst; in hpcfb_tv_copyrows()
1227 if (dst + num > dc->dc_max_row) in hpcfb_tv_copyrows()
1228 dc->dc_max_row = dst + num -1; in hpcfb_tv_copyrows()
1238 dc->dc_state &= ~HPCFB_DC_TDRAWING; in hpcfb_tv_copyrows()
1240 hpcfb_check_update(dc); in hpcfb_tv_copyrows()
1253 dc->dc_state &= ~HPCFB_DC_TDRAWING; in hpcfb_tv_copyrows()
1255 hpcfb_check_update(dc); in hpcfb_tv_copyrows()
1262 struct hpcfb_devconfig *dc = (struct hpcfb_devconfig *)cookie; in hpcfb_redraw() local
1263 struct rasops_info *ri = &dc->dc_rinfo; in hpcfb_redraw()
1265 struct hpcfb_tvrow *vscn = dc->dc_tvram; in hpcfb_redraw()
1270 if (dc->dc_state&HPCFB_DC_SCROLLPENDING) { in hpcfb_redraw()
1271 dc->dc_state |= HPCFB_DC_UPDATE; in hpcfb_redraw()
1275 if (dc->dc_sc != NULL in hpcfb_redraw()
1276 && !dc->dc_sc->sc_polling in hpcfb_redraw()
1277 && dc->dc_sc->sc_mapping) in hpcfb_redraw()
1280 dc->dc_state &= ~HPCFB_DC_ABORT; in hpcfb_redraw()
1285 if (!IS_DRAWABLE(dc)) { in hpcfb_redraw()
1292 dc->dc_state |= HPCFB_DC_DRAWING; in hpcfb_redraw()
1293 dc->dc_state |= HPCFB_DC_TDRAWING; in hpcfb_redraw()
1295 if (dc->dc_state&HPCFB_DC_ABORT) in hpcfb_redraw()
1297 if ((dc->dc_state&HPCFB_DC_CURRENT) == 0) in hpcfb_redraw()
1301 if (dc->dc_state&HPCFB_DC_ABORT) in hpcfb_redraw()
1303 if ((dc->dc_state&HPCFB_DC_CURRENT) == 0) in hpcfb_redraw()
1309 cols = dc->dc_cols-1; in hpcfb_redraw()
1313 if (dc->dc_state&HPCFB_DC_ABORT) in hpcfb_redraw()
1315 if ((dc->dc_state&HPCFB_DC_CURRENT) == 0) in hpcfb_redraw()
1321 if (dc->dc_state&HPCFB_DC_ABORT) in hpcfb_redraw()
1322 dc->dc_state &= ~HPCFB_DC_ABORT; in hpcfb_redraw()
1323 dc->dc_state &= ~HPCFB_DC_DRAWING; in hpcfb_redraw()
1324 dc->dc_state &= ~HPCFB_DC_TDRAWING; in hpcfb_redraw()
1326 hpcfb_check_update(dc); in hpcfb_redraw()
1334 struct hpcfb_devconfig *dc = (struct hpcfb_devconfig *)v; in hpcfb_update() local
1337 dc->dc_state &= ~HPCFB_DC_SCROLLPENDING; in hpcfb_update()
1338 if (dc->dc_curx > 0 && dc->dc_cury > 0) in hpcfb_update()
1339 hpcfb_cursor_raw(dc, 0, dc->dc_cury, dc->dc_curx); in hpcfb_update()
1340 if ((dc->dc_state&HPCFB_DC_UPDATEALL)) { in hpcfb_update()
1341 hpcfb_redraw(dc, 0, dc->dc_rows, 1); in hpcfb_update()
1342 dc->dc_state &= ~(HPCFB_DC_UPDATE|HPCFB_DC_UPDATEALL); in hpcfb_update()
1343 } else if ((dc->dc_state&HPCFB_DC_UPDATE)) { in hpcfb_update()
1344 hpcfb_redraw(dc, dc->dc_min_row, in hpcfb_update()
1345 dc->dc_max_row - dc->dc_min_row, 0); in hpcfb_update()
1346 dc->dc_state &= ~HPCFB_DC_UPDATE; in hpcfb_update()
1348 hpcfb_redraw(dc, dc->dc_scroll_dst, dc->dc_scroll_num, 0); in hpcfb_update()
1350 if (dc->dc_curx > 0 && dc->dc_cury > 0) in hpcfb_update()
1351 hpcfb_cursor_raw(dc, 1, dc->dc_cury, dc->dc_curx); in hpcfb_update()
1357 struct hpcfb_devconfig *dc = (struct hpcfb_devconfig *)v; in hpcfb_do_scroll() local
1359 dc->dc_state |= HPCFB_DC_SCRTHREAD; in hpcfb_do_scroll()
1360 if (dc->dc_state&(HPCFB_DC_DRAWING|HPCFB_DC_TDRAWING)) in hpcfb_do_scroll()
1361 dc->dc_state |= HPCFB_DC_SCRDELAY; in hpcfb_do_scroll()
1362 else if (dc->dc_sc != NULL && dc->dc_sc->sc_thread) in hpcfb_do_scroll()
1363 wakeup(dc->dc_sc); in hpcfb_do_scroll()
1364 else if (dc->dc_sc != NULL && !dc->dc_sc->sc_mapping) { in hpcfb_do_scroll()
1368 dc->dc_state &= ~HPCFB_DC_SCRTHREAD; in hpcfb_do_scroll()
1374 struct hpcfb_devconfig *dc = (struct hpcfb_devconfig *)v; in hpcfb_check_update() local
1376 if (dc->dc_sc != NULL in hpcfb_check_update()
1377 && dc->dc_sc->sc_polling in hpcfb_check_update()
1378 && (dc->dc_state&HPCFB_DC_SCROLLPENDING)){ in hpcfb_check_update()
1379 callout_stop(&dc->dc_scroll_ch); in hpcfb_check_update()
1380 dc->dc_state &= ~HPCFB_DC_SCRDELAY; in hpcfb_check_update()
1383 else if (dc->dc_state&HPCFB_DC_SCRDELAY){ in hpcfb_check_update()
1384 dc->dc_state &= ~HPCFB_DC_SCRDELAY; in hpcfb_check_update()
1386 } else if (dc->dc_state&HPCFB_DC_UPDATEALL){ in hpcfb_check_update()
1387 dc->dc_state &= ~HPCFB_DC_UPDATEALL; in hpcfb_check_update()
1396 struct hpcfb_devconfig *dc = (struct hpcfb_devconfig *)cookie; in hpcfb_copyrows() local
1397 struct rasops_info *ri = &dc->dc_rinfo; in hpcfb_copyrows()
1398 struct hpcfb_softc *sc = dc->dc_sc; in hpcfb_copyrows()
1404 if (!IS_DRAWABLE(dc)) { in hpcfb_copyrows()
1412 && (dc->dc_state&HPCFB_DC_CURRENT)) { in hpcfb_copyrows()
1413 dc->dc_state |= HPCFB_DC_DRAWING; in hpcfb_copyrows()
1416 width = dc->dc_cols * ri->ri_font->fontwidth; in hpcfb_copyrows()
1420 dc->dc_state &= ~HPCFB_DC_DRAWING; in hpcfb_copyrows()
1425 hpcfb_check_update(dc); in hpcfb_copyrows()
1426 } else if ((dc->dc_state&HPCFB_DC_SCROLLPENDING) == 0) { in hpcfb_copyrows()
1427 dc->dc_state |= HPCFB_DC_SCROLLPENDING; in hpcfb_copyrows()
1428 dc->dc_scroll = 1; in hpcfb_copyrows()
1429 dc->dc_scroll_src = src; in hpcfb_copyrows()
1430 dc->dc_scroll_dst = dst; in hpcfb_copyrows()
1431 dc->dc_scroll_num = num; in hpcfb_copyrows()
1432 callout_reset(&dc->dc_scroll_ch, hz/100, &hpcfb_do_scroll, dc); in hpcfb_copyrows()
1434 } else if (dc->dc_scroll++ < dc->dc_rows/HPCFB_MAX_JUMP) { in hpcfb_copyrows()
1435 dc->dc_state |= HPCFB_DC_UPDATE; in hpcfb_copyrows()
1438 dc->dc_state &= ~HPCFB_DC_SCROLLPENDING; in hpcfb_copyrows()
1439 callout_stop(&dc->dc_scroll_ch); in hpcfb_copyrows()
1441 if (dc->dc_state&HPCFB_DC_UPDATE) { in hpcfb_copyrows()
1442 dc->dc_state &= ~HPCFB_DC_UPDATE; in hpcfb_copyrows()
1443 hpcfb_redraw(cookie, dc->dc_min_row, in hpcfb_copyrows()
1444 dc->dc_max_row - dc->dc_min_row, 0); in hpcfb_copyrows()
1445 dc->dc_max_row = 0; in hpcfb_copyrows()
1446 dc->dc_min_row = dc->dc_rows; in hpcfb_copyrows()
1447 if (dc->dc_curx > 0 && dc->dc_cury > 0) in hpcfb_copyrows()
1448 hpcfb_cursor(dc, 1, dc->dc_cury, dc->dc_curx); in hpcfb_copyrows()
1455 hpcfb_check_update(dc); in hpcfb_copyrows()
1463 hpcfb_tv_eraserows(struct hpcfb_devconfig *dc, in hpcfb_tv_eraserows() argument
1466 struct hpcfb_tvrow *vscn = dc->dc_tvram; in hpcfb_tv_eraserows()
1473 dc->dc_state |= HPCFB_DC_TDRAWING; in hpcfb_tv_eraserows()
1474 dc->dc_state &= ~HPCFB_DC_TDRAWING; in hpcfb_tv_eraserows()
1476 if (row < dc->dc_min_row) in hpcfb_tv_eraserows()
1477 dc->dc_min_row = row; in hpcfb_tv_eraserows()
1478 if (row + nrow > dc->dc_max_row) in hpcfb_tv_eraserows()
1479 dc->dc_max_row = row + nrow; in hpcfb_tv_eraserows()
1489 hpcfb_check_update(dc); in hpcfb_tv_eraserows()
1496 struct hpcfb_devconfig *dc = (struct hpcfb_devconfig *)cookie; in hpcfb_eraserows() local
1497 struct hpcfb_softc *sc = dc->dc_sc; in hpcfb_eraserows()
1498 struct rasops_info *ri = &dc->dc_rinfo; in hpcfb_eraserows()
1503 hpcfb_tv_eraserows(dc, row, nrow, attr); in hpcfb_eraserows()
1505 if (dc->dc_state&HPCFB_DC_SCROLLPENDING) { in hpcfb_eraserows()
1506 dc->dc_state |= HPCFB_DC_UPDATE; in hpcfb_eraserows()
1510 if (!IS_DRAWABLE(dc)) { in hpcfb_eraserows()
1517 dc->dc_state |= HPCFB_DC_DRAWING; in hpcfb_eraserows()
1519 && (dc->dc_state&HPCFB_DC_CURRENT)) { in hpcfb_eraserows()
1521 width = dc->dc_cols * ri->ri_font->fontwidth; in hpcfb_eraserows()
1527 dc->dc_state &= ~HPCFB_DC_DRAWING; in hpcfb_eraserows()
1529 hpcfb_check_update(dc); in hpcfb_eraserows()
1539 struct hpcfb_devconfig *dc = (struct hpcfb_devconfig *)cookie; in hpcfb_allocattr() local
1540 struct rasops_info *ri = &dc->dc_rinfo; in hpcfb_allocattr()