Lines Matching refs:ps
229 static int vc_do_selection(struct vc_data *vc, unsigned short mode, int ps, in vc_do_selection() argument
237 new_sel_start = ps; in vc_do_selection()
241 spc = is_space_on_vt(sel_pos(ps, unicode)); in vc_do_selection()
242 for (new_sel_start = ps; ; ps -= 2) { in vc_do_selection()
243 if ((spc && !is_space_on_vt(sel_pos(ps, unicode))) || in vc_do_selection()
244 (!spc && !inword(sel_pos(ps, unicode)))) in vc_do_selection()
246 new_sel_start = ps; in vc_do_selection()
247 if (!(ps % vc->vc_size_row)) in vc_do_selection()
262 new_sel_start = rounddown(ps, vc->vc_size_row); in vc_do_selection()
319 int ps, pe; in vc_selection() local
340 ps = v->ys * vc->vc_size_row + (v->xs << 1); in vc_selection()
342 if (ps > pe) /* make vc_sel.start <= vc_sel.end */ in vc_selection()
343 swap(ps, pe); in vc_selection()
350 return vc_do_selection(vc, v->sel_mode, ps, pe); in vc_selection()