Lines Matching +full:16 +full:- +full:bits

1 // SPDX-License-Identifier: GPL-2.0
24 static void draw_byte_32(const unsigned char *bits, unsigned int *base, int rb);
25 static void draw_byte_16(const unsigned char *bits, unsigned int *base, int rb);
26 static void draw_byte_8(const unsigned char *bits, unsigned int *base, int rb);
47 return -EINVAL; in btext_initialize()
49 return -EINVAL; in btext_initialize()
51 return -EINVAL; in btext_initialize()
68 return -EINVAL; in btext_initialize()
73 g_max_loc_Y = height / 16; in btext_initialize()
76 dispDeviceDepth = depth == 15 ? 16 : depth; in btext_initialize()
97 unsigned long width = ((dispDeviceRect[2] - dispDeviceRect[0]) * in btext_clearscreen()
101 for (i=0; i<(dispDeviceRect[3] - dispDeviceRect[1]); i++) in btext_clearscreen()
104 for(j=width; j; --j) in btext_clearscreen()
113 unsigned int *src = (unsigned int *)calc_base(0,16); in scrollscreen()
115 unsigned long width = ((dispDeviceRect[2] - dispDeviceRect[0]) * in scrollscreen()
119 for (i=0; i<(dispDeviceRect[3] - dispDeviceRect[1] - 16); i++) in scrollscreen()
123 for(j=width; j; --j) in scrollscreen()
128 for (i=0; i<16; i++) in scrollscreen()
131 for(j=width; j; --j) in scrollscreen()
147 --g_loc_X; in btext_drawchar()
150 g_loc_X = (g_loc_X & -8) + 8; in btext_drawchar()
171 g_loc_Y--; in btext_drawchar()
175 waste time scrolling each line. -- paulus. */ in btext_drawchar()
187 while (len--) in btext_drawtext()
194 unsigned int font_index = c * 16; in draw_byte()
204 case 16: in draw_byte()
213 static unsigned int expand_bits_8[16] = {
242 int l, bits; in draw_byte_32() local
246 for (l = 0; l < 16; ++l) in draw_byte_32()
248 bits = *font++; in draw_byte_32()
249 base[0] = (-(bits >> 7) & fg) ^ bg; in draw_byte_32()
250 base[1] = (-((bits >> 6) & 1) & fg) ^ bg; in draw_byte_32()
251 base[2] = (-((bits >> 5) & 1) & fg) ^ bg; in draw_byte_32()
252 base[3] = (-((bits >> 4) & 1) & fg) ^ bg; in draw_byte_32()
253 base[4] = (-((bits >> 3) & 1) & fg) ^ bg; in draw_byte_32()
254 base[5] = (-((bits >> 2) & 1) & fg) ^ bg; in draw_byte_32()
255 base[6] = (-((bits >> 1) & 1) & fg) ^ bg; in draw_byte_32()
256 base[7] = (-(bits & 1) & fg) ^ bg; in draw_byte_32()
263 int l, bits; in draw_byte_16() local
268 for (l = 0; l < 16; ++l) in draw_byte_16()
270 bits = *font++; in draw_byte_16()
271 base[0] = (eb[bits >> 6] & fg) ^ bg; in draw_byte_16()
272 base[1] = (eb[(bits >> 4) & 3] & fg) ^ bg; in draw_byte_16()
273 base[2] = (eb[(bits >> 2) & 3] & fg) ^ bg; in draw_byte_16()
274 base[3] = (eb[bits & 3] & fg) ^ bg; in draw_byte_16()
281 int l, bits; in draw_byte_8() local
286 for (l = 0; l < 16; ++l) in draw_byte_8()
288 bits = *font++; in draw_byte_8()
289 base[0] = (eb[bits >> 4] & fg) ^ bg; in draw_byte_8()
290 base[1] = (eb[bits & 0xf] & fg) ^ bg; in draw_byte_8()
316 return -ENODEV; in btext_find_display()
318 return -ENODEV; in btext_find_display()