Lines Matching +full:- +full:15 +full:v

2  *  linux/drivers/video/iplan2p4.c -- Low level frame buffer operations for
46 if (!((sx ^ dx) & 15)) { in atafb_iplan2p4_copyarea()
47 /* odd->odd or even->even */ in atafb_iplan2p4_copyarea()
50 src = (u8 *)info->screen_base + sy * next_line + (sx & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea()
51 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea()
52 if (sx & 15) { in atafb_iplan2p4_copyarea()
53 memmove32_col(dst, src, 0xff00ff, height, next_line - BPL * 2); in atafb_iplan2p4_copyarea()
56 width -= 8; in atafb_iplan2p4_copyarea()
63 l = next_line - w * 4; in atafb_iplan2p4_copyarea()
64 for (j = height; j > 0; j--) { in atafb_iplan2p4_copyarea()
65 for (i = w; i > 0; i--) in atafb_iplan2p4_copyarea()
71 if (width & 15) in atafb_iplan2p4_copyarea()
73 0xff00ff00, height, next_line - BPL * 2); in atafb_iplan2p4_copyarea()
75 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea()
76 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea()
78 if ((sx + width) & 15) { in atafb_iplan2p4_copyarea()
79 src -= BPL * 2; in atafb_iplan2p4_copyarea()
80 dst -= BPL * 2; in atafb_iplan2p4_copyarea()
81 memmove32_col(dst, src, 0xff00ff00, colsize, -next_line - BPL * 2); in atafb_iplan2p4_copyarea()
82 width -= 8; in atafb_iplan2p4_copyarea()
89 l = next_line - w * 4; in atafb_iplan2p4_copyarea()
90 for (j = height; j > 0; j--) { in atafb_iplan2p4_copyarea()
91 for (i = w; i > 0; i--) in atafb_iplan2p4_copyarea()
92 *--d = *--s; in atafb_iplan2p4_copyarea()
93 s = (u32 *)((u8 *)s - l); in atafb_iplan2p4_copyarea()
94 d = (u32 *)((u8 *)d - l); in atafb_iplan2p4_copyarea()
97 if (sx & 15) in atafb_iplan2p4_copyarea()
98 memmove32_col(dst - (width - 16) / (8 / BPL), in atafb_iplan2p4_copyarea()
99 src - (width - 16) / (8 / BPL), in atafb_iplan2p4_copyarea()
100 0xff00ff, colsize, -next_line - BPL * 2); in atafb_iplan2p4_copyarea()
103 /* odd->even or even->odd */ in atafb_iplan2p4_copyarea()
106 u32 pval[4], v, v1, mask; in atafb_iplan2p4_copyarea() local
109 src = (u8 *)info->screen_base + sy * next_line + (sx & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea()
110 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea()
115 if (sx & 15) { in atafb_iplan2p4_copyarea()
119 if ((sx + width) & 15) in atafb_iplan2p4_copyarea()
122 for (i = height; i; i--) { in atafb_iplan2p4_copyarea()
134 for (j = w; j > 0; j--) { in atafb_iplan2p4_copyarea()
135 v = *src32++; in atafb_iplan2p4_copyarea()
136 v1 = v & mask; in atafb_iplan2p4_copyarea()
138 pval[0] = (v ^ v1) << 8; in atafb_iplan2p4_copyarea()
139 v = *src32++; in atafb_iplan2p4_copyarea()
140 v1 = v & mask; in atafb_iplan2p4_copyarea()
142 pval[1] = (v ^ v1) << 8; in atafb_iplan2p4_copyarea()
155 u32 pval[4], v, v1, mask; in atafb_iplan2p4_copyarea() local
158 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea()
159 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p4_copyarea()
164 if ((dx + width) & 15) in atafb_iplan2p4_copyarea()
166 if (sx & 15) { in atafb_iplan2p4_copyarea()
171 for (i = height; i; i--) { in atafb_iplan2p4_copyarea()
176 pval[0] = dst32[-1] & mask; in atafb_iplan2p4_copyarea()
177 pval[1] = dst32[-2] & mask; in atafb_iplan2p4_copyarea()
179 pval[0] = (*--src32 >> 8) & mask; in atafb_iplan2p4_copyarea()
180 pval[1] = (*--src32 >> 8) & mask; in atafb_iplan2p4_copyarea()
183 for (j = w; j > 0; j--) { in atafb_iplan2p4_copyarea()
184 v = *--src32; in atafb_iplan2p4_copyarea()
185 v1 = v & mask; in atafb_iplan2p4_copyarea()
186 *--dst32 = pval[0] | (v1 << 8); in atafb_iplan2p4_copyarea()
187 pval[0] = (v ^ v1) >> 8; in atafb_iplan2p4_copyarea()
188 v = *--src32; in atafb_iplan2p4_copyarea()
189 v1 = v & mask; in atafb_iplan2p4_copyarea()
190 *--dst32 = pval[1] | (v1 << 8); in atafb_iplan2p4_copyarea()
191 pval[1] = (v ^ v1) >> 8; in atafb_iplan2p4_copyarea()
195 dst32[-1] = (dst32[-1] & mask) | pval[0]; in atafb_iplan2p4_copyarea()
196 dst32[-2] = (dst32[-2] & mask) | pval[1]; in atafb_iplan2p4_copyarea()
199 src -= next_line; in atafb_iplan2p4_copyarea()
200 dst -= next_line; in atafb_iplan2p4_copyarea()
213 dest = (u32 *)(info->screen_base + sy * next_line + (sx & ~15) / (8 / BPL)); in atafb_iplan2p4_fillrect()
214 if (sx & 15) { in atafb_iplan2p4_fillrect()
219 for (i = height; i; i--) { in atafb_iplan2p4_fillrect()
224 width -= 8; in atafb_iplan2p4_fillrect()
231 u32 off = next_line - rows * BPL * 2; in atafb_iplan2p4_fillrect()
232 for (i = height; i; i--) { in atafb_iplan2p4_fillrect()
237 width &= 15; in atafb_iplan2p4_fillrect()
245 for (i = height; i; i--) { in atafb_iplan2p4_fillrect()
261 dest = (u32 *)(info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL)); in atafb_iplan2p4_linefill()
262 if (dx & 15) { in atafb_iplan2p4_linefill()
265 width -= 8; in atafb_iplan2p4_linefill()
272 for (rows = width / 16; rows; rows--) { in atafb_iplan2p4_linefill()
280 width &= 15; in atafb_iplan2p4_linefill()