/arch/powerpc/platforms/wsp/ |
H A D | setup.c | 19 int wsp_get_chip_id(struct device_node *dn) argument 25 dn = of_node_get(dn); 26 while (dn && !(p = of_get_property(dn, "ibm,wsp-chip-id", NULL))) 27 dn = of_get_next_parent(dn); 29 if (!dn) 33 of_node_put(dn);
|
H A D | wsp.c | 89 struct device_node *dn; local 97 for_each_node_with_property(dn, "scom-controller") { 98 if (dn == mine) 100 m = scom_map(dn, 0, 1);
|
/arch/microblaze/kernel/ |
H A D | prom_parse.c | 11 void of_parse_dma_window(struct device_node *dn, const void *dma_window_prop, argument 23 prop = of_get_property(dn, "ibm,#dma-address-cells", NULL); 25 prop = of_get_property(dn, "#address-cells", NULL); 27 cells = prop ? *(u32 *)prop : of_n_addr_cells(dn); 32 prop = of_get_property(dn, "ibm,#dma-size-cells", NULL); 33 cells = prop ? *(u32 *)prop : of_n_size_cells(dn);
|
/arch/powerpc/kernel/ |
H A D | prom_parse.c | 10 void of_parse_dma_window(struct device_node *dn, const void *dma_window_prop, argument 22 prop = of_get_property(dn, "ibm,#dma-address-cells", NULL); 24 prop = of_get_property(dn, "#address-cells", NULL); 26 cells = prop ? *(u32 *)prop : of_n_addr_cells(dn); 31 prop = of_get_property(dn, "ibm,#dma-size-cells", NULL); 32 cells = prop ? *(u32 *)prop : of_n_size_cells(dn);
|
H A D | pci_dn.c | 39 void * __devinit update_dn_pci_info(struct device_node *dn, void *data) argument 43 of_get_property(dn, "ibm,pci-config-space-type", NULL); 50 dn->data = pdn; 51 pdn->node = dn; 56 regs = of_get_property(dn, "reg", NULL); 88 struct device_node *dn, *nextdn; local 92 for (dn = start->child; dn; dn = nextdn) { 97 classp = of_get_property(dn, "clas 134 struct device_node *dn = phb->dn; local [all...] |
H A D | pci_32.c | 113 struct device_node *dn; local 129 struct device_node* node = hose->dn; 135 dn = of_find_node_by_path("/"); 136 map_prop = of_find_property(dn, "pci-OF-bus-map", NULL); 141 of_node_put(dn); 200 struct device_node *dn; local 205 dn = of_find_node_by_path("/"); 206 if (dn) { 211 prom_add_property(dn, of_prop); 212 of_node_put(dn); [all...] |
H A D | rtas_pci.c | 49 static inline int config_access_valid(struct pci_dn *dn, int where) argument 53 if (where < 4096 && dn->pci_ext_config_space) 94 struct device_node *busdn, *dn; local 99 for (dn = busdn->child; dn; dn = dn->sibling) { 100 struct pci_dn *pdn = PCI_DN(dn); 102 && of_device_is_available(dn)) 138 struct device_node *busdn, *dn; local [all...] |
H A D | setup_64.c | 108 struct device_node *dn; local 130 dn = of_find_node_by_path("/options"); 131 if (dn) { 132 smt_option = of_get_property(dn, "ibm,smt-enabled", 142 of_node_put(dn);
|
/arch/powerpc/platforms/pseries/ |
H A D | eeh_dev.c | 46 * @dn: device node 52 void * __devinit eeh_dev_init(struct device_node *dn, void *data) argument 65 PCI_DN(dn)->edev = edev; 66 edev->dn = dn; 81 struct device_node *dn = phb->dn; local 84 eeh_dev_init(dn, phb); 87 traverse_pci_devices(dn, eeh_dev_init, phb);
|
H A D | eeh_event.c | 130 struct device_node *dn = eeh_dev_to_of_node(edev); local 135 location = of_get_property(dn, "ibm,loc-code", NULL); 136 printk(KERN_ERR "EEH: device node = %s\n", dn->full_name);
|
H A D | pci_dlpar.c | 37 struct device_node *dn) 44 if (busdn == dn) 48 child = find_bus_among_children(pci_bus_b(tmp), dn); 56 pcibios_find_pci_bus(struct device_node *dn) argument 58 struct pci_dn *pdn = dn->data; 63 return find_bus_among_children(pdn->phb->bus, dn); 106 struct device_node *dn = pci_bus_to_OF_node(bus); local 108 eeh_add_device_tree_early(dn); 116 of_rescan_bus(dn, bus); 119 slotno = PCI_SLOT(PCI_DN(dn 36 find_bus_among_children(struct pci_bus *bus, struct device_node *dn) argument 136 init_phb_dynamic(struct device_node *dn) argument [all...] |
H A D | eeh_cache.c | 177 struct device_node *dn; local 181 dn = pci_device_to_OF_node(dev); 182 if (!dn) { 183 printk(KERN_WARNING "PCI: no pci dn found for dev=%s\n", pci_name(dev)); 187 edev = of_node_to_eeh_dev(dn); 189 pr_warning("PCI: no EEH dev found for dn=%s\n", 190 dn->full_name); 199 pci_name(dev), dn->full_name); 289 struct device_node *dn; local 298 dn [all...] |
H A D | eeh_driver.c | 60 printk("dn=%s mode=%x \tcfg_addr=%x pe_addr=%x \tfull=%s\n", 282 struct device_node *dn; local 300 dn = eeh_dev_to_of_node(edev); 301 if (!pcibios_find_pci_bus(dn) && of_node_to_eeh_dev(dn->parent)) 302 dn = dn->parent->child; 304 while (dn) { 305 struct eeh_dev *pedev = of_node_to_eeh_dev(dn); 309 eeh_ops->configure_bridge(dn); [all...] |
H A D | eeh_pseries.c | 137 * @dn: device node 144 static int pseries_eeh_set_option(struct device_node *dn, int option) argument 151 edev = of_node_to_eeh_dev(dn); 162 reg = of_get_property(dn, "reg", NULL); 188 * @dn: device node 199 static int pseries_eeh_get_pe_addr(struct device_node *dn) argument 205 edev = of_node_to_eeh_dev(dn); 225 __func__, dn->full_name); 238 __func__, dn->full_name); 250 * @dn 261 pseries_eeh_get_state(struct device_node *dn, int *state) argument 341 pseries_eeh_reset(struct device_node *dn, int option) argument 377 pseries_eeh_wait_state(struct device_node *dn, int max_wait) argument 438 pseries_eeh_get_log(struct device_node *dn, int severity, char *drv_log, unsigned long len) argument 474 pseries_eeh_configure_bridge(struct device_node *dn) argument 515 pseries_eeh_read_config(struct device_node *dn, int where, int size, u32 *val) argument 533 pseries_eeh_write_config(struct device_node *dn, int where, int size, u32 val) argument [all...] |
H A D | mobility.c | 56 struct device_node *dn; local 58 dn = of_find_node_by_phandle(phandle); 59 if (!dn) 62 dlpar_detach_node(dn); 66 static int update_dt_property(struct device_node *dn, struct property **prop, argument 120 old_prop = of_find_property(dn, new_prop->name, NULL); 122 prom_update_property(dn, new_prop, old_prop); 124 prom_add_property(dn, new_prop); 135 struct device_node *dn; local 150 dn 205 struct device_node *dn; local [all...] |
H A D | msi.c | 30 struct device_node *dn; local 33 dn = pci_device_to_OF_node(pdev); 34 if (!dn) { 39 pdn = PCI_DN(dn); 149 struct device_node *dn; local 157 dn = pdn->node; 159 req_msi = of_get_property(dn, prop_name, NULL); 161 pr_debug("rtas_msi: No %s on %s\n", prop_name, dn->full_name); 191 struct device_node *dn; local 194 dn 212 struct device_node *dn; local 245 count_non_bridge_devices(struct device_node *dn, void *data) argument 262 count_spare_msis(struct device_node *dn, void *data) argument [all...] |
H A D | pseries_energy.c | 73 struct device_node *dn = NULL; local 79 dn = of_find_node_by_path("/cpus"); 80 if (dn == NULL) 82 indexes = of_get_property(dn, "ibm,drc-indexes", NULL); 97 of_node_put(dn); 106 struct device_node *dn = NULL; local 111 dn = of_find_node_by_path("/cpus"); 112 if (dn == NULL) 114 indexes = of_get_property(dn, "ibm,drc-indexes", NULL); 131 of_node_put(dn); [all...] |
/arch/powerpc/platforms/cell/ |
H A D | beat_iommu.c | 37 struct device_node *dn; local 40 for_each_node_by_type(dn, "ioif") { 41 dma_window = of_get_property(dn, "toshiba,dma-window", NULL); 48 of_node_put(dn);
|
H A D | setup.c | 102 if (!of_device_is_compatible(hose->dn, "pciex")) 106 s = of_get_property(hose->dn, "model", NULL); 129 np = phb->dn; 189 struct device_node *dn; local 192 for (dn = NULL; 193 (dn = of_find_node_by_name(dn, "interrupt-controller"));) { 194 if (!of_device_is_compatible(dn, "CBEA,platform-open-pic")) 200 mpic = mpic_alloc(dn, 0, MPIC_SECONDARY | MPIC_NO_RESET,
|
/arch/microblaze/include/asm/ |
H A D | pci-bridge.h | 32 struct device_node *dn; member in struct:pci_controller
|
/arch/powerpc/sysdev/ |
H A D | scom.c | 88 struct device_node *dn; member in struct:scom_debug_entry 103 ent->map = scom_map(ent->dn, val, 1); 146 static int scom_debug_init_one(struct dentry *root, struct device_node *dn, argument 156 ent->dn = of_node_get(dn); 160 ent->blob.data = dn->full_name; 161 ent->blob.size = strlen(dn->full_name); 165 of_node_put(dn); 179 struct device_node *dn; local 188 for_each_node_with_property(dn, "sco [all...] |
/arch/hexagon/kernel/ |
H A D | time.c | 194 struct device_node *dn; local
|
/arch/powerpc/include/asm/ |
H A D | pci-bridge.h | 26 struct device_node *dn; member in struct:pci_controller 167 #define PCI_DN(dn) ((struct pci_dn *) (dn)->data) 169 extern void * update_dn_pci_info(struct device_node *dn, void *data); 182 static inline struct eeh_dev *of_node_to_eeh_dev(struct device_node *dn) argument 184 return PCI_DN(dn)->edev; 189 extern struct pci_bus *pcibios_find_pci_bus(struct device_node *dn);
|
/arch/powerpc/platforms/pasemi/ |
H A D | cpufreq.c | 149 struct device_node *cpu, *dn; local 157 dn = of_find_compatible_node(NULL, NULL, "1682m-sdc"); 158 if (!dn) 159 dn = of_find_compatible_node(NULL, NULL, 161 if (!dn) 163 err = of_address_to_resource(dn, 0, &res); 164 of_node_put(dn); 173 dn = of_find_compatible_node(NULL, NULL, "1682m-gizmo"); 174 if (!dn) 175 dn [all...] |
H A D | iommu.c | 187 int __init iob_init(struct device_node *dn) argument
|