Lines Matching refs:cnt
452 size_t idx, cnt;
522 cnt = cmap->count;
528 !LEGAL_CLUT_INDEX(idx + cnt -1)) {
532 error = cmap_work_alloc(&r, &g, &b, 0, cnt);
535 hd64461video_get_clut(sc->sc_vc, idx, cnt, r, g, b);
536 error = copyout(r, cmap->red, cnt);
539 error = copyout(g, cmap->green,cnt);
542 error = copyout(b, cmap->blue, cnt);
550 cnt = cmap->count;
556 !LEGAL_CLUT_INDEX(idx + cnt -1)) {
560 error = cmap_work_alloc(&r, &g, &b, 0, cnt);
564 error = copyin(cmap->red, r, cnt);
567 error = copyin(cmap->green,g, cnt);
570 error = copyin(cmap->blue, b, cnt);
573 hd64461video_set_clut(sc->sc_vc, idx, cnt, r, g, b);
1124 hd64461video_set_clut(struct hd64461video_chip *vc, int idx, int cnt,
1133 while (cnt && LEGAL_CLUT_INDEX(idx)) {
1143 idx++, cnt--;
1148 hd64461video_get_clut(struct hd64461video_chip *vc, int idx, int cnt,
1158 while (cnt && LEGAL_CLUT_INDEX(idx)) {
1169 idx++, cnt--;