Lines Matching refs:ivideo
75 SiS300Sync(struct sis_video_info *ivideo) in SiS300Sync() argument
81 SiS300SetupForScreenToScreenCopy(struct sis_video_info *ivideo, int xdir, int ydir, in SiS300SetupForScreenToScreenCopy() argument
84 SiS300SetupDSTColorDepth(ivideo->DstColor); in SiS300SetupForScreenToScreenCopy()
85 SiS300SetupSRCPitch(ivideo->video_linelength) in SiS300SetupForScreenToScreenCopy()
86 SiS300SetupDSTRect(ivideo->video_linelength, 0xffff) in SiS300SetupForScreenToScreenCopy()
104 SiS300SubsequentScreenToScreenCopy(struct sis_video_info *ivideo, int src_x, in SiS300SubsequentScreenToScreenCopy() argument
110 srcbase = ivideo->video_linelength * src_y; in SiS300SubsequentScreenToScreenCopy()
114 dstbase = ivideo->video_linelength * dst_y; in SiS300SubsequentScreenToScreenCopy()
121 if(!(ivideo->CommandReg & X_INC)) { in SiS300SubsequentScreenToScreenCopy()
125 if(!(ivideo->CommandReg & Y_INC)) { in SiS300SubsequentScreenToScreenCopy()
136 SiS300SetupForSolidFill(struct sis_video_info *ivideo, u32 color, int rop) in SiS300SetupForSolidFill() argument
139 SiS300SetupDSTRect(ivideo->video_linelength, 0xffff) in SiS300SetupForSolidFill()
140 SiS300SetupDSTColorDepth(ivideo->DstColor); in SiS300SetupForSolidFill()
146 SiS300SubsequentSolidFillRect(struct sis_video_info *ivideo, int x, int y, int w, int h) in SiS300SubsequentSolidFillRect() argument
151 dstbase = ivideo->video_linelength * y; in SiS300SubsequentSolidFillRect()
166 SiS310Sync(struct sis_video_info *ivideo) in SiS310Sync() argument
172 SiS310SetupForScreenToScreenCopy(struct sis_video_info *ivideo, int rop, int trans_color) in SiS310SetupForScreenToScreenCopy() argument
174 SiS310SetupDSTColorDepth(ivideo->DstColor); in SiS310SetupForScreenToScreenCopy()
175 SiS310SetupSRCPitch(ivideo->video_linelength) in SiS310SetupForScreenToScreenCopy()
176 SiS310SetupDSTRect(ivideo->video_linelength, 0x0fff) in SiS310SetupForScreenToScreenCopy()
186 SiS310SetupCMDFlag(ivideo->SiS310_AccelDepth) in SiS310SetupForScreenToScreenCopy()
191 SiS310SubsequentScreenToScreenCopy(struct sis_video_info *ivideo, int src_x, int src_y, in SiS310SubsequentScreenToScreenCopy() argument
210 srcbase = ivideo->video_linelength * mymin; in SiS310SubsequentScreenToScreenCopy()
211 dstbase = ivideo->video_linelength * mymin; in SiS310SubsequentScreenToScreenCopy()
217 srcbase = ivideo->video_linelength * src_y; in SiS310SubsequentScreenToScreenCopy()
221 dstbase = ivideo->video_linelength * dst_y; in SiS310SubsequentScreenToScreenCopy()
226 srcbase += ivideo->video_offset; in SiS310SubsequentScreenToScreenCopy()
227 dstbase += ivideo->video_offset; in SiS310SubsequentScreenToScreenCopy()
238 SiS310SetupForSolidFill(struct sis_video_info *ivideo, u32 color, int rop) in SiS310SetupForSolidFill() argument
241 SiS310SetupDSTRect(ivideo->video_linelength, 0x0fff) in SiS310SetupForSolidFill()
242 SiS310SetupDSTColorDepth(ivideo->DstColor); in SiS310SetupForSolidFill()
244 SiS310SetupCMDFlag(PATFG | ivideo->SiS310_AccelDepth) in SiS310SetupForSolidFill()
248 SiS310SubsequentSolidFillRect(struct sis_video_info *ivideo, int x, int y, int w, int h) in SiS310SubsequentSolidFillRect() argument
253 dstbase = ivideo->video_linelength * y; in SiS310SubsequentSolidFillRect()
256 dstbase += ivideo->video_offset; in SiS310SubsequentSolidFillRect()
269 int sisfb_initaccel(struct sis_video_info *ivideo) in sisfb_initaccel() argument
272 spin_lock_init(&ivideo->lockaccel); in sisfb_initaccel()
277 void sisfb_syncaccel(struct sis_video_info *ivideo) in sisfb_syncaccel() argument
279 if(ivideo->sisvga_engine == SIS_300_VGA) { in sisfb_syncaccel()
281 SiS300Sync(ivideo); in sisfb_syncaccel()
285 SiS310Sync(ivideo); in sisfb_syncaccel()
292 struct sis_video_info *ivideo = (struct sis_video_info *)info->par; in fbcon_sis_sync() local
295 if((!ivideo->accel) || (!ivideo->engineok)) in fbcon_sis_sync()
299 sisfb_syncaccel(ivideo); in fbcon_sis_sync()
307 struct sis_video_info *ivideo = (struct sis_video_info *)info->par; in fbcon_sis_fillrect() local
317 if((!ivideo->accel) || (!ivideo->engineok)) { in fbcon_sis_fillrect()
337 if(ivideo->sisvga_engine == SIS_300_VGA) { in fbcon_sis_fillrect()
340 SiS300SetupForSolidFill(ivideo, col, myrops[rect->rop]); in fbcon_sis_fillrect()
341 SiS300SubsequentSolidFillRect(ivideo, rect->dx, rect->dy, width, height); in fbcon_sis_fillrect()
347 SiS310SetupForSolidFill(ivideo, col, myrops[rect->rop]); in fbcon_sis_fillrect()
348 SiS310SubsequentSolidFillRect(ivideo, rect->dx, rect->dy, width, height); in fbcon_sis_fillrect()
353 sisfb_syncaccel(ivideo); in fbcon_sis_fillrect()
358 struct sis_video_info *ivideo = (struct sis_video_info *)info->par; in fbcon_sis_copyarea() local
368 if((!ivideo->accel) || (!ivideo->engineok)) { in fbcon_sis_copyarea()
384 if(ivideo->sisvga_engine == SIS_300_VGA) { in fbcon_sis_copyarea()
394 SiS300SetupForScreenToScreenCopy(ivideo, xdir, ydir, 3, -1); in fbcon_sis_copyarea()
395 SiS300SubsequentScreenToScreenCopy(ivideo, area->sx, area->sy, in fbcon_sis_copyarea()
402 SiS310SetupForScreenToScreenCopy(ivideo, 3, -1); in fbcon_sis_copyarea()
403 SiS310SubsequentScreenToScreenCopy(ivideo, area->sx, area->sy, in fbcon_sis_copyarea()
409 sisfb_syncaccel(ivideo); in fbcon_sis_copyarea()