Lines Matching +full:2 +full:- +full:8
2 * linux/drivers/video/iplan2p8.c -- Low level frame buffer operations for
3 * interleaved bitplanes à la Atari (8
4 * planes, 2 bytes interleave)
20 #define BPL 8
24 /* Copies a 8 plane column from 's', height 'h', to 'd'. */
26 /* This expands a 8 bit color into two longs for two movepl (8 plane)
54 /* odd->odd or even->even */ in atafb_iplan2p8_copyarea()
57 src = (u8 *)info->screen_base + sy * next_line + (sx & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea()
58 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea()
60 memmove32_col(dst, src, 0xff00ff, height, next_line - BPL * 2); in atafb_iplan2p8_copyarea()
61 src += BPL * 2; in atafb_iplan2p8_copyarea()
62 dst += BPL * 2; in atafb_iplan2p8_copyarea()
63 width -= 8; in atafb_iplan2p8_copyarea()
69 w *= BPL / 2; in atafb_iplan2p8_copyarea()
70 l = next_line - w * 4; in atafb_iplan2p8_copyarea()
71 for (j = height; j > 0; j--) { in atafb_iplan2p8_copyarea()
72 for (i = w; i > 0; i--) in atafb_iplan2p8_copyarea()
79 memmove32_col(dst + width / (8 / BPL), src + width / (8 / BPL), in atafb_iplan2p8_copyarea()
80 0xff00ff00, height, next_line - BPL * 2); in atafb_iplan2p8_copyarea()
82 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea()
83 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea()
86 src -= BPL * 2; in atafb_iplan2p8_copyarea()
87 dst -= BPL * 2; in atafb_iplan2p8_copyarea()
88 memmove32_col(dst, src, 0xff00ff00, colsize, -next_line - BPL * 2); in atafb_iplan2p8_copyarea()
89 width -= 8; in atafb_iplan2p8_copyarea()
95 w *= BPL / 2; in atafb_iplan2p8_copyarea()
96 l = next_line - w * 4; in atafb_iplan2p8_copyarea()
97 for (j = height; j > 0; j--) { in atafb_iplan2p8_copyarea()
98 for (i = w; i > 0; i--) in atafb_iplan2p8_copyarea()
99 *--d = *--s; in atafb_iplan2p8_copyarea()
100 s = (u32 *)((u8 *)s - l); in atafb_iplan2p8_copyarea()
101 d = (u32 *)((u8 *)d - l); in atafb_iplan2p8_copyarea()
105 memmove32_col(dst - (width - 16) / (8 / BPL), in atafb_iplan2p8_copyarea()
106 src - (width - 16) / (8 / BPL), in atafb_iplan2p8_copyarea()
107 0xff00ff, colsize, -next_line - BPL * 2); in atafb_iplan2p8_copyarea()
110 /* odd->even or even->odd */ in atafb_iplan2p8_copyarea()
116 src = (u8 *)info->screen_base + sy * next_line + (sx & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea()
117 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea()
124 w += 8; in atafb_iplan2p8_copyarea()
127 f |= 2; in atafb_iplan2p8_copyarea()
129 for (i = height; i; i--) { in atafb_iplan2p8_copyarea()
134 pval[0] = (*src32++ << 8) & mask; in atafb_iplan2p8_copyarea()
135 pval[1] = (*src32++ << 8) & mask; in atafb_iplan2p8_copyarea()
136 pval[2] = (*src32++ << 8) & mask; in atafb_iplan2p8_copyarea()
137 pval[3] = (*src32++ << 8) & mask; in atafb_iplan2p8_copyarea()
141 pval[2] = dst32[2] & mask; in atafb_iplan2p8_copyarea()
145 for (j = w; j > 0; j--) { in atafb_iplan2p8_copyarea()
148 *dst32++ = pval[0] | (v1 >> 8); in atafb_iplan2p8_copyarea()
149 pval[0] = (v ^ v1) << 8; in atafb_iplan2p8_copyarea()
152 *dst32++ = pval[1] | (v1 >> 8); in atafb_iplan2p8_copyarea()
153 pval[1] = (v ^ v1) << 8; in atafb_iplan2p8_copyarea()
156 *dst32++ = pval[2] | (v1 >> 8); in atafb_iplan2p8_copyarea()
157 pval[2] = (v ^ v1) << 8; in atafb_iplan2p8_copyarea()
160 *dst32++ = pval[3] | (v1 >> 8); in atafb_iplan2p8_copyarea()
161 pval[3] = (v ^ v1) << 8; in atafb_iplan2p8_copyarea()
164 if (f & 2) { in atafb_iplan2p8_copyarea()
167 dst32[2] = (dst32[2] & mask) | pval[2]; in atafb_iplan2p8_copyarea()
179 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea()
180 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p8_copyarea()
188 f |= 2; in atafb_iplan2p8_copyarea()
189 w += 8; in atafb_iplan2p8_copyarea()
192 for (i = height; i; i--) { in atafb_iplan2p8_copyarea()
197 pval[0] = dst32[-1] & mask; in atafb_iplan2p8_copyarea()
198 pval[1] = dst32[-2] & mask; in atafb_iplan2p8_copyarea()
199 pval[2] = dst32[-3] & mask; in atafb_iplan2p8_copyarea()
200 pval[3] = dst32[-4] & mask; in atafb_iplan2p8_copyarea()
202 pval[0] = (*--src32 >> 8) & mask; in atafb_iplan2p8_copyarea()
203 pval[1] = (*--src32 >> 8) & mask; in atafb_iplan2p8_copyarea()
204 pval[2] = (*--src32 >> 8) & mask; in atafb_iplan2p8_copyarea()
205 pval[3] = (*--src32 >> 8) & mask; in atafb_iplan2p8_copyarea()
208 for (j = w; j > 0; j--) { in atafb_iplan2p8_copyarea()
209 v = *--src32; in atafb_iplan2p8_copyarea()
211 *--dst32 = pval[0] | (v1 << 8); in atafb_iplan2p8_copyarea()
212 pval[0] = (v ^ v1) >> 8; in atafb_iplan2p8_copyarea()
213 v = *--src32; in atafb_iplan2p8_copyarea()
215 *--dst32 = pval[1] | (v1 << 8); in atafb_iplan2p8_copyarea()
216 pval[1] = (v ^ v1) >> 8; in atafb_iplan2p8_copyarea()
217 v = *--src32; in atafb_iplan2p8_copyarea()
219 *--dst32 = pval[2] | (v1 << 8); in atafb_iplan2p8_copyarea()
220 pval[2] = (v ^ v1) >> 8; in atafb_iplan2p8_copyarea()
221 v = *--src32; in atafb_iplan2p8_copyarea()
223 *--dst32 = pval[3] | (v1 << 8); in atafb_iplan2p8_copyarea()
224 pval[3] = (v ^ v1) >> 8; in atafb_iplan2p8_copyarea()
227 if (!(f & 2)) { in atafb_iplan2p8_copyarea()
228 dst32[-1] = (dst32[-1] & mask) | pval[0]; in atafb_iplan2p8_copyarea()
229 dst32[-2] = (dst32[-2] & mask) | pval[1]; in atafb_iplan2p8_copyarea()
230 dst32[-3] = (dst32[-3] & mask) | pval[2]; in atafb_iplan2p8_copyarea()
231 dst32[-4] = (dst32[-4] & mask) | pval[3]; in atafb_iplan2p8_copyarea()
234 src -= next_line; in atafb_iplan2p8_copyarea()
235 dst -= next_line; in atafb_iplan2p8_copyarea()
248 dest = (u32 *)(info->screen_base + sy * next_line + (sx & ~15) / (8 / BPL)); in atafb_iplan2p8_fillrect()
254 for (i = height; i; i--) { in atafb_iplan2p8_fillrect()
258 dest += BPL / 2; in atafb_iplan2p8_fillrect()
259 width -= 8; in atafb_iplan2p8_fillrect()
266 u32 off = next_line - rows * BPL * 2; in atafb_iplan2p8_fillrect()
267 for (i = height; i; i--) { in atafb_iplan2p8_fillrect()
271 dest += rows * BPL / 2; in atafb_iplan2p8_fillrect()
280 for (i = height; i; i--) { in atafb_iplan2p8_fillrect()
296 dest = (u32 *)(info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL)); in atafb_iplan2p8_linefill()
299 dest += BPL / 2; in atafb_iplan2p8_linefill()
300 width -= 8; in atafb_iplan2p8_linefill()
307 for (rows = width / 16; rows; rows--) { in atafb_iplan2p8_linefill()
312 *dest++ = (m & fgm[2]) ^ bgm[2]; in atafb_iplan2p8_linefill()