Home | History | Annotate | Download | only in pci

Lines Matching refs:cm

368 gten_getcmap(struct gten_softc *gt, struct wsdisplay_cmap *cm)
370 u_int index = cm->index;
371 u_int count = cm->count;
377 error = copyout(&gt->gt_cmap_red[index], cm->red, count);
380 error = copyout(&gt->gt_cmap_green[index], cm->green, count);
383 error = copyout(&gt->gt_cmap_blue[index], cm->blue, count);
391 gten_putcmap(struct gten_softc *gt, struct wsdisplay_cmap *cm)
393 int index = cm->index;
394 int count = cm->count;
398 if (cm->index >= 256 || cm->count > 256 ||
399 (cm->index + cm->count) > 256)
401 error = copyin(cm->red, &rbuf[index], count);
404 error = copyin(cm->green, &gbuf[index], count);
407 error = copyin(cm->blue, &bbuf[index], count);