Lines Matching refs:vf

645 vt_termsize(struct vt_device *vd, struct vt_font *vf, term_pos_t *size)  in vt_termsize()  argument
652 if (vf != NULL) { in vt_termsize()
653 size->tp_row = MIN(size->tp_row / vf->vf_height, in vt_termsize()
655 size->tp_col = MIN(size->tp_col / vf->vf_width, in vt_termsize()
661 vt_termrect(struct vt_device *vd, struct vt_font *vf, term_rect_t *rect) in vt_termrect() argument
671 if (vf != NULL) { in vt_termrect()
673 howmany(rect->tr_begin.tp_row, vf->vf_height); in vt_termrect()
675 rect->tr_end.tp_row = MIN(rect->tr_end.tp_row / vf->vf_height, in vt_termrect()
677 rect->tr_end.tp_col = MIN(rect->tr_end.tp_col / vf->vf_width, in vt_termrect()
683 vt_winsize(struct vt_device *vd, struct vt_font *vf, struct winsize *size) in vt_winsize() argument
691 if (vf != NULL) { in vt_winsize()
692 size->ws_row = MIN(size->ws_row / vf->vf_height, in vt_winsize()
694 size->ws_col = MIN(size->ws_col / vf->vf_width, in vt_winsize()
703 struct vt_font *vf; in vt_compute_drawable_area() local
718 vf = vw->vw_font; in vt_compute_drawable_area()
728 vw->vw_draw_area.tr_begin.tp_col = (vd->vd_width % vf->vf_width) / 2; in vt_compute_drawable_area()
729 vw->vw_draw_area.tr_begin.tp_row = (height % vf->vf_height) / 2; in vt_compute_drawable_area()
733 rounddown(vd->vd_width, vf->vf_width); in vt_compute_drawable_area()
735 rounddown(height, vf->vf_height); in vt_compute_drawable_area()
1281 struct vt_font *vf; in vt_mark_mouse_position_as_dirty() local
1285 vf = vw->vw_font; in vt_mark_mouse_position_as_dirty()
1290 if (vf != NULL) { in vt_mark_mouse_position_as_dirty()
1291 area.tr_begin.tp_col = x / vf->vf_width; in vt_mark_mouse_position_as_dirty()
1292 area.tr_begin.tp_row = y / vf->vf_height; in vt_mark_mouse_position_as_dirty()
1294 ((x + vd->vd_mcursor->width) / vf->vf_width) + 1; in vt_mark_mouse_position_as_dirty()
1296 ((y + vd->vd_mcursor->height) / vf->vf_height) + 1; in vt_mark_mouse_position_as_dirty()
1395 struct vt_font *vf; in vt_bitblt_buffer() local
1401 vf = vw->vw_font; in vt_bitblt_buffer()
1406 x = col * vf->vf_width + in vt_bitblt_buffer()
1408 y = row * vf->vf_height + in vt_bitblt_buffer()
1422 pattern = vtfont_lookup(vf, c); in vt_bitblt_buffer()
1424 pattern, NULL, vf->vf_width, vf->vf_height, in vt_bitblt_buffer()
1435 drawn_area.tr_begin.tp_col = area->tr_begin.tp_col * vf->vf_width; in vt_bitblt_buffer()
1436 drawn_area.tr_begin.tp_row = area->tr_begin.tp_row * vf->vf_height; in vt_bitblt_buffer()
1437 drawn_area.tr_end.tp_col = area->tr_end.tp_col * vf->vf_width; in vt_bitblt_buffer()
1438 drawn_area.tr_end.tp_row = area->tr_end.tp_row * vf->vf_height; in vt_bitblt_buffer()
1470 struct vt_font *vf; in vt_flush() local
1487 vf = vw->vw_font; in vt_flush()
1488 if (((vd->vd_flags & VDF_TEXTMODE) == 0) && (vf == NULL)) in vt_flush()
1542 vt_termrect(vd, vf, &tarea); in vt_flush()
2107 vt_change_font(struct vt_window *vw, struct vt_font *vf) in vt_change_font() argument
2136 vt_termsize(vd, vf, &size); in vt_change_font()
2137 vt_winsize(vd, vf, &wsz); in vt_change_font()
2148 if (vw->vw_font != vf && vw->vw_font != NULL && vf != NULL) { in vt_change_font()
2154 vw->vw_font = vtfont_ref(vf); in vt_change_font()
2271 struct vt_font *vf; in vt_mouse_terminput_button() local
2276 vf = vw->vw_font; in vt_mouse_terminput_button()
2279 x = vd->vd_mx / vf->vf_width; in vt_mouse_terminput_button()
2280 y = vd->vd_my / vf->vf_height; in vt_mouse_terminput_button()
2349 struct vt_font *vf; in vt_mouse_event() local
2355 vf = vw->vw_font; in vt_mouse_event()
2365 if (vf == NULL) /* Text mode. */ in vt_mouse_event()
2383 vt_termsize(vd, vf, &size); in vt_mouse_event()
2388 x = MIN(x, (size.tp_col * vf->vf_width) - 1); in vt_mouse_event()
2389 y = MIN(y, (size.tp_row * vf->vf_height) - 1); in vt_mouse_event()
2395 vd->vd_mx / vf->vf_width, in vt_mouse_event()
2396 vd->vd_my / vf->vf_height); in vt_mouse_event()
2432 vd->vd_mx / vf->vf_width, in vt_mouse_event()
2433 vd->vd_my / vf->vf_height); in vt_mouse_event()
2460 if (vtbuf_set_mark(&vw->vw_buf, mark, vd->vd_mx / vf->vf_width, in vt_mouse_event()
2461 vd->vd_my / vf->vf_height) == 1) { in vt_mouse_event()
2851 struct vt_font *vf; in vtterm_ioctl() local
2856 error = vtfont_load((void *)data, &vf); in vtterm_ioctl()
2860 error = vt_change_font(vw, vf); in vtterm_ioctl()
2861 vtfont_unref(vf); in vtterm_ioctl()