Lines Matching full:adp
354 ofwfb_probe(int unit, video_adapter_t **adp, void *arg, int flags) in ofwfb_probe() argument
361 ofwfb_init(int unit, video_adapter_t *adp, int flags) in ofwfb_init() argument
368 sc = (struct ofwfb_softc *)adp; in ofwfb_init()
369 vi = &adp->va_info; in ofwfb_init()
371 vid_init_struct(adp, "ofwfb", -1, unit); in ofwfb_init()
412 adp->va_window = (vm_offset_t) ofwfb_static_window; in ofwfb_init()
420 adp->va_flags |= V_ADP_FONT | V_ADP_COLOR | V_ADP_MODECHANGE; in ofwfb_init()
430 ofwfb_get_info(video_adapter_t *adp, int mode, video_info_t *info) in ofwfb_get_info() argument
432 bcopy(&adp->va_info, info, sizeof(*info)); in ofwfb_get_info()
437 ofwfb_query_mode(video_adapter_t *adp, video_info_t *info) in ofwfb_query_mode() argument
444 ofwfb_set_mode(video_adapter_t *adp, int mode) in ofwfb_set_mode() argument
451 sc = (struct ofwfb_softc *)adp; in ofwfb_set_mode()
484 ofwfb_save_font(video_adapter_t *adp, int page, int size, int width, in ofwfb_save_font() argument
492 ofwfb_load_font(video_adapter_t *adp, int page, int size, int width, in ofwfb_load_font() argument
497 sc = (struct ofwfb_softc *)adp; in ofwfb_load_font()
508 ofwfb_show_font(video_adapter_t *adp, int page) in ofwfb_show_font() argument
515 ofwfb_save_palette(video_adapter_t *adp, u_char *palette) in ofwfb_save_palette() argument
522 ofwfb_load_palette(video_adapter_t *adp, u_char *palette) in ofwfb_load_palette() argument
529 ofwfb_set_border8(video_adapter_t *adp, int border) in ofwfb_set_border8() argument
536 sc = (struct ofwfb_softc *)adp; in ofwfb_set_border8()
572 ofwfb_set_border32(video_adapter_t *adp, int border) in ofwfb_set_border32() argument
575 return (ofwfb_blank_display32(adp, border)); in ofwfb_set_border32()
579 ofwfb_set_border(video_adapter_t *adp, int border) in ofwfb_set_border() argument
583 sc = (struct ofwfb_softc *)adp; in ofwfb_set_border()
585 return ((*sc->sc_set_border)(adp, border)); in ofwfb_set_border()
589 ofwfb_save_state(video_adapter_t *adp, void *p, size_t size) in ofwfb_save_state() argument
596 ofwfb_load_state(video_adapter_t *adp, void *p) in ofwfb_load_state() argument
603 ofwfb_set_win_org(video_adapter_t *adp, off_t offset) in ofwfb_set_win_org() argument
610 ofwfb_read_hw_cursor(video_adapter_t *adp, int *col, int *row) in ofwfb_read_hw_cursor() argument
619 ofwfb_set_hw_cursor(video_adapter_t *adp, int col, int row) in ofwfb_set_hw_cursor() argument
626 ofwfb_set_hw_cursor_shape(video_adapter_t *adp, int base, int height, in ofwfb_set_hw_cursor_shape() argument
633 ofwfb_blank_display8(video_adapter_t *adp, int mode) in ofwfb_blank_display8() argument
641 sc = (struct ofwfb_softc *)adp; in ofwfb_blank_display8()
658 ofwfb_blank_display32(video_adapter_t *adp, int mode) in ofwfb_blank_display32() argument
664 sc = (struct ofwfb_softc *)adp; in ofwfb_blank_display32()
675 ofwfb_blank_display(video_adapter_t *adp, int mode) in ofwfb_blank_display() argument
679 sc = (struct ofwfb_softc *)adp; in ofwfb_blank_display()
681 return ((*sc->sc_blank)(adp, mode)); in ofwfb_blank_display()
685 ofwfb_mmap(video_adapter_t *adp, vm_ooffset_t offset, vm_paddr_t *paddr, in ofwfb_mmap() argument
691 sc = (struct ofwfb_softc *)adp; in ofwfb_mmap()
740 ofwfb_ioctl(video_adapter_t *adp, u_long cmd, caddr_t data) in ofwfb_ioctl() argument
747 ofwfb_clear(video_adapter_t *adp) in ofwfb_clear() argument
754 ofwfb_fill_rect(video_adapter_t *adp, int val, int x, int y, int cx, int cy) in ofwfb_fill_rect() argument
761 ofwfb_bitblt(video_adapter_t *adp, ...) in ofwfb_bitblt() argument
768 ofwfb_diag(video_adapter_t *adp, int level) in ofwfb_diag() argument
775 ofwfb_save_cursor_palette(video_adapter_t *adp, u_char *palette) in ofwfb_save_cursor_palette() argument
782 ofwfb_load_cursor_palette(video_adapter_t *adp, u_char *palette) in ofwfb_load_cursor_palette() argument
789 ofwfb_copy(video_adapter_t *adp, vm_offset_t src, vm_offset_t dst, int n) in ofwfb_copy() argument
796 ofwfb_putp(video_adapter_t *adp, vm_offset_t off, uint32_t p, uint32_t a, in ofwfb_putp() argument
804 ofwfb_putc8(video_adapter_t *adp, vm_offset_t off, uint8_t c, uint8_t a) in ofwfb_putc8() argument
817 sc = (struct ofwfb_softc *)adp; in ofwfb_putc8()
818 row = (off / adp->va_info.vi_width) * adp->va_info.vi_cheight; in ofwfb_putc8()
819 col = (off % adp->va_info.vi_width) * adp->va_info.vi_cwidth; in ofwfb_putc8()
860 ofwfb_putc32(video_adapter_t *adp, vm_offset_t off, uint8_t c, uint8_t a) in ofwfb_putc32() argument
869 sc = (struct ofwfb_softc *)adp; in ofwfb_putc32()
870 row = (off / adp->va_info.vi_width) * adp->va_info.vi_cheight; in ofwfb_putc32()
871 col = (off % adp->va_info.vi_width) * adp->va_info.vi_cwidth; in ofwfb_putc32()
894 ofwfb_putc(video_adapter_t *adp, vm_offset_t off, uint8_t c, uint8_t a) in ofwfb_putc() argument
898 sc = (struct ofwfb_softc *)adp; in ofwfb_putc()
900 return ((*sc->sc_putc)(adp, off, c, a)); in ofwfb_putc()
904 ofwfb_puts(video_adapter_t *adp, vm_offset_t off, u_int16_t *s, int len) in ofwfb_puts() argument
909 ofwfb_putc(adp, off + i, s[i] & 0xff, (s[i] & 0xff00) >> 8); in ofwfb_puts()
915 ofwfb_putm(video_adapter_t *adp, int x, int y, uint8_t *pixel_image, in ofwfb_putm() argument
920 sc = (struct ofwfb_softc *)adp; in ofwfb_putm()
922 return ((*sc->sc_putm)(adp, x, y, pixel_image, pixel_mask, size, in ofwfb_putm()
927 ofwfb_putm8(video_adapter_t *adp, int x, int y, uint8_t *pixel_image, in ofwfb_putm8() argument
935 sc = (struct ofwfb_softc *)adp; in ofwfb_putm8()
963 ofwfb_putm32(video_adapter_t *adp, int x, int y, uint8_t *pixel_image, in ofwfb_putm32() argument
971 sc = (struct ofwfb_softc *)adp; in ofwfb_putm32()