Lines Matching refs:vd

107 vt_fb_ioctl(struct vt_device *vd, u_long cmd, caddr_t data, struct thread *td)  in vt_fb_ioctl()  argument
112 info = vd->vd_softc; in vt_fb_ioctl()
133 if (vd->vd_driver->vd_blank == NULL) in vt_fb_ioctl()
135 vd->vd_driver->vd_blank(vd, TC_BLACK); in vt_fb_ioctl()
155 vt_fb_mmap(struct vt_device *vd, vm_ooffset_t offset, vm_paddr_t *paddr, in vt_fb_mmap() argument
160 info = vd->vd_softc; in vt_fb_mmap()
184 vt_fb_setpixel(struct vt_device *vd, int x, int y, term_color_t color) in vt_fb_setpixel() argument
190 info = vd->vd_softc; in vt_fb_setpixel()
219 vt_fb_drawrect(struct vt_device *vd, int x1, int y1, int x2, int y2, int fill, in vt_fb_drawrect() argument
227 vt_fb_setpixel(vd, x, y, color); in vt_fb_drawrect()
229 vt_fb_setpixel(vd, x1, y, color); in vt_fb_drawrect()
230 vt_fb_setpixel(vd, x2, y, color); in vt_fb_drawrect()
236 vt_fb_blank(struct vt_device *vd, term_color_t color) in vt_fb_blank() argument
242 info = vd->vd_softc; in vt_fb_blank()
279 vt_fb_bitblt_bitmap(struct vt_device *vd, const struct vt_window *vw, in vt_fb_bitblt_bitmap() argument
289 info = vd->vd_softc; in vt_fb_bitblt_bitmap()
319 o += vd->vd_transpose; in vt_fb_bitblt_bitmap()
344 vt_fb_bitblt_argb(struct vt_device *vd, const struct vt_window *vw, in vt_fb_bitblt_argb() argument
353 info = vd->vd_softc; in vt_fb_bitblt_argb()
377 o += vd->vd_transpose; in vt_fb_bitblt_argb()
390 vt_fb_bitblt_text(struct vt_device *vd, const struct vt_window *vw, in vt_fb_bitblt_text() argument
419 if (vd->vd_drawn && (vd->vd_drawn[z] == c) && in vt_fb_bitblt_text()
420 vd->vd_drawnfg && (vd->vd_drawnfg[z] == fg) && in vt_fb_bitblt_text()
421 vd->vd_drawnbg && (vd->vd_drawnbg[z] == bg)) in vt_fb_bitblt_text()
424 vt_fb_bitblt_bitmap(vd, vw, in vt_fb_bitblt_text()
428 if (vd->vd_drawn) in vt_fb_bitblt_text()
429 vd->vd_drawn[z] = c; in vt_fb_bitblt_text()
430 if (vd->vd_drawnfg) in vt_fb_bitblt_text()
431 vd->vd_drawnfg[z] = fg; in vt_fb_bitblt_text()
432 if (vd->vd_drawnbg) in vt_fb_bitblt_text()
433 vd->vd_drawnbg[z] = bg; in vt_fb_bitblt_text()
438 if (!vd->vd_mshown) in vt_fb_bitblt_text()
448 if (vt_is_cursor_in_area(vd, &drawn_area)) { in vt_fb_bitblt_text()
449 vt_fb_bitblt_bitmap(vd, vw, in vt_fb_bitblt_text()
450 vd->vd_mcursor->map, vd->vd_mcursor->mask, in vt_fb_bitblt_text()
451 vd->vd_mcursor->width, vd->vd_mcursor->height, in vt_fb_bitblt_text()
452 vd->vd_mx_drawn + vw->vw_draw_area.tr_begin.tp_col, in vt_fb_bitblt_text()
453 vd->vd_my_drawn + vw->vw_draw_area.tr_begin.tp_row, in vt_fb_bitblt_text()
454 vd->vd_mcursor_fg, vd->vd_mcursor_bg); in vt_fb_bitblt_text()
460 vt_fb_invalidate_text(struct vt_device *vd, const term_rect_t *area) in vt_fb_invalidate_text() argument
472 if (vd->vd_drawn) in vt_fb_invalidate_text()
473 vd->vd_drawn[z] = 0; in vt_fb_invalidate_text()
474 if (vd->vd_drawnfg) in vt_fb_invalidate_text()
475 vd->vd_drawnfg[z] = 0; in vt_fb_invalidate_text()
476 if (vd->vd_drawnbg) in vt_fb_invalidate_text()
477 vd->vd_drawnbg[z] = 0; in vt_fb_invalidate_text()
483 vt_fb_postswitch(struct vt_device *vd) in vt_fb_postswitch() argument
487 info = vd->vd_softc; in vt_fb_postswitch()
517 vt_fb_init(struct vt_device *vd) in vt_fb_init() argument
524 info = vd->vd_softc; in vt_fb_init()
525 vd->vd_height = MIN(VT_FB_MAX_HEIGHT, info->fb_height); in vt_fb_init()
526 margin = (info->fb_height - vd->vd_height) >> 1; in vt_fb_init()
527 vd->vd_transpose = margin * info->fb_stride; in vt_fb_init()
528 vd->vd_width = MIN(VT_FB_MAX_WIDTH, info->fb_width); in vt_fb_init()
529 margin = (info->fb_width - vd->vd_width) >> 1; in vt_fb_init()
530 vd->vd_transpose += margin * (info->fb_bpp / NBBY); in vt_fb_init()
531 vd->vd_video_dev = info->fb_video_dev; in vt_fb_init()
553 vd->vd_driver->vd_blank(vd, c); in vt_fb_init()
556 vt_fb_postswitch(vd); in vt_fb_init()
562 vt_fb_fini(struct vt_device *vd, void *softc) in vt_fb_fini() argument
565 vd->vd_video_dev = NULL; in vt_fb_fini()
589 vt_fb_suspend(struct vt_device *vd) in vt_fb_suspend() argument
592 vt_suspend(vd); in vt_fb_suspend()
596 vt_fb_resume(struct vt_device *vd) in vt_fb_resume() argument
599 vt_resume(vd); in vt_fb_resume()