usr/src/boot/common/tem.c
1004
tem_input_partial(tem);
usr/src/boot/common/tem.c
1005
tem->tvs_utf8_left = 1;
usr/src/boot/common/tem.c
1006
tem->tvs_utf8_partial = c;
usr/src/boot/common/tem.c
1011
tem_input_partial(tem);
usr/src/boot/common/tem.c
1012
tem->tvs_utf8_left = 2;
usr/src/boot/common/tem.c
1013
tem->tvs_utf8_partial = c;
usr/src/boot/common/tem.c
1018
tem_input_partial(tem);
usr/src/boot/common/tem.c
1019
tem->tvs_utf8_left = 3;
usr/src/boot/common/tem.c
1020
tem->tvs_utf8_partial = c;
usr/src/boot/common/tem.c
1025
if (tem->tvs_utf8_left == 0) {
usr/src/boot/common/tem.c
1026
tem_parse(tem, c);
usr/src/boot/common/tem.c
1029
tem->tvs_utf8_left--;
usr/src/boot/common/tem.c
1030
tem->tvs_utf8_partial = (tem->tvs_utf8_partial << 8) | c;
usr/src/boot/common/tem.c
1031
if (tem->tvs_utf8_left == 0) {
usr/src/boot/common/tem.c
1040
u = tem->tvs_utf8_partial;
usr/src/boot/common/tem.c
1062
tem_parse(tem, v);
usr/src/boot/common/tem.c
1063
tem->tvs_utf8_partial = 0;
usr/src/boot/common/tem.c
1068
tem_input_partial(tem);
usr/src/boot/common/tem.c
1069
tem_parse(tem, c);
usr/src/boot/common/tem.c
1081
tem_terminal_emulate(struct tem_vt_state *tem, uint8_t *buf, int len)
usr/src/boot/common/tem.c
1083
if (tem->tvs_isactive && !tem->tvs_cursor_hidden)
usr/src/boot/common/tem.c
1084
tem_callback_cursor(tem, VIS_HIDE_CURSOR);
usr/src/boot/common/tem.c
1087
tem_input_byte(tem, *buf);
usr/src/boot/common/tem.c
1092
tem_send_data(tem);
usr/src/boot/common/tem.c
1094
if (tem->tvs_isactive && !tem->tvs_cursor_hidden)
usr/src/boot/common/tem.c
1095
tem_callback_cursor(tem, VIS_DISPLAY_CURSOR);
usr/src/boot/common/tem.c
1104
tem_control(struct tem_vt_state *tem, uint8_t ch)
usr/src/boot/common/tem.c
1106
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
1109
tem_bell(tem);
usr/src/boot/common/tem.c
1113
tem_mv_cursor(tem,
usr/src/boot/common/tem.c
1114
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
1115
tem->tvs_c_cursor.col - 1);
usr/src/boot/common/tem.c
1119
tem_tab(tem);
usr/src/boot/common/tem.c
1130
tem_send_data(tem);
usr/src/boot/common/tem.c
1131
tem_lf(tem);
usr/src/boot/common/tem.c
1135
tem_send_data(tem);
usr/src/boot/common/tem.c
1136
tem_cls(tem);
usr/src/boot/common/tem.c
1140
tem_send_data(tem);
usr/src/boot/common/tem.c
1141
tem_cr(tem);
usr/src/boot/common/tem.c
1145
tem->tvs_state = A_STATE_ESC;
usr/src/boot/common/tem.c
1149
tem->tvs_curparam = 0;
usr/src/boot/common/tem.c
1150
tem->tvs_paramval = 0;
usr/src/boot/common/tem.c
1151
tem->tvs_gotparam = false;
usr/src/boot/common/tem.c
1154
tem->tvs_params[i] = -1;
usr/src/boot/common/tem.c
1155
tem->tvs_state = A_STATE_CSI;
usr/src/boot/common/tem.c
1159
tem_back_tab(tem);
usr/src/boot/common/tem.c
1174
tem_setparam(struct tem_vt_state *tem, int count, int newparam)
usr/src/boot/common/tem.c
1179
if (tem->tvs_params[i] == -1)
usr/src/boot/common/tem.c
118
static void tem_clear_chars(struct tem_vt_state *tem,
usr/src/boot/common/tem.c
1180
tem->tvs_params[i] = newparam;
usr/src/boot/common/tem.c
1190
tem_select_color(struct tem_vt_state *tem, int color, bool fg)
usr/src/boot/common/tem.c
120
static void tem_copy_area(struct tem_vt_state *tem,
usr/src/boot/common/tem.c
1201
tem->tvs_flags &= ~TEM_ATTR_RGB_FG;
usr/src/boot/common/tem.c
1202
tem->tvs_fg_color.n = color;
usr/src/boot/common/tem.c
1204
tem->tvs_flags &= ~TEM_ATTR_RGB_BG;
usr/src/boot/common/tem.c
1205
tem->tvs_bg_color.n = color;
usr/src/boot/common/tem.c
1213
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_FG;
usr/src/boot/common/tem.c
1215
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_BG;
usr/src/boot/common/tem.c
1224
tem->tvs_fg_color.n -= 8;
usr/src/boot/common/tem.c
1225
tem->tvs_flags |= TEM_ATTR_BRIGHT_FG;
usr/src/boot/common/tem.c
1227
tem->tvs_bg_color.n -= 8;
usr/src/boot/common/tem.c
1228
tem->tvs_flags |= TEM_ATTR_BRIGHT_BG;
usr/src/boot/common/tem.c
1237
tem_selgraph(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
124
static void tem_bell(struct tem_vt_state *tem);
usr/src/boot/common/tem.c
1244
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
1246
curparam = tem->tvs_curparam;
usr/src/boot/common/tem.c
1248
param = tem->tvs_params[count];
usr/src/boot/common/tem.c
125
static void tem_pix_clear_prom_output(struct tem_vt_state *tem);
usr/src/boot/common/tem.c
1254
tem->tvs_fg_color = tems.ts_init_color.fg_color;
usr/src/boot/common/tem.c
1255
tem->tvs_bg_color = tems.ts_init_color.bg_color;
usr/src/boot/common/tem.c
1256
tem->tvs_flags = tems.ts_init_color.a_flags;
usr/src/boot/common/tem.c
1260
tem->tvs_flags |= TEM_ATTR_BOLD;
usr/src/boot/common/tem.c
1264
tem->tvs_flags &= ~TEM_ATTR_BOLD;
usr/src/boot/common/tem.c
1268
tem->tvs_flags |= TEM_ATTR_UNDERLINE;
usr/src/boot/common/tem.c
1272
tem->tvs_flags |= TEM_ATTR_BLINK;
usr/src/boot/common/tem.c
1276
if (tem->tvs_flags & TEM_ATTR_SCREEN_REVERSE) {
usr/src/boot/common/tem.c
1277
tem->tvs_flags &= ~TEM_ATTR_REVERSE;
usr/src/boot/common/tem.c
1279
tem->tvs_flags |= TEM_ATTR_REVERSE;
usr/src/boot/common/tem.c
1284
tem->tvs_flags &= ~TEM_ATTR_BOLD;
usr/src/boot/common/tem.c
1288
tem->tvs_flags &= ~TEM_ATTR_UNDERLINE;
usr/src/boot/common/tem.c
1292
tem->tvs_flags &= ~TEM_ATTR_BLINK;
usr/src/boot/common/tem.c
1296
if (tem->tvs_flags & TEM_ATTR_SCREEN_REVERSE) {
usr/src/boot/common/tem.c
1297
tem->tvs_flags |= TEM_ATTR_REVERSE;
usr/src/boot/common/tem.c
1299
tem->tvs_flags &= ~TEM_ATTR_REVERSE;
usr/src/boot/common/tem.c
131
static void tem_align_cursor(struct tem_vt_state *tem);
usr/src/boot/common/tem.c
1311
tem->tvs_fg_color.n = param - 30;
usr/src/boot/common/tem.c
1312
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_FG;
usr/src/boot/common/tem.c
1313
tem->tvs_flags &= ~TEM_ATTR_RGB_FG;
usr/src/boot/common/tem.c
133
static void tem_check_first_time(struct tem_vt_state *tem);
usr/src/boot/common/tem.c
1332
param = tem->tvs_params[count];
usr/src/boot/common/tem.c
1339
r = tem->tvs_params[++count];
usr/src/boot/common/tem.c
1340
g = tem->tvs_params[++count];
usr/src/boot/common/tem.c
1341
b = tem->tvs_params[++count];
usr/src/boot/common/tem.c
1349
tem->tvs_flags |= TEM_ATTR_RGB_FG;
usr/src/boot/common/tem.c
1350
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_FG;
usr/src/boot/common/tem.c
1351
tem->tvs_fg_color.rgb.a =
usr/src/boot/common/tem.c
1352
tem->tvs_alpha;
usr/src/boot/common/tem.c
1353
tem->tvs_fg_color.rgb.r = r;
usr/src/boot/common/tem.c
1354
tem->tvs_fg_color.rgb.g = g;
usr/src/boot/common/tem.c
1355
tem->tvs_fg_color.rgb.b = b;
usr/src/boot/common/tem.c
1361
tem_select_color(tem, tem->tvs_params[count],
usr/src/boot/common/tem.c
1374
tem->tvs_fg_color = tems.ts_init_color.fg_color;
usr/src/boot/common/tem.c
1375
tem->tvs_flags &= ~TEM_ATTR_RGB_FG;
usr/src/boot/common/tem.c
1377
tem->tvs_flags |= TEM_ATTR_BRIGHT_FG;
usr/src/boot/common/tem.c
1379
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_FG;
usr/src/boot/common/tem.c
1390
tem->tvs_bg_color.n = param - 40;
usr/src/boot/common/tem.c
1391
tem->tvs_flags &= ~TEM_ATTR_RGB_BG;
usr/src/boot/common/tem.c
1392
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_BG;
usr/src/boot/common/tem.c
1412
param = tem->tvs_params[count];
usr/src/boot/common/tem.c
1419
r = tem->tvs_params[++count];
usr/src/boot/common/tem.c
1420
g = tem->tvs_params[++count];
usr/src/boot/common/tem.c
1421
b = tem->tvs_params[++count];
usr/src/boot/common/tem.c
1429
tem->tvs_flags |= TEM_ATTR_RGB_BG;
usr/src/boot/common/tem.c
1430
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_BG;
usr/src/boot/common/tem.c
1431
tem->tvs_bg_color.rgb.a =
usr/src/boot/common/tem.c
1432
tem->tvs_alpha;
usr/src/boot/common/tem.c
1433
tem->tvs_bg_color.rgb.r = r;
usr/src/boot/common/tem.c
1434
tem->tvs_bg_color.rgb.g = g;
usr/src/boot/common/tem.c
1435
tem->tvs_bg_color.rgb.b = b;
usr/src/boot/common/tem.c
1441
tem_select_color(tem, tem->tvs_params[count],
usr/src/boot/common/tem.c
1454
tem->tvs_bg_color = tems.ts_init_color.bg_color;
usr/src/boot/common/tem.c
1455
tem->tvs_flags &= ~TEM_ATTR_RGB_BG;
usr/src/boot/common/tem.c
1457
tem->tvs_flags |= TEM_ATTR_BRIGHT_BG;
usr/src/boot/common/tem.c
1459
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_BG;
usr/src/boot/common/tem.c
1470
tem->tvs_fg_color.n = param - 90;
usr/src/boot/common/tem.c
1471
tem->tvs_flags |= TEM_ATTR_BRIGHT_FG;
usr/src/boot/common/tem.c
1472
tem->tvs_flags &= ~TEM_ATTR_RGB_FG;
usr/src/boot/common/tem.c
1483
tem->tvs_bg_color.n = param - 100;
usr/src/boot/common/tem.c
1484
tem->tvs_flags |= TEM_ATTR_BRIGHT_BG;
usr/src/boot/common/tem.c
1485
tem->tvs_flags &= ~TEM_ATTR_RGB_BG;
usr/src/boot/common/tem.c
1504
tem_chkparam(struct tem_vt_state *tem, uint8_t ch)
usr/src/boot/common/tem.c
1510
row = tem->tvs_c_cursor.row;
usr/src/boot/common/tem.c
1511
col = tem->tvs_c_cursor.col;
usr/src/boot/common/tem.c
1516
tem_send_data(tem);
usr/src/boot/common/tem.c
1517
tem_selgraph(tem);
usr/src/boot/common/tem.c
1521
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1522
tem_shift(tem, tem->tvs_params[0], TEM_SHIFT_RIGHT);
usr/src/boot/common/tem.c
1526
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1527
tem_mv_cursor(tem, row - tem->tvs_params[0], col);
usr/src/boot/common/tem.c
1531
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1532
tem_mv_cursor(tem, tem->tvs_params[0] - 1, col);
usr/src/boot/common/tem.c
1537
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1538
tem_mv_cursor(tem, row + tem->tvs_params[0], col);
usr/src/boot/common/tem.c
1543
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1544
tem_mv_cursor(tem, row, col + tem->tvs_params[0]);
usr/src/boot/common/tem.c
1548
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1549
tem_mv_cursor(tem, row, tem->tvs_params[0] - 1);
usr/src/boot/common/tem.c
1553
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1554
tem_mv_cursor(tem, row, col - tem->tvs_params[0]);
usr/src/boot/common/tem.c
1558
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1559
tem_mv_cursor(tem, row + tem->tvs_params[0], 0);
usr/src/boot/common/tem.c
1563
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1564
tem_mv_cursor(tem, row - tem->tvs_params[0], 0);
usr/src/boot/common/tem.c
1568
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1569
tem_mv_cursor(tem, row, tem->tvs_params[0] - 1);
usr/src/boot/common/tem.c
1573
tem_setparam(tem, 1, 0);
usr/src/boot/common/tem.c
1574
tem_clear_tabs(tem, tem->tvs_params[0]);
usr/src/boot/common/tem.c
1579
tem_setparam(tem, 2, 1);
usr/src/boot/common/tem.c
1580
tem_mv_cursor(tem,
usr/src/boot/common/tem.c
1581
tem->tvs_params[0] - 1, tem->tvs_params[1] - 1);
usr/src/boot/common/tem.c
1589
tem_send_data(tem);
usr/src/boot/common/tem.c
1590
tem_setparam(tem, 1, 0);
usr/src/boot/common/tem.c
1591
switch (tem->tvs_params[0]) {
usr/src/boot/common/tem.c
1595
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1597
tem->tvs_c_cursor.col,
usr/src/boot/common/tem.c
1598
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
1599
tem->tvs_c_cursor.col);
usr/src/boot/common/tem.c
1602
for (row = tem->tvs_c_cursor.row + 1;
usr/src/boot/common/tem.c
1605
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1614
row < tem->tvs_c_cursor.row;
usr/src/boot/common/tem.c
1616
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1620
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1621
tem->tvs_c_cursor.col + 1,
usr/src/boot/common/tem.c
1622
tem->tvs_c_cursor.row, 0);
usr/src/boot/common/tem.c
163
static void bit_to_pix32(struct tem_vt_state *tem, tem_char_t c,
usr/src/boot/common/tem.c
1630
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1638
tem_send_data(tem);
usr/src/boot/common/tem.c
1639
tem_setparam(tem, 1, 0);
usr/src/boot/common/tem.c
1640
switch (tem->tvs_params[0]) {
usr/src/boot/common/tem.c
1643
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1645
tem->tvs_c_cursor.col),
usr/src/boot/common/tem.c
1646
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
1647
tem->tvs_c_cursor.col);
usr/src/boot/common/tem.c
1652
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1653
tem->tvs_c_cursor.col + 1,
usr/src/boot/common/tem.c
1654
tem->tvs_c_cursor.row, 0);
usr/src/boot/common/tem.c
1659
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1661
tem->tvs_c_cursor.row, 0);
usr/src/boot/common/tem.c
1667
tem_send_data(tem);
usr/src/boot/common/tem.c
1668
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1669
tem_scroll(tem,
usr/src/boot/common/tem.c
1670
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
1672
tem->tvs_params[0], TEM_SCROLL_DOWN);
usr/src/boot/common/tem.c
1676
tem_send_data(tem);
usr/src/boot/common/tem.c
1677
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1678
tem_scroll(tem,
usr/src/boot/common/tem.c
1679
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
1681
tem->tvs_params[0], TEM_SCROLL_UP);
usr/src/boot/common/tem.c
1685
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1686
tem_shift(tem, tem->tvs_params[0], TEM_SHIFT_LEFT);
usr/src/boot/common/tem.c
1690
tem_send_data(tem);
usr/src/boot/common/tem.c
1691
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1692
tem_scroll(tem, 0,
usr/src/boot/common/tem.c
1694
tem->tvs_params[0], TEM_SCROLL_UP);
usr/src/boot/common/tem.c
1698
tem_send_data(tem);
usr/src/boot/common/tem.c
1699
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1700
tem_scroll(tem, 0,
usr/src/boot/common/tem.c
1702
tem->tvs_params[0], TEM_SCROLL_DOWN);
usr/src/boot/common/tem.c
1706
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1707
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1708
tem->tvs_params[0],
usr/src/boot/common/tem.c
1709
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
1710
tem->tvs_c_cursor.col);
usr/src/boot/common/tem.c
1714
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1723
if (tem->tvs_params[0] > tems.ts_c_dimension.width)
usr/src/boot/common/tem.c
1724
tem->tvs_params[0] = tems.ts_c_dimension.width;
usr/src/boot/common/tem.c
1726
for (i = 0; i < tem->tvs_params[0]; i++)
usr/src/boot/common/tem.c
1727
tem_back_tab(tem);
usr/src/boot/common/tem.c
1730
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
1734
tem_chkparam_qmark(struct tem_vt_state *tem, tem_char_t ch)
usr/src/boot/common/tem.c
1738
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1739
switch (tem->tvs_params[0]) {
usr/src/boot/common/tem.c
1741
tem->tvs_stateflags |= TVS_AUTOWRAP;
usr/src/boot/common/tem.c
1751
tem_send_data(tem);
usr/src/boot/common/tem.c
1752
tem->tvs_cursor_hidden = false;
usr/src/boot/common/tem.c
1758
tem_setparam(tem, 1, 1);
usr/src/boot/common/tem.c
1759
switch (tem->tvs_params[0]) {
usr/src/boot/common/tem.c
1761
tem->tvs_stateflags &= ~TVS_AUTOWRAP;
usr/src/boot/common/tem.c
1771
tem_send_data(tem);
usr/src/boot/common/tem.c
1772
tem->tvs_cursor_hidden = true;
usr/src/boot/common/tem.c
1777
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
1784
tem_getparams(struct tem_vt_state *tem, uint8_t ch)
usr/src/boot/common/tem.c
1787
tem->tvs_paramval = ((tem->tvs_paramval * 10) + (ch - '0'));
usr/src/boot/common/tem.c
1788
tem->tvs_gotparam = true; /* Remember got parameter */
usr/src/boot/common/tem.c
1790
} else if (tem->tvs_state == A_STATE_CSI_EQUAL) {
usr/src/boot/common/tem.c
1791
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
1792
} else if (tem->tvs_state == A_STATE_CSI_QMARK) {
usr/src/boot/common/tem.c
1793
if (tem->tvs_curparam < TEM_MAXPARAMS) {
usr/src/boot/common/tem.c
1794
if (tem->tvs_gotparam) {
usr/src/boot/common/tem.c
1796
tem->tvs_params[tem->tvs_curparam] =
usr/src/boot/common/tem.c
1797
tem->tvs_paramval;
usr/src/boot/common/tem.c
1799
tem->tvs_curparam++;
usr/src/boot/common/tem.c
1803
tem->tvs_gotparam = false;
usr/src/boot/common/tem.c
1804
tem->tvs_paramval = 0; /* No parameter value yet */
usr/src/boot/common/tem.c
1807
tem_chkparam_qmark(tem, ch);
usr/src/boot/common/tem.c
1810
if (tem->tvs_curparam < TEM_MAXPARAMS) {
usr/src/boot/common/tem.c
1811
if (tem->tvs_gotparam) {
usr/src/boot/common/tem.c
1813
tem->tvs_params[tem->tvs_curparam] =
usr/src/boot/common/tem.c
1814
tem->tvs_paramval;
usr/src/boot/common/tem.c
1816
tem->tvs_curparam++;
usr/src/boot/common/tem.c
1821
tem->tvs_gotparam = false;
usr/src/boot/common/tem.c
1822
tem->tvs_paramval = 0; /* No parameter value yet */
usr/src/boot/common/tem.c
1825
tem_chkparam(tem, ch);
usr/src/boot/common/tem.c
1835
tem_outch(struct tem_vt_state *tem, tem_char_t ch)
usr/src/boot/common/tem.c
1842
if ((tem->tvs_stateflags & (TVS_AUTOWRAP | TVS_WRAPPED)) ==
usr/src/boot/common/tem.c
1844
tem_new_line(tem);
usr/src/boot/common/tem.c
1848
tem_get_attr(tem, &fg, &bg, &attr, TEM_ATTR_REVERSE);
usr/src/boot/common/tem.c
1849
tem->tvs_outbuf[tem->tvs_outindex].tc_char = ch | TEM_ATTR(attr);
usr/src/boot/common/tem.c
1850
tem->tvs_outbuf[tem->tvs_outindex].tc_fg_color = fg;
usr/src/boot/common/tem.c
1851
tem->tvs_outbuf[tem->tvs_outindex].tc_bg_color = bg;
usr/src/boot/common/tem.c
1852
tem->tvs_outindex++;
usr/src/boot/common/tem.c
1853
tem->tvs_c_cursor.col++;
usr/src/boot/common/tem.c
1854
if (tem->tvs_c_cursor.col >= tems.ts_c_dimension.width) {
usr/src/boot/common/tem.c
1855
tem->tvs_stateflags |= TVS_WRAPPED;
usr/src/boot/common/tem.c
1856
tem->tvs_c_cursor.col--;
usr/src/boot/common/tem.c
1857
tem_send_data(tem);
usr/src/boot/common/tem.c
1859
tem->tvs_stateflags &= ~TVS_WRAPPED;
usr/src/boot/common/tem.c
1864
tem_new_line(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
1866
tem_cr(tem);
usr/src/boot/common/tem.c
1867
tem_lf(tem);
usr/src/boot/common/tem.c
1871
tem_cr(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
1873
tem->tvs_c_cursor.col = 0;
usr/src/boot/common/tem.c
1874
tem->tvs_stateflags &= ~TVS_WRAPPED;
usr/src/boot/common/tem.c
1875
tem_align_cursor(tem);
usr/src/boot/common/tem.c
1879
tem_lf(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
1883
tem->tvs_stateflags &= ~TVS_WRAPPED;
usr/src/boot/common/tem.c
1890
row = tem->tvs_c_cursor.row + 1;
usr/src/boot/common/tem.c
1893
if (tem->tvs_nscroll != 0) {
usr/src/boot/common/tem.c
1894
tem_scroll(tem, 0,
usr/src/boot/common/tem.c
1896
tem->tvs_nscroll, TEM_SCROLL_UP);
usr/src/boot/common/tem.c
1898
tem->tvs_nscroll;
usr/src/boot/common/tem.c
1909
tem_mv_cursor(tem, row, tem->tvs_c_cursor.col);
usr/src/boot/common/tem.c
1911
if (tem->tvs_nscroll == 0) {
usr/src/boot/common/tem.c
1913
tem_clear_chars(tem,
usr/src/boot/common/tem.c
1915
tem->tvs_c_cursor.col,
usr/src/boot/common/tem.c
1916
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
1917
tem->tvs_c_cursor.col);
usr/src/boot/common/tem.c
1921
tem_align_cursor(tem);
usr/src/boot/common/tem.c
1925
tem_send_data(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
1927
if (tem->tvs_outindex == 0) {
usr/src/boot/common/tem.c
1928
tem_align_cursor(tem);
usr/src/boot/common/tem.c
193
tem_add(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
1932
tem_virtual_display(tem, tem->tvs_outbuf, tem->tvs_outindex,
usr/src/boot/common/tem.c
1933
tem->tvs_s_cursor.row, tem->tvs_s_cursor.col);
usr/src/boot/common/tem.c
1935
if (tem->tvs_isactive) {
usr/src/boot/common/tem.c
1939
tem_callback_display(tem,
usr/src/boot/common/tem.c
1940
tem->tvs_outbuf, tem->tvs_outindex,
usr/src/boot/common/tem.c
1941
tem->tvs_s_cursor.row, tem->tvs_s_cursor.col);
usr/src/boot/common/tem.c
1944
tem->tvs_outindex = 0;
usr/src/boot/common/tem.c
1946
tem_align_cursor(tem);
usr/src/boot/common/tem.c
195
list_insert_head(&tems.ts_list, tem);
usr/src/boot/common/tem.c
1956
tem_align_cursor(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
1958
tem->tvs_s_cursor.row = tem->tvs_c_cursor.row;
usr/src/boot/common/tem.c
1959
tem->tvs_s_cursor.col = tem->tvs_c_cursor.col;
usr/src/boot/common/tem.c
1968
tem_parse(struct tem_vt_state *tem, tem_char_t ch)
usr/src/boot/common/tem.c
1972
if (tem->tvs_state == A_STATE_START) { /* Normal state? */
usr/src/boot/common/tem.c
1975
tem_control(tem, ch);
usr/src/boot/common/tem.c
1978
tem_outch(tem, ch);
usr/src/boot/common/tem.c
1984
if (tem->tvs_state != A_STATE_ESC) { /* Need to get parameters? */
usr/src/boot/common/tem.c
1985
if (tem->tvs_state != A_STATE_CSI) {
usr/src/boot/common/tem.c
1986
tem_getparams(tem, ch);
usr/src/boot/common/tem.c
1992
tem->tvs_state = A_STATE_CSI_QMARK;
usr/src/boot/common/tem.c
1995
tem->tvs_state = A_STATE_CSI_EQUAL;
usr/src/boot/common/tem.c
2019
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
2022
tem_mv_cursor(tem, tem->tvs_r_cursor.row,
usr/src/boot/common/tem.c
2023
tem->tvs_r_cursor.col);
usr/src/boot/common/tem.c
2024
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
2027
tem_send_data(tem);
usr/src/boot/common/tem.c
2032
if (tem->tvs_flags & TEM_ATTR_SCREEN_REVERSE) {
usr/src/boot/common/tem.c
2033
tem->tvs_flags &= ~TEM_ATTR_SCREEN_REVERSE;
usr/src/boot/common/tem.c
2039
if (tem->tvs_flags & TEM_ATTR_REVERSE)
usr/src/boot/common/tem.c
2040
tem->tvs_flags &= ~TEM_ATTR_REVERSE;
usr/src/boot/common/tem.c
2042
tem->tvs_flags |= TEM_ATTR_REVERSE;
usr/src/boot/common/tem.c
2044
tem_cls(tem);
usr/src/boot/common/tem.c
2045
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
2048
tem_send_data(tem);
usr/src/boot/common/tem.c
205
struct tem_vt_state *tem = (struct tem_vt_state *)tem_arg;
usr/src/boot/common/tem.c
2053
if (!(tem->tvs_flags & TEM_ATTR_SCREEN_REVERSE)) {
usr/src/boot/common/tem.c
2054
tem->tvs_flags |= TEM_ATTR_SCREEN_REVERSE;
usr/src/boot/common/tem.c
2060
if (!(tem->tvs_flags & TEM_ATTR_REVERSE))
usr/src/boot/common/tem.c
2061
tem->tvs_flags |= TEM_ATTR_REVERSE;
usr/src/boot/common/tem.c
2063
tem->tvs_flags &= ~TEM_ATTR_REVERSE;
usr/src/boot/common/tem.c
2066
tem_cls(tem);
usr/src/boot/common/tem.c
2067
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
207
if (tems.ts_initialized == 0 || tem->tvs_initialized == 0) {
usr/src/boot/common/tem.c
2073
tem->tvs_nscroll = tem->tvs_paramval;
usr/src/boot/common/tem.c
2074
if (tem->tvs_nscroll > tems.ts_c_dimension.height)
usr/src/boot/common/tem.c
2075
tem->tvs_nscroll = tems.ts_c_dimension.height;
usr/src/boot/common/tem.c
2076
if (tem->tvs_nscroll < 0)
usr/src/boot/common/tem.c
2077
tem->tvs_nscroll = 1;
usr/src/boot/common/tem.c
2078
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
2081
tem_getparams(tem, ch);
usr/src/boot/common/tem.c
2088
tem->tvs_curparam = 0;
usr/src/boot/common/tem.c
2089
tem->tvs_paramval = 0;
usr/src/boot/common/tem.c
2090
tem->tvs_gotparam = false;
usr/src/boot/common/tem.c
2093
tem->tvs_params[i] = -1;
usr/src/boot/common/tem.c
2094
tem->tvs_state = A_STATE_CSI;
usr/src/boot/common/tem.c
2096
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
2098
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
2100
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
2103
tem_reset_display(tem, true, true);
usr/src/boot/common/tem.c
2106
tem_set_tab(tem);
usr/src/boot/common/tem.c
2109
tem->tvs_r_cursor.row = tem->tvs_c_cursor.row;
usr/src/boot/common/tem.c
211
tem_check_first_time(tem);
usr/src/boot/common/tem.c
2110
tem->tvs_r_cursor.col = tem->tvs_c_cursor.col;
usr/src/boot/common/tem.c
2113
tem_mv_cursor(tem, tem->tvs_r_cursor.row,
usr/src/boot/common/tem.c
2114
tem->tvs_r_cursor.col);
usr/src/boot/common/tem.c
2117
tem_control(tem, ch);
usr/src/boot/common/tem.c
2119
tem_outch(tem, ch);
usr/src/boot/common/tem.c
212
tem_terminal_emulate(tem, buf, len);
usr/src/boot/common/tem.c
2126
tem_bell(struct tem_vt_state *tem __unused)
usr/src/boot/common/tem.c
2133
tem_scroll(struct tem_vt_state *tem, int start, int end, int count,
usr/src/boot/common/tem.c
2148
tem_copy_area(tem, 0, start + count,
usr/src/boot/common/tem.c
2152
tem_clear_chars(tem, tems.ts_c_dimension.width, row, 0);
usr/src/boot/common/tem.c
2158
tem_copy_area(tem, 0, start,
usr/src/boot/common/tem.c
2163
tem_clear_chars(tem, tems.ts_c_dimension.width, row, 0);
usr/src/boot/common/tem.c
2195
tem_copy_area(struct tem_vt_state *tem,
usr/src/boot/common/tem.c
2225
if (tem->tvs_screen_buf == NULL) {
usr/src/boot/common/tem.c
2226
if (tem->tvs_isactive) {
usr/src/boot/common/tem.c
2227
tem_callback_copy(tem, s_col, s_row,
usr/src/boot/common/tem.c
2235
src = tem->tvs_screen_buf + soffset;
usr/src/boot/common/tem.c
2236
dst = tem->tvs_screen_buf + toffset;
usr/src/boot/common/tem.c
2251
if (tem->tvs_isactive) {
usr/src/boot/common/tem.c
2252
tem_callback_copy(tem, s_col, s_row + i,
usr/src/boot/common/tem.c
2266
if (tem->tvs_isactive) {
usr/src/boot/common/tem.c
2267
tem_callback_copy(tem, s_col, s_row + i,
usr/src/boot/common/tem.c
2276
tem_clear_chars(struct tem_vt_state *tem, int count, screen_pos_t row,
usr/src/boot/common/tem.c
2292
tem_virtual_cls(tem, count, row, col);
usr/src/boot/common/tem.c
2294
if (!tem->tvs_isactive)
usr/src/boot/common/tem.c
2297
tem_callback_cls(tem, count, row, col);
usr/src/boot/common/tem.c
2301
tem_text_display(struct tem_vt_state *tem __unused, term_char_t *string,
usr/src/boot/common/tem.c
2318
tem_get_color(tem, &fg, &bg, &string[i]);
usr/src/boot/common/tem.c
2332
tem_image_display(struct tem_vt_state *tem, screen_pos_t s_row,
usr/src/boot/common/tem.c
2342
tem_virtual_display(tem, &c, 1, i, j);
usr/src/boot/common/tem.c
2349
tem_text_copy(struct tem_vt_state *tem __unused,
usr/src/boot/common/tem.c
2366
tem_text_cls(struct tem_vt_state *tem,
usr/src/boot/common/tem.c
2373
tem_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/boot/common/tem.c
2382
tem_text_display(tem, &c, 1, row, col++);
usr/src/boot/common/tem.c
2387
tem_pix_display(struct tem_vt_state *tem,
usr/src/boot/common/tem.c
2394
da.data = (uint8_t *)tem->tvs_pix_data;
usr/src/boot/common/tem.c
2401
tem_callback_bit2pix(tem, &string[i]);
usr/src/boot/common/tem.c
2408
tem_pix_copy(struct tem_vt_state *tem,
usr/src/boot/common/tem.c
2416
if (need_clear && tem->tvs_first_line > 0) {
usr/src/boot/common/tem.c
2425
tem_pix_clear_prom_output(tem);
usr/src/boot/common/tem.c
2438
if (tem->tvs_first_line > 0 && t_row < s_row && t_col == 0 &&
usr/src/boot/common/tem.c
2457
if (tem->tvs_first_line > 0 && t_row < s_row) {
usr/src/boot/common/tem.c
2459
tem->tvs_first_line -= (s_row - t_row);
usr/src/boot/common/tem.c
2460
if (tem->tvs_first_line <= 0) {
usr/src/boot/common/tem.c
2462
tem->tvs_first_line = 0;
usr/src/boot/common/tem.c
2468
tem_pix_bit2pix(struct tem_vt_state *tem, term_char_t *c)
usr/src/boot/common/tem.c
2472
tem_get_color(tem, &fg, &bg, c);
usr/src/boot/common/tem.c
2473
bit_to_pix32(tem, c->tc_char, fg, bg);
usr/src/boot/common/tem.c
2481
tem_pix_cls(struct tem_vt_state *tem, int count,
usr/src/boot/common/tem.c
2484
tem_pix_cls_range(tem, row, 1, tems.ts_p_offset.y,
usr/src/boot/common/tem.c
2512
tem_pix_clear_prom_output(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
2524
tem_pix_cls_range(tem, 0, nrows, offset, 0, ncols, 0, false);
usr/src/boot/common/tem.c
2531
tem_cls(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
2541
tem_virtual_cls(tem, tems.ts_c_dimension.width, row, 0);
usr/src/boot/common/tem.c
2544
if (!tem->tvs_isactive)
usr/src/boot/common/tem.c
2547
tem_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/boot/common/tem.c
2551
tem_get_color(tem, &fg_color, &bg_color, &c);
usr/src/boot/common/tem.c
2555
tem->tvs_c_cursor.row = 0;
usr/src/boot/common/tem.c
2556
tem->tvs_c_cursor.col = 0;
usr/src/boot/common/tem.c
2557
tem_align_cursor(tem);
usr/src/boot/common/tem.c
2561
tem_back_tab(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
2568
for (i = tem->tvs_ntabs - 1; i >= 0; i--) {
usr/src/boot/common/tem.c
2569
if (tem->tvs_tabs[i] < tem->tvs_c_cursor.col) {
usr/src/boot/common/tem.c
2570
tabstop = tem->tvs_tabs[i];
usr/src/boot/common/tem.c
2575
tem_mv_cursor(tem, tem->tvs_c_cursor.row, tabstop);
usr/src/boot/common/tem.c
2579
tem_tab(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
2586
for (i = 0; i < tem->tvs_ntabs; i++) {
usr/src/boot/common/tem.c
2587
if (tem->tvs_tabs[i] > tem->tvs_c_cursor.col) {
usr/src/boot/common/tem.c
2588
tabstop = tem->tvs_tabs[i];
usr/src/boot/common/tem.c
2593
tem_mv_cursor(tem, tem->tvs_c_cursor.row, tabstop);
usr/src/boot/common/tem.c
2597
tem_set_tab(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
2601
if (tem->tvs_ntabs == tem->tvs_maxtab)
usr/src/boot/common/tem.c
2603
if (tem->tvs_ntabs == 0 ||
usr/src/boot/common/tem.c
2604
tem->tvs_tabs[tem->tvs_ntabs] < tem->tvs_c_cursor.col) {
usr/src/boot/common/tem.c
2605
tem->tvs_tabs[tem->tvs_ntabs++] = tem->tvs_c_cursor.col;
usr/src/boot/common/tem.c
2608
for (i = 0; i < tem->tvs_ntabs; i++) {
usr/src/boot/common/tem.c
2609
if (tem->tvs_tabs[i] == tem->tvs_c_cursor.col)
usr/src/boot/common/tem.c
2611
if (tem->tvs_tabs[i] > tem->tvs_c_cursor.col) {
usr/src/boot/common/tem.c
2612
for (j = tem->tvs_ntabs - 1; j >= i; j--)
usr/src/boot/common/tem.c
2613
tem->tvs_tabs[j+ 1] = tem->tvs_tabs[j];
usr/src/boot/common/tem.c
2614
tem->tvs_tabs[i] = tem->tvs_c_cursor.col;
usr/src/boot/common/tem.c
2615
tem->tvs_ntabs++;
usr/src/boot/common/tem.c
2622
tem_clear_tabs(struct tem_vt_state *tem, int action)
usr/src/boot/common/tem.c
2628
tem->tvs_ntabs = 0;
usr/src/boot/common/tem.c
2632
for (i = 0; i < tem->tvs_ntabs; i++) {
usr/src/boot/common/tem.c
2633
if (tem->tvs_tabs[i] == tem->tvs_c_cursor.col) {
usr/src/boot/common/tem.c
2634
tem->tvs_ntabs--;
usr/src/boot/common/tem.c
2635
for (j = i; j < tem->tvs_ntabs; j++)
usr/src/boot/common/tem.c
2636
tem->tvs_tabs[j] = tem->tvs_tabs[j + 1];
usr/src/boot/common/tem.c
2645
tem_mv_cursor(struct tem_vt_state *tem, int row, int col)
usr/src/boot/common/tem.c
2659
tem->tvs_stateflags |= TVS_WRAPPED;
usr/src/boot/common/tem.c
2662
tem->tvs_stateflags &= ~TVS_WRAPPED;
usr/src/boot/common/tem.c
2665
tem_send_data(tem);
usr/src/boot/common/tem.c
2666
tem->tvs_c_cursor.row = (screen_pos_t)row;
usr/src/boot/common/tem.c
2667
tem->tvs_c_cursor.col = (screen_pos_t)col;
usr/src/boot/common/tem.c
2668
tem_align_cursor(tem);
usr/src/boot/common/tem.c
2673
tem_reset_emulator(struct tem_vt_state *tem, bool init_color)
usr/src/boot/common/tem.c
2677
tem->tvs_c_cursor.row = 0;
usr/src/boot/common/tem.c
2678
tem->tvs_c_cursor.col = 0;
usr/src/boot/common/tem.c
2679
tem->tvs_r_cursor.row = 0;
usr/src/boot/common/tem.c
2680
tem->tvs_r_cursor.col = 0;
usr/src/boot/common/tem.c
2681
tem->tvs_s_cursor.row = 0;
usr/src/boot/common/tem.c
2682
tem->tvs_s_cursor.col = 0;
usr/src/boot/common/tem.c
2683
tem->tvs_outindex = 0;
usr/src/boot/common/tem.c
2684
tem->tvs_state = A_STATE_START;
usr/src/boot/common/tem.c
2685
tem->tvs_gotparam = false;
usr/src/boot/common/tem.c
2686
tem->tvs_curparam = 0;
usr/src/boot/common/tem.c
2687
tem->tvs_paramval = 0;
usr/src/boot/common/tem.c
2688
tem->tvs_nscroll = 1;
usr/src/boot/common/tem.c
2692
tem->tvs_alpha = 0xff;
usr/src/boot/common/tem.c
2693
tem->tvs_fg_color = tems.ts_init_color.fg_color;
usr/src/boot/common/tem.c
2694
tem->tvs_bg_color = tems.ts_init_color.bg_color;
usr/src/boot/common/tem.c
2695
tem->tvs_flags = tems.ts_init_color.a_flags;
usr/src/boot/common/tem.c
2701
tem->tvs_ntabs = 0;
usr/src/boot/common/tem.c
2703
tem->tvs_tabs[tem->tvs_ntabs++] = (screen_pos_t)j;
usr/src/boot/common/tem.c
2706
tem->tvs_params[j] = 0;
usr/src/boot/common/tem.c
2710
tem_reset_display(struct tem_vt_state *tem, bool clear_txt, bool init_color)
usr/src/boot/common/tem.c
2712
tem_reset_emulator(tem, init_color);
usr/src/boot/common/tem.c
2715
if (tem->tvs_isactive)
usr/src/boot/common/tem.c
2716
tem_callback_cursor(tem, VIS_HIDE_CURSOR);
usr/src/boot/common/tem.c
2718
tem_cls(tem);
usr/src/boot/common/tem.c
2720
if (tem->tvs_isactive)
usr/src/boot/common/tem.c
2721
tem_callback_cursor(tem, VIS_DISPLAY_CURSOR);
usr/src/boot/common/tem.c
2726
tem_shift(struct tem_vt_state *tem, int count, int direction)
usr/src/boot/common/tem.c
2730
rest_of_line = tems.ts_c_dimension.width - tem->tvs_c_cursor.col;
usr/src/boot/common/tem.c
2740
tem_copy_area(tem,
usr/src/boot/common/tem.c
2741
tem->tvs_c_cursor.col + count,
usr/src/boot/common/tem.c
2742
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
2744
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
2745
tem->tvs_c_cursor.col,
usr/src/boot/common/tem.c
2746
tem->tvs_c_cursor.row);
usr/src/boot/common/tem.c
2749
tem_clear_chars(tem, count, tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
2754
tem_copy_area(tem,
usr/src/boot/common/tem.c
2755
tem->tvs_c_cursor.col,
usr/src/boot/common/tem.c
2756
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
2758
tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
2759
tem->tvs_c_cursor.col + count,
usr/src/boot/common/tem.c
2760
tem->tvs_c_cursor.row);
usr/src/boot/common/tem.c
2763
tem_clear_chars(tem, count, tem->tvs_c_cursor.row,
usr/src/boot/common/tem.c
2764
tem->tvs_c_cursor.col);
usr/src/boot/common/tem.c
2770
tem_text_cursor(struct tem_vt_state *tem, short action)
usr/src/boot/common/tem.c
2774
ca.row = tem->tvs_c_cursor.row;
usr/src/boot/common/tem.c
2775
ca.col = tem->tvs_c_cursor.col;
usr/src/boot/common/tem.c
2781
tem->tvs_c_cursor.row = ca.row;
usr/src/boot/common/tem.c
2782
tem->tvs_c_cursor.col = ca.col;
usr/src/boot/common/tem.c
2787
tem_pix_cursor(struct tem_vt_state *tem, short action)
usr/src/boot/common/tem.c
2794
ca.row = tem->tvs_c_cursor.row * tems.ts_font.vf_height +
usr/src/boot/common/tem.c
2796
ca.col = tem->tvs_c_cursor.col * tems.ts_font.vf_width +
usr/src/boot/common/tem.c
2801
tem_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/boot/common/tem.c
2805
tem_get_color(tem, &fg, &bg, &c);
usr/src/boot/common/tem.c
2814
tem->tvs_c_cursor.row = 0;
usr/src/boot/common/tem.c
2815
tem->tvs_c_cursor.col = 0;
usr/src/boot/common/tem.c
2818
tem->tvs_c_cursor.row = (ca.row - tems.ts_p_offset.y) /
usr/src/boot/common/tem.c
2822
tem->tvs_c_cursor.col = (ca.col - tems.ts_p_offset.x) /
usr/src/boot/common/tem.c
2829
bit_to_pix32(struct tem_vt_state *tem,
usr/src/boot/common/tem.c
2834
dest = (uint32_t *)tem->tvs_pix_data;
usr/src/boot/common/tem.c
2842
tem_get_attr(struct tem_vt_state *tem, text_color_t *fg,
usr/src/boot/common/tem.c
2845
if (tem->tvs_flags & flag) {
usr/src/boot/common/tem.c
2846
*fg = tem->tvs_bg_color;
usr/src/boot/common/tem.c
2847
*bg = tem->tvs_fg_color;
usr/src/boot/common/tem.c
2849
*fg = tem->tvs_fg_color;
usr/src/boot/common/tem.c
2850
*bg = tem->tvs_bg_color;
usr/src/boot/common/tem.c
2854
*attr = tem->tvs_flags;
usr/src/boot/common/tem.c
2858
tem_get_color(struct tem_vt_state *tem, text_color_t *fg, text_color_t *bg,
usr/src/boot/common/tem.c
2901
fg->n = rgb_color_map(&rgb_info, fg->n, tem->tvs_alpha);
usr/src/boot/common/tem.c
2908
bg->n = rgb_color_map(&rgb_info, bg->n, tem->tvs_alpha);
usr/src/boot/common/tem.c
2929
struct tem_vt_state *tem = (struct tem_vt_state *)tem_arg;
usr/src/boot/common/tem.c
2933
tem_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/boot/common/tem.c
2936
tem_get_color(tem, fg, bg, &c);
usr/src/boot/common/tem.c
2953
tem_pix_cls_range(struct tem_vt_state *tem,
usr/src/boot/common/tem.c
2970
tem_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/boot/common/tem.c
2975
tem_callback_bit2pix(tem, &c);
usr/src/boot/common/tem.c
2976
da.data = (uint8_t *)tem->tvs_pix_data;
usr/src/boot/common/tem.c
2992
tem_virtual_display(struct tem_vt_state *tem, term_char_t *string,
usr/src/boot/common/tem.c
2998
if (tem->tvs_screen_buf == NULL)
usr/src/boot/common/tem.c
3007
addr = tem->tvs_screen_buf + (row * width + col);
usr/src/boot/common/tem.c
3014
tem_virtual_cls(struct tem_vt_state *tem, size_t count,
usr/src/boot/common/tem.c
302
tem_reinit(struct tem_vt_state *tem, bool reset_display)
usr/src/boot/common/tem.c
3020
tem_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/boot/common/tem.c
3026
tem_virtual_display(tem, &c, 1, row, col);
usr/src/boot/common/tem.c
304
tem_free_buf(tem); /* only free virtual buffers */
usr/src/boot/common/tem.c
307
tem_internal_init(tem, false, reset_display);
usr/src/boot/common/tem.c
311
tem_free_buf(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
313
free(tem->tvs_outbuf);
usr/src/boot/common/tem.c
314
tem->tvs_outbuf = NULL;
usr/src/boot/common/tem.c
316
free(tem->tvs_pix_data);
usr/src/boot/common/tem.c
317
tem->tvs_pix_data = NULL;
usr/src/boot/common/tem.c
319
free(tem->tvs_screen_buf);
usr/src/boot/common/tem.c
320
tem->tvs_screen_buf = NULL;
usr/src/boot/common/tem.c
322
free(tem->tvs_tabs);
usr/src/boot/common/tem.c
323
tem->tvs_tabs = NULL;
usr/src/boot/common/tem.c
772
tem_prom_scroll_up(struct tem_vt_state *tem, int nrows)
usr/src/boot/common/tem.c
792
tem_pix_cls_range(tem, 0, nrows, tems.ts_p_offset.y,
usr/src/boot/common/tem.c
801
tem_adjust_row(struct tem_vt_state *tem, int prom_row)
usr/src/boot/common/tem.c
827
tem_prom_scroll_up(tem, scroll_up_lines);
usr/src/boot/common/tem.c
835
tem_pix_align(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
855
row = tem_adjust_row(tem, row);
usr/src/boot/common/tem.c
858
tem->tvs_first_line = row + 1;
usr/src/boot/common/tem.c
861
tem->tvs_s_cursor.row = tem->tvs_c_cursor.row =
usr/src/boot/common/tem.c
863
tem->tvs_s_cursor.col = tem->tvs_c_cursor.col = 0;
usr/src/boot/common/tem.c
865
tem_reset_display(tem, true, true);
usr/src/boot/common/tem.c
931
struct tem_vt_state *tem = (struct tem_vt_state *)tem_arg;
usr/src/boot/common/tem.c
933
tems.ts_active = tem;
usr/src/boot/common/tem.c
934
tem->tvs_isactive = true;
usr/src/boot/common/tem.c
936
tem_kdsetmode(tem->tvs_fbmode);
usr/src/boot/common/tem.c
939
tem_cls(tem);
usr/src/boot/common/tem.c
943
tem_check_first_time(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
958
tem_text_cursor(tem, VIS_GET_CURSOR);
usr/src/boot/common/tem.c
960
tem_pix_cursor(tem, VIS_GET_CURSOR);
usr/src/boot/common/tem.c
961
tem_align_cursor(tem);
usr/src/boot/common/tem.c
966
tem_input_partial(struct tem_vt_state *tem)
usr/src/boot/common/tem.c
971
if (tem->tvs_utf8_left == 0)
usr/src/boot/common/tem.c
974
for (i = 0; i < sizeof (tem->tvs_utf8_partial); i++) {
usr/src/boot/common/tem.c
975
c = (tem->tvs_utf8_partial >> (24 - (i << 3))) & 0xff;
usr/src/boot/common/tem.c
977
tem_parse(tem, c);
usr/src/boot/common/tem.c
980
tem->tvs_utf8_left = 0;
usr/src/boot/common/tem.c
981
tem->tvs_utf8_partial = 0;
usr/src/boot/common/tem.c
988
tem_input_byte(struct tem_vt_state *tem, uint8_t c)
usr/src/boot/common/tem.c
998
tem_input_partial(tem);
usr/src/boot/common/tem.c
999
tem_parse(tem, c);
usr/src/boot/efi/libefi/efi_console.c
556
if (tem != NULL)
usr/src/boot/efi/libefi/efi_console.c
598
if (tem_info_init(cp) == 0 && tem == NULL) {
usr/src/boot/efi/libefi/efi_console.c
599
tem = tem_init();
usr/src/boot/efi/libefi/efi_console.c
600
if (tem != NULL)
usr/src/boot/efi/libefi/efi_console.c
601
tem_activate(tem, B_TRUE);
usr/src/boot/efi/libefi/efi_console.c
604
if (tem == NULL)
usr/src/boot/efi/libefi/efi_console.c
616
if (tem == NULL)
usr/src/boot/efi/libefi/efi_console.c
619
tem_write(tem, &buf, sizeof (buf));
usr/src/boot/efi/libefi/efi_console.c
69
static tem_vt_state_t tem;
usr/src/boot/i386/libi386/vidconsole.c
185
if (tem == NULL) /* tem is not set up */
usr/src/boot/i386/libi386/vidconsole.c
80
static tem_vt_state_t tem;
usr/src/boot/i386/libi386/vidconsole.c
883
if (rc == 0 && tem == NULL) {
usr/src/boot/i386/libi386/vidconsole.c
884
tem = tem_init();
usr/src/boot/i386/libi386/vidconsole.c
885
if (tem != NULL)
usr/src/boot/i386/libi386/vidconsole.c
886
tem_activate(tem, true);
usr/src/boot/i386/libi386/vidconsole.c
911
if (tem == NULL)
usr/src/boot/i386/libi386/vidconsole.c
914
tem_write(tem, &buf, sizeof (buf));
usr/src/grub/grub-0.97/lib/getopt.c
314
char *tem;
usr/src/grub/grub-0.97/lib/getopt.c
354
tem = argv[bottom + i];
usr/src/grub/grub-0.97/lib/getopt.c
356
argv[top - (middle - bottom) + i] = tem;
usr/src/grub/grub-0.97/lib/getopt.c
371
tem = argv[bottom + i];
usr/src/grub/grub-0.97/lib/getopt.c
373
argv[middle + i] = tem;
usr/src/uts/common/io/tem.c
1031
struct tem_vt_state *tem = (struct tem_vt_state *)tem_arg;
usr/src/uts/common/io/tem.c
1035
mutex_enter(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
1036
fbmode = tem->tvs_fbmode;
usr/src/uts/common/io/tem.c
1037
mutex_exit(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
1045
struct tem_vt_state *tem = (struct tem_vt_state *)tem_arg;
usr/src/uts/common/io/tem.c
1048
mutex_enter(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
1050
if (fbmode == tem->tvs_fbmode) {
usr/src/uts/common/io/tem.c
1051
mutex_exit(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
1056
tem->tvs_fbmode = fbmode;
usr/src/uts/common/io/tem.c
1058
if (tem->tvs_isactive) {
usr/src/uts/common/io/tem.c
1059
tem_kdsetmode(tem->tvs_fbmode, credp);
usr/src/uts/common/io/tem.c
1061
tem_safe_unblank_screen(tem, credp, CALLED_FROM_NORMAL);
usr/src/uts/common/io/tem.c
1064
mutex_exit(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
1071
struct tem_vt_state *tem = (struct tem_vt_state *)tem_arg;
usr/src/uts/common/io/tem.c
1074
tems.ts_active = tem;
usr/src/uts/common/io/tem.c
1076
mutex_enter(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
1077
tem->tvs_isactive = B_TRUE;
usr/src/uts/common/io/tem.c
1079
tem_kdsetmode(tem->tvs_fbmode, credp);
usr/src/uts/common/io/tem.c
1082
tem_safe_unblank_screen(tem, credp, CALLED_FROM_NORMAL);
usr/src/uts/common/io/tem.c
1084
mutex_exit(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
168
tem_add(struct tem_vt_state *tem)
usr/src/uts/common/io/tem.c
170
ASSERT(MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem.c
172
list_insert_head(&tems.ts_list, tem);
usr/src/uts/common/io/tem.c
176
tem_rm(struct tem_vt_state *tem)
usr/src/uts/common/io/tem.c
178
ASSERT(MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem.c
180
list_remove(&tems.ts_list, tem);
usr/src/uts/common/io/tem.c
190
struct tem_vt_state *tem = (struct tem_vt_state *)tem_arg;
usr/src/uts/common/io/tem.c
193
mutex_enter(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
195
if (!tem->tvs_initialized) {
usr/src/uts/common/io/tem.c
196
mutex_exit(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
201
tem_safe_check_first_time(tem, credp, CALLED_FROM_NORMAL);
usr/src/uts/common/io/tem.c
202
tem_safe_terminal_emulate(tem, buf, len, credp, CALLED_FROM_NORMAL);
usr/src/uts/common/io/tem.c
204
mutex_exit(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
325
tem_reinit(struct tem_vt_state *tem, boolean_t reset_display)
usr/src/uts/common/io/tem.c
327
ASSERT(MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem.c
329
tem_free_buf(tem); /* only free virtual buffers */
usr/src/uts/common/io/tem.c
332
tem_internal_init(tem, kcred, B_FALSE, reset_display);
usr/src/uts/common/io/tem.c
336
tem_free_buf(struct tem_vt_state *tem)
usr/src/uts/common/io/tem.c
338
ASSERT(tem != NULL && MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem.c
340
if (tem->tvs_outbuf != NULL)
usr/src/uts/common/io/tem.c
341
kmem_free(tem->tvs_outbuf, tem->tvs_outbuf_size);
usr/src/uts/common/io/tem.c
342
if (tem->tvs_pix_data != NULL)
usr/src/uts/common/io/tem.c
343
kmem_free(tem->tvs_pix_data, tem->tvs_pix_data_size);
usr/src/uts/common/io/tem.c
344
if (tem->tvs_screen_buf != NULL)
usr/src/uts/common/io/tem.c
345
kmem_free(tem->tvs_screen_buf, tem->tvs_screen_buf_size);
usr/src/uts/common/io/tem.c
346
if (tem->tvs_screen_rows != NULL) {
usr/src/uts/common/io/tem.c
347
kmem_free(tem->tvs_screen_rows, tem->tvs_screen_history_size *
usr/src/uts/common/io/tem.c
350
if (tem->tvs_tabs != NULL) {
usr/src/uts/common/io/tem.c
351
kmem_free(tem->tvs_tabs, tem->tvs_maxtab *
usr/src/uts/common/io/tem.c
352
sizeof (*tem->tvs_tabs));
usr/src/uts/common/io/tem.c
359
struct tem_vt_state *tem = (struct tem_vt_state *)tem_arg;
usr/src/uts/common/io/tem.c
362
mutex_enter(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
364
if (tem->tvs_isactive && tem->tvs_fbmode == KD_TEXT)
usr/src/uts/common/io/tem.c
365
tem_safe_blank_screen(tem, credp, CALLED_FROM_NORMAL);
usr/src/uts/common/io/tem.c
367
tem_free_buf(tem);
usr/src/uts/common/io/tem.c
368
tem_rm(tem);
usr/src/uts/common/io/tem.c
370
if (tems.ts_active == tem)
usr/src/uts/common/io/tem.c
373
mutex_exit(&tem->tvs_lock);
usr/src/uts/common/io/tem.c
376
kmem_free(tem, sizeof (struct tem_vt_state));
usr/src/uts/common/io/tem.c
832
tem_prom_scroll_up(struct tem_vt_state *tem, int nrows, cred_t *credp,
usr/src/uts/common/io/tem.c
853
tem_safe_pix_cls_range(tem, 0, nrows, tems.ts_p_offset.y,
usr/src/uts/common/io/tem.c
865
tem_adjust_row(struct tem_vt_state *tem, int prom_row, cred_t *credp,
usr/src/uts/common/io/tem.c
897
tem_prom_scroll_up(tem, scroll_up_lines, credp, called_from);
usr/src/uts/common/io/tem.c
905
tem_align(struct tem_vt_state *tem, cred_t *credp,
usr/src/uts/common/io/tem.c
925
row = tem_adjust_row(tem, row, credp, called_from);
usr/src/uts/common/io/tem.c
928
tem->tvs_first_line = row + 1;
usr/src/uts/common/io/tem.c
931
tem->tvs_s_cursor.row = tem->tvs_c_cursor.row =
usr/src/uts/common/io/tem.c
933
tem->tvs_s_cursor.col = tem->tvs_c_cursor.col = 0;
usr/src/uts/common/io/tem.c
943
tem->tvs_screen_rows[row][col].tc_char =
usr/src/uts/common/io/tem_safe.c
1007
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1008
tem_safe_setparam(tem, 1, 0);
usr/src/uts/common/io/tem_safe.c
1009
switch (tem->tvs_params[0]) {
usr/src/uts/common/io/tem_safe.c
1013
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1015
tem->tvs_c_cursor.col,
usr/src/uts/common/io/tem_safe.c
1016
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
1017
tem->tvs_c_cursor.col, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1020
for (row = tem->tvs_c_cursor.row + 1;
usr/src/uts/common/io/tem_safe.c
1023
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1033
row < tem->tvs_c_cursor.row;
usr/src/uts/common/io/tem_safe.c
1035
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1040
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1041
tem->tvs_c_cursor.col + 1,
usr/src/uts/common/io/tem_safe.c
1042
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
1051
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1060
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1061
tem_safe_setparam(tem, 1, 0);
usr/src/uts/common/io/tem_safe.c
1062
switch (tem->tvs_params[0]) {
usr/src/uts/common/io/tem_safe.c
1065
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1067
tem->tvs_c_cursor.col),
usr/src/uts/common/io/tem_safe.c
1068
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
1069
tem->tvs_c_cursor.col,
usr/src/uts/common/io/tem_safe.c
1075
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1076
tem->tvs_c_cursor.col + 1,
usr/src/uts/common/io/tem_safe.c
1077
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
1083
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1085
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
1092
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1093
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
1094
tem_safe_scroll(tem,
usr/src/uts/common/io/tem_safe.c
1095
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
1097
tem->tvs_params[0], TEM_SCROLL_DOWN,
usr/src/uts/common/io/tem_safe.c
1102
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1103
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
1104
tem_safe_scroll(tem,
usr/src/uts/common/io/tem_safe.c
1105
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
1107
tem->tvs_params[0], TEM_SCROLL_UP,
usr/src/uts/common/io/tem_safe.c
1112
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
1113
tem_safe_shift(tem, tem->tvs_params[0], TEM_SHIFT_LEFT,
usr/src/uts/common/io/tem_safe.c
1118
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1119
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
1120
tem_safe_scroll(tem, 0,
usr/src/uts/common/io/tem_safe.c
1122
tem->tvs_params[0], TEM_SCROLL_UP,
usr/src/uts/common/io/tem_safe.c
1127
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1128
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
1129
tem_safe_scroll(tem, 0,
usr/src/uts/common/io/tem_safe.c
1131
tem->tvs_params[0], TEM_SCROLL_DOWN,
usr/src/uts/common/io/tem_safe.c
1136
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1137
tem_safe_window(tem, called_from);
usr/src/uts/common/io/tem_safe.c
1141
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
1142
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1143
tem->tvs_params[0],
usr/src/uts/common/io/tem_safe.c
1144
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
1145
tem->tvs_c_cursor.col,
usr/src/uts/common/io/tem_safe.c
1150
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
1159
if (tem->tvs_params[0] > tems.ts_c_dimension.width)
usr/src/uts/common/io/tem_safe.c
1160
tem->tvs_params[0] = tems.ts_c_dimension.width;
usr/src/uts/common/io/tem_safe.c
1162
for (i = 0; i < tem->tvs_params[0]; i++)
usr/src/uts/common/io/tem_safe.c
1163
tem_safe_back_tab(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1166
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1170
tem_safe_chkparam_qmark(struct tem_vt_state *tem, tem_char_t ch, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
1174
MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem_safe.c
1178
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
1179
switch (tem->tvs_params[0]) {
usr/src/uts/common/io/tem_safe.c
1181
tem->tvs_stateflags |= TVS_AUTOWRAP;
usr/src/uts/common/io/tem_safe.c
1191
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1192
tem->tvs_cursor_hidden = B_FALSE;
usr/src/uts/common/io/tem_safe.c
1199
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
1200
switch (tem->tvs_params[0]) {
usr/src/uts/common/io/tem_safe.c
1202
tem->tvs_stateflags &= ~TVS_AUTOWRAP;
usr/src/uts/common/io/tem_safe.c
1212
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1213
tem->tvs_cursor_hidden = B_TRUE;
usr/src/uts/common/io/tem_safe.c
1218
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1225
tem_safe_getparams(struct tem_vt_state *tem, tem_char_t ch,
usr/src/uts/common/io/tem_safe.c
1229
MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem_safe.c
1232
tem->tvs_paramval = ((tem->tvs_paramval * 10) + (ch - '0'));
usr/src/uts/common/io/tem_safe.c
1233
tem->tvs_gotparam = B_TRUE; /* Remember got parameter */
usr/src/uts/common/io/tem_safe.c
1235
} else if (tem->tvs_state == A_STATE_CSI_EQUAL) {
usr/src/uts/common/io/tem_safe.c
1236
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1237
} else if (tem->tvs_state == A_STATE_CSI_QMARK) {
usr/src/uts/common/io/tem_safe.c
1238
if (tem->tvs_curparam < TEM_MAXPARAMS) {
usr/src/uts/common/io/tem_safe.c
1239
if (tem->tvs_gotparam) {
usr/src/uts/common/io/tem_safe.c
1241
tem->tvs_params[tem->tvs_curparam] =
usr/src/uts/common/io/tem_safe.c
1242
tem->tvs_paramval;
usr/src/uts/common/io/tem_safe.c
1244
tem->tvs_curparam++;
usr/src/uts/common/io/tem_safe.c
1248
tem->tvs_gotparam = B_FALSE;
usr/src/uts/common/io/tem_safe.c
1249
tem->tvs_paramval = 0; /* No parameter value yet */
usr/src/uts/common/io/tem_safe.c
1252
tem_safe_chkparam_qmark(tem, ch, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1255
if (tem->tvs_curparam < TEM_MAXPARAMS) {
usr/src/uts/common/io/tem_safe.c
1256
if (tem->tvs_gotparam) {
usr/src/uts/common/io/tem_safe.c
1258
tem->tvs_params[tem->tvs_curparam] =
usr/src/uts/common/io/tem_safe.c
1259
tem->tvs_paramval;
usr/src/uts/common/io/tem_safe.c
1261
tem->tvs_curparam++;
usr/src/uts/common/io/tem_safe.c
1266
tem->tvs_gotparam = B_FALSE;
usr/src/uts/common/io/tem_safe.c
1267
tem->tvs_paramval = 0; /* No parameter value yet */
usr/src/uts/common/io/tem_safe.c
1270
tem_safe_chkparam(tem, ch, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1281
tem_safe_outch(struct tem_vt_state *tem, tem_char_t ch,
usr/src/uts/common/io/tem_safe.c
1288
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
1292
if ((tem->tvs_stateflags & (TVS_AUTOWRAP | TVS_WRAPPED)) ==
usr/src/uts/common/io/tem_safe.c
1294
tem_safe_new_line(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1298
tem_safe_get_attr(tem, &fg, &bg, &attr, TEM_ATTR_REVERSE);
usr/src/uts/common/io/tem_safe.c
1299
tem->tvs_outbuf[tem->tvs_outindex].tc_char = ch | TEM_ATTR(attr);
usr/src/uts/common/io/tem_safe.c
1300
tem->tvs_outbuf[tem->tvs_outindex].tc_fg_color = fg;
usr/src/uts/common/io/tem_safe.c
1301
tem->tvs_outbuf[tem->tvs_outindex].tc_bg_color = bg;
usr/src/uts/common/io/tem_safe.c
1302
tem->tvs_outindex++;
usr/src/uts/common/io/tem_safe.c
1303
tem->tvs_c_cursor.col++;
usr/src/uts/common/io/tem_safe.c
1304
if (tem->tvs_c_cursor.col >= tems.ts_c_dimension.width) {
usr/src/uts/common/io/tem_safe.c
1305
tem->tvs_stateflags |= TVS_WRAPPED;
usr/src/uts/common/io/tem_safe.c
1306
tem->tvs_c_cursor.col--;
usr/src/uts/common/io/tem_safe.c
1307
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1309
tem->tvs_stateflags &= ~TVS_WRAPPED;
usr/src/uts/common/io/tem_safe.c
1314
tem_safe_new_line(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1317
tem_safe_cr(tem);
usr/src/uts/common/io/tem_safe.c
1318
tem_safe_lf(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1322
tem_safe_cr(struct tem_vt_state *tem)
usr/src/uts/common/io/tem_safe.c
1324
tem->tvs_c_cursor.col = 0;
usr/src/uts/common/io/tem_safe.c
1325
tem->tvs_stateflags &= ~TVS_WRAPPED;
usr/src/uts/common/io/tem_safe.c
1326
tem_safe_align_cursor(tem);
usr/src/uts/common/io/tem_safe.c
1330
tem_safe_lf(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1336
MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem_safe.c
1338
tem->tvs_stateflags &= ~TVS_WRAPPED;
usr/src/uts/common/io/tem_safe.c
1345
row = tem->tvs_c_cursor.row + 1;
usr/src/uts/common/io/tem_safe.c
1348
if (tem->tvs_nscroll != 0) {
usr/src/uts/common/io/tem_safe.c
1349
tem_safe_scroll(tem, 0,
usr/src/uts/common/io/tem_safe.c
1351
tem->tvs_nscroll, TEM_SCROLL_UP,
usr/src/uts/common/io/tem_safe.c
1354
tem->tvs_nscroll;
usr/src/uts/common/io/tem_safe.c
1365
tem_safe_mv_cursor(tem, row, tem->tvs_c_cursor.col,
usr/src/uts/common/io/tem_safe.c
1368
if (tem->tvs_nscroll == 0) {
usr/src/uts/common/io/tem_safe.c
1370
tem_safe_clear_chars(tem,
usr/src/uts/common/io/tem_safe.c
1372
tem->tvs_c_cursor.col,
usr/src/uts/common/io/tem_safe.c
1373
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
1374
tem->tvs_c_cursor.col,
usr/src/uts/common/io/tem_safe.c
1379
tem_safe_align_cursor(tem);
usr/src/uts/common/io/tem_safe.c
1383
tem_safe_send_data(struct tem_vt_state *tem, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
1387
MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem_safe.c
1389
if (tem->tvs_outindex == 0) {
usr/src/uts/common/io/tem_safe.c
1390
tem_safe_align_cursor(tem);
usr/src/uts/common/io/tem_safe.c
1394
tem_safe_virtual_display(tem,
usr/src/uts/common/io/tem_safe.c
1395
tem->tvs_outbuf, tem->tvs_outindex,
usr/src/uts/common/io/tem_safe.c
1396
tem->tvs_s_cursor.row, tem->tvs_s_cursor.col);
usr/src/uts/common/io/tem_safe.c
1398
if (tem->tvs_isactive) {
usr/src/uts/common/io/tem_safe.c
140
static void tem_safe_clear_chars(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1402
tem_safe_callback_display(tem,
usr/src/uts/common/io/tem_safe.c
1403
tem->tvs_outbuf, tem->tvs_outindex,
usr/src/uts/common/io/tem_safe.c
1404
tem->tvs_s_cursor.row, tem->tvs_s_cursor.col,
usr/src/uts/common/io/tem_safe.c
1408
tem->tvs_outindex = 0;
usr/src/uts/common/io/tem_safe.c
1410
tem_safe_align_cursor(tem);
usr/src/uts/common/io/tem_safe.c
1420
tem_safe_align_cursor(struct tem_vt_state *tem)
usr/src/uts/common/io/tem_safe.c
1422
tem->tvs_s_cursor.row = tem->tvs_c_cursor.row;
usr/src/uts/common/io/tem_safe.c
1423
tem->tvs_s_cursor.col = tem->tvs_c_cursor.col;
usr/src/uts/common/io/tem_safe.c
143
static void tem_safe_copy_area(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1432
tem_safe_parse(struct tem_vt_state *tem, tem_char_t ch,
usr/src/uts/common/io/tem_safe.c
1438
MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem_safe.c
1440
if (tem->tvs_state == A_STATE_START) { /* Normal state? */
usr/src/uts/common/io/tem_safe.c
1443
tem_safe_control(tem, ch, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1446
tem_safe_outch(tem, ch, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1452
if (tem->tvs_state != A_STATE_ESC) { /* Need to get parameters? */
usr/src/uts/common/io/tem_safe.c
1453
if (tem->tvs_state != A_STATE_CSI) {
usr/src/uts/common/io/tem_safe.c
1454
tem_safe_getparams(tem, ch, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1460
tem->tvs_state = A_STATE_CSI_QMARK;
usr/src/uts/common/io/tem_safe.c
1463
tem->tvs_state = A_STATE_CSI_EQUAL;
usr/src/uts/common/io/tem_safe.c
1487
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1490
tem_safe_mv_cursor(tem, tem->tvs_r_cursor.row,
usr/src/uts/common/io/tem_safe.c
1491
tem->tvs_r_cursor.col, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1492
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1495
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1500
if (tem->tvs_flags & TEM_ATTR_SCREEN_REVERSE) {
usr/src/uts/common/io/tem_safe.c
1501
tem->tvs_flags &= ~TEM_ATTR_SCREEN_REVERSE;
usr/src/uts/common/io/tem_safe.c
1507
if (tem->tvs_flags & TEM_ATTR_REVERSE)
usr/src/uts/common/io/tem_safe.c
1508
tem->tvs_flags &= ~TEM_ATTR_REVERSE;
usr/src/uts/common/io/tem_safe.c
1510
tem->tvs_flags |= TEM_ATTR_REVERSE;
usr/src/uts/common/io/tem_safe.c
1512
tem_safe_cls(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1513
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1516
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1521
if (!(tem->tvs_flags & TEM_ATTR_SCREEN_REVERSE)) {
usr/src/uts/common/io/tem_safe.c
1522
tem->tvs_flags |= TEM_ATTR_SCREEN_REVERSE;
usr/src/uts/common/io/tem_safe.c
1528
if (!(tem->tvs_flags & TEM_ATTR_REVERSE))
usr/src/uts/common/io/tem_safe.c
1529
tem->tvs_flags |= TEM_ATTR_REVERSE;
usr/src/uts/common/io/tem_safe.c
1531
tem->tvs_flags &= ~TEM_ATTR_REVERSE;
usr/src/uts/common/io/tem_safe.c
1534
tem_safe_cls(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1535
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
154
static void tem_safe_bell(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1541
tem->tvs_nscroll = tem->tvs_paramval;
usr/src/uts/common/io/tem_safe.c
1542
if (tem->tvs_nscroll > tems.ts_c_dimension.height)
usr/src/uts/common/io/tem_safe.c
1543
tem->tvs_nscroll = tems.ts_c_dimension.height;
usr/src/uts/common/io/tem_safe.c
1544
if (tem->tvs_nscroll < 0)
usr/src/uts/common/io/tem_safe.c
1545
tem->tvs_nscroll = 1;
usr/src/uts/common/io/tem_safe.c
1546
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1549
tem_safe_getparams(tem, ch, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1556
tem->tvs_curparam = 0;
usr/src/uts/common/io/tem_safe.c
1557
tem->tvs_paramval = 0;
usr/src/uts/common/io/tem_safe.c
1558
tem->tvs_gotparam = B_FALSE;
usr/src/uts/common/io/tem_safe.c
156
static void tem_safe_pix_clear_prom_output(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1561
tem->tvs_params[i] = -1;
usr/src/uts/common/io/tem_safe.c
1562
tem->tvs_state = A_STATE_CSI;
usr/src/uts/common/io/tem_safe.c
1564
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1566
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1568
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
1571
tem_safe_reset_display(tem, credp, called_from,
usr/src/uts/common/io/tem_safe.c
1575
tem_safe_set_tab(tem);
usr/src/uts/common/io/tem_safe.c
1578
tem->tvs_r_cursor.row = tem->tvs_c_cursor.row;
usr/src/uts/common/io/tem_safe.c
1579
tem->tvs_r_cursor.col = tem->tvs_c_cursor.col;
usr/src/uts/common/io/tem_safe.c
1582
tem_safe_mv_cursor(tem, tem->tvs_r_cursor.row,
usr/src/uts/common/io/tem_safe.c
1583
tem->tvs_r_cursor.col, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1586
tem_safe_control(tem, ch, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1588
tem_safe_outch(tem, ch, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1595
tem_safe_bell(struct tem_vt_state *tem, enum called_from called_from)
usr/src/uts/common/io/tem_safe.c
1605
tem_safe_scroll(struct tem_vt_state *tem, int start, int end, int count,
usr/src/uts/common/io/tem_safe.c
1611
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
1623
tem_safe_copy_area(tem, 0, start + count,
usr/src/uts/common/io/tem_safe.c
1628
tem_safe_clear_chars(tem, tems.ts_c_dimension.width,
usr/src/uts/common/io/tem_safe.c
1635
tem_safe_copy_area(tem, 0, start,
usr/src/uts/common/io/tem_safe.c
1641
tem_safe_clear_chars(tem, tems.ts_c_dimension.width,
usr/src/uts/common/io/tem_safe.c
1674
tem_safe_copy_area(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1685
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
169
static void tem_safe_align_cursor(struct tem_vt_state *tem);
usr/src/uts/common/io/tem_safe.c
170
static void bit_to_pix4(struct tem_vt_state *tem, tem_char_t c,
usr/src/uts/common/io/tem_safe.c
1710
src = tem->tvs_screen_buf + soffset;
usr/src/uts/common/io/tem_safe.c
1711
dst = tem->tvs_screen_buf + toffset;
usr/src/uts/common/io/tem_safe.c
172
static void bit_to_pix8(struct tem_vt_state *tem, tem_char_t c,
usr/src/uts/common/io/tem_safe.c
1725
tem_safe_virtual_copy(tem, s_col, s_row + i,
usr/src/uts/common/io/tem_safe.c
1729
if (tem->tvs_isactive) {
usr/src/uts/common/io/tem_safe.c
1730
tem_safe_callback_copy(tem, s_col, s_row + i,
usr/src/uts/common/io/tem_safe.c
174
static void bit_to_pix16(struct tem_vt_state *tem, tem_char_t c,
usr/src/uts/common/io/tem_safe.c
1743
tem_safe_virtual_copy(tem, s_col, s_row + i,
usr/src/uts/common/io/tem_safe.c
1747
if (tem->tvs_isactive) {
usr/src/uts/common/io/tem_safe.c
1748
tem_safe_callback_copy(tem, s_col, s_row + i,
usr/src/uts/common/io/tem_safe.c
1757
tem_safe_clear_chars(struct tem_vt_state *tem, int count, screen_pos_t row,
usr/src/uts/common/io/tem_safe.c
176
static void bit_to_pix24(struct tem_vt_state *tem, tem_char_t c,
usr/src/uts/common/io/tem_safe.c
1760
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
1776
tem_safe_virtual_cls(tem, count, row, col);
usr/src/uts/common/io/tem_safe.c
1778
if (!tem->tvs_isactive)
usr/src/uts/common/io/tem_safe.c
178
static void bit_to_pix32(struct tem_vt_state *tem, tem_char_t c,
usr/src/uts/common/io/tem_safe.c
1781
tem_safe_callback_cls(tem, count, row, col, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1786
tem_safe_text_display(struct tem_vt_state *tem, term_char_t *string,
usr/src/uts/common/io/tem_safe.c
1795
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
1804
tem_safe_get_color(tem, &fg, &bg, &string[i]);
usr/src/uts/common/io/tem_safe.c
1826
tem_safe_image_display(struct tem_vt_state *tem, uchar_t *image,
usr/src/uts/common/io/tem_safe.c
1833
mutex_enter(&tem->tvs_lock);
usr/src/uts/common/io/tem_safe.c
1843
mutex_exit(&tem->tvs_lock);
usr/src/uts/common/io/tem_safe.c
1850
tem_safe_text_copy(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1858
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
1872
tem_safe_text_cls(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1880
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
1883
tem_safe_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/uts/common/io/tem_safe.c
1894
tem_safe_text_display(tem, tems.ts_blank_line, count, row, col,
usr/src/uts/common/io/tem_safe.c
1899
tem_safe_pix_display(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
190
#define tem_safe_callback_bit2pix(tem, c) { \
usr/src/uts/common/io/tem_safe.c
1907
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
1910
da.data = (uchar_t *)tem->tvs_pix_data;
usr/src/uts/common/io/tem_safe.c
1919
tem_safe_callback_bit2pix(tem, &string[i]);
usr/src/uts/common/io/tem_safe.c
192
(void) (*tems.ts_callbacks->tsc_bit2pix)((tem), (c));\
usr/src/uts/common/io/tem_safe.c
1927
tem_safe_pix_copy(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1937
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
1940
if (need_clear && tem->tvs_first_line > 0) {
usr/src/uts/common/io/tem_safe.c
1949
tem_safe_pix_clear_prom_output(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
1962
if (tem->tvs_first_line > 0 && t_row < s_row && t_col == 0 &&
usr/src/uts/common/io/tem_safe.c
197
struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
1981
if (tem->tvs_first_line > 0 && t_row < s_row) {
usr/src/uts/common/io/tem_safe.c
1983
tem->tvs_first_line -= (s_row - t_row);
usr/src/uts/common/io/tem_safe.c
1984
if (tem->tvs_first_line <= 0) {
usr/src/uts/common/io/tem_safe.c
1986
tem->tvs_first_line = 0;
usr/src/uts/common/io/tem_safe.c
1993
tem_safe_pix_bit2pix(struct tem_vt_state *tem, term_char_t *c)
usr/src/uts/common/io/tem_safe.c
1999
tem_safe_get_color(tem, &fg, &bg, c);
usr/src/uts/common/io/tem_safe.c
2021
fp(tem, c->tc_char, fg, bg);
usr/src/uts/common/io/tem_safe.c
2029
tem_safe_pix_cls(struct tem_vt_state *tem, int count,
usr/src/uts/common/io/tem_safe.c
203
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2033
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2036
tem_safe_pix_cls_range(tem, row, 1, tems.ts_p_offset.y,
usr/src/uts/common/io/tem_safe.c
2064
tem_safe_pix_clear_prom_output(struct tem_vt_state *tem, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
2069
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2080
tem_safe_pix_cls_range(tem, 0, nrows, offset, 0, ncols, 0,
usr/src/uts/common/io/tem_safe.c
2089
tem_safe_pix_clear_entire_screen(struct tem_vt_state *tem, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
2099
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2103
tem_safe_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/uts/common/io/tem_safe.c
2107
tem_safe_get_color(tem, &fg_color, &bg_color, &c);
usr/src/uts/common/io/tem_safe.c
2118
tem_safe_pix_cls_range(tem, 0, nrows, tems.ts_p_offset.y, 0, ncols,
usr/src/uts/common/io/tem_safe.c
2125
if (tem->tvs_first_line > 0)
usr/src/uts/common/io/tem_safe.c
2126
tem->tvs_first_line = 0;
usr/src/uts/common/io/tem_safe.c
2134
tem_safe_cls(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
2139
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2144
tem_safe_clear_chars(tem, tems.ts_c_dimension.width,
usr/src/uts/common/io/tem_safe.c
2147
tem->tvs_c_cursor.row = 0;
usr/src/uts/common/io/tem_safe.c
2148
tem->tvs_c_cursor.col = 0;
usr/src/uts/common/io/tem_safe.c
2149
tem_safe_align_cursor(tem);
usr/src/uts/common/io/tem_safe.c
2156
tem_safe_virtual_cls(tem, tems.ts_c_dimension.width, row, 0);
usr/src/uts/common/io/tem_safe.c
2158
tem->tvs_c_cursor.row = 0;
usr/src/uts/common/io/tem_safe.c
2159
tem->tvs_c_cursor.col = 0;
usr/src/uts/common/io/tem_safe.c
2160
tem_safe_align_cursor(tem);
usr/src/uts/common/io/tem_safe.c
2162
if (!tem->tvs_isactive)
usr/src/uts/common/io/tem_safe.c
2165
tem_safe_pix_clear_entire_screen(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2169
tem_safe_back_tab(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
217
tem_safe_text_cursor(tem, VIS_GET_CURSOR, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2175
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2180
for (i = tem->tvs_ntabs - 1; i >= 0; i--) {
usr/src/uts/common/io/tem_safe.c
2181
if (tem->tvs_tabs[i] < tem->tvs_c_cursor.col) {
usr/src/uts/common/io/tem_safe.c
2182
tabstop = tem->tvs_tabs[i];
usr/src/uts/common/io/tem_safe.c
2187
tem_safe_mv_cursor(tem, tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
219
tem_safe_pix_cursor(tem, VIS_GET_CURSOR, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2192
tem_safe_tab(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
2198
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
220
tem_safe_align_cursor(tem);
usr/src/uts/common/io/tem_safe.c
2203
for (i = 0; i < tem->tvs_ntabs; i++) {
usr/src/uts/common/io/tem_safe.c
2204
if (tem->tvs_tabs[i] > tem->tvs_c_cursor.col) {
usr/src/uts/common/io/tem_safe.c
2205
tabstop = tem->tvs_tabs[i];
usr/src/uts/common/io/tem_safe.c
2210
tem_safe_mv_cursor(tem, tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
2215
tem_safe_set_tab(struct tem_vt_state *tem)
usr/src/uts/common/io/tem_safe.c
2219
if (tem->tvs_ntabs == tem->tvs_maxtab)
usr/src/uts/common/io/tem_safe.c
2221
if (tem->tvs_ntabs == 0 ||
usr/src/uts/common/io/tem_safe.c
2222
tem->tvs_tabs[tem->tvs_ntabs] < tem->tvs_c_cursor.col) {
usr/src/uts/common/io/tem_safe.c
2223
tem->tvs_tabs[tem->tvs_ntabs++] = tem->tvs_c_cursor.col;
usr/src/uts/common/io/tem_safe.c
2226
for (i = 0; i < tem->tvs_ntabs; i++) {
usr/src/uts/common/io/tem_safe.c
2227
if (tem->tvs_tabs[i] == tem->tvs_c_cursor.col)
usr/src/uts/common/io/tem_safe.c
2229
if (tem->tvs_tabs[i] > tem->tvs_c_cursor.col) {
usr/src/uts/common/io/tem_safe.c
2230
for (j = tem->tvs_ntabs - 1; j >= i; j--)
usr/src/uts/common/io/tem_safe.c
2231
tem->tvs_tabs[j+ 1] = tem->tvs_tabs[j];
usr/src/uts/common/io/tem_safe.c
2232
tem->tvs_tabs[i] = tem->tvs_c_cursor.col;
usr/src/uts/common/io/tem_safe.c
2233
tem->tvs_ntabs++;
usr/src/uts/common/io/tem_safe.c
2240
tem_safe_clear_tabs(struct tem_vt_state *tem, int action)
usr/src/uts/common/io/tem_safe.c
2246
tem->tvs_ntabs = 0;
usr/src/uts/common/io/tem_safe.c
2250
for (i = 0; i < tem->tvs_ntabs; i++) {
usr/src/uts/common/io/tem_safe.c
2251
if (tem->tvs_tabs[i] == tem->tvs_c_cursor.col) {
usr/src/uts/common/io/tem_safe.c
2252
tem->tvs_ntabs--;
usr/src/uts/common/io/tem_safe.c
2253
for (j = i; j < tem->tvs_ntabs; j++)
usr/src/uts/common/io/tem_safe.c
2254
tem->tvs_tabs[j] = tem->tvs_tabs[j + 1];
usr/src/uts/common/io/tem_safe.c
2263
tem_safe_mv_cursor(struct tem_vt_state *tem, int row, int col,
usr/src/uts/common/io/tem_safe.c
2266
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2281
tem->tvs_stateflags |= TVS_WRAPPED;
usr/src/uts/common/io/tem_safe.c
2284
tem->tvs_stateflags &= ~TVS_WRAPPED;
usr/src/uts/common/io/tem_safe.c
2287
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2288
tem->tvs_c_cursor.row = (screen_pos_t)row;
usr/src/uts/common/io/tem_safe.c
2289
tem->tvs_c_cursor.col = (screen_pos_t)col;
usr/src/uts/common/io/tem_safe.c
2290
tem_safe_align_cursor(tem);
usr/src/uts/common/io/tem_safe.c
2295
tem_safe_reset_emulator(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
2301
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2304
tem->tvs_c_cursor.row = 0;
usr/src/uts/common/io/tem_safe.c
2305
tem->tvs_c_cursor.col = 0;
usr/src/uts/common/io/tem_safe.c
2306
tem->tvs_r_cursor.row = 0;
usr/src/uts/common/io/tem_safe.c
2307
tem->tvs_r_cursor.col = 0;
usr/src/uts/common/io/tem_safe.c
2308
tem->tvs_s_cursor.row = 0;
usr/src/uts/common/io/tem_safe.c
2309
tem->tvs_s_cursor.col = 0;
usr/src/uts/common/io/tem_safe.c
2310
tem->tvs_outindex = 0;
usr/src/uts/common/io/tem_safe.c
2311
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
2312
tem->tvs_gotparam = B_FALSE;
usr/src/uts/common/io/tem_safe.c
2313
tem->tvs_curparam = 0;
usr/src/uts/common/io/tem_safe.c
2314
tem->tvs_paramval = 0;
usr/src/uts/common/io/tem_safe.c
2315
tem->tvs_nscroll = 1;
usr/src/uts/common/io/tem_safe.c
2318
tem->tvs_alpha = 0xff;
usr/src/uts/common/io/tem_safe.c
2319
tem->tvs_fg_color = tems.ts_init_color.fg_color;
usr/src/uts/common/io/tem_safe.c
2320
tem->tvs_bg_color = tems.ts_init_color.bg_color;
usr/src/uts/common/io/tem_safe.c
2321
tem->tvs_flags = tems.ts_init_color.a_flags;
usr/src/uts/common/io/tem_safe.c
2327
tem->tvs_ntabs = 0;
usr/src/uts/common/io/tem_safe.c
2329
tem->tvs_tabs[tem->tvs_ntabs++] = (screen_pos_t)j;
usr/src/uts/common/io/tem_safe.c
2332
tem->tvs_params[j] = 0;
usr/src/uts/common/io/tem_safe.c
2336
tem_safe_reset_display(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
2340
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2343
tem_safe_reset_emulator(tem, credp, called_from, init_color);
usr/src/uts/common/io/tem_safe.c
2346
if (tem->tvs_isactive)
usr/src/uts/common/io/tem_safe.c
2347
tem_safe_callback_cursor(tem,
usr/src/uts/common/io/tem_safe.c
2350
tem_safe_cls(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2352
if (tem->tvs_isactive)
usr/src/uts/common/io/tem_safe.c
2353
tem_safe_callback_cursor(tem,
usr/src/uts/common/io/tem_safe.c
2360
struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
2368
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2371
rest_of_line = tems.ts_c_dimension.width - tem->tvs_c_cursor.col;
usr/src/uts/common/io/tem_safe.c
238
struct tem_vt_state *tem = (struct tem_vt_state *)tem_arg;
usr/src/uts/common/io/tem_safe.c
2381
tem_safe_copy_area(tem,
usr/src/uts/common/io/tem_safe.c
2382
tem->tvs_c_cursor.col + count,
usr/src/uts/common/io/tem_safe.c
2383
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
2385
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
2386
tem->tvs_c_cursor.col,
usr/src/uts/common/io/tem_safe.c
2387
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
2391
tem_safe_clear_chars(tem, count, tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
2397
tem_safe_copy_area(tem,
usr/src/uts/common/io/tem_safe.c
2398
tem->tvs_c_cursor.col,
usr/src/uts/common/io/tem_safe.c
2399
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
2401
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
2402
tem->tvs_c_cursor.col + count,
usr/src/uts/common/io/tem_safe.c
2403
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
2407
tem_safe_clear_chars(tem, count, tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
2408
tem->tvs_c_cursor.col, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2414
tem_safe_text_cursor(struct tem_vt_state *tem, short action,
usr/src/uts/common/io/tem_safe.c
2419
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2422
ca.row = tem->tvs_c_cursor.row;
usr/src/uts/common/io/tem_safe.c
2423
ca.col = tem->tvs_c_cursor.col;
usr/src/uts/common/io/tem_safe.c
2429
tem->tvs_c_cursor.row = ca.row;
usr/src/uts/common/io/tem_safe.c
2430
tem->tvs_c_cursor.col = ca.col;
usr/src/uts/common/io/tem_safe.c
2435
tem_safe_pix_cursor(struct tem_vt_state *tem, short action,
usr/src/uts/common/io/tem_safe.c
2443
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2446
ca.row = tem->tvs_c_cursor.row * tems.ts_font.vf_height +
usr/src/uts/common/io/tem_safe.c
2448
ca.col = tem->tvs_c_cursor.col * tems.ts_font.vf_width +
usr/src/uts/common/io/tem_safe.c
245
if (!tem->tvs_initialized) {
usr/src/uts/common/io/tem_safe.c
2453
tem_safe_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/uts/common/io/tem_safe.c
2457
tem_safe_get_color(tem, &fg, &bg, &c);
usr/src/uts/common/io/tem_safe.c
2466
tem->tvs_c_cursor.row = 0;
usr/src/uts/common/io/tem_safe.c
2467
tem->tvs_c_cursor.col = 0;
usr/src/uts/common/io/tem_safe.c
2470
tem->tvs_c_cursor.row = (ca.row - tems.ts_p_offset.y) /
usr/src/uts/common/io/tem_safe.c
2474
tem->tvs_c_cursor.col = (ca.col - tems.ts_p_offset.x) /
usr/src/uts/common/io/tem_safe.c
2481
bit_to_pix4(struct tem_vt_state *tem, tem_char_t c, text_color_t fg,
usr/src/uts/common/io/tem_safe.c
2484
uint8_t *dest = (uint8_t *)tem->tvs_pix_data;
usr/src/uts/common/io/tem_safe.c
249
tem_safe_check_first_time(tem, kcred, CALLED_FROM_STANDALONE);
usr/src/uts/common/io/tem_safe.c
2490
bit_to_pix8(struct tem_vt_state *tem, tem_char_t c, text_color_t fg,
usr/src/uts/common/io/tem_safe.c
2493
uint8_t *dest = (uint8_t *)tem->tvs_pix_data;
usr/src/uts/common/io/tem_safe.c
2499
bit_to_pix16(struct tem_vt_state *tem, tem_char_t c, text_color_t fg,
usr/src/uts/common/io/tem_safe.c
250
tem_safe_terminal_emulate(tem, buf, len, NULL, CALLED_FROM_STANDALONE);
usr/src/uts/common/io/tem_safe.c
2504
dest = (uint16_t *)tem->tvs_pix_data;
usr/src/uts/common/io/tem_safe.c
2509
bit_to_pix24(struct tem_vt_state *tem, tem_char_t c, text_color_t fg,
usr/src/uts/common/io/tem_safe.c
2514
dest = (uint8_t *)tem->tvs_pix_data;
usr/src/uts/common/io/tem_safe.c
2519
bit_to_pix32(struct tem_vt_state *tem, tem_char_t c, text_color_t fg,
usr/src/uts/common/io/tem_safe.c
2524
dest = (uint32_t *)tem->tvs_pix_data;
usr/src/uts/common/io/tem_safe.c
2532
tem_safe_get_attr(struct tem_vt_state *tem, text_color_t *fg,
usr/src/uts/common/io/tem_safe.c
2535
if (tem->tvs_flags & flag) {
usr/src/uts/common/io/tem_safe.c
2536
*fg = tem->tvs_bg_color;
usr/src/uts/common/io/tem_safe.c
2537
*bg = tem->tvs_fg_color;
usr/src/uts/common/io/tem_safe.c
2539
*fg = tem->tvs_fg_color;
usr/src/uts/common/io/tem_safe.c
2540
*bg = tem->tvs_bg_color;
usr/src/uts/common/io/tem_safe.c
2544
*attr = tem->tvs_flags;
usr/src/uts/common/io/tem_safe.c
2548
tem_safe_get_color(struct tem_vt_state *tem, text_color_t *fg,
usr/src/uts/common/io/tem_safe.c
255
tem_safe_input_partial(struct tem_vt_state *tem, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
2604
fg->n = rgb_color_map(&rgb_info, fg->n, tem->tvs_alpha);
usr/src/uts/common/io/tem_safe.c
261
if (tem->tvs_utf8_left == 0)
usr/src/uts/common/io/tem_safe.c
2616
bg->n = rgb_color_map(&rgb_info, bg->n, tem->tvs_alpha);
usr/src/uts/common/io/tem_safe.c
264
for (i = 0; i < sizeof (tem->tvs_utf8_partial); i++) {
usr/src/uts/common/io/tem_safe.c
265
c = (tem->tvs_utf8_partial >> (24 - (i << 3))) & 0xff;
usr/src/uts/common/io/tem_safe.c
2661
tem_safe_pix_cls_range(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
267
tem_safe_parse(tem, c, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2673
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2682
tem_safe_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/uts/common/io/tem_safe.c
2687
tem_safe_callback_bit2pix(tem, &c);
usr/src/uts/common/io/tem_safe.c
2688
da.data = (uchar_t *)tem->tvs_pix_data;
usr/src/uts/common/io/tem_safe.c
270
tem->tvs_utf8_left = 0;
usr/src/uts/common/io/tem_safe.c
2704
tem_safe_virtual_display(struct tem_vt_state *tem, term_char_t *string,
usr/src/uts/common/io/tem_safe.c
271
tem->tvs_utf8_partial = 0;
usr/src/uts/common/io/tem_safe.c
2716
addr = tem->tvs_screen_buf + (row * width + col);
usr/src/uts/common/io/tem_safe.c
2772
tem_safe_virtual_copy(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
278
tem_safe_input_byte(struct tem_vt_state *tem, uchar_t c, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
2800
i_virtual_copy_tem_chars(tem->tvs_screen_buf, s_col, s_row,
usr/src/uts/common/io/tem_safe.c
2805
tem_safe_virtual_cls(struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
2812
tem_safe_get_attr(tem, &c.tc_fg_color, &c.tc_bg_color, &attr,
usr/src/uts/common/io/tem_safe.c
2819
tem_safe_virtual_display(tem, tems.ts_blank_line, count, row, col);
usr/src/uts/common/io/tem_safe.c
2826
tem_safe_blank_screen(struct tem_vt_state *tem, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
2831
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2835
tem_safe_pix_clear_entire_screen(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2840
tem_safe_callback_cls(tem,
usr/src/uts/common/io/tem_safe.c
2850
tem_safe_unblank_screen(struct tem_vt_state *tem, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
2855
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
2859
tem_safe_pix_clear_entire_screen(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2861
tem_safe_callback_cursor(tem, VIS_HIDE_CURSOR, credp, called_from);
usr/src/uts/common/io/tem_safe.c
2870
tem_safe_callback_display(tem, tem->tvs_screen_rows[row],
usr/src/uts/common/io/tem_safe.c
2874
tem_safe_callback_cursor(tem, VIS_DISPLAY_CURSOR, credp, called_from);
usr/src/uts/common/io/tem_safe.c
289
tem_safe_input_partial(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
290
tem_safe_parse(tem, c, credp, called_from);
usr/src/uts/common/io/tem_safe.c
295
tem_safe_input_partial(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
296
tem->tvs_utf8_left = 1;
usr/src/uts/common/io/tem_safe.c
297
tem->tvs_utf8_partial = c;
usr/src/uts/common/io/tem_safe.c
302
tem_safe_input_partial(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
303
tem->tvs_utf8_left = 2;
usr/src/uts/common/io/tem_safe.c
304
tem->tvs_utf8_partial = c;
usr/src/uts/common/io/tem_safe.c
309
tem_safe_input_partial(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
310
tem->tvs_utf8_left = 3;
usr/src/uts/common/io/tem_safe.c
311
tem->tvs_utf8_partial = c;
usr/src/uts/common/io/tem_safe.c
316
if (tem->tvs_utf8_left == 0) {
usr/src/uts/common/io/tem_safe.c
317
tem_safe_parse(tem, c, credp, called_from);
usr/src/uts/common/io/tem_safe.c
320
tem->tvs_utf8_left--;
usr/src/uts/common/io/tem_safe.c
321
tem->tvs_utf8_partial = (tem->tvs_utf8_partial << 8) | c;
usr/src/uts/common/io/tem_safe.c
322
if (tem->tvs_utf8_left == 0) {
usr/src/uts/common/io/tem_safe.c
331
u = tem->tvs_utf8_partial;
usr/src/uts/common/io/tem_safe.c
353
tem_safe_parse(tem, v, credp, called_from);
usr/src/uts/common/io/tem_safe.c
354
tem->tvs_utf8_partial = 0;
usr/src/uts/common/io/tem_safe.c
359
tem_safe_input_partial(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
360
tem_safe_parse(tem, c, credp, called_from);
usr/src/uts/common/io/tem_safe.c
373
struct tem_vt_state *tem,
usr/src/uts/common/io/tem_safe.c
380
ASSERT((MUTEX_HELD(&tems.ts_lock) && MUTEX_HELD(&tem->tvs_lock)) ||
usr/src/uts/common/io/tem_safe.c
383
if (tem->tvs_isactive && !tem->tvs_cursor_hidden)
usr/src/uts/common/io/tem_safe.c
384
tem_safe_callback_cursor(tem,
usr/src/uts/common/io/tem_safe.c
388
tem_safe_input_byte(tem, *buf, credp, called_from);
usr/src/uts/common/io/tem_safe.c
393
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
395
if (tem->tvs_isactive && !tem->tvs_cursor_hidden)
usr/src/uts/common/io/tem_safe.c
396
tem_safe_callback_cursor(tem,
usr/src/uts/common/io/tem_safe.c
452
tem_safe_control(struct tem_vt_state *tem, tem_char_t ch, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
455
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
458
tem_safe_bell(tem, called_from);
usr/src/uts/common/io/tem_safe.c
462
tem_safe_mv_cursor(tem,
usr/src/uts/common/io/tem_safe.c
463
tem->tvs_c_cursor.row,
usr/src/uts/common/io/tem_safe.c
464
tem->tvs_c_cursor.col - 1,
usr/src/uts/common/io/tem_safe.c
469
tem_safe_tab(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
480
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
481
tem_safe_lf(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
485
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
486
tem_safe_cls(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
490
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
491
tem_safe_cr(tem);
usr/src/uts/common/io/tem_safe.c
495
tem->tvs_state = A_STATE_ESC;
usr/src/uts/common/io/tem_safe.c
501
tem->tvs_curparam = 0;
usr/src/uts/common/io/tem_safe.c
502
tem->tvs_paramval = 0;
usr/src/uts/common/io/tem_safe.c
503
tem->tvs_gotparam = B_FALSE;
usr/src/uts/common/io/tem_safe.c
506
tem->tvs_params[i] = -1;
usr/src/uts/common/io/tem_safe.c
507
tem->tvs_state = A_STATE_CSI;
usr/src/uts/common/io/tem_safe.c
512
tem_safe_back_tab(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
527
tem_safe_setparam(struct tem_vt_state *tem, int count, int newparam)
usr/src/uts/common/io/tem_safe.c
532
if (tem->tvs_params[i] == -1)
usr/src/uts/common/io/tem_safe.c
533
tem->tvs_params[i] = newparam;
usr/src/uts/common/io/tem_safe.c
543
tem_select_color(struct tem_vt_state *tem, int color, boolean_t fg)
usr/src/uts/common/io/tem_safe.c
554
tem->tvs_flags &= ~TEM_ATTR_RGB_FG;
usr/src/uts/common/io/tem_safe.c
555
tem->tvs_fg_color.n = color;
usr/src/uts/common/io/tem_safe.c
557
tem->tvs_flags &= ~TEM_ATTR_RGB_BG;
usr/src/uts/common/io/tem_safe.c
558
tem->tvs_bg_color.n = color;
usr/src/uts/common/io/tem_safe.c
566
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_FG;
usr/src/uts/common/io/tem_safe.c
568
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_BG;
usr/src/uts/common/io/tem_safe.c
577
tem->tvs_fg_color.n -= 8;
usr/src/uts/common/io/tem_safe.c
578
tem->tvs_flags |= TEM_ATTR_BRIGHT_FG;
usr/src/uts/common/io/tem_safe.c
580
tem->tvs_bg_color.n -= 8;
usr/src/uts/common/io/tem_safe.c
581
tem->tvs_flags |= TEM_ATTR_BRIGHT_BG;
usr/src/uts/common/io/tem_safe.c
590
tem_safe_selgraph(struct tem_vt_state *tem)
usr/src/uts/common/io/tem_safe.c
597
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
599
curparam = tem->tvs_curparam;
usr/src/uts/common/io/tem_safe.c
601
param = tem->tvs_params[count];
usr/src/uts/common/io/tem_safe.c
607
tem->tvs_fg_color = tems.ts_init_color.fg_color;
usr/src/uts/common/io/tem_safe.c
608
tem->tvs_bg_color = tems.ts_init_color.bg_color;
usr/src/uts/common/io/tem_safe.c
609
tem->tvs_flags = tems.ts_init_color.a_flags;
usr/src/uts/common/io/tem_safe.c
613
tem->tvs_flags |= TEM_ATTR_BOLD;
usr/src/uts/common/io/tem_safe.c
617
tem->tvs_flags &= ~TEM_ATTR_BOLD;
usr/src/uts/common/io/tem_safe.c
621
tem->tvs_flags |= TEM_ATTR_UNDERLINE;
usr/src/uts/common/io/tem_safe.c
624
tem->tvs_flags |= TEM_ATTR_BLINK;
usr/src/uts/common/io/tem_safe.c
628
if (tem->tvs_flags & TEM_ATTR_SCREEN_REVERSE) {
usr/src/uts/common/io/tem_safe.c
629
tem->tvs_flags &= ~TEM_ATTR_REVERSE;
usr/src/uts/common/io/tem_safe.c
631
tem->tvs_flags |= TEM_ATTR_REVERSE;
usr/src/uts/common/io/tem_safe.c
636
tem->tvs_flags &= ~TEM_ATTR_BOLD;
usr/src/uts/common/io/tem_safe.c
640
tem->tvs_flags &= ~TEM_ATTR_UNDERLINE;
usr/src/uts/common/io/tem_safe.c
644
tem->tvs_flags &= ~TEM_ATTR_BLINK;
usr/src/uts/common/io/tem_safe.c
648
if (tem->tvs_flags & TEM_ATTR_SCREEN_REVERSE) {
usr/src/uts/common/io/tem_safe.c
649
tem->tvs_flags |= TEM_ATTR_REVERSE;
usr/src/uts/common/io/tem_safe.c
651
tem->tvs_flags &= ~TEM_ATTR_REVERSE;
usr/src/uts/common/io/tem_safe.c
663
tem->tvs_fg_color.n = param - 30;
usr/src/uts/common/io/tem_safe.c
664
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_FG;
usr/src/uts/common/io/tem_safe.c
665
tem->tvs_flags &= ~TEM_ATTR_RGB_FG;
usr/src/uts/common/io/tem_safe.c
684
param = tem->tvs_params[count];
usr/src/uts/common/io/tem_safe.c
691
r = tem->tvs_params[++count];
usr/src/uts/common/io/tem_safe.c
692
g = tem->tvs_params[++count];
usr/src/uts/common/io/tem_safe.c
693
b = tem->tvs_params[++count];
usr/src/uts/common/io/tem_safe.c
701
tem->tvs_flags |= TEM_ATTR_RGB_FG;
usr/src/uts/common/io/tem_safe.c
702
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_FG;
usr/src/uts/common/io/tem_safe.c
703
tem->tvs_fg_color.rgb.a =
usr/src/uts/common/io/tem_safe.c
704
tem->tvs_alpha;
usr/src/uts/common/io/tem_safe.c
705
tem->tvs_fg_color.rgb.r = r;
usr/src/uts/common/io/tem_safe.c
706
tem->tvs_fg_color.rgb.g = g;
usr/src/uts/common/io/tem_safe.c
707
tem->tvs_fg_color.rgb.b = b;
usr/src/uts/common/io/tem_safe.c
713
tem_select_color(tem, tem->tvs_params[count],
usr/src/uts/common/io/tem_safe.c
726
tem->tvs_fg_color = tems.ts_init_color.fg_color;
usr/src/uts/common/io/tem_safe.c
727
tem->tvs_flags &= ~TEM_ATTR_RGB_FG;
usr/src/uts/common/io/tem_safe.c
729
tem->tvs_flags |= TEM_ATTR_BRIGHT_FG;
usr/src/uts/common/io/tem_safe.c
731
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_FG;
usr/src/uts/common/io/tem_safe.c
742
tem->tvs_bg_color.n = param - 40;
usr/src/uts/common/io/tem_safe.c
743
tem->tvs_flags &= ~TEM_ATTR_RGB_BG;
usr/src/uts/common/io/tem_safe.c
744
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_BG;
usr/src/uts/common/io/tem_safe.c
763
param = tem->tvs_params[count];
usr/src/uts/common/io/tem_safe.c
770
r = tem->tvs_params[++count];
usr/src/uts/common/io/tem_safe.c
771
g = tem->tvs_params[++count];
usr/src/uts/common/io/tem_safe.c
772
b = tem->tvs_params[++count];
usr/src/uts/common/io/tem_safe.c
780
tem->tvs_flags |= TEM_ATTR_RGB_BG;
usr/src/uts/common/io/tem_safe.c
781
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_BG;
usr/src/uts/common/io/tem_safe.c
782
tem->tvs_bg_color.rgb.a =
usr/src/uts/common/io/tem_safe.c
783
tem->tvs_alpha;
usr/src/uts/common/io/tem_safe.c
784
tem->tvs_bg_color.rgb.r = r;
usr/src/uts/common/io/tem_safe.c
785
tem->tvs_bg_color.rgb.g = g;
usr/src/uts/common/io/tem_safe.c
786
tem->tvs_bg_color.rgb.b = b;
usr/src/uts/common/io/tem_safe.c
792
tem_select_color(tem, tem->tvs_params[count],
usr/src/uts/common/io/tem_safe.c
805
tem->tvs_bg_color = tems.ts_init_color.bg_color;
usr/src/uts/common/io/tem_safe.c
806
tem->tvs_flags &= ~TEM_ATTR_RGB_BG;
usr/src/uts/common/io/tem_safe.c
808
tem->tvs_flags |= TEM_ATTR_BRIGHT_BG;
usr/src/uts/common/io/tem_safe.c
810
tem->tvs_flags &= ~TEM_ATTR_BRIGHT_BG;
usr/src/uts/common/io/tem_safe.c
821
tem->tvs_fg_color.n = param - 90;
usr/src/uts/common/io/tem_safe.c
822
tem->tvs_flags |= TEM_ATTR_BRIGHT_FG;
usr/src/uts/common/io/tem_safe.c
823
tem->tvs_flags &= ~TEM_ATTR_RGB_FG;
usr/src/uts/common/io/tem_safe.c
834
tem->tvs_bg_color.n = param - 100;
usr/src/uts/common/io/tem_safe.c
835
tem->tvs_flags |= TEM_ATTR_BRIGHT_BG;
usr/src/uts/common/io/tem_safe.c
836
tem->tvs_flags &= ~TEM_ATTR_RGB_BG;
usr/src/uts/common/io/tem_safe.c
852
tem_safe_window(struct tem_vt_state *tem, enum called_from called_from)
usr/src/uts/common/io/tem_safe.c
861
tem->tvs_state = A_STATE_START;
usr/src/uts/common/io/tem_safe.c
862
curparam = tem->tvs_curparam;
usr/src/uts/common/io/tem_safe.c
864
param = tem->tvs_params[index];
usr/src/uts/common/io/tem_safe.c
876
if (!canputnext(tem->tvs_queue))
usr/src/uts/common/io/tem_safe.c
889
(void) putnext(tem->tvs_queue, bp);
usr/src/uts/common/io/tem_safe.c
906
tem_safe_chkparam(struct tem_vt_state *tem, tem_char_t ch, cred_t *credp,
usr/src/uts/common/io/tem_safe.c
914
MUTEX_HELD(&tem->tvs_lock));
usr/src/uts/common/io/tem_safe.c
916
row = tem->tvs_c_cursor.row;
usr/src/uts/common/io/tem_safe.c
917
col = tem->tvs_c_cursor.col;
usr/src/uts/common/io/tem_safe.c
922
tem_safe_send_data(tem, credp, called_from);
usr/src/uts/common/io/tem_safe.c
923
tem_safe_selgraph(tem);
usr/src/uts/common/io/tem_safe.c
927
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
928
tem_safe_shift(tem, tem->tvs_params[0], TEM_SHIFT_RIGHT,
usr/src/uts/common/io/tem_safe.c
933
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
934
tem_safe_mv_cursor(tem, row - tem->tvs_params[0], col,
usr/src/uts/common/io/tem_safe.c
939
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
940
tem_safe_mv_cursor(tem, tem->tvs_params[0] - 1, col,
usr/src/uts/common/io/tem_safe.c
946
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
947
tem_safe_mv_cursor(tem, row + tem->tvs_params[0], col,
usr/src/uts/common/io/tem_safe.c
953
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
954
tem_safe_mv_cursor(tem, row, col + tem->tvs_params[0],
usr/src/uts/common/io/tem_safe.c
959
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
960
tem_safe_mv_cursor(tem, row, tem->tvs_params[0] - 1,
usr/src/uts/common/io/tem_safe.c
965
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
966
tem_safe_mv_cursor(tem, row, col - tem->tvs_params[0],
usr/src/uts/common/io/tem_safe.c
971
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
972
tem_safe_mv_cursor(tem, row + tem->tvs_params[0], 0,
usr/src/uts/common/io/tem_safe.c
977
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
978
tem_safe_mv_cursor(tem, row - tem->tvs_params[0], 0,
usr/src/uts/common/io/tem_safe.c
983
tem_safe_setparam(tem, 1, 1);
usr/src/uts/common/io/tem_safe.c
984
tem_safe_mv_cursor(tem, row, tem->tvs_params[0] - 1,
usr/src/uts/common/io/tem_safe.c
989
tem_safe_setparam(tem, 1, 0);
usr/src/uts/common/io/tem_safe.c
990
tem_safe_clear_tabs(tem, tem->tvs_params[0]);
usr/src/uts/common/io/tem_safe.c
995
tem_safe_setparam(tem, 2, 1);
usr/src/uts/common/io/tem_safe.c
996
tem_safe_mv_cursor(tem,
usr/src/uts/common/io/tem_safe.c
997
tem->tvs_params[0] - 1,
usr/src/uts/common/io/tem_safe.c
998
tem->tvs_params[1] - 1,
usr/src/uts/common/sys/tem_impl.h
313
void tem_safe_check_first_time(struct tem_vt_state *tem, cred_t *,
usr/src/uts/sparc/fpu/fpu_simulator.c
187
pfpsd->fp_fsrtem = fsr.tem; /* Obtain fsr's tem */
usr/src/uts/sparc/fpu/fpu_simulator.c
207
if ((pfpsd->fp_current_exceptions & fsr.tem) == 0) {
usr/src/uts/sparc/fpu/fpu_simulator.c
219
if ((pfpsd->fp_current_exceptions & fsr.tem) == 0) {
usr/src/uts/sparc/fpu/fpu_simulator.c
231
if ((pfpsd->fp_current_exceptions & fsr.tem) == 0) {
usr/src/uts/sparc/fpu/fpu_simulator.c
246
if ((pfpsd->fp_current_exceptions & fsr.tem) == 0) {
usr/src/uts/sparc/fpu/fpu_simulator.c
501
andexcep = pfpsd->fp_current_exceptions & fsr.tem;
usr/src/uts/sparc/sys/fpu/fpu_simulator.h
125
#define tem fsr.tem
usr/src/uts/sparc/sys/fpu/fpu_simulator.h
95
unsigned int tem : 5; /* trap enable mask */