/src/sys/dev/sun/ |
cgthreevar.h | 54 union bt_cmap sc_cmap; /* Brooktree color map */ member in struct:cgthree_softc
|
cgsixvar.h | 81 union bt_cmap sc_cmap; /* Brooktree color map */ member in struct:cgsix_softc
|
cgthree.c | 288 return (bt_getcmap(p, &sc->sc_cmap, 256, 1)); 292 error = bt_putcmap(p, &sc->sc_cmap, 256, 1); 353 ip = &sc->sc_cmap.cm_chip[BT_D4M3(start)]; /* start/4 * 3 */ 410 sc->sc_cmap.cm_map[i][0] = rasops_cmap[j]; 412 sc->sc_cmap.cm_map[i][1] = rasops_cmap[j]; 414 sc->sc_cmap.cm_map[i][2] = rasops_cmap[j]; 500 &sc->sc_cmap.cm_map[index + i][0], 1); 504 &sc->sc_cmap.cm_map[index + i][1], 509 &sc->sc_cmap.cm_map[index + i][2], 1); 530 error = copyout(&sc->sc_cmap.cm_map[index + i][0] [all...] |
cgsix.c | 703 return (bt_getcmap(p, &sc->sc_cmap, 256, 1)); 707 error = bt_putcmap(p, &sc->sc_cmap, 256, 1); 928 ip = &sc->sc_cmap.cm_chip[BT_D4M3(start)]; /* start/4 * 3 */ 1088 sc->sc_cmap.cm_map[i][0] = sc->sc_default_cmap[j]; 1090 sc->sc_cmap.cm_map[i][1] = sc->sc_default_cmap[j]; 1092 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.cm_map[index + i][1], 1196 &sc->sc_cmap.cm_map[index + i][2], 1); 1217 error = copyout(&sc->sc_cmap.cm_map[index + i][0] [all...] |
/src/sys/dev/ic/ |
sgecvar.h | 56 bus_dmamap_t sc_cmap; /* Map for control structures */ member in struct:ze_softc
|
sgec.c | 113 sizeof(struct ze_cdata), 0, BUS_DMA_NOWAIT, &sc->sc_cmap); 121 error = bus_dmamap_load(sc->sc_dmat, sc->sc_cmap, sc->sc_zedata, 195 sc->sc_pzedata = (struct ze_cdata *)sc->sc_cmap->dm_segs[0].ds_addr; 250 bus_dmamap_unload(sc->sc_dmat, sc->sc_cmap); 252 bus_dmamap_destroy(sc->sc_dmat, sc->sc_cmap);
|
/src/sys/arch/mac68k/obio/ |
grf_obio.c | 273 sc->sc_cmap.red = buf; 274 sc->sc_cmap.green = buf + 256; 275 sc->sc_cmap.blue = buf + 256 * 2; 415 dafb_write_lut(sc->sc_cmap.red[i]); 416 dafb_write_lut(sc->sc_cmap.green[i]); 417 dafb_write_lut(sc->sc_cmap.blue[i]); 426 sc->sc_cmap.red[index] = r; 427 sc->sc_cmap.green[index] = g; 428 sc->sc_cmap.blue[index] = b;
|
/src/sys/arch/evbppc/explora/dev/ |
fb_elb.c | 74 struct fb_cmap sc_cmap[CMAP_SIZE]; member in struct:fb_elb_softc 78 * We assume that rasops_cmap is compatible to sc_cmap. 253 memcpy(&sc->sc_cmap, rasops_cmap, sizeof(sc->sc_cmap)); 254 s3_putcmap(sc->sc_fb, sc->sc_cmap); 268 buf[i] = sc->sc_cmap[index + i].r; 269 buf[i + count] = sc->sc_cmap[index + i].g; 270 buf[i + 2 * count] = sc->sc_cmap[index + i].b; 297 sc->sc_cmap[index + i].r = buf[i]; 298 sc->sc_cmap[index + i].g = buf[i + count] [all...] |
/src/sys/dev/sbus/ |
zxvar.h | 93 uint8_t *sc_cmap; member in struct:zx_softc
|
zx.c | 286 sc->sc_cmap = malloc(768, M_DEVBUF, M_WAITOK); 409 rv = copyout(sc->sc_cmap + cm->index, cm->red, cm->count); 411 rv = copyout(sc->sc_cmap + 256 + cm->index, cm->green, 414 rv = copyout(sc->sc_cmap + 512 + cm->index, cm->blue, 422 rv = copyin(cm->red, sc->sc_cmap + cm->index, cm->count); 424 rv = copyin(cm->green, sc->sc_cmap + 256 + cm->index, 427 rv = copyin(cm->blue, sc->sc_cmap + 512 + cm->index, 603 sc->sc_cmap[i] = rasops_cmap[i * 3]; 604 sc->sc_cmap[i + 256] = rasops_cmap[i * 3 + 1]; 605 sc->sc_cmap[i + 512] = rasops_cmap[i * 3 + 2] [all...] |
p9100.c | 124 union bt_cmap sc_cmap; /* Brooktree color map */ member in struct:p9100_softc 464 sc->sc_cmap.cm_map[i][0] = cmap[j]; 466 sc->sc_cmap.cm_map[i][1] = cmap[j]; 468 sc->sc_cmap.cm_map[i][2] = cmap[j]; 571 return (bt_getcmap(p, &sc->sc_cmap, 256, 1)); 575 error = bt_putcmap(p, &sc->sc_cmap, 256, 1); 1021 sc->sc_cmap.cm_map[i + start][0]); 1023 sc->sc_cmap.cm_map[i + start][1]); 1025 sc->sc_cmap.cm_map[i + start][2]); 1416 sc->sc_cmap.cm_map[index][0] = *r [all...] |
agten.c | 119 union bt_cmap sc_cmap; /* Brooktree color map */ member in struct:agten_softc 583 red[i] = sc->sc_cmap.cm_map[i][0]; 584 green[i] = sc->sc_cmap.cm_map[i][1]; 585 blue[i] = sc->sc_cmap.cm_map[i][2]; 606 sc->sc_cmap.cm_map[idx][0] = r; 607 sc->sc_cmap.cm_map[idx][1] = g; 608 sc->sc_cmap.cm_map[idx][2] = b; 1128 return (bt_getcmap(p, &sc->sc_cmap, 256, 1)); 1132 error = bt_putcmap(p, &sc->sc_cmap, 256, 1);
|
/src/sys/dev/bi/ |
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;
|
/src/sys/arch/sparc/dev/ |
cgeight.c | 134 union bt_cmap sc_cmap; /* Brooktree color map */ member in struct:cgeight_softc 313 sc->sc_cmap.cm_chip[i] = bt->bt_cmap; 374 return (bt_getcmap(p, &sc->sc_cmap, 256, 1)); 378 error = bt_putcmap(p, &sc->sc_cmap, 256, 1); 524 ip = &sc->sc_cmap.cm_chip[BT_D4M3(start)]; /* start/4 * 3 */
|
cgfour.c | 132 union bt_cmap sc_cmap; /* Brooktree color map */ member in struct:cgfour_softc 305 ((char *)&sc->sc_cmap)[i] = bt->bt_cmap >> 24; 365 return (bt_getcmap(p, &sc->sc_cmap, 256, 1)); 369 error = bt_putcmap(p, &sc->sc_cmap, 256, 1); 493 ip = &sc->sc_cmap.cm_chip[BT_D4M3(start)]; /* start/4 * 3 */
|
cgtwo.c | 83 volatile u_short *sc_cmap; member in struct:cgtwo_softc 84 #define sc_redmap(sc) ((sc)->sc_cmap) 85 #define sc_greenmap(sc) ((sc)->sc_cmap + CG2_CMSIZE) 86 #define sc_bluemap(sc) ((sc)->sc_cmap + 2 * CG2_CMSIZE) 203 sc->sc_cmap = (volatile u_short *)bh; /* XXX */
|
cgfourteenvar.h | 86 union cg14cmap sc_cmap; /* current colormap */ member in struct:cgfourteen_softc
|
cgfourteen.c | 331 sc->sc_cmap.cm_chip[i] = lut[i]; 474 return(cg14_get_cmap((struct fbcmap *)data, &sc->sc_cmap, 480 error = cg14_put_cmap(p, &sc->sc_cmap, CG14_CLUT_SIZE); 727 uint32_t *colp = &sc->sc_cmap.cm_chip[start]; 881 sc->sc_cmap.cm_map[i][3] = cmap[j]; 882 sc->sc_cmap.cm_map[i][2] = cmap[j + 1]; 883 sc->sc_cmap.cm_map[i][1] = cmap[j + 2]; 913 sc->sc_cmap.cm_map[index][3] = rbuf[index]; 914 sc->sc_cmap.cm_map[index][2] = gbuf[index]; 915 sc->sc_cmap.cm_map[index][1] = bbuf[index] [all...] |
/src/sys/arch/mac68k/dev/ |
grfvar.h | 75 struct grfbus_cmap sc_cmap; member in struct:grfbus_softc
|
/src/sys/arch/sun3/dev/ |
cg4.c | 115 struct soft_cmap sc_cmap; /* Soft cmap, user format */ member in struct:cg4_softc 459 struct soft_cmap *cm = &sc->sc_cmap; 489 struct soft_cmap *cm = &sc->sc_cmap; 521 struct soft_cmap *cm = &sc->sc_cmap; 536 struct soft_cmap *cm = &sc->sc_cmap; 571 struct soft_cmap *cm = &sc->sc_cmap; 620 struct soft_cmap *cm = &sc->sc_cmap;
|
/src/sys/dev/tc/ |
xcfb.c | 86 struct hwcmap256 sc_cmap; /* software copy of colormap */ member in struct:xcfb_softc 258 cm = &sc->sc_cmap; 419 ims332_loadcmap(&sc->sc_cmap); 460 ims332_loadcmap(&sc->sc_cmap); 549 error = copyout(&sc->sc_cmap.r[index], p->red, count); 552 error = copyout(&sc->sc_cmap.g[index], p->green, count); 555 error = copyout(&sc->sc_cmap.b[index], p->blue, count); 578 memcpy(&sc->sc_cmap.r[index], &cmap.r[index], count); 579 memcpy(&sc->sc_cmap.g[index], &cmap.g[index], count); 580 memcpy(&sc->sc_cmap.b[index], &cmap.b[index], count) [all...] |
cfb.c | 120 struct hwcmap256 sc_cmap; /* software copy of colormap */ member in struct:cfb_softc 295 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);
|
tfb.c | 145 struct hwcmap256 sc_cmap; /* software copy of colormap */ member in struct:tfb_softc 379 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);
|
sfb.c | 128 struct hwcmap256 sc_cmap; /* software copy of colormap */ member in struct:sfb_softc 310 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);
|
/src/sys/arch/pmax/ibus/ |
pm.c | 89 struct hwcmap256 sc_cmap; member in struct:pm_softc 230 cm = &sc->sc_cmap; 649 cm = &sc->sc_cmap; 699 if ((rv = copyout(&sc->sc_cmap.r[index], p->red, count)) != 0) 701 if ((rv = copyout(&sc->sc_cmap.g[index], p->green, count)) != 0) 703 return (copyout(&sc->sc_cmap.b[index], p->blue, count)); 718 if ((rv = copyin(p->red, &sc->sc_cmap.r[index], count)) != 0) 720 if ((rv = copyin(p->green, &sc->sc_cmap.g[index], count)) != 0) 722 if ((rv = copyin(p->blue, &sc->sc_cmap.b[index], count)) != 0)
|