Lines Matching refs:vc
109 static void vc_follow_cursor(struct vc_data *vc)
111 vc_x = vc->state.x - (vc->state.x % WIDTH);
112 vc_y = vc->state.y;
113 lastvc_x = vc->state.x;
114 lastvc_y = vc->state.y;
118 static void vc_maybe_cursor_moved(struct vc_data *vc)
120 if (vc->state.x != lastvc_x || vc->state.y != lastvc_y)
121 vc_follow_cursor(vc);
125 static void vc_refresh(struct vc_data *vc)
131 u16 glyph = screen_glyph(vc,
132 2 * (vc_x + i) + vc_y * vc->vc_size_row);
133 buf[i] = inverse_translate(vc, glyph, true);
146 struct vc_data *vc = param->vc;
158 vc_maybe_cursor_moved(vc);
159 vc_refresh(vc);
179 vc_x = vc->vc_cols-WIDTH;
184 if (vc_x + WIDTH < vc->vc_cols) {
186 } else if (vc_y + 1 < vc->vc_rows) {
194 if (vc_y + 1 < vc->vc_rows)
206 vc_follow_cursor(vc);
214 vc_y = vc->vc_rows-1;
221 vc_refresh(vc);
267 struct vc_data *vc = param->vc;
278 if (vc->vc_num != fg_console)
317 vc_maybe_cursor_moved(vc);
318 vc_refresh(vc);
325 if (vc->vc_num != lastVC) {
326 lastVC = vc->vc_num;
332 vc_maybe_cursor_moved(vc);
333 vc_refresh(vc);