Lines Matching defs:cursorp
797 struct wsdisplay_cursor *cursorp)
805 v = cursorp->which;
807 error = dcrf->ramdac_check_curcmap(dcrc, cursorp);
812 if ((u_int)cursorp->size.x != 64 ||
813 (u_int)cursorp->size.y > 64)
816 count = (cursorp->size.y * 64 * 2) / NBBY;
817 error = copyin(cursorp->image, image, count);
826 if (cursorp->enable)
836 TGAWREG(dc, TGA_REG_CXYR, ((cursorp->pos.y & 0xfff) << 12) |
837 (cursorp->pos.x & 0xfff));
840 dcrf->ramdac_set_curcmap(dcrc, cursorp);
843 count = ((64 * 2) / NBBY) * cursorp->size.y;
846 (cursorp->size.y << 10));
856 struct wsdisplay_cursor *cursorp)
862 cursorp->which = WSDISPLAY_CURSOR_DOALL &
864 cursorp->enable = (TGARREG(dc, TGA_REG_VVVR) & 0x04) != 0;
865 cursorp->pos.x = TGARREG(dc, TGA_REG_CXYR) & 0xfff;
866 cursorp->pos.y = (TGARREG(dc, TGA_REG_CXYR) >> 12) & 0xfff;
867 cursorp->size.x = 64;
868 cursorp->size.y = (TGARREG(dc, TGA_REG_CCBR) >> 10) & 0x3f;
870 if (cursorp->image != NULL) {
871 count = (cursorp->size.y * 64 * 2) / NBBY;
874 cursorp->image, count);
879 error = dcrf->ramdac_get_curcmap(dcrc, cursorp);