Lines Matching defs:scr
146 struct sti_screen *scr;
155 scr = ssc->sc_scr;
169 sti_evrx_resetramdac(scr);
170 sti_evrx_resetcmap(scr);
171 scr->setupfb = sti_evrx_setupfb;
172 scr->putcmap = sti_evrx_putcmap;
193 scr->scr_wsmode = WSDISPLAYIO_MODE_EMUL;
195 waa.scrdata = &scr->scr_screenlist;
197 waa.accesscookie = scr;
204 sti_evrx_putcmap(struct sti_screen *scr, u_int index, u_int count)
206 struct sti_rom *rom = scr->scr_rom;
220 bus_space_write_1(bst, bsh, EVRX_BT4xx_CMAP, scr->scr_rcmap[i]);
221 bus_space_write_1(bst, bsh, EVRX_BT4xx_CMAP, scr->scr_gcmap[i]);
222 bus_space_write_4(bst, bsh, EVRX_MAGIC10, scr->scr_bcmap[i]);
228 sti_evrx_resetramdac(struct sti_screen *scr)
230 struct sti_rom *rom = scr->scr_rom;
284 sti_evrx_resetcmap(struct sti_screen *scr)
286 struct sti_rom *rom = scr->scr_rom;
302 scr->scr_rcmap[i] = bus_space_read_1(bst, bsh, EVRX_BT4xx_CMAP);
303 scr->scr_gcmap[i] = bus_space_read_1(bst, bsh, EVRX_BT4xx_CMAP);
304 scr->scr_bcmap[i] = bus_space_read_1(bst, bsh, EVRX_BT4xx_CMAP);
309 sti_evrx_setupfb(struct sti_screen *scr)
312 sti_init(scr, 0);
313 sti_evrx_resetramdac(scr);
319 struct sti_screen *scr = (struct sti_screen *)v;
320 struct sti_rom *rom = scr->scr_rom;
328 switch (scr->scr_wsmode) {
333 if (offset >= 0 && offset < (scr->fbwidth * scr->fbheight))