Lines Matching refs:par
76 struct nvidia_par *par = info->par; in nvidiafb_safe_mode() local
80 par->lockup = 1; in nvidiafb_safe_mode()
85 struct nvidia_par *par = info->par; in NVFlush() local
88 while (--count && READ_GET(par) != par->dmaPut) ; in NVFlush()
98 struct nvidia_par *par = info->par; in NVSync() local
101 while (--count && NV_RD32(par->PGRAPH, 0x0700)) ; in NVSync()
109 static void NVDmaKickoff(struct nvidia_par *par) in NVDmaKickoff() argument
111 if (par->dmaCurrent != par->dmaPut) { in NVDmaKickoff()
112 par->dmaPut = par->dmaCurrent; in NVDmaKickoff()
113 WRITE_PUT(par, par->dmaPut); in NVDmaKickoff()
119 struct nvidia_par *par = info->par; in NVDmaWait() local
124 while (par->dmaFree < size && --count && !par->lockup) { in NVDmaWait()
125 dmaGet = READ_GET(par); in NVDmaWait()
127 if (par->dmaPut >= dmaGet) { in NVDmaWait()
128 par->dmaFree = par->dmaMax - par->dmaCurrent; in NVDmaWait()
129 if (par->dmaFree < size) { in NVDmaWait()
130 NVDmaNext(par, 0x20000000); in NVDmaWait()
132 if (par->dmaPut <= SKIPS) in NVDmaWait()
133 WRITE_PUT(par, SKIPS + 1); in NVDmaWait()
136 dmaGet = READ_GET(par); in NVDmaWait()
140 par->lockup = 1; in NVDmaWait()
143 WRITE_PUT(par, SKIPS); in NVDmaWait()
144 par->dmaCurrent = par->dmaPut = SKIPS; in NVDmaWait()
145 par->dmaFree = dmaGet - (SKIPS + 1); in NVDmaWait()
148 par->dmaFree = dmaGet - par->dmaCurrent - 1; in NVDmaWait()
160 struct nvidia_par *par = info->par; in NVSetPattern() local
162 NVDmaStart(info, par, PATTERN_COLOR_0, 4); in NVSetPattern()
163 NVDmaNext(par, clr0); in NVSetPattern()
164 NVDmaNext(par, clr1); in NVSetPattern()
165 NVDmaNext(par, pat0); in NVSetPattern()
166 NVDmaNext(par, pat1); in NVSetPattern()
171 struct nvidia_par *par = info->par; in NVSetRopSolid() local
175 if (par->currentRop != (rop + 32)) { in NVSetRopSolid()
176 NVDmaStart(info, par, ROP_SET, 1); in NVSetRopSolid()
177 NVDmaNext(par, NVCopyROP_PM[rop]); in NVSetRopSolid()
178 par->currentRop = rop + 32; in NVSetRopSolid()
180 } else if (par->currentRop != rop) { in NVSetRopSolid()
181 if (par->currentRop >= 16) in NVSetRopSolid()
183 NVDmaStart(info, par, ROP_SET, 1); in NVSetRopSolid()
184 NVDmaNext(par, NVCopyROP[rop]); in NVSetRopSolid()
185 par->currentRop = rop; in NVSetRopSolid()
192 struct nvidia_par *par = info->par; in NVSetClippingRectangle() local
196 NVDmaStart(info, par, CLIP_POINT, 2); in NVSetClippingRectangle()
197 NVDmaNext(par, (y1 << 16) | x1); in NVSetClippingRectangle()
198 NVDmaNext(par, (h << 16) | w); in NVSetClippingRectangle()
203 struct nvidia_par *par = info->par; in NVResetGraphics() local
209 par->dmaBase = (u32 __iomem *) (&par->FbStart[par->FbUsableSize]); in NVResetGraphics()
212 NV_WR32(&par->dmaBase[i], 0, 0x00000000); in NVResetGraphics()
214 NV_WR32(&par->dmaBase[0x0 + SKIPS], 0, 0x00040000); in NVResetGraphics()
215 NV_WR32(&par->dmaBase[0x1 + SKIPS], 0, 0x80000010); in NVResetGraphics()
216 NV_WR32(&par->dmaBase[0x2 + SKIPS], 0, 0x00042000); in NVResetGraphics()
217 NV_WR32(&par->dmaBase[0x3 + SKIPS], 0, 0x80000011); in NVResetGraphics()
218 NV_WR32(&par->dmaBase[0x4 + SKIPS], 0, 0x00044000); in NVResetGraphics()
219 NV_WR32(&par->dmaBase[0x5 + SKIPS], 0, 0x80000012); in NVResetGraphics()
220 NV_WR32(&par->dmaBase[0x6 + SKIPS], 0, 0x00046000); in NVResetGraphics()
221 NV_WR32(&par->dmaBase[0x7 + SKIPS], 0, 0x80000013); in NVResetGraphics()
222 NV_WR32(&par->dmaBase[0x8 + SKIPS], 0, 0x00048000); in NVResetGraphics()
223 NV_WR32(&par->dmaBase[0x9 + SKIPS], 0, 0x80000014); in NVResetGraphics()
224 NV_WR32(&par->dmaBase[0xA + SKIPS], 0, 0x0004A000); in NVResetGraphics()
225 NV_WR32(&par->dmaBase[0xB + SKIPS], 0, 0x80000015); in NVResetGraphics()
226 NV_WR32(&par->dmaBase[0xC + SKIPS], 0, 0x0004C000); in NVResetGraphics()
227 NV_WR32(&par->dmaBase[0xD + SKIPS], 0, 0x80000016); in NVResetGraphics()
228 NV_WR32(&par->dmaBase[0xE + SKIPS], 0, 0x0004E000); in NVResetGraphics()
229 NV_WR32(&par->dmaBase[0xF + SKIPS], 0, 0x80000017); in NVResetGraphics()
231 par->dmaPut = 0; in NVResetGraphics()
232 par->dmaCurrent = 16 + SKIPS; in NVResetGraphics()
233 par->dmaMax = 8191; in NVResetGraphics()
234 par->dmaFree = par->dmaMax - par->dmaCurrent; in NVResetGraphics()
258 NVDmaStart(info, par, SURFACE_FORMAT, 4); in NVResetGraphics()
259 NVDmaNext(par, surfaceFormat); in NVResetGraphics()
260 NVDmaNext(par, pitch | (pitch << 16)); in NVResetGraphics()
261 NVDmaNext(par, 0); in NVResetGraphics()
262 NVDmaNext(par, 0); in NVResetGraphics()
264 NVDmaStart(info, par, PATTERN_FORMAT, 1); in NVResetGraphics()
265 NVDmaNext(par, patternFormat); in NVResetGraphics()
267 NVDmaStart(info, par, RECT_FORMAT, 1); in NVResetGraphics()
268 NVDmaNext(par, rectFormat); in NVResetGraphics()
270 NVDmaStart(info, par, LINE_FORMAT, 1); in NVResetGraphics()
271 NVDmaNext(par, lineFormat); in NVResetGraphics()
273 par->currentRop = ~0; /* set to something invalid */ in NVResetGraphics()
279 NVDmaKickoff(par); in NVResetGraphics()
284 struct nvidia_par *par = info->par; in nvidiafb_sync() local
289 if (!par->lockup) in nvidiafb_sync()
292 if (!par->lockup) in nvidiafb_sync()
300 struct nvidia_par *par = info->par; in nvidiafb_copyarea() local
305 if (par->lockup) { in nvidiafb_copyarea()
310 NVDmaStart(info, par, BLIT_POINT_SRC, 3); in nvidiafb_copyarea()
311 NVDmaNext(par, (region->sy << 16) | region->sx); in nvidiafb_copyarea()
312 NVDmaNext(par, (region->dy << 16) | region->dx); in nvidiafb_copyarea()
313 NVDmaNext(par, (region->height << 16) | region->width); in nvidiafb_copyarea()
315 NVDmaKickoff(par); in nvidiafb_copyarea()
320 struct nvidia_par *par = info->par; in nvidiafb_fillrect() local
326 if (par->lockup) { in nvidiafb_fillrect()
339 NVDmaStart(info, par, RECT_SOLID_COLOR, 1); in nvidiafb_fillrect()
340 NVDmaNext(par, color); in nvidiafb_fillrect()
342 NVDmaStart(info, par, RECT_SOLID_RECTS(0), 2); in nvidiafb_fillrect()
343 NVDmaNext(par, (rect->dx << 16) | rect->dy); in nvidiafb_fillrect()
344 NVDmaNext(par, (rect->width << 16) | rect->height); in nvidiafb_fillrect()
346 NVDmaKickoff(par); in nvidiafb_fillrect()
355 struct nvidia_par *par = info->par; in nvidiafb_mono_color_expand() local
371 NVDmaStart(info, par, RECT_EXPAND_TWO_COLOR_CLIP, 7); in nvidiafb_mono_color_expand()
372 NVDmaNext(par, (image->dy << 16) | (image->dx & 0xffff)); in nvidiafb_mono_color_expand()
373 NVDmaNext(par, ((image->dy + image->height) << 16) | in nvidiafb_mono_color_expand()
375 NVDmaNext(par, bg); in nvidiafb_mono_color_expand()
376 NVDmaNext(par, fg); in nvidiafb_mono_color_expand()
377 NVDmaNext(par, (image->height << 16) | width); in nvidiafb_mono_color_expand()
378 NVDmaNext(par, (image->height << 16) | width); in nvidiafb_mono_color_expand()
379 NVDmaNext(par, (image->dy << 16) | (image->dx & 0xffff)); in nvidiafb_mono_color_expand()
382 NVDmaStart(info, par, RECT_EXPAND_TWO_COLOR_DATA(0), in nvidiafb_mono_color_expand()
388 NVDmaNext(par, tmp); in nvidiafb_mono_color_expand()
395 NVDmaStart(info, par, RECT_EXPAND_TWO_COLOR_DATA(0), dsize); in nvidiafb_mono_color_expand()
400 NVDmaNext(par, tmp); in nvidiafb_mono_color_expand()
404 NVDmaKickoff(par); in nvidiafb_mono_color_expand()
409 struct nvidia_par *par = info->par; in nvidiafb_imageblit() local
414 if (image->depth == 1 && !par->lockup) in nvidiafb_imageblit()