Home | History | Annotate | Download | only in dev

Lines Matching refs:cm

396 gfb_putcmap(struct gfb_softc *sc, struct wsdisplay_cmap *cm)
399 u_int index = cm->index;
400 u_int count = cm->count;
407 if (cm->index >= 256 || cm->count > 256 ||
408 (cm->index + cm->count) > 256)
410 error = copyin(cm->red, &rbuf[index], count);
413 error = copyin(cm->green, &gbuf[index], count);
416 error = copyin(cm->blue, &bbuf[index], count);
437 gfb_getcmap(struct gfb_softc *sc, struct wsdisplay_cmap *cm)
439 u_int index = cm->index;
440 u_int count = cm->count;
446 error = copyout(&sc->sc_cmap_red[index], cm->red, count);
449 error = copyout(&sc->sc_cmap_green[index], cm->green, count);
452 error = copyout(&sc->sc_cmap_blue[index], cm->blue, count);