Lines Matching refs:ffb
42 ffb_fbcPtr ffb = fpriv->regs; in ffb_save_context() local
54 ctx->drawop = upa_readl(&ffb->drawop); in ffb_save_context()
55 ctx->ppc = upa_readl(&ffb->ppc); in ffb_save_context()
56 ctx->wid = upa_readl(&ffb->wid); in ffb_save_context()
57 ctx->fg = upa_readl(&ffb->fg); in ffb_save_context()
58 ctx->bg = upa_readl(&ffb->bg); in ffb_save_context()
59 ctx->xclip = upa_readl(&ffb->xclip); in ffb_save_context()
60 ctx->fbc = upa_readl(&ffb->fbc); in ffb_save_context()
61 ctx->rop = upa_readl(&ffb->rop); in ffb_save_context()
62 ctx->cmp = upa_readl(&ffb->cmp); in ffb_save_context()
63 ctx->matchab = upa_readl(&ffb->matchab); in ffb_save_context()
64 ctx->magnab = upa_readl(&ffb->magnab); in ffb_save_context()
65 ctx->pmask = upa_readl(&ffb->pmask); in ffb_save_context()
66 ctx->xpmask = upa_readl(&ffb->xpmask); in ffb_save_context()
67 ctx->lpat = upa_readl(&ffb->lpat); in ffb_save_context()
68 ctx->fontxy = upa_readl(&ffb->fontxy); in ffb_save_context()
69 ctx->fontw = upa_readl(&ffb->fontw); in ffb_save_context()
70 ctx->fontinc = upa_readl(&ffb->fontinc); in ffb_save_context()
77 ctx->stencil = upa_readl(&ffb->stencil); in ffb_save_context()
78 ctx->stencilctl = upa_readl(&ffb->stencilctl); in ffb_save_context()
82 ctx->area_pattern[i] = upa_readl(&ffb->pattern[i]); in ffb_save_context()
83 ctx->ucsr = upa_readl(&ffb->ucsr); in ffb_save_context()
88 ctx->drawop = upa_readl(&ffb->drawop); in ffb_save_context()
97 ctx->ppc = upa_readl(&ffb->ppc); /* Pixel Processor Control */ in ffb_save_context()
98 ctx->wid = upa_readl(&ffb->wid); /* Current WID */ in ffb_save_context()
99 ctx->fg = upa_readl(&ffb->fg); /* Constant FG color */ in ffb_save_context()
100 ctx->bg = upa_readl(&ffb->bg); /* Constant BG color */ in ffb_save_context()
101 ctx->consty = upa_readl(&ffb->consty); /* Constant Y */ in ffb_save_context()
102 ctx->constz = upa_readl(&ffb->constz); /* Constant Z */ in ffb_save_context()
103 ctx->xclip = upa_readl(&ffb->xclip); /* X plane clip */ in ffb_save_context()
104 ctx->dcss = upa_readl(&ffb->dcss); /* Depth Cue Scale Slope */ in ffb_save_context()
105 ctx->vclipmin = upa_readl(&ffb->vclipmin); /* Primary XY clip, minimum */ in ffb_save_context()
106 ctx->vclipmax = upa_readl(&ffb->vclipmax); /* Primary XY clip, maximum */ in ffb_save_context()
107 ctx->vclipzmin = upa_readl(&ffb->vclipzmin); /* Primary Z clip, minimum */ in ffb_save_context()
108 ctx->vclipzmax = upa_readl(&ffb->vclipzmax); /* Primary Z clip, maximum */ in ffb_save_context()
109 ctx->dcsf = upa_readl(&ffb->dcsf); /* Depth Cue Scale Front Bound */ in ffb_save_context()
110 ctx->dcsb = upa_readl(&ffb->dcsb); /* Depth Cue Scale Back Bound */ in ffb_save_context()
111 ctx->dczf = upa_readl(&ffb->dczf); /* Depth Cue Scale Z Front */ in ffb_save_context()
112 ctx->dczb = upa_readl(&ffb->dczb); /* Depth Cue Scale Z Back */ in ffb_save_context()
113 ctx->blendc = upa_readl(&ffb->blendc); /* Alpha Blend Control */ in ffb_save_context()
114 ctx->blendc1 = upa_readl(&ffb->blendc1); /* Alpha Blend Color 1 */ in ffb_save_context()
115 ctx->blendc2 = upa_readl(&ffb->blendc2); /* Alpha Blend Color 2 */ in ffb_save_context()
116 ctx->fbc = upa_readl(&ffb->fbc); /* Frame Buffer Control */ in ffb_save_context()
117 ctx->rop = upa_readl(&ffb->rop); /* Raster Operation */ in ffb_save_context()
118 ctx->cmp = upa_readl(&ffb->cmp); /* Compare Controls */ in ffb_save_context()
119 ctx->matchab = upa_readl(&ffb->matchab); /* Buffer A/B Match Ops */ in ffb_save_context()
120 ctx->matchc = upa_readl(&ffb->matchc); /* Buffer C Match Ops */ in ffb_save_context()
121 ctx->magnab = upa_readl(&ffb->magnab); /* Buffer A/B Magnitude Ops */ in ffb_save_context()
122 ctx->magnc = upa_readl(&ffb->magnc); /* Buffer C Magnitude Ops */ in ffb_save_context()
123 ctx->pmask = upa_readl(&ffb->pmask); /* RGB Plane Mask */ in ffb_save_context()
124 ctx->xpmask = upa_readl(&ffb->xpmask); /* X Plane Mask */ in ffb_save_context()
125 ctx->ypmask = upa_readl(&ffb->ypmask); /* Y Plane Mask */ in ffb_save_context()
126 ctx->zpmask = upa_readl(&ffb->zpmask); /* Z Plane Mask */ in ffb_save_context()
129 ctx->auxclip0min = upa_readl(&ffb->auxclip[0].min); in ffb_save_context()
130 ctx->auxclip0max = upa_readl(&ffb->auxclip[0].max); in ffb_save_context()
131 ctx->auxclip1min = upa_readl(&ffb->auxclip[1].min); in ffb_save_context()
132 ctx->auxclip1max = upa_readl(&ffb->auxclip[1].max); in ffb_save_context()
133 ctx->auxclip2min = upa_readl(&ffb->auxclip[2].min); in ffb_save_context()
134 ctx->auxclip2max = upa_readl(&ffb->auxclip[2].max); in ffb_save_context()
135 ctx->auxclip3min = upa_readl(&ffb->auxclip[3].min); in ffb_save_context()
136 ctx->auxclip3max = upa_readl(&ffb->auxclip[3].max); in ffb_save_context()
138 ctx->lpat = upa_readl(&ffb->lpat); /* Line Pattern */ in ffb_save_context()
139 ctx->fontxy = upa_readl(&ffb->fontxy); /* XY Font Coordinate */ in ffb_save_context()
140 ctx->fontw = upa_readl(&ffb->fontw); /* Font Width */ in ffb_save_context()
141 ctx->fontinc = upa_readl(&ffb->fontinc); /* Font X/Y Increment */ in ffb_save_context()
145 ctx->dcss1 = upa_readl(&ffb->dcss1); /* Depth Cue Scale Slope 1 */ in ffb_save_context()
146 ctx->dcss2 = upa_readl(&ffb->dcss2); /* Depth Cue Scale Slope 2 */ in ffb_save_context()
147 ctx->dcss2 = upa_readl(&ffb->dcss3); /* Depth Cue Scale Slope 3 */ in ffb_save_context()
148 ctx->dcs2 = upa_readl(&ffb->dcs2); /* Depth Cue Scale 2 */ in ffb_save_context()
149 ctx->dcs3 = upa_readl(&ffb->dcs3); /* Depth Cue Scale 3 */ in ffb_save_context()
150 ctx->dcs4 = upa_readl(&ffb->dcs4); /* Depth Cue Scale 4 */ in ffb_save_context()
151 ctx->dcd2 = upa_readl(&ffb->dcd2); /* Depth Cue Depth 2 */ in ffb_save_context()
152 ctx->dcd3 = upa_readl(&ffb->dcd3); /* Depth Cue Depth 3 */ in ffb_save_context()
153 ctx->dcd4 = upa_readl(&ffb->dcd4); /* Depth Cue Depth 4 */ in ffb_save_context()
160 ctx->stencil = upa_readl(&ffb->stencil); in ffb_save_context()
161 ctx->stencilctl = upa_readl(&ffb->stencilctl); in ffb_save_context()
167 ctx->area_pattern[i] = upa_readl(&ffb->pattern[i]); in ffb_save_context()
170 ctx->ucsr = upa_readl(&ffb->ucsr); in ffb_save_context()
175 ffb_fbcPtr ffb = fpriv->regs; in ffb_restore_context() local
187 upa_writel(ctx->drawop, &ffb->drawop); in ffb_restore_context()
194 upa_writel(ctx->ppc, &ffb->ppc); in ffb_restore_context()
195 upa_writel(ctx->wid, &ffb->wid); in ffb_restore_context()
196 upa_writel(ctx->fg, &ffb->fg); in ffb_restore_context()
197 upa_writel(ctx->bg, &ffb->bg); in ffb_restore_context()
198 upa_writel(ctx->xclip, &ffb->xclip); in ffb_restore_context()
199 upa_writel(ctx->fbc, &ffb->fbc); in ffb_restore_context()
200 upa_writel(ctx->rop, &ffb->rop); in ffb_restore_context()
201 upa_writel(ctx->cmp, &ffb->cmp); in ffb_restore_context()
202 upa_writel(ctx->matchab, &ffb->matchab); in ffb_restore_context()
203 upa_writel(ctx->magnab, &ffb->magnab); in ffb_restore_context()
204 upa_writel(ctx->pmask, &ffb->pmask); in ffb_restore_context()
205 upa_writel(ctx->xpmask, &ffb->xpmask); in ffb_restore_context()
206 upa_writel(ctx->lpat, &ffb->lpat); in ffb_restore_context()
207 upa_writel(ctx->fontxy, &ffb->fontxy); in ffb_restore_context()
208 upa_writel(ctx->fontw, &ffb->fontw); in ffb_restore_context()
209 upa_writel(ctx->fontinc, &ffb->fontinc); in ffb_restore_context()
216 upa_writel(ctx->stencil, &ffb->stencil); in ffb_restore_context()
217 upa_writel(ctx->stencilctl, &ffb->stencilctl); in ffb_restore_context()
218 upa_writel(0x80000000, &ffb->fbc); in ffb_restore_context()
220 &ffb->rawstencilctl); in ffb_restore_context()
221 upa_writel(ctx->fbc, &ffb->fbc); in ffb_restore_context()
225 upa_writel(ctx->area_pattern[i], &ffb->pattern[i]); in ffb_restore_context()
226 upa_writel((ctx->ucsr & 0xf0000), &ffb->ucsr); in ffb_restore_context()
231 upa_writel(ctx->drawop, &ffb->drawop); in ffb_restore_context()
240 upa_writel(ctx->ppc, &ffb->ppc); /* Pixel Processor Control */ in ffb_restore_context()
241 upa_writel(ctx->wid, &ffb->wid); /* Current WID */ in ffb_restore_context()
242 upa_writel(ctx->fg, &ffb->fg); /* Constant FG color */ in ffb_restore_context()
243 upa_writel(ctx->bg, &ffb->bg); /* Constant BG color */ in ffb_restore_context()
244 upa_writel(ctx->consty, &ffb->consty); /* Constant Y */ in ffb_restore_context()
245 upa_writel(ctx->constz, &ffb->constz); /* Constant Z */ in ffb_restore_context()
246 upa_writel(ctx->xclip, &ffb->xclip); /* X plane clip */ in ffb_restore_context()
247 upa_writel(ctx->dcss, &ffb->dcss); /* Depth Cue Scale Slope */ in ffb_restore_context()
248 upa_writel(ctx->vclipmin, &ffb->vclipmin); /* Primary XY clip, minimum */ in ffb_restore_context()
249 upa_writel(ctx->vclipmax, &ffb->vclipmax); /* Primary XY clip, maximum */ in ffb_restore_context()
250 upa_writel(ctx->vclipzmin, &ffb->vclipzmin); /* Primary Z clip, minimum */ in ffb_restore_context()
251 upa_writel(ctx->vclipzmax, &ffb->vclipzmax); /* Primary Z clip, maximum */ in ffb_restore_context()
252 upa_writel(ctx->dcsf, &ffb->dcsf); /* Depth Cue Scale Front Bound */ in ffb_restore_context()
253 upa_writel(ctx->dcsb, &ffb->dcsb); /* Depth Cue Scale Back Bound */ in ffb_restore_context()
254 upa_writel(ctx->dczf, &ffb->dczf); /* Depth Cue Scale Z Front */ in ffb_restore_context()
255 upa_writel(ctx->dczb, &ffb->dczb); /* Depth Cue Scale Z Back */ in ffb_restore_context()
256 upa_writel(ctx->blendc, &ffb->blendc); /* Alpha Blend Control */ in ffb_restore_context()
257 upa_writel(ctx->blendc1, &ffb->blendc1); /* Alpha Blend Color 1 */ in ffb_restore_context()
258 upa_writel(ctx->blendc2, &ffb->blendc2); /* Alpha Blend Color 2 */ in ffb_restore_context()
259 upa_writel(ctx->fbc, &ffb->fbc); /* Frame Buffer Control */ in ffb_restore_context()
260 upa_writel(ctx->rop, &ffb->rop); /* Raster Operation */ in ffb_restore_context()
261 upa_writel(ctx->cmp, &ffb->cmp); /* Compare Controls */ in ffb_restore_context()
262 upa_writel(ctx->matchab, &ffb->matchab); /* Buffer A/B Match Ops */ in ffb_restore_context()
263 upa_writel(ctx->matchc, &ffb->matchc); /* Buffer C Match Ops */ in ffb_restore_context()
264 upa_writel(ctx->magnab, &ffb->magnab); /* Buffer A/B Magnitude Ops */ in ffb_restore_context()
265 upa_writel(ctx->magnc, &ffb->magnc); /* Buffer C Magnitude Ops */ in ffb_restore_context()
266 upa_writel(ctx->pmask, &ffb->pmask); /* RGB Plane Mask */ in ffb_restore_context()
267 upa_writel(ctx->xpmask, &ffb->xpmask); /* X Plane Mask */ in ffb_restore_context()
268 upa_writel(ctx->ypmask, &ffb->ypmask); /* Y Plane Mask */ in ffb_restore_context()
269 upa_writel(ctx->zpmask, &ffb->zpmask); /* Z Plane Mask */ in ffb_restore_context()
272 upa_writel(ctx->auxclip0min, &ffb->auxclip[0].min); in ffb_restore_context()
273 upa_writel(ctx->auxclip0max, &ffb->auxclip[0].max); in ffb_restore_context()
274 upa_writel(ctx->auxclip1min, &ffb->auxclip[1].min); in ffb_restore_context()
275 upa_writel(ctx->auxclip1max, &ffb->auxclip[1].max); in ffb_restore_context()
276 upa_writel(ctx->auxclip2min, &ffb->auxclip[2].min); in ffb_restore_context()
277 upa_writel(ctx->auxclip2max, &ffb->auxclip[2].max); in ffb_restore_context()
278 upa_writel(ctx->auxclip3min, &ffb->auxclip[3].min); in ffb_restore_context()
279 upa_writel(ctx->auxclip3max, &ffb->auxclip[3].max); in ffb_restore_context()
281 upa_writel(ctx->lpat, &ffb->lpat); /* Line Pattern */ in ffb_restore_context()
282 upa_writel(ctx->fontxy, &ffb->fontxy); /* XY Font Coordinate */ in ffb_restore_context()
283 upa_writel(ctx->fontw, &ffb->fontw); /* Font Width */ in ffb_restore_context()
284 upa_writel(ctx->fontinc, &ffb->fontinc); /* Font X/Y Increment */ in ffb_restore_context()
288 upa_writel(ctx->dcss1, &ffb->dcss1); /* Depth Cue Scale Slope 1 */ in ffb_restore_context()
289 upa_writel(ctx->dcss2, &ffb->dcss2); /* Depth Cue Scale Slope 2 */ in ffb_restore_context()
290 upa_writel(ctx->dcss3, &ffb->dcss2); /* Depth Cue Scale Slope 3 */ in ffb_restore_context()
291 upa_writel(ctx->dcs2, &ffb->dcs2); /* Depth Cue Scale 2 */ in ffb_restore_context()
292 upa_writel(ctx->dcs3, &ffb->dcs3); /* Depth Cue Scale 3 */ in ffb_restore_context()
293 upa_writel(ctx->dcs4, &ffb->dcs4); /* Depth Cue Scale 4 */ in ffb_restore_context()
294 upa_writel(ctx->dcd2, &ffb->dcd2); /* Depth Cue Depth 2 */ in ffb_restore_context()
295 upa_writel(ctx->dcd3, &ffb->dcd3); /* Depth Cue Depth 3 */ in ffb_restore_context()
296 upa_writel(ctx->dcd4, &ffb->dcd4); /* Depth Cue Depth 4 */ in ffb_restore_context()
317 upa_writel(ctx->stencil, &ffb->stencil); in ffb_restore_context()
318 upa_writel(ctx->stencilctl, &ffb->stencilctl); in ffb_restore_context()
321 upa_writel(0x80000000, &ffb->fbc); in ffb_restore_context()
323 &ffb->rawstencilctl); in ffb_restore_context()
326 upa_writel(ctx->fbc, &ffb->fbc); in ffb_restore_context()
332 upa_writel(ctx->area_pattern[i], &ffb->pattern[i]); in ffb_restore_context()
338 upa_writel((ctx->ucsr & 0xf0000), &ffb->ucsr); in ffb_restore_context()
345 static void FFBWait(ffb_fbcPtr ffb) in FFBWait() argument
350 u32 regval = upa_readl(&ffb->ucsr); in FFBWait()