Lines Matching refs:base
22 static void draw_byte_32(unsigned char *bits, unsigned int *base, int rb);
23 static void draw_byte_16(unsigned char *bits, unsigned int *base, int rb);
24 static void draw_byte_8(unsigned char *bits, unsigned int *base, int rb);
89 unsigned char *base = dispDeviceBase; in calc_base() local
91 base += (x + dispDeviceRect[0]) * (dispDeviceDepth >> 3); in calc_base()
92 base += (y + dispDeviceRect[1]) * dispDeviceRowBytes; in calc_base()
93 return base; in calc_base()
98 unsigned int *base = (unsigned int *)calc_base(0, 0); in btext_clearscreen() local
105 unsigned int *ptr = base; in btext_clearscreen()
108 base += (dispDeviceRowBytes >> 2); in btext_clearscreen()
195 unsigned char *base = calc_base(locX << 3, locY << 4); in draw_byte() local
202 draw_byte_32(font, (unsigned int *)base, rb); in draw_byte()
206 draw_byte_16(font, (unsigned int *)base, rb); in draw_byte()
209 draw_byte_8(font, (unsigned int *)base, rb); in draw_byte()
241 static void draw_byte_32(unsigned char *font, unsigned int *base, int rb) in draw_byte_32() argument
250 base[0] = (-(bits >> 7) & fg) ^ bg; in draw_byte_32()
251 base[1] = (-((bits >> 6) & 1) & fg) ^ bg; in draw_byte_32()
252 base[2] = (-((bits >> 5) & 1) & fg) ^ bg; in draw_byte_32()
253 base[3] = (-((bits >> 4) & 1) & fg) ^ bg; in draw_byte_32()
254 base[4] = (-((bits >> 3) & 1) & fg) ^ bg; in draw_byte_32()
255 base[5] = (-((bits >> 2) & 1) & fg) ^ bg; in draw_byte_32()
256 base[6] = (-((bits >> 1) & 1) & fg) ^ bg; in draw_byte_32()
257 base[7] = (-(bits & 1) & fg) ^ bg; in draw_byte_32()
258 base = (unsigned int *) ((char *)base + rb); in draw_byte_32()
262 static void draw_byte_16(unsigned char *font, unsigned int *base, int rb) in draw_byte_16() argument
272 base[0] = (eb[bits >> 6] & fg) ^ bg; in draw_byte_16()
273 base[1] = (eb[(bits >> 4) & 3] & fg) ^ bg; in draw_byte_16()
274 base[2] = (eb[(bits >> 2) & 3] & fg) ^ bg; in draw_byte_16()
275 base[3] = (eb[bits & 3] & fg) ^ bg; in draw_byte_16()
276 base = (unsigned int *) ((char *)base + rb); in draw_byte_16()
280 static void draw_byte_8(unsigned char *font, unsigned int *base, int rb) in draw_byte_8() argument
290 base[0] = (eb[bits >> 4] & fg) ^ bg; in draw_byte_8()
291 base[1] = (eb[bits & 0xf] & fg) ^ bg; in draw_byte_8()
292 base = (unsigned int *) ((char *)base + rb); in draw_byte_8()