Home
last modified time | relevance | path

Searched refs:sc_cmap (Results 1 – 25 of 27) sorted by relevance

12

/netbsd/src/sys/dev/sun/
Dcgthree.c288 return (bt_getcmap(p, &sc->sc_cmap, 256, 1)); in cgthreeioctl()
292 error = bt_putcmap(p, &sc->sc_cmap, 256, 1); in cgthreeioctl()
353 ip = &sc->sc_cmap.cm_chip[BT_D4M3(start)]; /* start/4 * 3 */ in cgthreeloadcmap()
410 sc->sc_cmap.cm_map[i][0] = rasops_cmap[j]; in cg3_setup_palette()
412 sc->sc_cmap.cm_map[i][1] = rasops_cmap[j]; in cg3_setup_palette()
414 sc->sc_cmap.cm_map[i][2] = rasops_cmap[j]; in cg3_setup_palette()
500 &sc->sc_cmap.cm_map[index + i][0], 1); in cgthree_putcmap()
504 &sc->sc_cmap.cm_map[index + i][1], in cgthree_putcmap()
509 &sc->sc_cmap.cm_map[index + i][2], 1); in cgthree_putcmap()
530 error = copyout(&sc->sc_cmap.cm_map[index + i][0], in cgthree_getcmap()
[all …]
Dcgsix.c703 return (bt_getcmap(p, &sc->sc_cmap, 256, 1)); in cgsixioctl()
707 error = bt_putcmap(p, &sc->sc_cmap, 256, 1); in cgsixioctl()
928 ip = &sc->sc_cmap.cm_chip[BT_D4M3(start)]; /* start/4 * 3 */ in cg6_loadcmap()
1088 sc->sc_cmap.cm_map[i][0] = sc->sc_default_cmap[j]; in cg6_setup_palette()
1090 sc->sc_cmap.cm_map[i][1] = sc->sc_default_cmap[j]; in cg6_setup_palette()
1092 sc->sc_cmap.cm_map[i][2] = sc->sc_default_cmap[j]; in cg6_setup_palette()
1187 &sc->sc_cmap.cm_map[index + i][0], 1); in cgsix_putcmap()
1191 &sc->sc_cmap.cm_map[index + i][1], in cgsix_putcmap()
1196 &sc->sc_cmap.cm_map[index + i][2], 1); in cgsix_putcmap()
1217 error = copyout(&sc->sc_cmap.cm_map[index + i][0], in cgsix_getcmap()
[all …]
Dcgthreevar.h54 union bt_cmap sc_cmap; /* Brooktree color map */ member
Dcgsixvar.h81 union bt_cmap sc_cmap; /* Brooktree color map */ member
/netbsd/src/sys/arch/mac68k/obio/
Dgrf_obio.c273 sc->sc_cmap.red = buf; in grfiv_attach()
274 sc->sc_cmap.green = buf + 256; in grfiv_attach()
275 sc->sc_cmap.blue = buf + 256 * 2; in grfiv_attach()
415 dafb_write_lut(sc->sc_cmap.red[i]); in dafb_set_mapreg()
416 dafb_write_lut(sc->sc_cmap.green[i]); in dafb_set_mapreg()
417 dafb_write_lut(sc->sc_cmap.blue[i]); in dafb_set_mapreg()
426 sc->sc_cmap.red[index] = r; in dafb_set_mapreg()
427 sc->sc_cmap.green[index] = g; in dafb_set_mapreg()
428 sc->sc_cmap.blue[index] = b; in dafb_set_mapreg()
/netbsd/src/sys/arch/evbppc/explora/dev/
Dfb_elb.c74 struct fb_cmap sc_cmap[CMAP_SIZE]; member
253 memcpy(&sc->sc_cmap, rasops_cmap, sizeof(sc->sc_cmap)); in fb_initcmap()
254 s3_putcmap(sc->sc_fb, sc->sc_cmap); in fb_initcmap()
268 buf[i] = sc->sc_cmap[index + i].r; in fb_getcmap()
269 buf[i + count] = sc->sc_cmap[index + i].g; in fb_getcmap()
270 buf[i + 2 * count] = sc->sc_cmap[index + i].b; in fb_getcmap()
297 sc->sc_cmap[index + i].r = buf[i]; in fb_putcmap()
298 sc->sc_cmap[index + i].g = buf[i + count]; in fb_putcmap()
299 sc->sc_cmap[index + i].b = buf[i + 2 * count]; in fb_putcmap()
302 s3_putcmap(sc->sc_fb, sc->sc_cmap); in fb_putcmap()
/netbsd/src/sys/dev/tc/
Dxcfb.c86 struct hwcmap256 sc_cmap; /* software copy of colormap */ member
258 cm = &sc->sc_cmap; in xcfb_cmap_init()
419 ims332_loadcmap(&sc->sc_cmap); in xcfbioctl()
460 ims332_loadcmap(&sc->sc_cmap); in xcfbioctl()
549 error = copyout(&sc->sc_cmap.r[index], p->red, count); in get_cmap()
552 error = copyout(&sc->sc_cmap.g[index], p->green, count); in get_cmap()
555 error = copyout(&sc->sc_cmap.b[index], p->blue, count); in get_cmap()
578 memcpy(&sc->sc_cmap.r[index], &cmap.r[index], count); in set_cmap()
579 memcpy(&sc->sc_cmap.g[index], &cmap.g[index], count); in set_cmap()
580 memcpy(&sc->sc_cmap.b[index], &cmap.b[index], count); in set_cmap()
Dcfb.c120 struct hwcmap256 sc_cmap; /* software copy of colormap */ member
295 cm = &sc->sc_cmap; in cfb_cmap_init()
581 struct hwcmap256 *cm = &sc->sc_cmap; in cfbintr()
672 error = copyout(&sc->sc_cmap.r[index], p->red, count); in get_cmap()
675 error = copyout(&sc->sc_cmap.g[index], p->green, count); in get_cmap()
678 error = copyout(&sc->sc_cmap.b[index], p->blue, count); in get_cmap()
702 memcpy(&sc->sc_cmap.r[index], &cmap.r[index], count); in set_cmap()
703 memcpy(&sc->sc_cmap.g[index], &cmap.g[index], count); in set_cmap()
704 memcpy(&sc->sc_cmap.b[index], &cmap.b[index], count); in set_cmap()
Dtfb.c145 struct hwcmap256 sc_cmap; /* software copy of colormap */ member
379 cm = &sc->sc_cmap; in tfb_cmap_init()
628 struct hwcmap256 *cm = &sc->sc_cmap; in tfbintr()
730 error = copyout(&sc->sc_cmap.r[index], p->red, count); in get_cmap()
733 error = copyout(&sc->sc_cmap.g[index], p->green, count); in get_cmap()
736 error = copyout(&sc->sc_cmap.b[index], p->blue, count); in get_cmap()
760 memcpy(&sc->sc_cmap.r[index], &cmap.r[index], count); in set_cmap()
761 memcpy(&sc->sc_cmap.g[index], &cmap.g[index], count); in set_cmap()
762 memcpy(&sc->sc_cmap.b[index], &cmap.b[index], count); in set_cmap()
Dsfbplus.c111 struct hwcmap256 sc_cmap; /* software copy of colormap */ member
319 cm = &sc->sc_cmap; in sfbp_cmap_init()
596 (*sc->sc_hwops.setlut)(base, &sc->sc_cmap); in sfbpintr()
708 error = copyout(&sc->sc_cmap.r[index], p->red, count); in get_cmap()
711 error = copyout(&sc->sc_cmap.g[index], p->green, count); in get_cmap()
714 error = copyout(&sc->sc_cmap.b[index], p->blue, count); in get_cmap()
739 memcpy(&sc->sc_cmap.r[index], &cmap.r[index], count); in set_cmap()
740 memcpy(&sc->sc_cmap.g[index], &cmap.g[index], count); in set_cmap()
741 memcpy(&sc->sc_cmap.b[index], &cmap.b[index], count); in set_cmap()
Dsfb.c128 struct hwcmap256 sc_cmap; /* software copy of colormap */ member
310 cm = &sc->sc_cmap; in sfb_cmap_init()
633 struct hwcmap256 *cm = &sc->sc_cmap; in sfbintr()
725 error = copyout(&sc->sc_cmap.r[index], p->red, count); in get_cmap()
728 error = copyout(&sc->sc_cmap.g[index], p->green, count); in get_cmap()
731 error = copyout(&sc->sc_cmap.b[index], p->blue, count); in get_cmap()
756 memcpy(&sc->sc_cmap.r[index], &cmap.r[index], count); in set_cmap()
757 memcpy(&sc->sc_cmap.g[index], &cmap.g[index], count); in set_cmap()
758 memcpy(&sc->sc_cmap.b[index], &cmap.b[index], count); in set_cmap()
/netbsd/src/sys/dev/sbus/
Dzx.c286 sc->sc_cmap = malloc(768, M_DEVBUF, M_WAITOK); in zx_attach()
409 rv = copyout(sc->sc_cmap + cm->index, cm->red, cm->count); in zxioctl()
411 rv = copyout(sc->sc_cmap + 256 + cm->index, cm->green, in zxioctl()
414 rv = copyout(sc->sc_cmap + 512 + cm->index, cm->blue, in zxioctl()
422 rv = copyin(cm->red, sc->sc_cmap + cm->index, cm->count); in zxioctl()
424 rv = copyin(cm->green, sc->sc_cmap + 256 + cm->index, in zxioctl()
427 rv = copyin(cm->blue, sc->sc_cmap + 512 + cm->index, in zxioctl()
603 sc->sc_cmap[i] = rasops_cmap[i * 3]; in zx_reset()
604 sc->sc_cmap[i + 256] = rasops_cmap[i * 3 + 1]; in zx_reset()
605 sc->sc_cmap[i + 512] = rasops_cmap[i * 3 + 2]; in zx_reset()
[all …]
Dp9100.c124 union bt_cmap sc_cmap; /* Brooktree color map */ member
464 sc->sc_cmap.cm_map[i][0] = cmap[j]; in p9100_sbus_attach()
466 sc->sc_cmap.cm_map[i][1] = cmap[j]; in p9100_sbus_attach()
468 sc->sc_cmap.cm_map[i][2] = cmap[j]; in p9100_sbus_attach()
571 return (bt_getcmap(p, &sc->sc_cmap, 256, 1)); in p9100ioctl()
575 error = bt_putcmap(p, &sc->sc_cmap, 256, 1); in p9100ioctl()
1021 sc->sc_cmap.cm_map[i + start][0]); in p9100loadcmap()
1023 sc->sc_cmap.cm_map[i + start][1]); in p9100loadcmap()
1025 sc->sc_cmap.cm_map[i + start][2]); in p9100loadcmap()
1416 sc->sc_cmap.cm_map[index][0] = *r; in p9100_putcmap()
[all …]
Dagten.c119 union bt_cmap sc_cmap; /* Brooktree color map */ member
583 red[i] = sc->sc_cmap.cm_map[i][0]; in agten_getcmap()
584 green[i] = sc->sc_cmap.cm_map[i][1]; in agten_getcmap()
585 blue[i] = sc->sc_cmap.cm_map[i][2]; in agten_getcmap()
606 sc->sc_cmap.cm_map[idx][0] = r; in agten_putpalreg()
607 sc->sc_cmap.cm_map[idx][1] = g; in agten_putpalreg()
608 sc->sc_cmap.cm_map[idx][2] = b; in agten_putpalreg()
1128 return (bt_getcmap(p, &sc->sc_cmap, 256, 1)); in agten_fb_ioctl()
1132 error = bt_putcmap(p, &sc->sc_cmap, 256, 1); in agten_fb_ioctl()
Dzxvar.h93 uint8_t *sc_cmap; member
/netbsd/src/sys/dev/bi/
Dkdb.c87 bus_dmamap_t sc_cmap; /* Control structures */ member
178 1, sizeof(struct mscp_pack), 0, BUS_DMA_NOWAIT, &sc->sc_cmap))) { in kdbattach()
184 if ((error = bus_dmamap_load(sc->sc_dmat, sc->sc_cmap, in kdbattach()
187 bus_dmamap_destroy(sc->sc_dmat, sc->sc_cmap); in kdbattach()
201 ma.ma_dmam = sc->sc_cmap; in kdbattach()
/netbsd/src/sys/arch/sun3/dev/
Dcg4.c115 struct soft_cmap sc_cmap; /* Soft cmap, user format */ member
459 struct soft_cmap *cm = &sc->sc_cmap; in cg4getcmap()
489 struct soft_cmap *cm = &sc->sc_cmap; in cg4putcmap()
521 struct soft_cmap *cm = &sc->sc_cmap; in cg4a_init()
536 struct soft_cmap *cm = &sc->sc_cmap; in cg4a_ldcmap()
571 struct soft_cmap *cm = &sc->sc_cmap; in cg4b_init()
620 struct soft_cmap *cm = &sc->sc_cmap; in cg4b_ldcmap()
/netbsd/src/sys/arch/sparc/dev/
Dcgfour.c132 union bt_cmap sc_cmap; /* Brooktree color map */ member
305 ((char *)&sc->sc_cmap)[i] = bt->bt_cmap >> 24; in cgfourattach()
365 return (bt_getcmap(p, &sc->sc_cmap, 256, 1)); in cgfourioctl()
369 error = bt_putcmap(p, &sc->sc_cmap, 256, 1); in cgfourioctl()
493 ip = &sc->sc_cmap.cm_chip[BT_D4M3(start)]; /* start/4 * 3 */ in cgfourloadcmap()
Dcgeight.c134 union bt_cmap sc_cmap; /* Brooktree color map */ member
313 sc->sc_cmap.cm_chip[i] = bt->bt_cmap; in cgeightattach()
374 return (bt_getcmap(p, &sc->sc_cmap, 256, 1)); in cgeightioctl()
378 error = bt_putcmap(p, &sc->sc_cmap, 256, 1); in cgeightioctl()
524 ip = &sc->sc_cmap.cm_chip[BT_D4M3(start)]; /* start/4 * 3 */ in cgeightloadcmap()
Dcgtwo.c83 volatile u_short *sc_cmap; member
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 */ in cgtwoattach()
Dcgfourteen.c331 sc->sc_cmap.cm_chip[i] = lut[i]; in cgfourteenattach()
474 return(cg14_get_cmap((struct fbcmap *)data, &sc->sc_cmap, in cgfourteenioctl()
480 error = cg14_put_cmap(p, &sc->sc_cmap, CG14_CLUT_SIZE); in cgfourteenioctl()
727 uint32_t *colp = &sc->sc_cmap.cm_chip[start]; in cg14_load_hwcmap()
881 sc->sc_cmap.cm_map[i][3] = cmap[j]; in cg14_init_cmap()
882 sc->sc_cmap.cm_map[i][2] = cmap[j + 1]; in cg14_init_cmap()
883 sc->sc_cmap.cm_map[i][1] = cmap[j + 2]; in cg14_init_cmap()
913 sc->sc_cmap.cm_map[index][3] = rbuf[index]; in cg14_putcmap()
914 sc->sc_cmap.cm_map[index][2] = gbuf[index]; in cg14_putcmap()
915 sc->sc_cmap.cm_map[index][1] = bbuf[index]; in cg14_putcmap()
[all …]
/netbsd/src/sys/arch/pmax/ibus/
Dpm.c89 struct hwcmap256 sc_cmap; member
230 cm = &sc->sc_cmap; in pm_init_cmap()
649 cm = &sc->sc_cmap; in pm_flush()
699 if ((rv = copyout(&sc->sc_cmap.r[index], p->red, count)) != 0) in pm_get_cmap()
701 if ((rv = copyout(&sc->sc_cmap.g[index], p->green, count)) != 0) in pm_get_cmap()
703 return (copyout(&sc->sc_cmap.b[index], p->blue, count)); in pm_get_cmap()
718 if ((rv = copyin(p->red, &sc->sc_cmap.r[index], count)) != 0) in pm_set_cmap()
720 if ((rv = copyin(p->green, &sc->sc_cmap.g[index], count)) != 0) in pm_set_cmap()
722 if ((rv = copyin(p->blue, &sc->sc_cmap.b[index], count)) != 0) in pm_set_cmap()
/netbsd/src/sys/dev/ic/
Dsgec.c113 sizeof(struct ze_cdata), 0, BUS_DMA_NOWAIT, &sc->sc_cmap); in sgec_attach()
121 error = bus_dmamap_load(sc->sc_dmat, sc->sc_cmap, sc->sc_zedata, in sgec_attach()
195 sc->sc_pzedata = (struct ze_cdata *)sc->sc_cmap->dm_segs[0].ds_addr; in sgec_attach()
250 bus_dmamap_unload(sc->sc_dmat, sc->sc_cmap); in sgec_attach()
252 bus_dmamap_destroy(sc->sc_dmat, sc->sc_cmap); in sgec_attach()
Dsgecvar.h56 bus_dmamap_t sc_cmap; /* Map for control structures */ member
/netbsd/src/sys/arch/macppc/dev/
Dplatinumfb.c123 uint8_t *sc_cmap; member
302 out8(sc->sc_cmap + reg_offset, val); in platinumfb_write_cmap_reg()
308 return in8(sc->sc_cmap + reg_offset); in platinumfb_read_cmap_reg()
482 sc->sc_cmap = (uint8_t *)PLATINUM_CMAP_BASE_ADDR; in platinumfb_attach()
488 (paddr_t)sc->sc_cmap); in platinumfb_attach()

12