Lines Matching refs:ffb

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