Lines Matching defs:scr
188 struct w100_screen *scr;
192 error = w100_new_screen(sc, descr->depth, &scr);
199 ri = &scr->rinfo;
200 ri->ri_hw = (void *)scr;
201 ri->ri_bits = scr->buf_va;
207 sc->active = scr;
235 struct w100_screen *scr = NULL;
238 scr = kmem_zalloc(sizeof(*scr), KM_SLEEP);
239 scr->buf_va = (u_char *)bus_space_vaddr(sc->iot, sc->ioh_vram);
240 scr->depth = depth;
242 LIST_INSERT_HEAD(&sc->screens, scr, link);
245 *scrpp = scr;
393 struct w100_screen *scr;
401 error = w100_new_screen(sc, type->depth, &scr);
408 scr->rinfo.ri_flg = 0;
409 scr->rinfo.ri_depth = type->depth;
410 scr->rinfo.ri_bits = scr->buf_va;
411 scr->rinfo.ri_width = sc->display_width;
412 scr->rinfo.ri_height = sc->display_height;
413 scr->rinfo.ri_stride = scr->rinfo.ri_width * scr->rinfo.ri_depth / 8;
414 scr->rinfo.ri_wsfcookie = -1; /* XXX */
416 rasops_init(&scr->rinfo, type->c.nrows, type->c.ncols);
418 (*scr->rinfo.ri_ops.allocattr)(&scr->rinfo, 0, 0, 0, attrp);
420 *cookiep = scr;
431 struct w100_screen *scr = cookie;
433 LIST_REMOVE(scr, link);
442 struct w100_screen *scr = sc->active; /* ??? */
454 wsdisp_info->depth = scr->depth;
459 *(u_int *)data = scr->rinfo.ri_stride;
495 struct w100_screen *scr = sc->active; /* ??? */
497 if (scr == NULL)
501 offset >= scr->rinfo.ri_stride * scr->rinfo.ri_height)
511 struct w100_screen *scr = cookie;
513 (*scr->rinfo.ri_ops.cursor)(&scr->rinfo, on, row, col);
519 struct w100_screen *scr = cookie;
521 return (*scr->rinfo.ri_ops.mapchar)(&scr->rinfo, c, cp);
527 struct w100_screen *scr = cookie;
529 (*scr->rinfo.ri_ops.putchar)(&scr->rinfo, row, col, uc, attr);
535 struct w100_screen *scr = cookie;
537 (*scr->rinfo.ri_ops.copycols)(&scr->rinfo, row, src, dst, num);
543 struct w100_screen *scr = cookie;
545 (*scr->rinfo.ri_ops.erasecols)(&scr->rinfo, row, col, num, attr);
551 struct w100_screen *scr = cookie;
553 (*scr->rinfo.ri_ops.copyrows)(&scr->rinfo, src, dst, num);
559 struct w100_screen *scr = cookie;
561 (*scr->rinfo.ri_ops.eraserows)(&scr->rinfo, row, num, attr);
567 struct w100_screen *scr = cookie;
569 return (*scr->rinfo.ri_ops.allocattr)(&scr->rinfo, fg, bg, flg, attr);