Lines Matching refs:np
179 struct device_node *np; in chaos_map_bus() local
184 np = of_pci_find_child_device(bus->dev.of_node, devfn); in chaos_map_bus()
185 if (np == NULL) in chaos_map_bus()
188 vendor = of_get_property(np, "vendor-id", NULL); in chaos_map_bus()
189 device = of_get_property(np, "device-id", NULL); in chaos_map_bus()
534 struct device_node *np = of_find_node_by_name(NULL, "pci106b,7"); in init_second_ohare() local
538 if (np == NULL) in init_second_ohare()
544 if (pci_device_from_OF_node(np, &bus, &devfn) == 0) { in init_second_ohare()
546 pci_find_hose_for_OF_device(np); in init_second_ohare()
549 of_node_put(np); in init_second_ohare()
558 of_node_put(np); in init_second_ohare()
709 struct device_node *np = hose->dn; in setup_u3_ht() local
717 if (of_address_to_resource(np, 0, &cfg_res) || in setup_u3_ht()
718 of_address_to_resource(np, 1, &self_res)) { in setup_u3_ht()
736 hose->io_resource.name = np->full_name; in setup_u3_ht()
883 struct device_node *np, *root; in pmac_pci_init() local
894 for (np = NULL; (np = of_get_next_child(root, np)) != NULL;) { in pmac_pci_init()
895 if (np->name == NULL) in pmac_pci_init()
897 if (strcmp(np->name, "bandit") == 0 in pmac_pci_init()
898 || strcmp(np->name, "chaos") == 0 in pmac_pci_init()
899 || strcmp(np->name, "pci") == 0) { in pmac_pci_init()
900 if (pmac_add_bridge(np) == 0) in pmac_pci_init()
901 of_node_get(np); in pmac_pci_init()
903 if (strcmp(np->name, "ht") == 0) { in pmac_pci_init()
904 of_node_get(np); in pmac_pci_init()
905 ht = np; in pmac_pci_init()
926 struct device_node *np = u3_agp->dn; in pmac_pci_init() local
927 PCI_DN(np)->busno = 0xf0; in pmac_pci_init()
928 for (np = np->child; np; np = np->sibling) in pmac_pci_init()
929 PCI_DN(np)->busno = 0xf0; in pmac_pci_init()