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

2  *  linux/drivers/video/iplan2p2.c -- Low level frame buffer operations for
46 if (!((sx ^ dx) & 15)) { in atafb_iplan2p2_copyarea()
47 /* odd->odd or even->even */ in atafb_iplan2p2_copyarea()
50 src = (u8 *)info->screen_base + sy * next_line + (sx & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea()
51 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea()
52 if (sx & 15) { in atafb_iplan2p2_copyarea()
53 memmove32_col(dst, src, 0xff00ff, height, next_line - BPL * 2); in atafb_iplan2p2_copyarea()
56 width -= 8; in atafb_iplan2p2_copyarea()
63 l = next_line - w * 4; in atafb_iplan2p2_copyarea()
64 for (j = height; j > 0; j--) { in atafb_iplan2p2_copyarea()
65 for (i = w; i > 0; i--) in atafb_iplan2p2_copyarea()
71 if (width & 15) in atafb_iplan2p2_copyarea()
73 0xff00ff00, height, next_line - BPL * 2); in atafb_iplan2p2_copyarea()
75 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea()
76 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea()
78 if ((sx + width) & 15) { in atafb_iplan2p2_copyarea()
79 src -= BPL * 2; in atafb_iplan2p2_copyarea()
80 dst -= BPL * 2; in atafb_iplan2p2_copyarea()
81 memmove32_col(dst, src, 0xff00ff00, colsize, -next_line - BPL * 2); in atafb_iplan2p2_copyarea()
82 width -= 8; in atafb_iplan2p2_copyarea()
89 l = next_line - w * 4; in atafb_iplan2p2_copyarea()
90 for (j = height; j > 0; j--) { in atafb_iplan2p2_copyarea()
91 for (i = w; i > 0; i--) in atafb_iplan2p2_copyarea()
92 *--d = *--s; in atafb_iplan2p2_copyarea()
93 s = (u32 *)((u8 *)s - l); in atafb_iplan2p2_copyarea()
94 d = (u32 *)((u8 *)d - l); in atafb_iplan2p2_copyarea()
97 if (sx & 15) in atafb_iplan2p2_copyarea()
98 memmove32_col(dst - (width - 16) / (8 / BPL), in atafb_iplan2p2_copyarea()
99 src - (width - 16) / (8 / BPL), in atafb_iplan2p2_copyarea()
100 0xff00ff, colsize, -next_line - BPL * 2); in atafb_iplan2p2_copyarea()
103 /* odd->even or even->odd */ in atafb_iplan2p2_copyarea()
106 u32 pval[4], v, v1, mask; in atafb_iplan2p2_copyarea() local
109 src = (u8 *)info->screen_base + sy * next_line + (sx & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea()
110 dst = (u8 *)info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea()
115 if (sx & 15) { in atafb_iplan2p2_copyarea()
119 if ((sx + width) & 15) in atafb_iplan2p2_copyarea()
122 for (i = height; i; i--) { in atafb_iplan2p2_copyarea()
132 for (j = w; j > 0; j--) { in atafb_iplan2p2_copyarea()
133 v = *src32++; in atafb_iplan2p2_copyarea()
134 v1 = v & mask; in atafb_iplan2p2_copyarea()
136 pval[0] = (v ^ v1) << 8; in atafb_iplan2p2_copyarea()
148 u32 pval[4], v, v1, mask; in atafb_iplan2p2_copyarea() local
151 src = (u8 *)info->screen_base + (sy - 1) * next_line + ((sx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea()
152 dst = (u8 *)info->screen_base + (dy - 1) * next_line + ((dx + width + 8) & ~15) / (8 / BPL); in atafb_iplan2p2_copyarea()
157 if ((dx + width) & 15) in atafb_iplan2p2_copyarea()
159 if (sx & 15) { in atafb_iplan2p2_copyarea()
164 for (i = height; i; i--) { in atafb_iplan2p2_copyarea()
169 pval[0] = dst32[-1] & mask; in atafb_iplan2p2_copyarea()
171 pval[0] = (*--src32 >> 8) & mask; in atafb_iplan2p2_copyarea()
174 for (j = w; j > 0; j--) { in atafb_iplan2p2_copyarea()
175 v = *--src32; in atafb_iplan2p2_copyarea()
176 v1 = v & mask; in atafb_iplan2p2_copyarea()
177 *--dst32 = pval[0] | (v1 << 8); in atafb_iplan2p2_copyarea()
178 pval[0] = (v ^ v1) >> 8; in atafb_iplan2p2_copyarea()
182 dst32[-1] = (dst32[-1] & mask) | pval[0]; in atafb_iplan2p2_copyarea()
185 src -= next_line; in atafb_iplan2p2_copyarea()
186 dst -= next_line; in atafb_iplan2p2_copyarea()
199 dest = (u32 *)(info->screen_base + sy * next_line + (sx & ~15) / (8 / BPL)); in atafb_iplan2p2_fillrect()
200 if (sx & 15) { in atafb_iplan2p2_fillrect()
205 for (i = height; i; i--) { in atafb_iplan2p2_fillrect()
210 width -= 8; in atafb_iplan2p2_fillrect()
217 u32 off = next_line - rows * BPL * 2; in atafb_iplan2p2_fillrect()
218 for (i = height; i; i--) { in atafb_iplan2p2_fillrect()
223 width &= 15; in atafb_iplan2p2_fillrect()
231 for (i = height; i; i--) { in atafb_iplan2p2_fillrect()
247 dest = (u32 *)(info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL)); in atafb_iplan2p2_linefill()
248 if (dx & 15) { in atafb_iplan2p2_linefill()
251 width -= 8; in atafb_iplan2p2_linefill()
258 for (rows = width / 16; rows; rows--) { in atafb_iplan2p2_linefill()
265 width &= 15; in atafb_iplan2p2_linefill()