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()
373 u64 io_addr = of_translate_address(dp, io_of_addr); in offb_init_palette_hacks()
389 int foreign_endian, struct device_node *dp) in offb_init_fb() argument
437 offb_init_palette_hacks(info, dp, name, address); in offb_init_fb()
532 static void __init offb_init_nodriver(struct device_node *dp, int no_real_node) in offb_init_nodriver() argument
544 if (of_get_property(dp, "little-endian", NULL)) in offb_init_nodriver()
547 if (of_get_property(dp, "big-endian", NULL)) in offb_init_nodriver()
551 pp = of_get_property(dp, "linux,bootx-depth", &len); in offb_init_nodriver()
553 pp = of_get_property(dp, "depth", &len); in offb_init_nodriver()
557 pp = of_get_property(dp, "linux,bootx-width", &len); in offb_init_nodriver()
559 pp = of_get_property(dp, "width", &len); in offb_init_nodriver()
563 pp = of_get_property(dp, "linux,bootx-height", &len); in offb_init_nodriver()
565 pp = of_get_property(dp, "height", &len); in offb_init_nodriver()
569 pp = of_get_property(dp, "linux,bootx-linebytes", &len); in offb_init_nodriver()
571 pp = of_get_property(dp, "linebytes", &len); in offb_init_nodriver()
589 up = of_get_property(dp, "linux,bootx-addr", &len); in offb_init_nodriver()
591 up = of_get_property(dp, "address", &len); in offb_init_nodriver()
599 for (i = 0; (addrp = of_get_address(dp, i, &asize, &flags)) in offb_init_nodriver()
607 rstart = of_translate_address(dp, addrp); in offb_init_nodriver()
630 if (strcmp(dp->name, "valkyrie") == 0) in offb_init_nodriver()
632 offb_init_fb(no_real_node ? "bootx" : dp->name, in offb_init_nodriver()
633 no_real_node ? "display" : dp->full_name, in offb_init_nodriver()
635 foreign_endian, no_real_node ? NULL : dp); in offb_init_nodriver()
641 struct device_node *dp = NULL, *boot_disp = NULL; in offb_init() local
657 for (dp = NULL; (dp = of_find_node_by_type(dp, "display"));) { in offb_init()
658 if (of_get_property(dp, "linux,opened", NULL) && in offb_init()
659 of_get_property(dp, "linux,boot-display", NULL)) { in offb_init()
660 boot_disp = dp; in offb_init()
661 offb_init_nodriver(dp, 0); in offb_init()
664 for (dp = NULL; (dp = of_find_node_by_type(dp, "display"));) { in offb_init()
665 if (of_get_property(dp, "linux,opened", NULL) && in offb_init()
666 dp != boot_disp) in offb_init()
667 offb_init_nodriver(dp, 0); in offb_init()