Lines Matching +full:data +full:- +full:width

2  *  linux/drivers/video/iplan2p2.c -- Low level frame buffer operations for
25 int height, int width) in atafb_iplan2p2_copyarea() argument
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()
53 memmove32_col(dst, src, 0xff00ff, height, next_line - BPL * 2); in atafb_iplan2p2_copyarea()
56 width -= 8; in atafb_iplan2p2_copyarea()
58 w = width >> 4; 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()
72 memmove32_col(dst + width / (8 / BPL), src + width / (8 / BPL), 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()
84 w = width >> 4; 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()
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()
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()
114 w = width; 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()
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()
156 w = width; in atafb_iplan2p2_copyarea()
157 if ((dx + width) & 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()
177 *--dst32 = pval[0] | (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()
193 int sy, int sx, int height, int width) in atafb_iplan2p2_fillrect() argument
199 dest = (u32 *)(info->screen_base + sy * next_line + (sx & ~15) / (8 / BPL)); in atafb_iplan2p2_fillrect()
205 for (i = height; i; i--) { in atafb_iplan2p2_fillrect()
210 width -= 8; in atafb_iplan2p2_fillrect()
214 rows = width >> 4; 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()
226 if (width) { in atafb_iplan2p2_fillrect()
231 for (i = height; i; i--) { in atafb_iplan2p2_fillrect()
239 int dy, int dx, u32 width, in atafb_iplan2p2_linefill() argument
240 const u8 *data, u32 bgcolor, u32 fgcolor) in atafb_iplan2p2_linefill() argument
247 dest = (u32 *)(info->screen_base + dy * next_line + (dx & ~15) / (8 / BPL)); in atafb_iplan2p2_linefill()
249 fill8_2col((u8 *)dest + 1, fgcolor, bgcolor, *data++); in atafb_iplan2p2_linefill()
251 width -= 8; in atafb_iplan2p2_linefill()
254 if (width >= 16) { in atafb_iplan2p2_linefill()
255 data16 = (const u16 *)data; in atafb_iplan2p2_linefill()
258 for (rows = width / 16; rows; rows--) { in atafb_iplan2p2_linefill()
264 data = (const u8 *)data16; in atafb_iplan2p2_linefill()
265 width &= 15; in atafb_iplan2p2_linefill()
268 if (width) in atafb_iplan2p2_linefill()
269 fill8_2col((u8 *)dest, fgcolor, bgcolor, *data); in atafb_iplan2p2_linefill()