Lines Matching refs:vc
161 struct vc_data *vc = vc_cons[fg_console].d; in set_selection() local
180 xs = limit(xs, vc->vc_cols - 1); in set_selection()
181 ys = limit(ys, vc->vc_rows - 1); in set_selection()
182 xe = limit(xe, vc->vc_cols - 1); in set_selection()
183 ye = limit(ye, vc->vc_rows - 1); in set_selection()
184 ps = ys * vc->vc_size_row + (xs << 1); in set_selection()
185 pe = ye * vc->vc_size_row + (xe << 1); in set_selection()
230 if (!(ps % vc->vc_size_row)) in set_selection()
240 if (!((pe + 2) % vc->vc_size_row)) in set_selection()
245 new_sel_start = ps - ps % vc->vc_size_row; in set_selection()
246 new_sel_end = pe + vc->vc_size_row in set_selection()
247 - pe % vc->vc_size_row - 2; in set_selection()
261 !atedge(new_sel_end, vc->vc_size_row) && in set_selection()
265 atedge(pe, vc->vc_size_row)) in set_selection()
316 if (! ((i + 2) % vc->vc_size_row)) { in set_selection()
339 struct vc_data *vc = tty->driver_data; in paste_selection() local
352 tty_buffer_lock_exclusive(&vc->port); in paste_selection()
354 add_wait_queue(&vc->paste_wait, &wait); in paste_selection()
367 remove_wait_queue(&vc->paste_wait, &wait); in paste_selection()
370 tty_buffer_unlock_exclusive(&vc->port); in paste_selection()