Lines Matching refs:vc

93 bool vc_is_sel(const struct vc_data *vc)  in vc_is_sel()  argument
95 return vc == vc_sel.cons; in vc_is_sel()
210 static int vc_selection_store_chars(struct vc_data *vc, bool unicode) in vc_selection_store_chars() argument
236 if (!((i + 2) % vc->vc_size_row)) { in vc_selection_store_chars()
251 static int vc_do_selection(struct vc_data *vc, unsigned short mode, int ps, in vc_do_selection() argument
269 if (!(ps % vc->vc_size_row)) in vc_do_selection()
279 if (!((pe + 2) % vc->vc_size_row)) in vc_do_selection()
284 new_sel_start = rounddown(ps, vc->vc_size_row); in vc_do_selection()
285 new_sel_end = rounddown(pe, vc->vc_size_row) + in vc_do_selection()
286 vc->vc_size_row - 2; in vc_do_selection()
300 !atedge(new_sel_end, vc->vc_size_row) && in vc_do_selection()
304 atedge(pe, vc->vc_size_row)) in vc_do_selection()
335 return vc_selection_store_chars(vc, unicode); in vc_do_selection()
338 static int vc_selection(struct vc_data *vc, struct tiocl_selection *v, in vc_selection() argument
352 v->xs = umin(v->xs - 1, vc->vc_cols - 1); in vc_selection()
353 v->ys = umin(v->ys - 1, vc->vc_rows - 1); in vc_selection()
354 v->xe = umin(v->xe - 1, vc->vc_cols - 1); in vc_selection()
355 v->ye = umin(v->ye - 1, vc->vc_rows - 1); in vc_selection()
363 ps = v->ys * vc->vc_size_row + (v->xs << 1); in vc_selection()
364 pe = v->ye * vc->vc_size_row + (v->xe << 1); in vc_selection()
368 if (vc_sel.cons != vc) { in vc_selection()
370 vc_sel.cons = vc; in vc_selection()
373 return vc_do_selection(vc, v->sel_mode, ps, pe); in vc_selection()
393 struct vc_data *vc = tty->driver_data; in paste_selection() local
400 bool bp = vc->vc_bracketed_paste; in paste_selection()
412 tty_buffer_lock_exclusive(&vc->port); in paste_selection()
414 add_wait_queue(&vc->paste_wait, &wait); in paste_selection()
452 remove_wait_queue(&vc->paste_wait, &wait); in paste_selection()
455 tty_buffer_unlock_exclusive(&vc->port); in paste_selection()