Lines Matching defs:cu
369 struct fbcursor *cu;
447 cu = (struct fbcursor *)data;
448 v = cu->set;
451 if ((u_int)cu->size.x > 32 || (u_int)cu->size.y > 32)
453 count = cu->size.y * 4;
454 rv = copyin(cu->mask, curbits[0], count);
457 rv = copyin(cu->image, curbits[1], count);
462 if (cu->enable)
469 sc->sc_curpos = cu->pos;
471 sc->sc_curhot = cu->hot;
475 if (cu->cmap.index > 2 ||
476 cu->cmap.count > 2 - cu->cmap.index)
480 const u_int cnt = cu->cmap.count;
483 ((error = copyin(cu->cmap.red, red, cnt)) ||
484 (error = copyin(cu->cmap.green, green, cnt)) ||
485 (error = copyin(cu->cmap.blue, blue, cnt)))) {
490 sc->sc_curcmap[i + cu->cmap.index + 0] =
492 sc->sc_curcmap[i + cu->cmap.index + 2] =
494 sc->sc_curcmap[i + cu->cmap.index + 4] =
500 sc->sc_cursize = cu->size;
501 count = cu->size.y * 4;
510 cu = (struct fbcursor *)data;
512 cu->set = FB_CUR_SETALL;
513 cu->enable = ((sc->sc_flags & ZX_CURSOR) != 0);
514 cu->pos = sc->sc_curpos;
515 cu->hot = sc->sc_curhot;
516 cu->size = sc->sc_cursize;
518 if (cu->image != NULL) {
520 rv = copyout(sc->sc_curbits[1], cu->image, count);
523 rv = copyout(sc->sc_curbits[0], cu->mask, count);
527 if (cu->cmap.red != NULL) {
530 cm = &cu->cmap;
546 cu->cmap.index = 0;
547 cu->cmap.count = 2;