Lines Matching refs:dp
323 static void offb_init_palette_hacks(struct fb_info *info, struct device_node *dp, in offb_init_palette_hacks() argument
328 if (dp && !strncmp(name, "ATY,Rage128", 11)) { in offb_init_palette_hacks()
329 par->cmap_adr = offb_map_reg(dp, 2, 0, 0x1fff); in offb_init_palette_hacks()
332 } else if (dp && (!strncmp(name, "ATY,RageM3pA", 12) in offb_init_palette_hacks()
334 par->cmap_adr = offb_map_reg(dp, 2, 0, 0x1fff); in offb_init_palette_hacks()
337 } else if (dp && !strncmp(name, "ATY,RageM3pB", 12)) { in offb_init_palette_hacks()
338 par->cmap_adr = offb_map_reg(dp, 2, 0, 0x1fff); in offb_init_palette_hacks()
341 } else if (dp && !strncmp(name, "ATY,Rage6", 9)) { in offb_init_palette_hacks()
342 par->cmap_adr = offb_map_reg(dp, 1, 0, 0x1fff); in offb_init_palette_hacks()
351 } else if (dp && (of_device_is_compatible(dp, "pci1014,b7") || in offb_init_palette_hacks()
352 of_device_is_compatible(dp, "pci1014,21c"))) { in offb_init_palette_hacks()
353 par->cmap_adr = offb_map_reg(dp, 0, 0x6000, 0x1000); in offb_init_palette_hacks()
356 } else if (dp && !strncmp(name, "vga,Display-", 12)) { in offb_init_palette_hacks()
358 struct device_node *pciparent = of_get_parent(dp); in offb_init_palette_hacks()
371 } else if (dp && of_device_is_compatible(dp, "qemu,std-vga")) { in offb_init_palette_hacks()
377 u64 io_addr = of_translate_address(dp, io_of_addr); in offb_init_palette_hacks()
393 int foreign_endian, struct device_node *dp) in offb_init_fb() argument
441 offb_init_palette_hacks(info, dp, name, address); in offb_init_fb()
535 static void __init offb_init_nodriver(struct device_node *dp, int no_real_node) in offb_init_nodriver() argument
547 if (of_get_property(dp, "little-endian", NULL)) in offb_init_nodriver()
550 if (of_get_property(dp, "big-endian", NULL)) in offb_init_nodriver()
554 pp = of_get_property(dp, "linux,bootx-depth", &len); in offb_init_nodriver()
556 pp = of_get_property(dp, "depth", &len); in offb_init_nodriver()
560 pp = of_get_property(dp, "linux,bootx-width", &len); in offb_init_nodriver()
562 pp = of_get_property(dp, "width", &len); in offb_init_nodriver()
566 pp = of_get_property(dp, "linux,bootx-height", &len); in offb_init_nodriver()
568 pp = of_get_property(dp, "height", &len); in offb_init_nodriver()
572 pp = of_get_property(dp, "linux,bootx-linebytes", &len); in offb_init_nodriver()
574 pp = of_get_property(dp, "linebytes", &len); in offb_init_nodriver()
592 up = of_get_property(dp, "linux,bootx-addr", &len); in offb_init_nodriver()
594 up = of_get_property(dp, "address", &len); in offb_init_nodriver()
602 for (i = 0; (addrp = of_get_address(dp, i, &asize, &flags)) in offb_init_nodriver()
610 rstart = of_translate_address(dp, addrp); in offb_init_nodriver()
633 if (strcmp(dp->name, "valkyrie") == 0) in offb_init_nodriver()
635 offb_init_fb(no_real_node ? "bootx" : dp->name, in offb_init_nodriver()
636 no_real_node ? "display" : dp->full_name, in offb_init_nodriver()
638 foreign_endian, no_real_node ? NULL : dp); in offb_init_nodriver()
644 struct device_node *dp = NULL, *boot_disp = NULL; in offb_init() local
660 for (dp = NULL; (dp = of_find_node_by_type(dp, "display"));) { in offb_init()
661 if (of_get_property(dp, "linux,opened", NULL) && in offb_init()
662 of_get_property(dp, "linux,boot-display", NULL)) { in offb_init()
663 boot_disp = dp; in offb_init()
664 offb_init_nodriver(dp, 0); in offb_init()
667 for (dp = NULL; (dp = of_find_node_by_type(dp, "display"));) { in offb_init()
668 if (of_get_property(dp, "linux,opened", NULL) && in offb_init()
669 dp != boot_disp) in offb_init()
670 offb_init_nodriver(dp, 0); in offb_init()