Lines Matching refs:tex
130 drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[0]; in mga_g200_emit_tex0() local
135 DMA_BLOCK(MGA_TEXCTL2, tex->texctl2, in mga_g200_emit_tex0()
136 MGA_TEXCTL, tex->texctl, in mga_g200_emit_tex0()
137 MGA_TEXFILTER, tex->texfilter, in mga_g200_emit_tex0()
138 MGA_TEXBORDERCOL, tex->texbordercol); in mga_g200_emit_tex0()
140 DMA_BLOCK(MGA_TEXORG, tex->texorg, in mga_g200_emit_tex0()
141 MGA_TEXORG1, tex->texorg1, in mga_g200_emit_tex0()
142 MGA_TEXORG2, tex->texorg2, in mga_g200_emit_tex0()
143 MGA_TEXORG3, tex->texorg3); in mga_g200_emit_tex0()
145 DMA_BLOCK(MGA_TEXORG4, tex->texorg4, in mga_g200_emit_tex0()
146 MGA_TEXWIDTH, tex->texwidth, in mga_g200_emit_tex0()
147 MGA_TEXHEIGHT, tex->texheight, in mga_g200_emit_tex0()
148 MGA_WR24, tex->texwidth); in mga_g200_emit_tex0()
150 DMA_BLOCK(MGA_WR34, tex->texheight, in mga_g200_emit_tex0()
161 drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[0]; in mga_g400_emit_tex0() local
169 DMA_BLOCK(MGA_TEXCTL2, tex->texctl2 | MGA_G400_TC2_MAGIC, in mga_g400_emit_tex0()
170 MGA_TEXCTL, tex->texctl, in mga_g400_emit_tex0()
171 MGA_TEXFILTER, tex->texfilter, in mga_g400_emit_tex0()
172 MGA_TEXBORDERCOL, tex->texbordercol); in mga_g400_emit_tex0()
174 DMA_BLOCK(MGA_TEXORG, tex->texorg, in mga_g400_emit_tex0()
175 MGA_TEXORG1, tex->texorg1, in mga_g400_emit_tex0()
176 MGA_TEXORG2, tex->texorg2, in mga_g400_emit_tex0()
177 MGA_TEXORG3, tex->texorg3); in mga_g400_emit_tex0()
179 DMA_BLOCK(MGA_TEXORG4, tex->texorg4, in mga_g400_emit_tex0()
180 MGA_TEXWIDTH, tex->texwidth, in mga_g400_emit_tex0()
181 MGA_TEXHEIGHT, tex->texheight, in mga_g400_emit_tex0()
190 MGA_WR54, tex->texwidth | MGA_G400_WR_MAGIC, in mga_g400_emit_tex0()
191 MGA_WR62, tex->texheight | MGA_G400_WR_MAGIC, in mga_g400_emit_tex0()
205 drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[1]; in mga_g400_emit_tex1() local
213 DMA_BLOCK(MGA_TEXCTL2, (tex->texctl2 | in mga_g400_emit_tex1()
216 MGA_TEXCTL, tex->texctl, in mga_g400_emit_tex1()
217 MGA_TEXFILTER, tex->texfilter, in mga_g400_emit_tex1()
218 MGA_TEXBORDERCOL, tex->texbordercol); in mga_g400_emit_tex1()
220 DMA_BLOCK(MGA_TEXORG, tex->texorg, in mga_g400_emit_tex1()
221 MGA_TEXORG1, tex->texorg1, in mga_g400_emit_tex1()
222 MGA_TEXORG2, tex->texorg2, in mga_g400_emit_tex1()
223 MGA_TEXORG3, tex->texorg3); in mga_g400_emit_tex1()
225 DMA_BLOCK(MGA_TEXORG4, tex->texorg4, in mga_g400_emit_tex1()
226 MGA_TEXWIDTH, tex->texwidth, in mga_g400_emit_tex1()
227 MGA_TEXHEIGHT, tex->texheight, in mga_g400_emit_tex1()
233 MGA_WR52, tex->texwidth | MGA_G400_WR_MAGIC); in mga_g400_emit_tex1()
235 DMA_BLOCK(MGA_WR60, tex->texheight | MGA_G400_WR_MAGIC, in mga_g400_emit_tex1()
238 MGA_TEXCTL2, tex->texctl2 | MGA_G400_TC2_MAGIC); in mga_g400_emit_tex1()
429 drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[unit]; in mga_verify_tex() local
432 org = tex->texorg & (MGA_TEXORGMAP_MASK | MGA_TEXORGACC_MASK); in mga_verify_tex()
435 DRM_ERROR("*** bad TEXORG: 0x%x, unit %d\n", tex->texorg, unit); in mga_verify_tex()
436 tex->texorg = 0; in mga_verify_tex()