Lines Matching refs:cnt
508 int idx, cnt, error;
513 cnt = cmap->count;
519 !LEGAL_CLUT_INDEX(idx + cnt - 1)) {
523 error = cmap_work_alloc(&r, &g, &b, &rgb, cnt);
526 tx3912video_clut_get(sc, rgb, idx, cnt);
527 rgb24_decompose(rgb, r, g, b, cnt);
529 error = copyout(r, cmap->red, cnt);
532 error = copyout(g, cmap->green,cnt);
535 error = copyout(b, cmap->blue, cnt);
676 int cnt)
682 KASSERT(LEGAL_CLUT_INDEX(beg + cnt - 1));
684 for (i = beg; i < beg + cnt; i++) {