Lines Matching refs:minfo
111 void matrox_cfbX_init(struct matrox_fb_info *minfo) in matrox_cfbX_init() argument
120 mpitch = minfo->fbcon.var.xres_virtual; in matrox_cfbX_init()
122 minfo->fbops.fb_copyarea = cfb_copyarea; in matrox_cfbX_init()
123 minfo->fbops.fb_fillrect = cfb_fillrect; in matrox_cfbX_init()
124 minfo->fbops.fb_imageblit = cfb_imageblit; in matrox_cfbX_init()
125 minfo->fbops.fb_cursor = NULL; in matrox_cfbX_init()
127 accel = (minfo->fbcon.var.accel_flags & FB_ACCELF_TEXT) == FB_ACCELF_TEXT; in matrox_cfbX_init()
129 switch (minfo->fbcon.var.bits_per_pixel) { in matrox_cfbX_init()
133 matrox_cfb4_pal(minfo->cmap); in matrox_cfbX_init()
135 minfo->fbops.fb_copyarea = matroxfb_cfb4_copyarea; in matrox_cfbX_init()
136 minfo->fbops.fb_fillrect = matroxfb_cfb4_fillrect; in matrox_cfbX_init()
141 matrox_cfb8_pal(minfo->cmap); in matrox_cfbX_init()
143 minfo->fbops.fb_copyarea = matroxfb_copyarea; in matrox_cfbX_init()
144 minfo->fbops.fb_fillrect = matroxfb_fillrect; in matrox_cfbX_init()
145 minfo->fbops.fb_imageblit = matroxfb_imageblit; in matrox_cfbX_init()
148 case 16: if (minfo->fbcon.var.green.length == 5) in matrox_cfbX_init()
154 minfo->fbops.fb_copyarea = matroxfb_copyarea; in matrox_cfbX_init()
155 minfo->fbops.fb_fillrect = matroxfb_fillrect; in matrox_cfbX_init()
156 minfo->fbops.fb_imageblit = matroxfb_imageblit; in matrox_cfbX_init()
162 minfo->fbops.fb_copyarea = matroxfb_copyarea; in matrox_cfbX_init()
163 minfo->fbops.fb_fillrect = matroxfb_fillrect; in matrox_cfbX_init()
164 minfo->fbops.fb_imageblit = matroxfb_imageblit; in matrox_cfbX_init()
170 minfo->fbops.fb_copyarea = matroxfb_copyarea; in matrox_cfbX_init()
171 minfo->fbops.fb_fillrect = matroxfb_fillrect; in matrox_cfbX_init()
172 minfo->fbops.fb_imageblit = matroxfb_imageblit; in matrox_cfbX_init()
181 mga_outl(M_YDSTORG, curr_ydstorg(minfo)); in matrox_cfbX_init()
182 if (minfo->capable.plnwt) in matrox_cfbX_init()
184 if (minfo->capable.srcorg) { in matrox_cfbX_init()
193 …minfo->accel.m_dwg_rect = M_DWG_TRAP | M_DWG_SOLID | M_DWG_ARZERO | M_DWG_SGNZERO | M_DWG_SHIFTZER… in matrox_cfbX_init()
194 if (isMilleniumII(minfo)) minfo->accel.m_dwg_rect |= M_DWG_TRANSC; in matrox_cfbX_init()
195 minfo->accel.m_opmode = mopmode; in matrox_cfbX_init()
196 minfo->accel.m_access = maccess; in matrox_cfbX_init()
197 minfo->accel.m_pitch = mpitch; in matrox_cfbX_init()
202 static void matrox_accel_restore_maccess(struct matrox_fb_info *minfo) in matrox_accel_restore_maccess() argument
204 mga_outl(M_MACCESS, minfo->accel.m_access); in matrox_accel_restore_maccess()
205 mga_outl(M_PITCH, minfo->accel.m_pitch); in matrox_accel_restore_maccess()
208 static void matrox_accel_bmove(struct matrox_fb_info *minfo, int vxres, int sy, in matrox_accel_bmove() argument
220 matrox_accel_restore_maccess(minfo); in matrox_accel_bmove()
225 start = sy*vxres+sx+curr_ydstorg(minfo); in matrox_accel_bmove()
229 matrox_accel_restore_maccess(minfo); in matrox_accel_bmove()
234 end = (sy+height-1)*vxres+sx+curr_ydstorg(minfo); in matrox_accel_bmove()
239 matrox_accel_restore_maccess(minfo); in matrox_accel_bmove()
249 static void matrox_accel_bmove_lin(struct matrox_fb_info *minfo, int vxres, in matrox_accel_bmove_lin() argument
262 matrox_accel_restore_maccess(minfo); in matrox_accel_bmove_lin()
267 start = sy*vxres+sx+curr_ydstorg(minfo); in matrox_accel_bmove_lin()
271 matrox_accel_restore_maccess(minfo); in matrox_accel_bmove_lin()
276 end = (sy+height-1)*vxres+sx+curr_ydstorg(minfo); in matrox_accel_bmove_lin()
281 matrox_accel_restore_maccess(minfo); in matrox_accel_bmove_lin()
293 struct matrox_fb_info *minfo = info2minfo(info); in matroxfb_cfb4_copyarea() local
298 …matrox_accel_bmove_lin(minfo, minfo->fbcon.var.xres_virtual >> 1, area->sy, area->sx >> 1, area->d… in matroxfb_cfb4_copyarea()
302 struct matrox_fb_info *minfo = info2minfo(info); in matroxfb_copyarea() local
304 …matrox_accel_bmove(minfo, minfo->fbcon.var.xres_virtual, area->sy, area->sx, area->dy, area->dx, a… in matroxfb_copyarea()
307 static void matroxfb_accel_clear(struct matrox_fb_info *minfo, u_int32_t color, in matroxfb_accel_clear() argument
317 matrox_accel_restore_maccess(minfo); in matroxfb_accel_clear()
318 mga_outl(M_DWGCTL, minfo->accel.m_dwg_rect | M_DWG_REPLACE); in matroxfb_accel_clear()
328 struct matrox_fb_info *minfo = info2minfo(info); in matroxfb_fillrect() local
332 …matroxfb_accel_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, … in matroxfb_fillrect()
337 static void matroxfb_cfb4_clear(struct matrox_fb_info *minfo, u_int32_t bgx, in matroxfb_cfb4_clear() argument
361 matrox_accel_restore_maccess(minfo); in matroxfb_cfb4_clear()
362 mga_outl(M_DWGCTL, minfo->accel.m_dwg_rect | M_DWG_REPLACE2); in matroxfb_cfb4_clear()
365 mga_outl(M_YDST, sy * minfo->fbcon.var.xres_virtual >> 6); in matroxfb_cfb4_clear()
370 u_int32_t step = minfo->fbcon.var.xres_virtual >> 1; in matroxfb_cfb4_clear()
371 vaddr_t vbase = minfo->video.vbase; in matroxfb_cfb4_clear()
396 struct matrox_fb_info *minfo = info2minfo(info); in matroxfb_cfb4_fillrect() local
400 …matroxfb_cfb4_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, r… in matroxfb_cfb4_fillrect()
405 static void matroxfb_1bpp_imageblit(struct matrox_fb_info *minfo, u_int32_t fgx, in matroxfb_1bpp_imageblit() argument
436 matrox_accel_restore_maccess(minfo); in matroxfb_1bpp_imageblit()
444 mmio = minfo->mmio.vbase; in matroxfb_1bpp_imageblit()
447 matrox_accel_restore_maccess(minfo); in matroxfb_1bpp_imageblit()
500 struct matrox_fb_info *minfo = info2minfo(info); in matroxfb_imageblit() local
509 …matroxfb_1bpp_imageblit(minfo, fgx, bgx, image->data, image->width, image->height, image->dy, imag… in matroxfb_imageblit()