Lines Matching refs:base

142 	unsigned long base, offset, size;  in btext_map()  local
149 base = ((unsigned long) dispDeviceBase) & 0xFFFFF000UL; in btext_map()
150 offset = ((unsigned long) dispDeviceBase) - base; in btext_map()
153 vbase = ioremap_wc(base, size); in btext_map()
251 unsigned char *base; in calc_base() local
253 base = logicalDisplayBase; in calc_base()
254 if (!base) in calc_base()
255 base = dispDeviceBase; in calc_base()
256 base += (x + dispDeviceRect[0]) * (dispDeviceDepth >> 3); in calc_base()
257 base += (y + dispDeviceRect[1]) * dispDeviceRowBytes; in calc_base()
258 return base; in calc_base()
293 unsigned int *base = (unsigned int *)calc_base(0, 0); in btext_clearscreen() local
301 unsigned int *ptr = base; in btext_clearscreen()
304 base += (dispDeviceRowBytes >> 2); in btext_clearscreen()
311 unsigned int *base = (unsigned int *)calc_base(0, 0); in btext_flushscreen() local
318 unsigned int *ptr = base; in btext_flushscreen()
323 base += (dispDeviceRowBytes >> 2); in btext_flushscreen()
330 unsigned int *base = (unsigned int *)calc_base(0, g_loc_Y << 4); in btext_flushline() local
337 unsigned int *ptr = base; in btext_flushline()
342 base += (dispDeviceRowBytes >> 2); in btext_flushline()
407 static void draw_byte_32(const unsigned char *font, unsigned int *base, int rb) in draw_byte_32() argument
416 base[0] = (-(bits >> 7) & fg) ^ bg; in draw_byte_32()
417 base[1] = (-((bits >> 6) & 1) & fg) ^ bg; in draw_byte_32()
418 base[2] = (-((bits >> 5) & 1) & fg) ^ bg; in draw_byte_32()
419 base[3] = (-((bits >> 4) & 1) & fg) ^ bg; in draw_byte_32()
420 base[4] = (-((bits >> 3) & 1) & fg) ^ bg; in draw_byte_32()
421 base[5] = (-((bits >> 2) & 1) & fg) ^ bg; in draw_byte_32()
422 base[6] = (-((bits >> 1) & 1) & fg) ^ bg; in draw_byte_32()
423 base[7] = (-(bits & 1) & fg) ^ bg; in draw_byte_32()
424 base = (unsigned int *) ((char *)base + rb); in draw_byte_32()
428 static inline void draw_byte_16(const unsigned char *font, unsigned int *base, int rb) in draw_byte_16() argument
438 base[0] = (eb[bits >> 6] & fg) ^ bg; in draw_byte_16()
439 base[1] = (eb[(bits >> 4) & 3] & fg) ^ bg; in draw_byte_16()
440 base[2] = (eb[(bits >> 2) & 3] & fg) ^ bg; in draw_byte_16()
441 base[3] = (eb[bits & 3] & fg) ^ bg; in draw_byte_16()
442 base = (unsigned int *) ((char *)base + rb); in draw_byte_16()
446 static inline void draw_byte_8(const unsigned char *font, unsigned int *base, int rb) in draw_byte_8() argument
456 base[0] = (eb[bits >> 4] & fg) ^ bg; in draw_byte_8()
457 base[1] = (eb[bits & 0xf] & fg) ^ bg; in draw_byte_8()
458 base = (unsigned int *) ((char *)base + rb); in draw_byte_8()
464 unsigned char *base = calc_base(locX << 3, locY << 4); in draw_byte() local
473 draw_byte_32(font, (unsigned int *)base, rb); in draw_byte()
477 draw_byte_16(font, (unsigned int *)base, rb); in draw_byte()
480 draw_byte_8(font, (unsigned int *)base, rb); in draw_byte()