tag | line | file | source code |
currcons | 127 | drivers/char/console.c | static void get_scrmem(int currcons); |
currcons | 128 | drivers/char/console.c | static void set_scrmem(int currcons, long offset); |
currcons | 129 | drivers/char/console.c | static void set_origin(int currcons); |
currcons | 133 | drivers/char/console.c | static void gotoxy(int currcons, int new_x, int new_y); |
currcons | 134 | drivers/char/console.c | static void save_cur(int currcons); |
currcons | 135 | drivers/char/console.c | static inline void set_cursor(int currcons); |
currcons | 136 | drivers/char/console.c | static void reset_terminal(int currcons, int do_clear); |
currcons | 233 | drivers/char/console.c | #define screenbuf_size (vc_cons[currcons].d->vc_screenbuf_size) |
currcons | 234 | drivers/char/console.c | #define origin (vc_cons[currcons].d->vc_origin) |
currcons | 235 | drivers/char/console.c | #define scr_end (vc_cons[currcons].d->vc_scr_end) |
currcons | 236 | drivers/char/console.c | #define pos (vc_cons[currcons].d->vc_pos) |
currcons | 237 | drivers/char/console.c | #define top (vc_cons[currcons].d->vc_top) |
currcons | 238 | drivers/char/console.c | #define bottom (vc_cons[currcons].d->vc_bottom) |
currcons | 239 | drivers/char/console.c | #define x (vc_cons[currcons].d->vc_x) |
currcons | 240 | drivers/char/console.c | #define y (vc_cons[currcons].d->vc_y) |
currcons | 241 | drivers/char/console.c | #define vc_state (vc_cons[currcons].d->vc_state) |
currcons | 242 | drivers/char/console.c | #define npar (vc_cons[currcons].d->vc_npar) |
currcons | 243 | drivers/char/console.c | #define par (vc_cons[currcons].d->vc_par) |
currcons | 244 | drivers/char/console.c | #define ques (vc_cons[currcons].d->vc_ques) |
currcons | 245 | drivers/char/console.c | #define attr (vc_cons[currcons].d->vc_attr) |
currcons | 246 | drivers/char/console.c | #define saved_x (vc_cons[currcons].d->vc_saved_x) |
currcons | 247 | drivers/char/console.c | #define saved_y (vc_cons[currcons].d->vc_saved_y) |
currcons | 248 | drivers/char/console.c | #define translate (vc_cons[currcons].d->vc_translate) |
currcons | 249 | drivers/char/console.c | #define G0_charset (vc_cons[currcons].d->vc_G0_charset) |
currcons | 250 | drivers/char/console.c | #define G1_charset (vc_cons[currcons].d->vc_G1_charset) |
currcons | 251 | drivers/char/console.c | #define saved_G0 (vc_cons[currcons].d->vc_saved_G0) |
currcons | 252 | drivers/char/console.c | #define saved_G1 (vc_cons[currcons].d->vc_saved_G1) |
currcons | 253 | drivers/char/console.c | #define utf (vc_cons[currcons].d->vc_utf) |
currcons | 254 | drivers/char/console.c | #define utf_count (vc_cons[currcons].d->vc_utf_count) |
currcons | 255 | drivers/char/console.c | #define utf_char (vc_cons[currcons].d->vc_utf_char) |
currcons | 256 | drivers/char/console.c | #define video_mem_start (vc_cons[currcons].d->vc_video_mem_start) |
currcons | 257 | drivers/char/console.c | #define video_mem_end (vc_cons[currcons].d->vc_video_mem_end) |
currcons | 258 | drivers/char/console.c | #define video_erase_char (vc_cons[currcons].d->vc_video_erase_char) |
currcons | 259 | drivers/char/console.c | #define disp_ctrl (vc_cons[currcons].d->vc_disp_ctrl) |
currcons | 260 | drivers/char/console.c | #define toggle_meta (vc_cons[currcons].d->vc_toggle_meta) |
currcons | 261 | drivers/char/console.c | #define decscnm (vc_cons[currcons].d->vc_decscnm) |
currcons | 262 | drivers/char/console.c | #define decom (vc_cons[currcons].d->vc_decom) |
currcons | 263 | drivers/char/console.c | #define decawm (vc_cons[currcons].d->vc_decawm) |
currcons | 264 | drivers/char/console.c | #define deccm (vc_cons[currcons].d->vc_deccm) |
currcons | 265 | drivers/char/console.c | #define decim (vc_cons[currcons].d->vc_decim) |
currcons | 266 | drivers/char/console.c | #define deccolm (vc_cons[currcons].d->vc_deccolm) |
currcons | 267 | drivers/char/console.c | #define need_wrap (vc_cons[currcons].d->vc_need_wrap) |
currcons | 268 | drivers/char/console.c | #define has_scrolled (vc_cons[currcons].d->vc_has_scrolled) |
currcons | 269 | drivers/char/console.c | #define kmalloced (vc_cons[currcons].d->vc_kmalloced) |
currcons | 270 | drivers/char/console.c | #define report_mouse (vc_cons[currcons].d->vc_report_mouse) |
currcons | 271 | drivers/char/console.c | #define color (vc_cons[currcons].d->vc_color) |
currcons | 272 | drivers/char/console.c | #define s_color (vc_cons[currcons].d->vc_s_color) |
currcons | 273 | drivers/char/console.c | #define def_color (vc_cons[currcons].d->vc_def_color) |
currcons | 276 | drivers/char/console.c | #define charset (vc_cons[currcons].d->vc_charset) |
currcons | 277 | drivers/char/console.c | #define s_charset (vc_cons[currcons].d->vc_s_charset) |
currcons | 278 | drivers/char/console.c | #define intensity (vc_cons[currcons].d->vc_intensity) |
currcons | 279 | drivers/char/console.c | #define underline (vc_cons[currcons].d->vc_underline) |
currcons | 280 | drivers/char/console.c | #define blink (vc_cons[currcons].d->vc_blink) |
currcons | 281 | drivers/char/console.c | #define reverse (vc_cons[currcons].d->vc_reverse) |
currcons | 282 | drivers/char/console.c | #define s_intensity (vc_cons[currcons].d->vc_s_intensity) |
currcons | 283 | drivers/char/console.c | #define s_underline (vc_cons[currcons].d->vc_s_underline) |
currcons | 284 | drivers/char/console.c | #define s_blink (vc_cons[currcons].d->vc_s_blink) |
currcons | 285 | drivers/char/console.c | #define s_reverse (vc_cons[currcons].d->vc_s_reverse) |
currcons | 286 | drivers/char/console.c | #define ulcolor (vc_cons[currcons].d->vc_ulcolor) |
currcons | 287 | drivers/char/console.c | #define halfcolor (vc_cons[currcons].d->vc_halfcolor) |
currcons | 288 | drivers/char/console.c | #define tab_stop (vc_cons[currcons].d->vc_tab_stop) |
currcons | 290 | drivers/char/console.c | #define vcmode (vt_cons[currcons]->vc_mode) |
currcons | 363 | drivers/char/console.c | unsigned int currcons, i; |
currcons | 381 | drivers/char/console.c | for (currcons = 0; currcons < MAX_NR_CONSOLES; currcons++) { |
currcons | 382 | drivers/char/console.c | if (!vc_cons_allocated(currcons)) |
currcons | 383 | drivers/char/console.c | newscreens[currcons] = 0; |
currcons | 387 | drivers/char/console.c | for (i = 0; i< currcons; i++) |
currcons | 392 | drivers/char/console.c | newscreens[currcons] = p; |
currcons | 408 | drivers/char/console.c | for (currcons = 0; currcons < MAX_NR_CONSOLES; currcons++) { |
currcons | 409 | drivers/char/console.c | if (!vc_cons_allocated(currcons)) |
currcons | 415 | drivers/char/console.c | nl = (long) newscreens[currcons]; |
currcons | 428 | drivers/char/console.c | kfree_s(vc_scrbuf[currcons], screenbuf_size); |
currcons | 429 | drivers/char/console.c | vc_scrbuf[currcons] = newscreens[currcons]; |
currcons | 433 | drivers/char/console.c | origin = video_mem_start = (long) vc_scrbuf[currcons]; |
currcons | 442 | drivers/char/console.c | gotoxy(currcons, x, y); |
currcons | 443 | drivers/char/console.c | save_cur(currcons); |
currcons | 453 | drivers/char/console.c | void vc_disallocate(unsigned int currcons) |
currcons | 455 | drivers/char/console.c | if (vc_cons_allocated(currcons)) { |
currcons | 457 | drivers/char/console.c | kfree_s(vc_scrbuf[currcons], screenbuf_size); |
currcons | 458 | drivers/char/console.c | if (currcons >= MIN_NR_CONSOLES) |
currcons | 459 | drivers/char/console.c | kfree_s(vc_cons[currcons].d, structsize); |
currcons | 460 | drivers/char/console.c | vc_cons[currcons].d = 0; |
currcons | 465 | drivers/char/console.c | #define set_kbd(x) set_vc_kbd_mode(kbd_table+currcons,x) |
currcons | 466 | drivers/char/console.c | #define clr_kbd(x) clr_vc_kbd_mode(kbd_table+currcons,x) |
currcons | 467 | drivers/char/console.c | #define is_kbd(x) vc_kbd_mode(kbd_table+currcons,x) |
currcons | 488 | drivers/char/console.c | static void gotoxy(int currcons, int new_x, int new_y) |
currcons | 558 | drivers/char/console.c | static void set_origin(int currcons) |
currcons | 562 | drivers/char/console.c | if (currcons != fg_console || console_blanked || vcmode == KD_GRAPHICS) |
currcons | 582 | drivers/char/console.c | static inline void set_cursor(int currcons) |
currcons | 586 | drivers/char/console.c | if (currcons != fg_console || console_blanked || vcmode == KD_GRAPHICS) |
currcons | 601 | drivers/char/console.c | static void scrup(int currcons, unsigned int t, unsigned int b) |
currcons | 645 | drivers/char/console.c | set_origin(currcons); |
currcons | 663 | drivers/char/console.c | static void scrdown(int currcons, unsigned int t, unsigned int b) |
currcons | 685 | drivers/char/console.c | static void lf(int currcons) |
currcons | 691 | drivers/char/console.c | scrup(currcons,top,bottom); |
currcons | 699 | drivers/char/console.c | static void ri(int currcons) |
currcons | 705 | drivers/char/console.c | scrdown(currcons,top,bottom); |
currcons | 713 | drivers/char/console.c | static inline void cr(int currcons) |
currcons | 719 | drivers/char/console.c | static inline void bs(int currcons) |
currcons | 728 | drivers/char/console.c | static inline void del(int currcons) |
currcons | 733 | drivers/char/console.c | static void csi_J(int currcons, int vpar) |
currcons | 761 | drivers/char/console.c | static void csi_K(int currcons, int vpar) |
currcons | 789 | drivers/char/console.c | static void csi_X(int currcons, int vpar) /* erase the following vpar positions */ |
currcons | 807 | drivers/char/console.c | static void update_attr(int currcons) |
currcons | 834 | drivers/char/console.c | static void default_attr(int currcons) |
currcons | 843 | drivers/char/console.c | static void csi_m(int currcons) |
currcons | 850 | drivers/char/console.c | default_attr(currcons); |
currcons | 935 | drivers/char/console.c | update_attr(currcons); |
currcons | 947 | drivers/char/console.c | static void cursor_report(int currcons, struct tty_struct * tty) |
currcons | 977 | drivers/char/console.c | int currcons = fg_console; |
currcons | 982 | drivers/char/console.c | static inline unsigned short *screenpos(int currcons, int offset, int viewed) |
currcons | 985 | drivers/char/console.c | if (viewed && currcons == fg_console) |
currcons | 991 | drivers/char/console.c | void invert_screen(int currcons, int offset, int count, int viewed) |
currcons | 996 | drivers/char/console.c | p = screenpos(currcons, offset, viewed); |
currcons | 1013 | drivers/char/console.c | void complement_pos(int currcons, int offset) |
currcons | 1023 | drivers/char/console.c | p = screenpos(currcons, offset, 1); |
currcons | 1030 | drivers/char/console.c | unsigned short screen_word(int currcons, int offset, int viewed) |
currcons | 1032 | drivers/char/console.c | return scr_readw(screenpos(currcons, offset, viewed)); |
currcons | 1036 | drivers/char/console.c | unsigned short *screen_pos(int currcons, int w_offset, int viewed) |
currcons | 1038 | drivers/char/console.c | return screenpos(currcons, 2 * w_offset, viewed); |
currcons | 1041 | drivers/char/console.c | void getconsxy(int currcons, char *p) |
currcons | 1047 | drivers/char/console.c | void putconsxy(int currcons, char *p) |
currcons | 1049 | drivers/char/console.c | gotoxy(currcons, p[0], p[1]); |
currcons | 1050 | drivers/char/console.c | set_cursor(currcons); |
currcons | 1053 | drivers/char/console.c | static void set_mode(int currcons, int on_off) |
currcons | 1076 | drivers/char/console.c | invert_screen(currcons, 0, video_screen_size, 0); |
currcons | 1077 | drivers/char/console.c | update_attr(currcons); |
currcons | 1082 | drivers/char/console.c | gotoxy(currcons,0,0); |
currcons | 1098 | drivers/char/console.c | set_cursor(currcons); |
currcons | 1119 | drivers/char/console.c | static void setterm_command(int currcons) |
currcons | 1126 | drivers/char/console.c | update_attr(currcons); |
currcons | 1133 | drivers/char/console.c | update_attr(currcons); |
currcons | 1138 | drivers/char/console.c | default_attr(currcons); |
currcons | 1139 | drivers/char/console.c | update_attr(currcons); |
currcons | 1148 | drivers/char/console.c | static void insert_char(int currcons) |
currcons | 1163 | drivers/char/console.c | static void insert_line(int currcons) |
currcons | 1165 | drivers/char/console.c | scrdown(currcons,y,bottom); |
currcons | 1169 | drivers/char/console.c | static void delete_char(int currcons) |
currcons | 1182 | drivers/char/console.c | static void delete_line(int currcons) |
currcons | 1184 | drivers/char/console.c | scrup(currcons,y,bottom); |
currcons | 1188 | drivers/char/console.c | static void csi_at(int currcons, unsigned int nr) |
currcons | 1195 | drivers/char/console.c | insert_char(currcons); |
currcons | 1198 | drivers/char/console.c | static void csi_L(int currcons, unsigned int nr) |
currcons | 1205 | drivers/char/console.c | insert_line(currcons); |
currcons | 1208 | drivers/char/console.c | static void csi_P(int currcons, unsigned int nr) |
currcons | 1215 | drivers/char/console.c | delete_char(currcons); |
currcons | 1218 | drivers/char/console.c | static void csi_M(int currcons, unsigned int nr) |
currcons | 1225 | drivers/char/console.c | delete_line(currcons); |
currcons | 1228 | drivers/char/console.c | static void save_cur(int currcons) |
currcons | 1242 | drivers/char/console.c | static void restore_cur(int currcons) |
currcons | 1244 | drivers/char/console.c | gotoxy(currcons,saved_x,saved_y); |
currcons | 1254 | drivers/char/console.c | update_attr(currcons); |
currcons | 1261 | drivers/char/console.c | static void reset_terminal(int currcons, int do_clear) |
currcons | 1289 | drivers/char/console.c | kbd_table[currcons].lockstate = 0; |
currcons | 1290 | drivers/char/console.c | kbd_table[currcons].ledmode = LED_SHOW_FLAGS; |
currcons | 1291 | drivers/char/console.c | kbd_table[currcons].ledflagstate = kbd_table[currcons].default_ledflagstate; |
currcons | 1294 | drivers/char/console.c | default_attr(currcons); |
currcons | 1295 | drivers/char/console.c | update_attr(currcons); |
currcons | 1303 | drivers/char/console.c | gotoxy(currcons,0,0); |
currcons | 1304 | drivers/char/console.c | save_cur(currcons); |
currcons | 1306 | drivers/char/console.c | csi_J(currcons,2); |
currcons | 1343 | drivers/char/console.c | unsigned int currcons; |
currcons | 1346 | drivers/char/console.c | currcons = vt->vc_num; |
currcons | 1347 | drivers/char/console.c | if (!vc_cons_allocated(currcons)) { |
currcons | 1352 | drivers/char/console.c | printk("con_write: tty %d not allocated\n", currcons+1); |
currcons | 1357 | drivers/char/console.c | if (currcons == sel_cons) |
currcons | 1417 | drivers/char/console.c | cr(currcons); |
currcons | 1418 | drivers/char/console.c | lf(currcons); |
currcons | 1421 | drivers/char/console.c | insert_char(currcons); |
currcons | 1441 | drivers/char/console.c | bs(currcons); |
currcons | 1453 | drivers/char/console.c | lf(currcons); |
currcons | 1457 | drivers/char/console.c | cr(currcons); |
currcons | 1476 | drivers/char/console.c | del(currcons); |
currcons | 1493 | drivers/char/console.c | cr(currcons); |
currcons | 1494 | drivers/char/console.c | lf(currcons); |
currcons | 1497 | drivers/char/console.c | ri(currcons); |
currcons | 1500 | drivers/char/console.c | lf(currcons); |
currcons | 1509 | drivers/char/console.c | save_cur(currcons); |
currcons | 1512 | drivers/char/console.c | restore_cur(currcons); |
currcons | 1524 | drivers/char/console.c | reset_terminal(currcons,1); |
currcons | 1559 | drivers/char/console.c | set_mode(currcons,1); |
currcons | 1562 | drivers/char/console.c | set_mode(currcons,0); |
currcons | 1569 | drivers/char/console.c | cursor_report(currcons,tty); |
currcons | 1579 | drivers/char/console.c | gotoxy(currcons,par[0],y); |
currcons | 1583 | drivers/char/console.c | gotoxy(currcons,x,y-par[0]); |
currcons | 1587 | drivers/char/console.c | gotoxy(currcons,x,y+par[0]); |
currcons | 1591 | drivers/char/console.c | gotoxy(currcons,x+par[0],y); |
currcons | 1595 | drivers/char/console.c | gotoxy(currcons,x-par[0],y); |
currcons | 1599 | drivers/char/console.c | gotoxy(currcons,0,y+par[0]); |
currcons | 1603 | drivers/char/console.c | gotoxy(currcons,0,y-par[0]); |
currcons | 1607 | drivers/char/console.c | gotoxy(currcons,x,par[0]); |
currcons | 1612 | drivers/char/console.c | gotoxy(currcons,par[1],par[0]); |
currcons | 1615 | drivers/char/console.c | csi_J(currcons,par[0]); |
currcons | 1618 | drivers/char/console.c | csi_K(currcons,par[0]); |
currcons | 1621 | drivers/char/console.c | csi_L(currcons,par[0]); |
currcons | 1624 | drivers/char/console.c | csi_M(currcons,par[0]); |
currcons | 1627 | drivers/char/console.c | csi_P(currcons,par[0]); |
currcons | 1645 | drivers/char/console.c | csi_m(currcons); |
currcons | 1650 | drivers/char/console.c | setledstate(kbd_table + currcons, |
currcons | 1663 | drivers/char/console.c | gotoxy(currcons,0,0); |
currcons | 1667 | drivers/char/console.c | save_cur(currcons); |
currcons | 1670 | drivers/char/console.c | restore_cur(currcons); |
currcons | 1673 | drivers/char/console.c | csi_X(currcons, par[0]); |
currcons | 1676 | drivers/char/console.c | csi_at(currcons,par[0]); |
currcons | 1679 | drivers/char/console.c | setterm_command(currcons); |
currcons | 1707 | drivers/char/console.c | csi_J(currcons, 2); |
currcons | 1743 | drivers/char/console.c | set_cursor(currcons); |
currcons | 1776 | drivers/char/console.c | int currcons = fg_console; |
currcons | 1784 | drivers/char/console.c | if (!vc_cons_allocated(currcons)) { |
currcons | 1786 | drivers/char/console.c | printk("console_print: tty %d not allocated ??\n", currcons+1); |
currcons | 1793 | drivers/char/console.c | lf(currcons); |
currcons | 1794 | drivers/char/console.c | cr(currcons); |
currcons | 1806 | drivers/char/console.c | set_cursor(currcons); |
currcons | 1827 | drivers/char/console.c | static void vc_init(unsigned int currcons, unsigned long rows, unsigned long cols, int do_clear) |
currcons | 1829 | drivers/char/console.c | long base = (long) vc_scrbuf[currcons]; |
currcons | 1839 | drivers/char/console.c | reset_vc(currcons); |
currcons | 1843 | drivers/char/console.c | vt_cons[currcons]->paste_wait = 0; |
currcons | 1844 | drivers/char/console.c | reset_terminal(currcons, do_clear); |
currcons | 1868 | drivers/char/console.c | int currcons = 0; |
currcons | 1958 | drivers/char/console.c | for (currcons = 0; currcons < MIN_NR_CONSOLES; currcons++) { |
currcons | 1959 | drivers/char/console.c | vc_cons[currcons].d = (struct vc_data *) kmem_start; |
currcons | 1961 | drivers/char/console.c | vt_cons[currcons] = (struct vt_struct *) kmem_start; |
currcons | 1963 | drivers/char/console.c | vc_scrbuf[currcons] = (unsigned short *) kmem_start; |
currcons | 1967 | drivers/char/console.c | vc_init(currcons, video_num_lines, video_num_columns, currcons); |
currcons | 1970 | drivers/char/console.c | currcons = fg_console = 0; |
currcons | 1976 | drivers/char/console.c | gotoxy(currcons,orig_x,orig_y); |
currcons | 1977 | drivers/char/console.c | set_origin(currcons); |
currcons | 1978 | drivers/char/console.c | csi_J(currcons, 0); |
currcons | 1989 | drivers/char/console.c | static void get_scrmem(int currcons) |
currcons | 1991 | drivers/char/console.c | memcpyw((unsigned short *)vc_scrbuf[currcons], |
currcons | 1993 | drivers/char/console.c | origin = video_mem_start = (unsigned long)vc_scrbuf[currcons]; |
currcons | 1998 | drivers/char/console.c | static void set_scrmem(int currcons, long offset) |
currcons | 2044 | drivers/char/console.c | int currcons; |
currcons | 2053 | drivers/char/console.c | currcons = fg_console; |
currcons | 2070 | drivers/char/console.c | int currcons; |
currcons | 2087 | drivers/char/console.c | currcons = fg_console; |
currcons | 20 | drivers/char/selection.h | extern unsigned short *screen_pos(int currcons, int w_offset, int viewed); |
currcons | 21 | drivers/char/selection.h | extern unsigned short screen_word(int currcons, int offset, int viewed); |
currcons | 22 | drivers/char/selection.h | extern void complement_pos(int currcons, int offset); |
currcons | 23 | drivers/char/selection.h | extern void invert_screen(int currcons, int offset, int count, int shift); |
currcons | 31 | drivers/char/selection.h | extern void getconsxy(int currcons, char *p); |
currcons | 32 | drivers/char/selection.h | extern void putconsxy(int currcons, char *p); |