Lines Matching +full:address +full:- +full:width
1 // SPDX-License-Identifier: GPL-2.0
72 * The display is mapped to virtual address 0xD0000000, rather
105 * call before the logical address becomes unusable
107 void __init btext_setup_display(int width, int height, int depth, int pitch, in btext_setup_display() argument
108 unsigned long address) in btext_setup_display() argument
112 g_max_loc_X = width / 8; in btext_setup_display()
114 logicalDisplayBase = (unsigned char *)address; in btext_setup_display()
115 dispDeviceBase = (unsigned char *)address; in btext_setup_display()
119 dispDeviceRect[2] = width; 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
163 unsigned long address = 0; in btext_initialize() local
166 prop = of_get_property(np, "linux,bootx-width", NULL); in btext_initialize()
168 prop = of_get_property(np, "width", NULL); in btext_initialize()
170 return -EINVAL; in btext_initialize()
171 width = *prop; 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()
182 return -EINVAL; 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()
194 prop = of_get_property(np, "address", NULL); in btext_initialize()
196 address = *prop; in btext_initialize()
201 if (address == 0) in btext_initialize()
202 return -EINVAL; in btext_initialize()
206 g_max_loc_X = width / 8; in btext_initialize()
208 dispDeviceBase = (unsigned char *)address; in btext_initialize()
212 dispDeviceRect[2] = width; in btext_initialize()
223 int rc = -ENODEV; in btext_find_display()
248 /* Calc the base address of a given point (x,y) */
262 void btext_update_display(unsigned long phys, int width, int height, in btext_update_display() argument
275 dispDeviceRect[2] = width; in btext_update_display()
286 g_max_loc_X = width / 8; in btext_update_display()
294 unsigned long width = ((dispDeviceRect[2] - dispDeviceRect[0]) * in btext_clearscreen() local
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() local
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() local
338 for(j = width; j > 0; j -= 8) { in btext_flushline()
353 unsigned long width = ((dispDeviceRect[2] - dispDeviceRect[0]) * in scrollscreen() local
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()