Lines Matching refs:cm
349 struct wsdisplay_cmap *cm; in mgx_ioctl() local
371 cm = (struct wsdisplay_cmap *)data; in mgx_ioctl()
372 error = mgx_getcmap(sc->sc_cmap, cm); in mgx_ioctl()
377 cm = (struct wsdisplay_cmap *)data; in mgx_ioctl()
378 error = mgx_putcmap(sc->sc_cmap, cm); in mgx_ioctl()
381 mgx_loadcmap(sc, cm->index, cm->count); in mgx_ioctl()
474 mgx_getcmap(u_int8_t *cm, struct wsdisplay_cmap *rcm) in mgx_getcmap() argument
485 copyout(cm + index++, &rcm->red[i], 1)) != 0) in mgx_getcmap()
488 copyout(cm + index++, &rcm->green[i], 1)) != 0) in mgx_getcmap()
491 copyout(cm + index++, &rcm->blue[i], 1)) != 0) in mgx_getcmap()
499 mgx_putcmap(u_int8_t *cm, struct wsdisplay_cmap *rcm) in mgx_putcmap() argument
510 copyin(&rcm->red[i], cm + index++, 1)) != 0) in mgx_putcmap()
513 copyin(&rcm->green[i], cm + index++, 1)) != 0) in mgx_putcmap()
516 copyin(&rcm->blue[i], cm + index++, 1)) != 0) in mgx_putcmap()