Home | History | Annotate | Download | only in ic

Lines Matching refs:cmapp

354 bt463_set_cmap(struct ramdac_cookie *rc, struct wsdisplay_cmap *cmapp)
363 if (cmapp->index >= BT463_NCMAP_ENTRIES ||
364 cmapp->count > BT463_NCMAP_ENTRIES - cmapp->index)
367 index = cmapp->index;
368 count = cmapp->count;
369 error = copyin(cmapp->red, &r[index], count);
372 error = copyin(cmapp->green, &g[index], count);
375 error = copyin(cmapp->blue, &b[index], count);
389 bt463_get_cmap(struct ramdac_cookie *rc, struct wsdisplay_cmap *cmapp)
395 if (cmapp->index >= BT463_NCMAP_ENTRIES ||
396 cmapp->count > BT463_NCMAP_ENTRIES - cmapp->index)
399 count = cmapp->count;
400 index = cmapp->index;
402 error = copyout(&data->cmap_r[index], cmapp->red, count);
405 error = copyout(&data->cmap_g[index], cmapp->green, count);
408 error = copyout(&data->cmap_b[index], cmapp->blue, count);