Lines Matching refs:dc_state
130 volatile int dc_state; member
146 (((dc)->dc_state&HPCFB_DC_CURRENT)&& \
147 (((dc)->dc_state&(HPCFB_DC_DRAWING|HPCFB_DC_SWITCHREQ)) == 0))
360 sc->sc_dc->dc_state |= HPCFB_DC_SCRTHREAD; in hpcfb_thread()
363 sc->sc_dc->dc_state &= ~HPCFB_DC_SCRTHREAD; in hpcfb_thread()
400 hpcfb_console_dc.dc_state |= HPCFB_DC_CURRENT; in hpcfb_cnattach()
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()
662 sc->sc_dc->dc_state &= ~HPCFB_DC_CURRENT; in hpcfb_power()
666 sc->sc_dc->dc_state |= HPCFB_DC_CURRENT; in hpcfb_power()
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()
712 dc->dc_state &= ~HPCFB_DC_UPDATEALL; in hpcfb_refresh_screen()
820 odc->dc_state |= HPCFB_DC_SWITCHREQ; in hpcfb_show_screen()
822 if ((odc->dc_state&HPCFB_DC_DRAWING) != 0) { in hpcfb_show_screen()
823 odc->dc_state |= HPCFB_DC_ABORT; in hpcfb_show_screen()
852 odc->dc_state &= ~HPCFB_DC_SWITCHREQ; in hpcfb_doswitch()
857 odc->dc_state &= ~HPCFB_DC_SWITCHREQ; in hpcfb_doswitch()
863 odc->dc_state |= HPCFB_DC_ABORT; in hpcfb_doswitch()
870 odc->dc_state &= ~HPCFB_DC_CURRENT; in hpcfb_doswitch()
876 dc->dc_state |= HPCFB_DC_CURRENT; in hpcfb_doswitch()
877 dc->dc_state &= ~HPCFB_DC_ABORT; in hpcfb_doswitch()
889 odc->dc_state &= ~HPCFB_DC_SWITCHREQ; in hpcfb_doswitch()
890 dc->dc_state &= ~HPCFB_DC_SWITCHREQ; in hpcfb_doswitch()
942 if (dc->dc_state&HPCFB_DC_SCROLLPENDING) { in hpcfb_cursor_raw()
943 dc->dc_state |= HPCFB_DC_UPDATE; 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()
993 dc->dc_state |= HPCFB_DC_TDRAWING; in hpcfb_tv_putchar()
1011 dc->dc_state &= ~HPCFB_DC_TDRAWING; in hpcfb_tv_putchar()
1030 if (dc->dc_state&HPCFB_DC_SCROLLPENDING) { in hpcfb_putchar()
1031 dc->dc_state |= HPCFB_DC_UPDATE; 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()
1076 dc->dc_state |= HPCFB_DC_TDRAWING; in hpcfb_tv_copycols()
1089 dc->dc_state &= ~HPCFB_DC_TDRAWING; in hpcfb_tv_copycols()
1107 if (dc->dc_state&HPCFB_DC_SCROLLPENDING) { in hpcfb_copycols()
1108 dc->dc_state |= HPCFB_DC_UPDATE; 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()
1151 dc->dc_state |= HPCFB_DC_TDRAWING; in hpcfb_tv_erasecols()
1162 dc->dc_state &= ~HPCFB_DC_TDRAWING; in hpcfb_tv_erasecols()
1179 if (dc->dc_state&HPCFB_DC_SCROLLPENDING) { in hpcfb_erasecols()
1180 dc->dc_state |= HPCFB_DC_UPDATE; 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()
1223 dc->dc_state |= HPCFB_DC_TDRAWING; in hpcfb_tv_copyrows()
1238 dc->dc_state &= ~HPCFB_DC_TDRAWING; in hpcfb_tv_copyrows()
1253 dc->dc_state &= ~HPCFB_DC_TDRAWING; in hpcfb_tv_copyrows()
1270 if (dc->dc_state&HPCFB_DC_SCROLLPENDING) { in hpcfb_redraw()
1271 dc->dc_state |= HPCFB_DC_UPDATE; in hpcfb_redraw()
1280 dc->dc_state &= ~HPCFB_DC_ABORT; 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()
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()
1337 dc->dc_state &= ~HPCFB_DC_SCROLLPENDING; in hpcfb_update()
1340 if ((dc->dc_state&HPCFB_DC_UPDATEALL)) { 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()
1346 dc->dc_state &= ~HPCFB_DC_UPDATE; in hpcfb_update()
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()
1368 dc->dc_state &= ~HPCFB_DC_SCRTHREAD; in hpcfb_do_scroll()
1378 && (dc->dc_state&HPCFB_DC_SCROLLPENDING)){ 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()
1412 && (dc->dc_state&HPCFB_DC_CURRENT)) { in hpcfb_copyrows()
1413 dc->dc_state |= HPCFB_DC_DRAWING; in hpcfb_copyrows()
1420 dc->dc_state &= ~HPCFB_DC_DRAWING; 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()
1435 dc->dc_state |= HPCFB_DC_UPDATE; in hpcfb_copyrows()
1438 dc->dc_state &= ~HPCFB_DC_SCROLLPENDING; in hpcfb_copyrows()
1441 if (dc->dc_state&HPCFB_DC_UPDATE) { in hpcfb_copyrows()
1442 dc->dc_state &= ~HPCFB_DC_UPDATE; in hpcfb_copyrows()
1473 dc->dc_state |= HPCFB_DC_TDRAWING; in hpcfb_tv_eraserows()
1474 dc->dc_state &= ~HPCFB_DC_TDRAWING; in hpcfb_tv_eraserows()
1505 if (dc->dc_state&HPCFB_DC_SCROLLPENDING) { in hpcfb_eraserows()
1506 dc->dc_state |= HPCFB_DC_UPDATE; in hpcfb_eraserows()
1517 dc->dc_state |= HPCFB_DC_DRAWING; in hpcfb_eraserows()
1519 && (dc->dc_state&HPCFB_DC_CURRENT)) { in hpcfb_eraserows()
1527 dc->dc_state &= ~HPCFB_DC_DRAWING; in hpcfb_eraserows()