• Home
  • Raw
  • Download

Lines Matching refs:vc

90 bool vc_is_sel(struct vc_data *vc)  in vc_is_sel()  argument
92 return vc == vc_sel.cons; in vc_is_sel()
188 static int vc_selection_store_chars(struct vc_data *vc, bool unicode) in vc_selection_store_chars() argument
214 if (!((i + 2) % vc->vc_size_row)) { in vc_selection_store_chars()
229 static int vc_do_selection(struct vc_data *vc, unsigned short mode, int ps, in vc_do_selection() argument
247 if (!(ps % vc->vc_size_row)) in vc_do_selection()
257 if (!((pe + 2) % vc->vc_size_row)) in vc_do_selection()
262 new_sel_start = rounddown(ps, vc->vc_size_row); in vc_do_selection()
263 new_sel_end = rounddown(pe, vc->vc_size_row) + in vc_do_selection()
264 vc->vc_size_row - 2; in vc_do_selection()
278 !atedge(new_sel_end, vc->vc_size_row) && in vc_do_selection()
282 atedge(pe, vc->vc_size_row)) in vc_do_selection()
313 return vc_selection_store_chars(vc, unicode); in vc_do_selection()
316 static int vc_selection(struct vc_data *vc, struct tiocl_selection *v, in vc_selection() argument
329 v->xs = min_t(u16, v->xs - 1, vc->vc_cols - 1); in vc_selection()
330 v->ys = min_t(u16, v->ys - 1, vc->vc_rows - 1); in vc_selection()
331 v->xe = min_t(u16, v->xe - 1, vc->vc_cols - 1); in vc_selection()
332 v->ye = min_t(u16, v->ye - 1, vc->vc_rows - 1); in vc_selection()
340 ps = v->ys * vc->vc_size_row + (v->xs << 1); in vc_selection()
341 pe = v->ye * vc->vc_size_row + (v->xe << 1); in vc_selection()
345 if (vc_sel.cons != vc) { in vc_selection()
347 vc_sel.cons = vc; in vc_selection()
350 return vc_do_selection(vc, v->sel_mode, ps, pe); in vc_selection()
376 struct vc_data *vc = tty->driver_data; in paste_selection() local
390 tty_buffer_lock_exclusive(&vc->port); in paste_selection()
392 add_wait_queue(&vc->paste_wait, &wait); in paste_selection()
413 remove_wait_queue(&vc->paste_wait, &wait); in paste_selection()
416 tty_buffer_unlock_exclusive(&vc->port); in paste_selection()