/netbsd-6-1-5-RELEASE/sys/dev/sun/ |
H A D | cgthreevar.h | 54 union bt_cmap sc_cmap; /* Brooktree color map */ member in struct:cgthree_softc
|
H A D | cgthree.c | 252 bt_initcmap(&sc->sc_cmap, 256); 297 return (bt_getcmap(p, &sc->sc_cmap, 256, 1)); 301 error = bt_putcmap(p, &sc->sc_cmap, 256, 1); 362 ip = &sc->sc_cmap.cm_chip[BT_D4M3(start)]; /* start/4 * 3 */ 421 sc->sc_cmap.cm_map[i][0] = rasops_cmap[j]; 423 sc->sc_cmap.cm_map[i][1] = rasops_cmap[j]; 425 sc->sc_cmap.cm_map[i][2] = rasops_cmap[j]; 496 &sc->sc_cmap.cm_map[index + i][0], 1); 500 &sc->sc_cmap.cm_map[index + i][1], 505 &sc->sc_cmap [all...] |
H A D | cgsixvar.h | 80 union bt_cmap sc_cmap; /* Brooktree color map */ member in struct:cgsix_softc
|
H A D | cgsix.c | 646 bt_initcmap(&sc->sc_cmap, 256); 675 bt_initcmap(&sc->sc_cmap, 256); 716 return (bt_getcmap(p, &sc->sc_cmap, 256, 1)); 720 error = bt_putcmap(p, &sc->sc_cmap, 256, 1); 941 ip = &sc->sc_cmap.cm_chip[BT_D4M3(start)]; /* start/4 * 3 */ 1096 sc->sc_cmap.cm_map[i][0] = sc->sc_default_cmap[j]; 1098 sc->sc_cmap.cm_map[i][1] = sc->sc_default_cmap[j]; 1100 sc->sc_cmap.cm_map[i][2] = sc->sc_default_cmap[j]; 1187 &sc->sc_cmap.cm_map[index + i][0], 1); 1191 &sc->sc_cmap [all...] |
/netbsd-6-1-5-RELEASE/sys/arch/luna68k/dev/ |
H A D | lunafb.c | 105 struct hwcmap sc_cmap; /* software copy of colormap */ member in struct:omfb_softc 192 memset(&sc->sc_cmap, 255, sizeof(struct hwcmap)); 193 sc->sc_cmap.r[0] = sc->sc_cmap.g[0] = sc->sc_cmap.b[0] = 0; 291 error = copyout(&sc->sc_cmap.r[index], p->red, count); 294 error = copyout(&sc->sc_cmap.g[index], p->green, count); 297 error = copyout(&sc->sc_cmap.b[index], p->blue, count); 322 memcpy(&sc->sc_cmap.r[index], &cmap.r[index], count); 323 memcpy(&sc->sc_cmap [all...] |
/netbsd-6-1-5-RELEASE/sys/dev/ic/ |
H A D | sgecvar.h | 62 bus_dmamap_t sc_cmap; /* Map for control structures */ member in struct:ze_softc
|
H A D | sgec.c | 121 sizeof(struct ze_cdata), 0, BUS_DMA_NOWAIT, &sc->sc_cmap); 129 error = bus_dmamap_load(sc->sc_dmat, sc->sc_cmap, sc->sc_zedata, 203 sc->sc_pzedata = (struct ze_cdata *)sc->sc_cmap->dm_segs[0].ds_addr; 258 bus_dmamap_unload(sc->sc_dmat, sc->sc_cmap); 260 bus_dmamap_destroy(sc->sc_dmat, sc->sc_cmap);
|
/netbsd-6-1-5-RELEASE/sys/dev/sbus/ |
H A D | zxvar.h | 93 uint8_t *sc_cmap; member in struct:zx_softc
|
H A D | zx.c | 303 sc->sc_cmap = malloc(768, M_DEVBUF, M_NOWAIT); 429 rv = copyout(sc->sc_cmap + cm->index, cm->red, cm->count); 431 rv = copyout(sc->sc_cmap + 256 + cm->index, cm->green, 434 rv = copyout(sc->sc_cmap + 512 + cm->index, cm->blue, 442 rv = copyin(cm->red, sc->sc_cmap + cm->index, cm->count); 444 rv = copyin(cm->green, sc->sc_cmap + 256 + cm->index, 447 rv = copyin(cm->blue, sc->sc_cmap + 512 + cm->index, 612 sc->sc_cmap[i] = rasops_cmap[i * 3]; 613 sc->sc_cmap[i + 256] = rasops_cmap[i * 3 + 1]; 614 sc->sc_cmap[ [all...] |
H A D | p9100.c | 125 union bt_cmap sc_cmap; /* Brooktree color map */ member in struct:p9100_softc 418 sc->sc_cmap.cm_map[i][0] = rasops_cmap[j]; 420 sc->sc_cmap.cm_map[i][1] = rasops_cmap[j]; 422 sc->sc_cmap.cm_map[i][2] = rasops_cmap[j]; 533 return (bt_getcmap(p, &sc->sc_cmap, 256, 1)); 537 error = bt_putcmap(p, &sc->sc_cmap, 256, 1); 984 sc->sc_cmap.cm_map[i + start][0]); 986 sc->sc_cmap.cm_map[i + start][1]); 988 sc->sc_cmap.cm_map[i + start][2]); 1276 sc->sc_cmap [all...] |
H A D | agten.c | 118 union bt_cmap sc_cmap; /* Brooktree color map */ member in struct:agten_softc 533 red[i] = sc->sc_cmap.cm_map[i][0]; 534 green[i] = sc->sc_cmap.cm_map[i][1]; 535 blue[i] = sc->sc_cmap.cm_map[i][2]; 556 sc->sc_cmap.cm_map[idx][0] = r; 557 sc->sc_cmap.cm_map[idx][1] = g; 558 sc->sc_cmap.cm_map[idx][2] = b; 976 return (bt_getcmap(p, &sc->sc_cmap, 256, 1)); 980 error = bt_putcmap(p, &sc->sc_cmap, 256, 1);
|
/netbsd-6-1-5-RELEASE/sys/arch/sun3/dev/ |
H A D | cg4.c | 115 struct soft_cmap sc_cmap; /* Soft cmap, user format */ member in struct:cg4_softc 449 struct soft_cmap *cm = &sc->sc_cmap; 479 struct soft_cmap *cm = &sc->sc_cmap; 511 struct soft_cmap *cm = &sc->sc_cmap; 526 struct soft_cmap *cm = &sc->sc_cmap; 561 struct soft_cmap *cm = &sc->sc_cmap; 610 struct soft_cmap *cm = &sc->sc_cmap;
|
/netbsd-6-1-5-RELEASE/sys/dev/bi/ |
H A D | kdb.c | 87 bus_dmamap_t sc_cmap; /* Control structures */ member in struct:kdb_softc 178 1, sizeof(struct mscp_pack), 0, BUS_DMA_NOWAIT, &sc->sc_cmap))) { 184 if ((error = bus_dmamap_load(sc->sc_dmat, sc->sc_cmap, 187 bus_dmamap_destroy(sc->sc_dmat, sc->sc_cmap); 201 ma.ma_dmam = sc->sc_cmap;
|
/netbsd-6-1-5-RELEASE/sys/arch/sparc/dev/ |
H A D | cgeight.c | 135 union bt_cmap sc_cmap; /* Brooktree color map */ member in struct:cgeight_softc 304 sc->sc_cmap.cm_chip[i] = bt->bt_cmap; 365 return (bt_getcmap(p, &sc->sc_cmap, 256, 1)); 369 error = bt_putcmap(p, &sc->sc_cmap, 256, 1); 515 ip = &sc->sc_cmap.cm_chip[BT_D4M3(start)]; /* start/4 * 3 */
|
H A D | cgfour.c | 133 union bt_cmap sc_cmap; /* Brooktree color map */ member in struct:cgfour_softc 296 ((char *)&sc->sc_cmap)[i] = bt->bt_cmap >> 24; 356 return (bt_getcmap(p, &sc->sc_cmap, 256, 1)); 360 error = bt_putcmap(p, &sc->sc_cmap, 256, 1); 484 ip = &sc->sc_cmap.cm_chip[BT_D4M3(start)]; /* start/4 * 3 */
|
H A D | cgtwo.c | 84 volatile u_short *sc_cmap; member in struct:cgtwo_softc 85 #define sc_redmap(sc) ((sc)->sc_cmap) 86 #define sc_greenmap(sc) ((sc)->sc_cmap + CG2_CMSIZE) 87 #define sc_bluemap(sc) ((sc)->sc_cmap + 2 * CG2_CMSIZE) 194 sc->sc_cmap = (volatile u_short *)bh; /* XXX */
|
H A D | cgfourteen.c | 313 sc->sc_cmap.cm_chip[i] = lut[i]; 454 return(cg14_get_cmap((struct fbcmap *)data, &sc->sc_cmap, 460 error = cg14_put_cmap(p, &sc->sc_cmap, CG14_CLUT_SIZE); 743 uint32_t *colp = &sc->sc_cmap.cm_chip[start]; 817 sc->sc_cmap.cm_map[i][3] = rasops_cmap[j]; 818 sc->sc_cmap.cm_map[i][2] = rasops_cmap[j + 1]; 819 sc->sc_cmap.cm_map[i][1] = rasops_cmap[j + 2]; 847 sc->sc_cmap.cm_map[index][3] = rbuf[index]; 848 sc->sc_cmap.cm_map[index][2] = gbuf[index]; 849 sc->sc_cmap [all...] |
H A D | cgfourteenvar.h | 86 union cg14cmap sc_cmap; /* current colormap */ member in struct:cgfourteen_softc
|
/netbsd-6-1-5-RELEASE/sys/arch/pmax/ibus/ |
H A D | pm.c | 87 struct hwcmap256 sc_cmap; member in struct:pm_softc 203 cm = &sc->sc_cmap; 624 cm = &sc->sc_cmap; 674 if ((rv = copyout(&sc->sc_cmap.r[index], p->red, count)) != 0) 676 if ((rv = copyout(&sc->sc_cmap.g[index], p->green, count)) != 0) 678 return (copyout(&sc->sc_cmap.b[index], p->blue, count)); 693 if ((rv = copyin(p->red, &sc->sc_cmap.r[index], count)) != 0) 695 if ((rv = copyin(p->green, &sc->sc_cmap.g[index], count)) != 0) 697 if ((rv = copyin(p->blue, &sc->sc_cmap.b[index], count)) != 0)
|
/netbsd-6-1-5-RELEASE/sys/dev/tc/ |
H A D | xcfb.c | 86 struct hwcmap256 sc_cmap; /* software copy of colormap */ member in struct:xcfb_softc 264 cm = &sc->sc_cmap; 420 ims332_loadcmap(&sc->sc_cmap); 461 ims332_loadcmap(&sc->sc_cmap); 550 error = copyout(&sc->sc_cmap.r[index], p->red, count); 553 error = copyout(&sc->sc_cmap.g[index], p->green, count); 556 error = copyout(&sc->sc_cmap.b[index], p->blue, count); 579 memcpy(&sc->sc_cmap.r[index], &cmap.r[index], count); 580 memcpy(&sc->sc_cmap.g[index], &cmap.g[index], count); 581 memcpy(&sc->sc_cmap [all...] |
H A D | cfb.c | 120 struct hwcmap256 sc_cmap; /* software copy of colormap */ member in struct:cfb_softc 300 cm = &sc->sc_cmap; 581 struct hwcmap256 *cm = &sc->sc_cmap; 672 error = copyout(&sc->sc_cmap.r[index], p->red, count); 675 error = copyout(&sc->sc_cmap.g[index], p->green, count); 678 error = copyout(&sc->sc_cmap.b[index], p->blue, count); 702 memcpy(&sc->sc_cmap.r[index], &cmap.r[index], count); 703 memcpy(&sc->sc_cmap.g[index], &cmap.g[index], count); 704 memcpy(&sc->sc_cmap.b[index], &cmap.b[index], count);
|
H A D | tfb.c | 145 struct hwcmap256 sc_cmap; /* software copy of colormap */ member in struct:tfb_softc 384 cm = &sc->sc_cmap; 628 struct hwcmap256 *cm = &sc->sc_cmap; 730 error = copyout(&sc->sc_cmap.r[index], p->red, count); 733 error = copyout(&sc->sc_cmap.g[index], p->green, count); 736 error = copyout(&sc->sc_cmap.b[index], p->blue, count); 760 memcpy(&sc->sc_cmap.r[index], &cmap.r[index], count); 761 memcpy(&sc->sc_cmap.g[index], &cmap.g[index], count); 762 memcpy(&sc->sc_cmap.b[index], &cmap.b[index], count);
|
H A D | sfb.c | 128 struct hwcmap256 sc_cmap; /* software copy of colormap */ member in struct:sfb_softc 315 cm = &sc->sc_cmap; 633 struct hwcmap256 *cm = &sc->sc_cmap; 725 error = copyout(&sc->sc_cmap.r[index], p->red, count); 728 error = copyout(&sc->sc_cmap.g[index], p->green, count); 731 error = copyout(&sc->sc_cmap.b[index], p->blue, count); 756 memcpy(&sc->sc_cmap.r[index], &cmap.r[index], count); 757 memcpy(&sc->sc_cmap.g[index], &cmap.g[index], count); 758 memcpy(&sc->sc_cmap.b[index], &cmap.b[index], count);
|
H A D | sfbplus.c | 111 struct hwcmap256 sc_cmap; /* software copy of colormap */ member in struct:sfbp_softc 325 cm = &sc->sc_cmap; 597 (*sc->sc_hwops.setlut)(base, &sc->sc_cmap); 709 error = copyout(&sc->sc_cmap.r[index], p->red, count); 712 error = copyout(&sc->sc_cmap.g[index], p->green, count); 715 error = copyout(&sc->sc_cmap.b[index], p->blue, count); 740 memcpy(&sc->sc_cmap.r[index], &cmap.r[index], count); 741 memcpy(&sc->sc_cmap.g[index], &cmap.g[index], count); 742 memcpy(&sc->sc_cmap.b[index], &cmap.b[index], count);
|
/netbsd-6-1-5-RELEASE/sys/dev/pci/ |
H A D | machfb.c | 1993 return bt_getcmap(p, &sc->sc_cmap, 256, 1); 1997 error = bt_putcmap(p, &sc->sc_cmap, 256, 1);
|