Lines Matching +full:display +full:- +full:depth
1 // SPDX-License-Identifier: GPL-2.0
68 /* Calc BAT values for mapping the display and store them
70 * the display during identify_machine() and MMU_Init()
72 * The display is mapped to virtual address 0xD0000000, rather
107 void __init btext_setup_display(int width, int height, int depth, int pitch, in btext_setup_display() argument
117 dispDeviceDepth = depth == 15 ? 16 : depth; in btext_setup_display()
134 * - build some kind of vgacon with it to enable early printk
135 * - move to a separate file
136 * - add a few video driver hooks to keep in sync with display
150 offset = ((unsigned long) dispDeviceBase) - base; in btext_map()
162 unsigned int width, height, depth, pitch; in btext_initialize() local
166 prop = of_get_property(np, "linux,bootx-width", NULL); in btext_initialize()
170 return -EINVAL; in btext_initialize()
172 prop = of_get_property(np, "linux,bootx-height", NULL); in btext_initialize()
176 return -EINVAL; in btext_initialize()
178 prop = of_get_property(np, "linux,bootx-depth", NULL); in btext_initialize()
180 prop = of_get_property(np, "depth", NULL); in btext_initialize()
182 return -EINVAL; in btext_initialize()
183 depth = *prop; in btext_initialize()
184 pitch = width * ((depth + 7) / 8); in btext_initialize()
185 prop = of_get_property(np, "linux,bootx-linebytes", NULL); in btext_initialize()
192 prop = of_get_property(np, "linux,bootx-addr", NULL); in btext_initialize()
202 return -EINVAL; in btext_initialize()
210 dispDeviceDepth = depth == 15 ? 16 : depth; in btext_initialize()
223 int rc = -ENODEV; in btext_find_display()
225 if (!of_node_is_type(np, "display")) { in btext_find_display()
226 printk("boot stdout isn't a display !\n"); in btext_find_display()
234 for_each_node_by_type(np, "display") { in btext_find_display()
261 /* Adjust the display to a new resolution */
263 int depth, int pitch) in btext_update_display() argument
277 dispDeviceDepth = depth; in btext_update_display()
294 unsigned long width = ((dispDeviceRect[2] - dispDeviceRect[0]) * in btext_clearscreen()
299 for (i=0; i<(dispDeviceRect[3] - dispDeviceRect[1]); i++) in btext_clearscreen()
302 for(j=width; j; --j) in btext_clearscreen()
312 unsigned long width = ((dispDeviceRect[2] - dispDeviceRect[0]) * in btext_flushscreen()
316 for (i=0; i < (dispDeviceRect[3] - dispDeviceRect[1]); i++) in btext_flushscreen()
319 for(j = width; j > 0; j -= 8) { in btext_flushscreen()
331 unsigned long width = ((dispDeviceRect[2] - dispDeviceRect[0]) * in btext_flushline()
338 for(j = width; j > 0; j -= 8) { in btext_flushline()
353 unsigned long width = ((dispDeviceRect[2] - dispDeviceRect[0]) * in scrollscreen()
359 for (i=0; i<(dispDeviceRect[3] - dispDeviceRect[1] - 16); i++) in scrollscreen()
363 for(j=width; j; --j) in scrollscreen()
371 for(j=width; j; --j) in scrollscreen()
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()
498 --g_loc_X; in btext_drawchar()
501 g_loc_X = (g_loc_X & -8) + 8; in btext_drawchar()
522 g_loc_Y--; in btext_drawchar()
526 waste time scrolling each line. -- paulus. */ in btext_drawchar()
548 while (len--) in btext_drawtext()
579 /* If btext is enabled, we might have a BAT setup for early display, in udbg_init_btext()