Lines Matching refs:bi
66 btext_init(boot_infos_t *bi) in btext_init() argument
70 g_max_loc_X = (bi->dispDeviceRect[2] - bi->dispDeviceRect[0]) / 8; in btext_init()
71 g_max_loc_Y = (bi->dispDeviceRect[3] - bi->dispDeviceRect[1]) / 16; in btext_init()
72 disp_bi = *bi; in btext_init()
81 boot_infos_t* bi = &disp_bi; in btext_welcome() local
87 btext_drawhex((unsigned long)bi->dispDeviceBase); in btext_welcome()
89 btext_drawhex((unsigned long)bi->logicalDisplayBase); in btext_welcome()
129 boot_infos_t* bi = &disp_bi; in btext_prepare_BAT() local
134 addr = (unsigned long)bi->dispDeviceBase; in btext_prepare_BAT()
152 bi->logicalDisplayBase = (void *) (vaddr + lowbits); in btext_prepare_BAT()
162 boot_infos_t* bi = &disp_bi; in btext_setup_display() local
168 bi->logicalDisplayBase = (unsigned char *)address; in btext_setup_display()
169 bi->dispDeviceBase = (unsigned char *)address; in btext_setup_display()
170 bi->dispDeviceRowBytes = pitch; in btext_setup_display()
171 bi->dispDeviceDepth = depth; in btext_setup_display()
172 bi->dispDeviceRect[0] = bi->dispDeviceRect[1] = 0; in btext_setup_display()
173 bi->dispDeviceRect[2] = width; in btext_setup_display()
174 bi->dispDeviceRect[3] = height; in btext_setup_display()
193 boot_infos_t *bi = &disp_bi; in map_boot_text() local
195 if (bi->dispDeviceBase == 0) in map_boot_text()
197 base = ((unsigned long) bi->dispDeviceBase) & 0xFFFFF000UL; in map_boot_text()
198 offset = ((unsigned long) bi->dispDeviceBase) - base; in map_boot_text()
199 size = bi->dispDeviceRowBytes * bi->dispDeviceRect[3] + offset in map_boot_text()
200 + bi->dispDeviceRect[0]; in map_boot_text()
201 bi->logicalDisplayBase = ioremap(base, size); in map_boot_text()
202 if (bi->logicalDisplayBase == 0) in map_boot_text()
204 bi->logicalDisplayBase += offset; in map_boot_text()
210 calc_base(boot_infos_t *bi, int x, int y) in calc_base() argument
214 base = bi->logicalDisplayBase; in calc_base()
216 base = bi->dispDeviceBase; in calc_base()
217 base += (x + bi->dispDeviceRect[0]) * (bi->dispDeviceDepth >> 3); in calc_base()
218 base += (y + bi->dispDeviceRect[1]) * bi->dispDeviceRowBytes; in calc_base()
227 boot_infos_t *bi = &disp_bi; in btext_update_display() local
229 if (bi->dispDeviceBase == 0) in btext_update_display()
233 if ((phys ^ (unsigned long)bi->dispDeviceBase) & 0xf0000000) in btext_update_display()
236 bi->dispDeviceBase = (__u8 *) phys; in btext_update_display()
237 bi->dispDeviceRect[0] = 0; in btext_update_display()
238 bi->dispDeviceRect[1] = 0; in btext_update_display()
239 bi->dispDeviceRect[2] = width; in btext_update_display()
240 bi->dispDeviceRect[3] = height; in btext_update_display()
241 bi->dispDeviceDepth = depth; in btext_update_display()
242 bi->dispDeviceRowBytes = pitch; in btext_update_display()
244 iounmap(bi->logicalDisplayBase); in btext_update_display()
256 boot_infos_t* bi = &disp_bi; in btext_clearscreen() local
257 unsigned long *base = (unsigned long *)calc_base(bi, 0, 0); in btext_clearscreen()
258 unsigned long width = ((bi->dispDeviceRect[2] - bi->dispDeviceRect[0]) * in btext_clearscreen()
259 (bi->dispDeviceDepth >> 3)) >> 2; in btext_clearscreen()
262 for (i=0; i<(bi->dispDeviceRect[3] - bi->dispDeviceRect[1]); i++) in btext_clearscreen()
267 base += (bi->dispDeviceRowBytes >> 2); in btext_clearscreen()
278 boot_infos_t* bi = &disp_bi; in btext_flushscreen() local
279 unsigned long *base = (unsigned long *)calc_base(bi, 0, 0); in btext_flushscreen()
280 unsigned long width = ((bi->dispDeviceRect[2] - bi->dispDeviceRect[0]) * in btext_flushscreen()
281 (bi->dispDeviceDepth >> 3)) >> 2; in btext_flushscreen()
284 for (i=0; i<(bi->dispDeviceRect[3] - bi->dispDeviceRect[1]); i++) in btext_flushscreen()
291 base += (bi->dispDeviceRowBytes >> 2); in btext_flushscreen()
299 boot_infos_t* bi = &disp_bi; in scrollscreen() local
300 unsigned long *src = (unsigned long *)calc_base(bi,0,16); in scrollscreen()
301 unsigned long *dst = (unsigned long *)calc_base(bi,0,0); in scrollscreen()
302 unsigned long width = ((bi->dispDeviceRect[2] - bi->dispDeviceRect[0]) * in scrollscreen()
303 (bi->dispDeviceDepth >> 3)) >> 2; in scrollscreen()
309 for (i=0; i<(bi->dispDeviceRect[3] - bi->dispDeviceRect[1] - 16); i++) in scrollscreen()
315 src += (bi->dispDeviceRowBytes >> 2); in scrollscreen()
316 dst += (bi->dispDeviceRowBytes >> 2); in scrollscreen()
323 dst += (bi->dispDeviceRowBytes >> 2); in scrollscreen()
409 boot_infos_t* bi = &disp_bi; in draw_byte() local
410 unsigned char *base = calc_base(bi, locX << 3, locY << 4); in draw_byte()
412 int rb = bi->dispDeviceRowBytes; in draw_byte()
414 switch(bi->dispDeviceDepth) { in draw_byte()