Lines Matching defs:beg
616 u_int32_t *rgb, int beg, int cnt)
620 for (i = 0, beg *= 4; i < cnt; i++, beg += 4) {
621 *rgb++ = bus_space_read_4(iot, ioh, beg) &
627 plumvideo_clut_get(struct plumvideo_softc *sc, u_int32_t *rgb, int beg,
631 KASSERT(LEGAL_CLUT_INDEX(beg));
632 KASSERT(LEGAL_CLUT_INDEX(beg + cnt - 1));
633 __plumvideo_clut_access(sc, rgb, beg, cnt, __plumvideo_clut_get);
639 u_int32_t *rgb, int beg, int cnt)
643 for (i = 0, beg *= 4; i < cnt; i++, beg +=4) {
644 bus_space_write_4(iot, ioh, beg,
650 plumvideo_clut_set(struct plumvideo_softc *sc, u_int32_t *rgb, int beg,
654 KASSERT(LEGAL_CLUT_INDEX(beg));
655 KASSERT(LEGAL_CLUT_INDEX(beg + cnt - 1));
656 __plumvideo_clut_access(sc, rgb, beg, cnt, __plumvideo_clut_set);
662 u_int32_t *rgb, int beg, int cnt)
707 __plumvideo_clut_access(struct plumvideo_softc *sc, u_int32_t *rgb, int beg,
730 (*palette_func) (sc->sc_clutiot, sc->sc_clutioh, rgb, beg, cnt);