Lines Matching +full:data +full:- +full:width
2 * linux/drivers/video/iplan2p8.c -- Low level frame buffer operations for
32 int height, int width) in atafb_iplan2p8_copyarea() argument
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()
63 width -= 8; in atafb_iplan2p8_copyarea()
65 w = width >> 4; 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()
78 if (width & 15) 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()
85 if ((sx + width) & 15) { 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()
91 w = width >> 4; 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()
121 w = width; in atafb_iplan2p8_copyarea()
126 if ((sx + width) & 15) in atafb_iplan2p8_copyarea()
129 for (i = height; i; i--) { in atafb_iplan2p8_copyarea()
145 for (j = w; j > 0; j--) { 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()
184 w = width; in atafb_iplan2p8_copyarea()
185 if ((dx + width) & 15) 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()
213 v = *--src32; in atafb_iplan2p8_copyarea()
215 *--dst32 = pval[1] | (v1 << 8); in atafb_iplan2p8_copyarea()
217 v = *--src32; in atafb_iplan2p8_copyarea()
219 *--dst32 = pval[2] | (v1 << 8); in atafb_iplan2p8_copyarea()
221 v = *--src32; in atafb_iplan2p8_copyarea()
223 *--dst32 = pval[3] | (v1 << 8); 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()
242 int sy, int sx, int height, int width) in atafb_iplan2p8_fillrect() argument
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()
259 width -= 8; in atafb_iplan2p8_fillrect()
263 rows = width >> 4; 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()
272 width &= 15; in atafb_iplan2p8_fillrect()
275 if (width) { in atafb_iplan2p8_fillrect()
280 for (i = height; i; i--) { in atafb_iplan2p8_fillrect()
288 int dy, int dx, u32 width, in atafb_iplan2p8_linefill() argument
289 const u8 *data, u32 bgcolor, u32 fgcolor) in atafb_iplan2p8_linefill() argument
296 dest = (u32 *)(info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL)); in atafb_iplan2p8_linefill()
298 fill8_2col((u8 *)dest + 1, fgcolor, bgcolor, *data++); in atafb_iplan2p8_linefill()
300 width -= 8; in atafb_iplan2p8_linefill()
303 if (width >= 16) { in atafb_iplan2p8_linefill()
304 data16 = (const u16 *)data; in atafb_iplan2p8_linefill()
307 for (rows = width / 16; rows; rows--) { in atafb_iplan2p8_linefill()
316 data = (const u8 *)data16; in atafb_iplan2p8_linefill()
317 width &= 15; in atafb_iplan2p8_linefill()
320 if (width) in atafb_iplan2p8_linefill()
321 fill8_2col((u8 *)dest, fgcolor, bgcolor, *data); in atafb_iplan2p8_linefill()