Lines Matching refs:vc
110 static void vc_follow_cursor(struct vc_data *vc) in vc_follow_cursor() argument
112 vc_x = vc->state.x - (vc->state.x % WIDTH); in vc_follow_cursor()
113 vc_y = vc->state.y; in vc_follow_cursor()
114 lastvc_x = vc->state.x; in vc_follow_cursor()
115 lastvc_y = vc->state.y; in vc_follow_cursor()
119 static void vc_maybe_cursor_moved(struct vc_data *vc) in vc_maybe_cursor_moved() argument
121 if (vc->state.x != lastvc_x || vc->state.y != lastvc_y) in vc_maybe_cursor_moved()
122 vc_follow_cursor(vc); in vc_maybe_cursor_moved()
126 static void vc_refresh(struct vc_data *vc) in vc_refresh() argument
132 u16 glyph = screen_glyph(vc, in vc_refresh()
133 2 * (vc_x + i) + vc_y * vc->vc_size_row); in vc_refresh()
134 buf[i] = inverse_translate(vc, glyph, 1); in vc_refresh()
147 struct vc_data *vc = param->vc; in keyboard_notifier_call() local
159 vc_maybe_cursor_moved(vc); in keyboard_notifier_call()
160 vc_refresh(vc); in keyboard_notifier_call()
180 vc_x = vc->vc_cols-WIDTH; in keyboard_notifier_call()
185 if (vc_x + WIDTH < vc->vc_cols) { in keyboard_notifier_call()
187 } else if (vc_y + 1 < vc->vc_rows) { in keyboard_notifier_call()
195 if (vc_y + 1 < vc->vc_rows) in keyboard_notifier_call()
207 vc_follow_cursor(vc); in keyboard_notifier_call()
215 vc_y = vc->vc_rows-1; in keyboard_notifier_call()
222 vc_refresh(vc); in keyboard_notifier_call()
268 struct vc_data *vc = param->vc; in vt_notifier_call() local
279 if (vc->vc_num != fg_console) in vt_notifier_call()
318 vc_maybe_cursor_moved(vc); in vt_notifier_call()
319 vc_refresh(vc); in vt_notifier_call()
326 if (vc->vc_num != lastVC) { in vt_notifier_call()
327 lastVC = vc->vc_num; in vt_notifier_call()
333 vc_maybe_cursor_moved(vc); in vt_notifier_call()
334 vc_refresh(vc); in vt_notifier_call()