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()
211 static int vc_selection_store_chars(struct vc_data *vc, bool unicode) in vc_selection_store_chars() argument
237 if (!((i + 2) % vc->vc_size_row)) { in vc_selection_store_chars()
252 static int vc_do_selection(struct vc_data *vc, unsigned short mode, int ps, in vc_do_selection() argument
270 if (!(ps % vc->vc_size_row)) in vc_do_selection()
280 if (!((pe + 2) % vc->vc_size_row)) in vc_do_selection()
285 new_sel_start = rounddown(ps, vc->vc_size_row); in vc_do_selection()
286 new_sel_end = rounddown(pe, vc->vc_size_row) + in vc_do_selection()
287 vc->vc_size_row - 2; in vc_do_selection()
301 !atedge(new_sel_end, vc->vc_size_row) && in vc_do_selection()
305 atedge(pe, vc->vc_size_row)) in vc_do_selection()
336 return vc_selection_store_chars(vc, unicode); in vc_do_selection()
339 static int vc_selection(struct vc_data *vc, struct tiocl_selection *v, in vc_selection() argument
352 v->xs = min_t(u16, v->xs - 1, vc->vc_cols - 1); in vc_selection()
353 v->ys = min_t(u16, v->ys - 1, vc->vc_rows - 1); in vc_selection()
354 v->xe = min_t(u16, v->xe - 1, vc->vc_cols - 1); in vc_selection()
355 v->ye = min_t(u16, 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()
399 struct vc_data *vc = tty->driver_data; in paste_selection() local
406 bool bp = vc->vc_bracketed_paste; in paste_selection()
419 tty_buffer_lock_exclusive(&vc->port); in paste_selection()
421 add_wait_queue(&vc->paste_wait, &wait); in paste_selection()
459 remove_wait_queue(&vc->paste_wait, &wait); in paste_selection()
462 tty_buffer_unlock_exclusive(&vc->port); in paste_selection()