Lines Matching refs:palette

79  * @palette: Address of palette memory, or 0 if none.
98 unsigned short palette[S3C_FB_MAX_WIN];
112 * @palette_sz: Size of palette in entries.
113 * @palette_16bpp: Set if palette is 16bits wide.
141 * struct s3c_fb_palette - palette information
160 * @palette_buffer: Buffer/cache to hold palette entries.
163 * @palette: The bitfields for changing r/g/b into a hardware palette entry.
169 struct s3c_fb_palette palette;
266 if (sfb->variant.palette[win->index] != 0) {
684 * s3c_fb_update_palette() - set or schedule a palette update.
687 * @reg: The palette index being changed.
688 * @value: The computed palette value.
690 * Change the value of a palette register, either by directly writing to
691 * the palette (this requires the palette RAM to be disconnected from the
695 * the palette entry directly.
705 palreg = sfb->regs + sfb->variant.palette[win->index];
732 * s3c_fb_setcolreg() - framebuffer layer request to change palette.
733 * @regno: The palette index to change.
734 * @red: The red field for the palette data.
735 * @green: The green field for the palette data.
736 * @blue: The blue field for the palette data.
737 * @transp: The transparency (alpha) field for the palette data.
755 /* true-colour, use pseudo-palette */
770 val = chan_to_field(red, &win->palette.r);
771 val |= chan_to_field(green, &win->palette.g);
772 val |= chan_to_field(blue, &win->palette.b);
1214 /* setup the r/b/g positions for the window's palette */
1217 win->palette.r.offset = 11;
1218 win->palette.r.length = 5;
1219 win->palette.g.offset = 5;
1220 win->palette.g.length = 6;
1221 win->palette.b.offset = 0;
1222 win->palette.b.length = 5;
1226 win->palette.r.offset = 16;
1227 win->palette.r.length = 8;
1228 win->palette.g.offset = 8;
1229 win->palette.g.length = 8;
1230 win->palette.b.offset = 0;
1231 win->palette.b.length = 8;
1717 .palette = {
1751 .palette = {