Lines Matching refs:ioctl
107 if (ioctl(0, VT_GETACTIVE, &cur_info.active_vty) == -1) in init()
111 if (ioctl(0, CONS_GETINFO, &cur_info.console_info) == -1) in init()
116 ioctl(0, GIO_SCRNMAP, &cur_info.screen_map) == -1) in init()
119 if (ioctl(0, CONS_GET, &cur_info.video_mode_number) == -1) in init()
124 if (ioctl(0, CONS_MODEINFO, &cur_info.video_mode_info) == -1) in init()
143 ioctl(0, VT_ACTIVATE, cur_info.active_vty); in revert()
145 ioctl(0, KDSBORDER, cur_info.console_info.mv_ovscan); in revert()
150 ioctl(0, PIO_SCRNMAP, &cur_info.screen_map); in revert()
154 ioctl(0, in revert()
158 ioctl(0, _IO('S', cur_info.video_mode_number), NULL); in revert()
163 ioctl(0, KDRASTER, size); in revert()
300 if (ioctl(0, PIO_SCRNMAP, &scrnmap) == -1) { in load_scrnmap()
322 if (ioctl(0, PIO_SCRNMAP, &scrnmap) == -1) { in load_default_scrnmap()
339 if (ioctl(0, GIO_SCRNMAP, &map) == -1) { in print_scrnmap()
408 if (ioctl(0, PIO_VFONT_DEFAULT) == -1) { in load_default_vt4font()
453 if (ioctl(STDIN_FILENO, PIO_VFONT, &vfnt) == -1) in load_vt4font()
492 if (ioctl(0, CONS_GETINFO, &info) == -1) { in load_font()
575 if (ioctl(0, io, fontmap) == -1) { in load_font()
605 if (ioctl(0, CONS_BLANKTIME, &nsec) == -1) { in set_screensaver_timeout()
684 if (ioctl(0, CONS_GETCURSORSHAPE, &shape) != 0) { in set_cursor_type()
690 if (ioctl(0, CONS_SETCURSORSHAPE, &shape) != 0) { in set_cursor_type()
749 if (ioctl(0, CONS_GET, &cur_mode) < 0) in video_mode()
773 if (ioctl(0, mode, NULL) < 0) { in video_mode()
786 if (ioctl(0, CONS_MODEINFO, &new_mode_info) == -1) { in video_mode()
802 if (ioctl(0, mode, NULL) == -1) { in video_mode()
842 if (ioctl(0, KDRASTER, size)) { in video_mode()
845 ioctl(0, in video_mode()
849 ioctl(0, _IO('S', cur_mode), NULL); in video_mode()
944 } else if (ioctl(0, VT_ACTIVATE, n) == -1) { in set_console()
965 if (ioctl(0, KDSBORDER, color) != 0) { in set_border_color()
988 if (ioctl(0, CONS_MOUSECTL, &mouse) == -1) { in set_mouse_char()
1013 if (ioctl(0, CONS_MOUSECTL, &mouse) == -1) { in set_mouse()
1035 if (ioctl(0, VT_LOCKSWITCH, &data) == -1) { in set_lockswitch()
1095 if (ioctl(0, CONS_ADPINFO, &ad) == -1) { in show_adapter_info()
1138 if (ioctl(0, CONS_MODEINFO, &info)) in show_mode_info()
1225 if (ioctl(0, CONS_GETINFO, &info) == -1) in test_frame()
1269 if (ioctl(0, CONS_GETINFO, &info) == -1) { in dump_screen()
1286 if (ioctl(0, CONS_SCRSHOT, &shot) == -1) { in dump_screen()
1352 if (ioctl(0, CONS_HISTORY, &size) == -1) { in set_history()
1366 if (ioctl(0, CONS_CLRHIST) == -1) { in clear_history()
1376 if (ioctl(0, CONS_GETTERM, tip) == 0) in get_terminal_emulator()
1404 if (ioctl(0, CONS_SETTERM, &ti) != 0) in set_terminal_emulator()