Lines Matching full:vc

6  * Pressing Insert switches to VC browsing.
49 /* mini view of VC */
52 /* show console ? (or show VC) */
108 /* Follow the VC cursor*/
109 static void vc_follow_cursor(struct vc_data *vc) in vc_follow_cursor() argument
111 vc_x = vc->state.x - (vc->state.x % WIDTH); in vc_follow_cursor()
112 vc_y = vc->state.y; in vc_follow_cursor()
113 lastvc_x = vc->state.x; in vc_follow_cursor()
114 lastvc_y = vc->state.y; in vc_follow_cursor()
117 /* Maybe the VC cursor moved, if so follow it */
118 static void vc_maybe_cursor_moved(struct vc_data *vc) in vc_maybe_cursor_moved() argument
120 if (vc->state.x != lastvc_x || vc->state.y != lastvc_y) in vc_maybe_cursor_moved()
121 vc_follow_cursor(vc); in vc_maybe_cursor_moved()
124 /* Show portion of VC at vc_x, vc_y */
125 static void vc_refresh(struct vc_data *vc) in vc_refresh() argument
131 u16 glyph = screen_glyph(vc, in vc_refresh()
132 2 * (vc_x + i) + vc_y * vc->vc_size_row); in vc_refresh()
133 buf[i] = inverse_translate(vc, glyph, true); in vc_refresh()
146 struct vc_data *vc = param->vc; in keyboard_notifier_call() local
158 vc_maybe_cursor_moved(vc); in keyboard_notifier_call()
159 vc_refresh(vc); in keyboard_notifier_call()
179 vc_x = vc->vc_cols-WIDTH; in keyboard_notifier_call()
184 if (vc_x + WIDTH < vc->vc_cols) { in keyboard_notifier_call()
186 } else if (vc_y + 1 < vc->vc_rows) { in keyboard_notifier_call()
194 if (vc_y + 1 < vc->vc_rows) in keyboard_notifier_call()
206 vc_follow_cursor(vc); in keyboard_notifier_call()
214 vc_y = vc->vc_rows-1; in keyboard_notifier_call()
221 vc_refresh(vc); in keyboard_notifier_call()
267 struct vc_data *vc = param->vc; in vt_notifier_call() local
278 if (vc->vc_num != fg_console) in vt_notifier_call()
317 vc_maybe_cursor_moved(vc); in vt_notifier_call()
318 vc_refresh(vc); in vt_notifier_call()
325 if (vc->vc_num != lastVC) { in vt_notifier_call()
326 lastVC = vc->vc_num; in vt_notifier_call()
332 vc_maybe_cursor_moved(vc); in vt_notifier_call()
333 vc_refresh(vc); in vt_notifier_call()