Lines Matching +full:3 +full:- +full:5 +full:v

28         ((uint32_t *)d)[0] = (-((font_data >> 7)) & xorcol) ^ bgcol;  in vga_draw_glyph_line()
29 ((uint32_t *)d)[1] = (-((font_data >> 6) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line()
30 ((uint32_t *)d)[2] = (-((font_data >> 5) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line()
31 ((uint32_t *)d)[3] = (-((font_data >> 4) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line()
32 ((uint32_t *)d)[4] = (-((font_data >> 3) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line()
33 ((uint32_t *)d)[5] = (-((font_data >> 2) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line()
34 ((uint32_t *)d)[6] = (-((font_data >> 1) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line()
35 ((uint32_t *)d)[7] = (-((font_data >> 0) & 1) & xorcol) ^ bgcol; in vga_draw_glyph_line()
50 } while (--h); in vga_draw_glyph8()
68 } while (--h); in vga_draw_glyph16()
75 uint32_t font_data, xorcol, v; in vga_draw_glyph9() local
80 ((uint32_t *)d)[0] = (-((font_data >> 7)) & xorcol) ^ bgcol; in vga_draw_glyph9()
81 ((uint32_t *)d)[1] = (-((font_data >> 6) & 1) & xorcol) ^ bgcol; in vga_draw_glyph9()
82 ((uint32_t *)d)[2] = (-((font_data >> 5) & 1) & xorcol) ^ bgcol; in vga_draw_glyph9()
83 ((uint32_t *)d)[3] = (-((font_data >> 4) & 1) & xorcol) ^ bgcol; in vga_draw_glyph9()
84 ((uint32_t *)d)[4] = (-((font_data >> 3) & 1) & xorcol) ^ bgcol; in vga_draw_glyph9()
85 ((uint32_t *)d)[5] = (-((font_data >> 2) & 1) & xorcol) ^ bgcol; in vga_draw_glyph9()
86 ((uint32_t *)d)[6] = (-((font_data >> 1) & 1) & xorcol) ^ bgcol; in vga_draw_glyph9()
87 v = (-((font_data >> 0) & 1) & xorcol) ^ bgcol; in vga_draw_glyph9()
88 ((uint32_t *)d)[7] = v; in vga_draw_glyph9()
90 ((uint32_t *)d)[8] = v; in vga_draw_glyph9()
95 } while (--h); in vga_draw_glyph9()
104 uint32_t plane_mask, *palette, data, v; in vga_draw_line2() local
107 palette = vga->last_palette; in vga_draw_line2()
108 plane_mask = mask16[vga->ar[VGA_ATC_PLANE_ENABLE] & 0xf]; in vga_draw_line2()
112 d = vga->panning_buf; in vga_draw_line2()
114 width >>= 3; in vga_draw_line2()
116 data = vga_read_dword_le(vga, addr & (VGA_VRAM_SIZE - 1)); in vga_draw_line2()
118 v = expand2[GET_PLANE(data, 0)]; in vga_draw_line2()
119 v |= expand2[GET_PLANE(data, 2)] << 2; in vga_draw_line2()
120 ((uint32_t *)d)[0] = palette[v >> 12]; in vga_draw_line2()
121 ((uint32_t *)d)[1] = palette[(v >> 8) & 0xf]; in vga_draw_line2()
122 ((uint32_t *)d)[2] = palette[(v >> 4) & 0xf]; in vga_draw_line2()
123 ((uint32_t *)d)[3] = palette[(v >> 0) & 0xf]; in vga_draw_line2()
125 v = expand2[GET_PLANE(data, 1)]; in vga_draw_line2()
126 v |= expand2[GET_PLANE(data, 3)] << 2; in vga_draw_line2()
127 ((uint32_t *)d)[4] = palette[v >> 12]; in vga_draw_line2()
128 ((uint32_t *)d)[5] = palette[(v >> 8) & 0xf]; in vga_draw_line2()
129 ((uint32_t *)d)[6] = palette[(v >> 4) & 0xf]; in vga_draw_line2()
130 ((uint32_t *)d)[7] = palette[(v >> 0) & 0xf]; in vga_draw_line2()
134 return hpel ? vga->panning_buf + 4 * hpel : NULL; in vga_draw_line2()
137 #define PUT_PIXEL2(d, n, v) \ argument
138 ((uint32_t *)d)[2*(n)] = ((uint32_t *)d)[2*(n)+1] = (v)
146 uint32_t plane_mask, *palette, data, v; in vga_draw_line2d2() local
149 palette = vga->last_palette; in vga_draw_line2d2()
150 plane_mask = mask16[vga->ar[VGA_ATC_PLANE_ENABLE] & 0xf]; in vga_draw_line2d2()
154 d = vga->panning_buf; in vga_draw_line2d2()
156 width >>= 3; in vga_draw_line2d2()
158 data = vga_read_dword_le(vga, addr & (VGA_VRAM_SIZE - 1)); in vga_draw_line2d2()
160 v = expand2[GET_PLANE(data, 0)]; in vga_draw_line2d2()
161 v |= expand2[GET_PLANE(data, 2)] << 2; in vga_draw_line2d2()
162 PUT_PIXEL2(d, 0, palette[v >> 12]); in vga_draw_line2d2()
163 PUT_PIXEL2(d, 1, palette[(v >> 8) & 0xf]); in vga_draw_line2d2()
164 PUT_PIXEL2(d, 2, palette[(v >> 4) & 0xf]); in vga_draw_line2d2()
165 PUT_PIXEL2(d, 3, palette[(v >> 0) & 0xf]); in vga_draw_line2d2()
167 v = expand2[GET_PLANE(data, 1)]; in vga_draw_line2d2()
168 v |= expand2[GET_PLANE(data, 3)] << 2; in vga_draw_line2d2()
169 PUT_PIXEL2(d, 4, palette[v >> 12]); in vga_draw_line2d2()
170 PUT_PIXEL2(d, 5, palette[(v >> 8) & 0xf]); in vga_draw_line2d2()
171 PUT_PIXEL2(d, 6, palette[(v >> 4) & 0xf]); in vga_draw_line2d2()
172 PUT_PIXEL2(d, 7, palette[(v >> 0) & 0xf]); in vga_draw_line2d2()
176 return hpel ? vga->panning_buf + 8 * hpel : NULL; in vga_draw_line2d2()
185 uint32_t plane_mask, data, v, *palette; in vga_draw_line4() local
188 palette = vga->last_palette; in vga_draw_line4()
189 plane_mask = mask16[vga->ar[VGA_ATC_PLANE_ENABLE] & 0xf]; in vga_draw_line4()
193 d = vga->panning_buf; in vga_draw_line4()
195 width >>= 3; in vga_draw_line4()
197 data = vga_read_dword_le(vga, addr & (VGA_VRAM_SIZE - 1)); in vga_draw_line4()
199 v = expand4[GET_PLANE(data, 0)]; in vga_draw_line4()
200 v |= expand4[GET_PLANE(data, 1)] << 1; in vga_draw_line4()
201 v |= expand4[GET_PLANE(data, 2)] << 2; in vga_draw_line4()
202 v |= expand4[GET_PLANE(data, 3)] << 3; in vga_draw_line4()
203 ((uint32_t *)d)[0] = palette[v >> 28]; in vga_draw_line4()
204 ((uint32_t *)d)[1] = palette[(v >> 24) & 0xf]; in vga_draw_line4()
205 ((uint32_t *)d)[2] = palette[(v >> 20) & 0xf]; in vga_draw_line4()
206 ((uint32_t *)d)[3] = palette[(v >> 16) & 0xf]; in vga_draw_line4()
207 ((uint32_t *)d)[4] = palette[(v >> 12) & 0xf]; in vga_draw_line4()
208 ((uint32_t *)d)[5] = palette[(v >> 8) & 0xf]; in vga_draw_line4()
209 ((uint32_t *)d)[6] = palette[(v >> 4) & 0xf]; in vga_draw_line4()
210 ((uint32_t *)d)[7] = palette[(v >> 0) & 0xf]; in vga_draw_line4()
214 return hpel ? vga->panning_buf + 4 * hpel : NULL; in vga_draw_line4()
223 uint32_t plane_mask, data, v, *palette; in vga_draw_line4d2() local
226 palette = vga->last_palette; in vga_draw_line4d2()
227 plane_mask = mask16[vga->ar[VGA_ATC_PLANE_ENABLE] & 0xf]; in vga_draw_line4d2()
231 d = vga->panning_buf; in vga_draw_line4d2()
233 width >>= 3; in vga_draw_line4d2()
235 data = vga_read_dword_le(vga, addr & (VGA_VRAM_SIZE - 1)); in vga_draw_line4d2()
237 v = expand4[GET_PLANE(data, 0)]; in vga_draw_line4d2()
238 v |= expand4[GET_PLANE(data, 1)] << 1; in vga_draw_line4d2()
239 v |= expand4[GET_PLANE(data, 2)] << 2; in vga_draw_line4d2()
240 v |= expand4[GET_PLANE(data, 3)] << 3; in vga_draw_line4d2()
241 PUT_PIXEL2(d, 0, palette[v >> 28]); in vga_draw_line4d2()
242 PUT_PIXEL2(d, 1, palette[(v >> 24) & 0xf]); in vga_draw_line4d2()
243 PUT_PIXEL2(d, 2, palette[(v >> 20) & 0xf]); in vga_draw_line4d2()
244 PUT_PIXEL2(d, 3, palette[(v >> 16) & 0xf]); in vga_draw_line4d2()
245 PUT_PIXEL2(d, 4, palette[(v >> 12) & 0xf]); in vga_draw_line4d2()
246 PUT_PIXEL2(d, 5, palette[(v >> 8) & 0xf]); in vga_draw_line4d2()
247 PUT_PIXEL2(d, 6, palette[(v >> 4) & 0xf]); in vga_draw_line4d2()
248 PUT_PIXEL2(d, 7, palette[(v >> 0) & 0xf]); in vga_draw_line4d2()
252 return hpel ? vga->panning_buf + 8 * hpel : NULL; in vga_draw_line4d2()
266 palette = vga->last_palette; in vga_draw_line8d2()
267 hpel = (hpel >> 1) & 3; in vga_draw_line8d2()
274 if (addr + (width >> 3) * 4 < VGA_VRAM_SIZE) { in vga_draw_line8d2()
282 d = vga->panning_buf; in vga_draw_line8d2()
284 width >>= 3; in vga_draw_line8d2()
286 addr &= VGA_VRAM_SIZE - 1; in vga_draw_line8d2()
290 PUT_PIXEL2(d, 3, palette[vga_read_byte(vga, addr + 3)]); in vga_draw_line8d2()
294 return hpel ? vga->panning_buf + 8 * hpel : NULL; in vga_draw_line8d2()
308 palette = vga->last_palette; in vga_draw_line8()
309 hpel = (hpel >> 1) & 3; in vga_draw_line8()
312 d = vga->panning_buf; in vga_draw_line8()
314 width >>= 3; in vga_draw_line8()
319 ((uint32_t *)d)[3] = palette[vga_read_byte(vga, addr + 3)]; in vga_draw_line8()
321 ((uint32_t *)d)[5] = palette[vga_read_byte(vga, addr + 5)]; in vga_draw_line8()
327 return hpel ? vga->panning_buf + 4 * hpel : NULL; in vga_draw_line8()
337 uint32_t v, r, g, b; in vga_draw_line15_le() local
341 v = vga_read_word_le(vga, addr); in vga_draw_line15_le()
342 r = (v >> 7) & 0xf8; in vga_draw_line15_le()
343 g = (v >> 2) & 0xf8; in vga_draw_line15_le()
344 b = (v << 3) & 0xf8; in vga_draw_line15_le()
348 } while (--w != 0); in vga_draw_line15_le()
356 uint32_t v, r, g, b; in vga_draw_line15_be() local
360 v = vga_read_word_be(vga, addr); in vga_draw_line15_be()
361 r = (v >> 7) & 0xf8; in vga_draw_line15_be()
362 g = (v >> 2) & 0xf8; in vga_draw_line15_be()
363 b = (v << 3) & 0xf8; in vga_draw_line15_be()
367 } while (--w != 0); in vga_draw_line15_be()
378 uint32_t v, r, g, b; in vga_draw_line16_le() local
382 v = vga_read_word_le(vga, addr); in vga_draw_line16_le()
383 r = (v >> 8) & 0xf8; in vga_draw_line16_le()
384 g = (v >> 3) & 0xfc; in vga_draw_line16_le()
385 b = (v << 3) & 0xf8; in vga_draw_line16_le()
389 } while (--w != 0); in vga_draw_line16_le()
397 uint32_t v, r, g, b; in vga_draw_line16_be() local
401 v = vga_read_word_be(vga, addr); in vga_draw_line16_be()
402 r = (v >> 8) & 0xf8; in vga_draw_line16_be()
403 g = (v >> 3) & 0xfc; in vga_draw_line16_be()
404 b = (v << 3) & 0xf8; in vga_draw_line16_be()
408 } while (--w != 0); in vga_draw_line16_be()
427 addr += 3; in vga_draw_line24_le()
429 } while (--w != 0); in vga_draw_line24_le()
445 addr += 3; in vga_draw_line24_be()
447 } while (--w != 0); in vga_draw_line24_be()
468 } while (--w != 0); in vga_draw_line32_le()
482 b = vga_read_byte(vga, addr + 3); in vga_draw_line32_be()
486 } while (--w != 0); in vga_draw_line32_be()