dn 87 arch/arm/kernel/cpuidle.c static int __init arm_cpuidle_read_ops(struct device_node *dn, int cpu) dn 92 arch/arm/kernel/cpuidle.c enable_method = of_get_property(dn, "enable-method", NULL); dn 99 arch/arm/kernel/cpuidle.c dn, enable_method); dn 86 arch/arm/mach-bcm/bcm63xx_pmb.c static int bcm63xx_pmb_get_resources(struct device_node *dn, dn 94 arch/arm/mach-bcm/bcm63xx_pmb.c ret = of_property_read_u32(dn, "reg", cpu); dn 100 arch/arm/mach-bcm/bcm63xx_pmb.c ret = of_parse_phandle_with_args(dn, "resets", "#reset-cells", dn 124 arch/arm/mach-bcm/bcm63xx_pmb.c int bcm63xx_pmb_power_on_cpu(struct device_node *dn) dn 132 arch/arm/mach-bcm/bcm63xx_pmb.c ret = bcm63xx_pmb_get_resources(dn, &base, &cpu, &addr); dn 110 arch/arm/mach-bcm/bcm63xx_smp.c struct device_node *dn; dn 114 arch/arm/mach-bcm/bcm63xx_smp.c dn = of_find_matching_node(NULL, bcm63138_bootlut_ids); dn 115 arch/arm/mach-bcm/bcm63xx_smp.c if (!dn) { dn 120 arch/arm/mach-bcm/bcm63xx_smp.c bootlut_base = of_iomap(dn, 0); dn 121 arch/arm/mach-bcm/bcm63xx_smp.c of_node_put(dn); dn 129 arch/arm/mach-bcm/bcm63xx_smp.c dn = of_get_cpu_node(cpu, NULL); dn 130 arch/arm/mach-bcm/bcm63xx_smp.c if (!dn) { dn 143 arch/arm/mach-bcm/bcm63xx_smp.c ret = bcm63xx_pmb_power_on_cpu(dn); dn 144 arch/arm/mach-bcm/bcm63xx_smp.c of_node_put(dn); dn 7 arch/arm/mach-bcm/bcm63xx_smp.h extern int bcm63xx_pmb_power_on_cpu(struct device_node *dn); dn 224 arch/arm/mach-bcm/platsmp.c struct device_node *dn; dn 232 arch/arm/mach-bcm/platsmp.c dn = of_find_compatible_node(NULL, NULL, name); dn 233 arch/arm/mach-bcm/platsmp.c if (!dn) { dn 238 arch/arm/mach-bcm/platsmp.c cdc_base = of_iomap(dn, 0); dn 239 arch/arm/mach-bcm/platsmp.c of_node_put(dn); dn 286 arch/arm/mach-bcm/platsmp.c struct device_node *dn; dn 290 arch/arm/mach-bcm/platsmp.c dn = of_find_compatible_node(NULL, NULL, name); dn 291 arch/arm/mach-bcm/platsmp.c if (!dn) { dn 296 arch/arm/mach-bcm/platsmp.c intc_base = of_iomap(dn, 0); dn 297 arch/arm/mach-bcm/platsmp.c of_node_put(dn); dn 356 arch/arm/mach-cns3xxx/core.c struct device_node *dn; dn 360 arch/arm/mach-cns3xxx/core.c dn = of_find_compatible_node(NULL, NULL, "cavium,cns3420-ahci"); dn 361 arch/arm/mach-cns3xxx/core.c if (of_device_is_available(dn)) { dn 380 arch/arm/mach-cns3xxx/core.c dn = of_find_compatible_node(NULL, NULL, "cavium,cns3420-sdhci"); dn 381 arch/arm/mach-cns3xxx/core.c if (of_device_is_available(dn)) { dn 68 arch/arm/mach-tegra/irq.c struct device_node *dn; dn 70 arch/arm/mach-tegra/irq.c dn = of_find_matching_node(NULL, tegra114_dt_gic_match); dn 71 arch/arm/mach-tegra/irq.c if (!dn) dn 74 arch/arm/mach-tegra/irq.c tegra_gic_cpu_base = of_iomap(dn, 1); dn 291 arch/arm/mm/cache-b15-rac.c struct device_node *dn, *cpu_dn; dn 295 arch/arm/mm/cache-b15-rac.c dn = of_find_compatible_node(NULL, NULL, "brcm,brcmstb-cpu-biu-ctrl"); dn 296 arch/arm/mm/cache-b15-rac.c if (!dn) dn 302 arch/arm/mm/cache-b15-rac.c b15_rac_base = of_iomap(dn, 0); dn 372 arch/arm/mm/cache-b15-rac.c of_node_put(dn); dn 373 arch/arm/vfp/vfp.h u32 (* const fn)(int dd, int dn, int dm, u32 fpscr); dn 851 arch/arm/vfp/vfpdouble.c vfp_double_multiply_accumulate(int dd, int dn, int dm, u32 fpscr, u32 negate, char *func) dn 856 arch/arm/vfp/vfpdouble.c vfp_double_unpack(&vdn, vfp_get_double(dn)); dn 886 arch/arm/vfp/vfpdouble.c static u32 vfp_double_fmac(int dd, int dn, int dm, u32 fpscr) dn 888 arch/arm/vfp/vfpdouble.c return vfp_double_multiply_accumulate(dd, dn, dm, fpscr, 0, "fmac"); dn 894 arch/arm/vfp/vfpdouble.c static u32 vfp_double_fnmac(int dd, int dn, int dm, u32 fpscr) dn 896 arch/arm/vfp/vfpdouble.c return vfp_double_multiply_accumulate(dd, dn, dm, fpscr, NEG_MULTIPLY, "fnmac"); dn 902 arch/arm/vfp/vfpdouble.c static u32 vfp_double_fmsc(int dd, int dn, int dm, u32 fpscr) dn 904 arch/arm/vfp/vfpdouble.c return vfp_double_multiply_accumulate(dd, dn, dm, fpscr, NEG_SUBTRACT, "fmsc"); dn 910 arch/arm/vfp/vfpdouble.c static u32 vfp_double_fnmsc(int dd, int dn, int dm, u32 fpscr) dn 912 arch/arm/vfp/vfpdouble.c return vfp_double_multiply_accumulate(dd, dn, dm, fpscr, NEG_SUBTRACT | NEG_MULTIPLY, "fnmsc"); dn 918 arch/arm/vfp/vfpdouble.c static u32 vfp_double_fmul(int dd, int dn, int dm, u32 fpscr) dn 923 arch/arm/vfp/vfpdouble.c vfp_double_unpack(&vdn, vfp_get_double(dn)); dn 938 arch/arm/vfp/vfpdouble.c static u32 vfp_double_fnmul(int dd, int dn, int dm, u32 fpscr) dn 943 arch/arm/vfp/vfpdouble.c vfp_double_unpack(&vdn, vfp_get_double(dn)); dn 960 arch/arm/vfp/vfpdouble.c static u32 vfp_double_fadd(int dd, int dn, int dm, u32 fpscr) dn 965 arch/arm/vfp/vfpdouble.c vfp_double_unpack(&vdn, vfp_get_double(dn)); dn 981 arch/arm/vfp/vfpdouble.c static u32 vfp_double_fsub(int dd, int dn, int dm, u32 fpscr) dn 986 arch/arm/vfp/vfpdouble.c vfp_double_unpack(&vdn, vfp_get_double(dn)); dn 1007 arch/arm/vfp/vfpdouble.c static u32 vfp_double_fdiv(int dd, int dn, int dm, u32 fpscr) dn 1013 arch/arm/vfp/vfpdouble.c vfp_double_unpack(&vdn, vfp_get_double(dn)); dn 1132 arch/arm/vfp/vfpdouble.c unsigned int dn = vfp_get_dn(inst); dn 1181 arch/arm/vfp/vfpdouble.c type, dest, dn, dm); dn 1185 arch/arm/vfp/vfpdouble.c type, dest, dn, FOP_TO_IDX(op), dm); dn 1187 arch/arm/vfp/vfpdouble.c except = fop->fn(dest, dn, dm, fpscr); dn 1198 arch/arm/vfp/vfpdouble.c dn = FREG_BANK(dn) + ((FREG_IDX(dn) + vecstride) & 3); dn 58 arch/arm64/kernel/cpu_ops.c struct device_node *dn = of_get_cpu_node(cpu, NULL); dn 60 arch/arm64/kernel/cpu_ops.c if (!dn) { dn 66 arch/arm64/kernel/cpu_ops.c enable_method = of_get_property(dn, "enable-method", NULL); dn 75 arch/arm64/kernel/cpu_ops.c dn); dn 77 arch/arm64/kernel/cpu_ops.c of_node_put(dn); dn 439 arch/arm64/kernel/smp.c static u64 __init of_get_cpu_mpidr(struct device_node *dn) dn 449 arch/arm64/kernel/smp.c cell = of_get_property(dn, "reg", NULL); dn 451 arch/arm64/kernel/smp.c pr_err("%pOF: missing reg property\n", dn); dn 455 arch/arm64/kernel/smp.c hwid = of_read_number(cell, of_n_addr_cells(dn)); dn 460 arch/arm64/kernel/smp.c pr_err("%pOF: invalid reg property\n", dn); dn 623 arch/arm64/kernel/smp.c struct device_node *dn; dn 625 arch/arm64/kernel/smp.c for_each_of_cpu_node(dn) { dn 626 arch/arm64/kernel/smp.c u64 hwid = of_get_cpu_mpidr(dn); dn 633 arch/arm64/kernel/smp.c dn); dn 646 arch/arm64/kernel/smp.c dn); dn 651 arch/arm64/kernel/smp.c early_map_cpu_to_node(0, of_node_to_nid(dn)); dn 668 arch/arm64/kernel/smp.c early_map_cpu_to_node(cpu_count, of_node_to_nid(dn)); dn 45 arch/arm64/kernel/smp_spin_table.c struct device_node *dn; dn 48 arch/arm64/kernel/smp_spin_table.c dn = of_get_cpu_node(cpu, NULL); dn 49 arch/arm64/kernel/smp_spin_table.c if (!dn) dn 55 arch/arm64/kernel/smp_spin_table.c ret = of_property_read_u64(dn, "cpu-release-addr", dn 61 arch/arm64/kernel/smp_spin_table.c of_node_put(dn); dn 29 arch/microblaze/include/asm/pci-bridge.h struct device_node *dn; dn 63 arch/microblaze/pci/pci-common.c phb->dn = dev; dn 137 arch/microblaze/pci/pci-common.c if (hose->dn == node) dn 919 arch/microblaze/pci/pci-common.c hose->dn, hose->global_number); dn 941 arch/microblaze/pci/pci-common.c hose->dn, hose->global_number); dn 967 arch/microblaze/pci/pci-common.c struct device_node *node = hose->dn; dn 50 arch/microblaze/pci/xilinx_pci.c if (!of_match_node(xilinx_pci_match, hose->dn)) dn 29 arch/mips/bmips/irq.c struct device_node *dn; dn 32 arch/mips/bmips/irq.c dn = of_find_matching_node(NULL, smp_intc_dt_match); dn 33 arch/mips/bmips/irq.c if (dn) dn 34 arch/mips/bmips/irq.c of_node_put(dn); dn 625 arch/mips/include/asm/octeon/cvmx-pci-defs.h uint32_t dn:5; dn 629 arch/mips/include/asm/octeon/cvmx-pci-defs.h uint32_t dn:5; dn 92 arch/powerpc/include/asm/drmem.h void __init walk_drmem_lmbs(struct device_node *dn, dn 58 arch/powerpc/include/asm/pci-bridge.h struct device_node *dn; dn 221 arch/powerpc/include/asm/pci-bridge.h #define PCI_DN(dn) ((struct pci_dn *) (dn)->data) dn 229 arch/powerpc/include/asm/pci-bridge.h struct device_node *dn); dn 230 arch/powerpc/include/asm/pci-bridge.h extern void pci_remove_device_node_info(struct device_node *dn); dn 252 arch/powerpc/include/asm/pci-bridge.h extern struct pci_bus *pci_find_bus_by_node(struct device_node *dn); dn 96 arch/powerpc/include/asm/pci.h extern struct pci_controller *init_phb_dynamic(struct device_node *dn); dn 60 arch/powerpc/include/asm/pnv-pci.h struct device_node *dn; dn 72 arch/powerpc/include/asm/pnv-pci.h extern struct pnv_php_slot *pnv_php_find_slot(struct device_node *dn); dn 71 arch/powerpc/include/asm/prom.h void of_parse_dma_window(struct device_node *dn, const __be32 *dma_window, dn 450 arch/powerpc/kernel/eeh.c struct device_node *dn; dn 507 arch/powerpc/kernel/eeh.c dn = pci_device_to_OF_node(dev); dn 508 arch/powerpc/kernel/eeh.c if (dn) dn 509 arch/powerpc/kernel/eeh.c location = of_get_property(dn, "ibm,loc-code", dn 886 arch/powerpc/kernel/eeh_pe.c struct device_node *dn; dn 890 arch/powerpc/kernel/eeh_pe.c dn = pci_bus_to_OF_node(bus); dn 891 arch/powerpc/kernel/eeh_pe.c if (!dn) { dn 897 arch/powerpc/kernel/eeh_pe.c loc = of_get_property(dn, "ibm,io-base-loc-code", NULL); dn 899 arch/powerpc/kernel/eeh_pe.c loc = of_get_property(dn, "ibm,slot-location-code", dn 184 arch/powerpc/kernel/io-workarounds.c struct device_node *np = phb->dn; dn 142 arch/powerpc/kernel/isa-bridge.c if (parent == hose->dn) { dn 73 arch/powerpc/kernel/pci-common.c static int get_phb_number(struct device_node *dn) dn 84 arch/powerpc/kernel/pci-common.c ret = of_property_read_u64(dn, "ibm,opal-phbid", &prop); dn 86 arch/powerpc/kernel/pci-common.c ret = of_property_read_u32_index(dn, "reg", 1, &prop_32); dn 119 arch/powerpc/kernel/pci-common.c phb->dn = dev; dn 344 arch/powerpc/kernel/pci-common.c if (hose->dn == node) dn 1488 arch/powerpc/kernel/pci-common.c hose->dn, hose->global_number); dn 1585 arch/powerpc/kernel/pci-common.c return of_node_get(hose->dn); dn 1596 arch/powerpc/kernel/pci-common.c struct device_node *node = hose->dn; dn 21 arch/powerpc/kernel/pci-hotplug.c struct device_node *dn) dn 26 arch/powerpc/kernel/pci-hotplug.c if (pci_bus_to_OF_node(bus) == dn) dn 30 arch/powerpc/kernel/pci-hotplug.c child = find_bus_among_children(tmp, dn); dn 38 arch/powerpc/kernel/pci-hotplug.c struct pci_bus *pci_find_bus_by_node(struct device_node *dn) dn 40 arch/powerpc/kernel/pci-hotplug.c struct pci_dn *pdn = PCI_DN(dn); dn 45 arch/powerpc/kernel/pci-hotplug.c return find_bus_among_children(pdn->phb->bus, dn); dn 113 arch/powerpc/kernel/pci-hotplug.c struct device_node *dn = pci_bus_to_OF_node(bus); dn 115 arch/powerpc/kernel/pci-hotplug.c eeh_add_device_tree_early(PCI_DN(dn)); dn 125 arch/powerpc/kernel/pci-hotplug.c of_rescan_bus(dn, bus); dn 127 arch/powerpc/kernel/pci-hotplug.c dn->child && PCI_DN(dn->child)) { dn 135 arch/powerpc/kernel/pci-hotplug.c slotno = PCI_SLOT(PCI_DN(dn->child)->devfn); dn 118 arch/powerpc/kernel/pci_32.c struct device_node *dn; dn 134 arch/powerpc/kernel/pci_32.c struct device_node* node = hose->dn; dn 140 arch/powerpc/kernel/pci_32.c dn = of_find_node_by_path("/"); dn 141 arch/powerpc/kernel/pci_32.c map_prop = of_find_property(dn, "pci-OF-bus-map", NULL); dn 146 arch/powerpc/kernel/pci_32.c of_node_put(dn); dn 205 arch/powerpc/kernel/pci_32.c struct device_node *dn; dn 212 arch/powerpc/kernel/pci_32.c dn = of_find_node_by_path("/"); dn 213 arch/powerpc/kernel/pci_32.c if (dn) { dn 218 arch/powerpc/kernel/pci_32.c of_add_property(dn, of_prop); dn 219 arch/powerpc/kernel/pci_32.c of_node_put(dn); dn 116 arch/powerpc/kernel/pci_64.c pr_debug("IO unmapping for PHB %pOF\n", hose->dn); dn 156 arch/powerpc/kernel/pci_64.c pr_debug("IO mapping for PHB %pOF\n", hose->dn); dn 33 arch/powerpc/kernel/pci_dn.c struct device_node *dn; dn 52 arch/powerpc/kernel/pci_dn.c dn = pci_bus_to_OF_node(pbus); dn 53 arch/powerpc/kernel/pci_dn.c pdn = dn ? PCI_DN(dn) : NULL; dn 61 arch/powerpc/kernel/pci_dn.c struct device_node *dn = NULL; dn 71 arch/powerpc/kernel/pci_dn.c dn = pci_device_to_OF_node(pdev); dn 77 arch/powerpc/kernel/pci_dn.c pdn = dn ? PCI_DN(dn) : NULL; dn 97 arch/powerpc/kernel/pci_dn.c struct device_node *dn; dn 105 arch/powerpc/kernel/pci_dn.c dn = pci_device_to_OF_node(pdev); dn 106 arch/powerpc/kernel/pci_dn.c pdn = dn ? PCI_DN(dn) : NULL; dn 278 arch/powerpc/kernel/pci_dn.c struct device_node *dn) dn 280 arch/powerpc/kernel/pci_dn.c const __be32 *type = of_get_property(dn, "ibm,pci-config-space-type", NULL); dn 291 arch/powerpc/kernel/pci_dn.c dn->data = pdn; dn 294 arch/powerpc/kernel/pci_dn.c regs = of_get_property(dn, "reg", NULL); dn 304 arch/powerpc/kernel/pci_dn.c regs = of_get_property(dn, "vendor-id", NULL); dn 306 arch/powerpc/kernel/pci_dn.c regs = of_get_property(dn, "device-id", NULL); dn 308 arch/powerpc/kernel/pci_dn.c regs = of_get_property(dn, "class-code", NULL); dn 326 arch/powerpc/kernel/pci_dn.c parent = of_get_parent(dn); dn 335 arch/powerpc/kernel/pci_dn.c void pci_remove_device_node_info(struct device_node *dn) dn 337 arch/powerpc/kernel/pci_dn.c struct pci_dn *pdn = dn ? PCI_DN(dn) : NULL; dn 354 arch/powerpc/kernel/pci_dn.c parent = of_get_parent(dn); dn 367 arch/powerpc/kernel/pci_dn.c pci_dbg(pdev, "marked pdn (from %pOF) as dead\n", dn); dn 370 arch/powerpc/kernel/pci_dn.c dn->data = NULL; dn 400 arch/powerpc/kernel/pci_dn.c struct device_node *dn, *nextdn; dn 404 arch/powerpc/kernel/pci_dn.c for (dn = start->child; dn; dn = nextdn) { dn 409 arch/powerpc/kernel/pci_dn.c classp = of_get_property(dn, "class-code", NULL); dn 414 arch/powerpc/kernel/pci_dn.c ret = fn(dn, data); dn 420 arch/powerpc/kernel/pci_dn.c if (dn->child && ((class >> 8) == PCI_CLASS_BRIDGE_PCI || dn 423 arch/powerpc/kernel/pci_dn.c nextdn = dn->child; dn 424 arch/powerpc/kernel/pci_dn.c else if (dn->sibling) dn 426 arch/powerpc/kernel/pci_dn.c nextdn = dn->sibling; dn 430 arch/powerpc/kernel/pci_dn.c dn = dn->parent; dn 431 arch/powerpc/kernel/pci_dn.c if (dn == start) dn 433 arch/powerpc/kernel/pci_dn.c } while (dn->sibling == NULL); dn 434 arch/powerpc/kernel/pci_dn.c nextdn = dn->sibling; dn 481 arch/powerpc/kernel/pci_dn.c static void *add_pdn(struct device_node *dn, void *data) dn 486 arch/powerpc/kernel/pci_dn.c pdn = pci_add_device_node_info(hose, dn); dn 503 arch/powerpc/kernel/pci_dn.c struct device_node *dn = phb->dn; dn 507 arch/powerpc/kernel/pci_dn.c pdn = pci_add_device_node_info(phb, dn); dn 516 arch/powerpc/kernel/pci_dn.c pci_traverse_device_nodes(dn, add_pdn, phb); dn 349 arch/powerpc/kernel/pci_of_scan.c struct device_node *dn) dn 355 arch/powerpc/kernel/pci_of_scan.c struct eeh_dev *edev = pdn_to_eeh_dev(PCI_DN(dn)); dn 358 arch/powerpc/kernel/pci_of_scan.c pr_debug(" * %pOF\n", dn); dn 359 arch/powerpc/kernel/pci_of_scan.c if (!of_device_is_available(dn)) dn 362 arch/powerpc/kernel/pci_of_scan.c reg = of_get_property(dn, "reg", ®len); dn 381 arch/powerpc/kernel/pci_of_scan.c dev = of_create_pci_dev(dn, bus, devfn); dn 11 arch/powerpc/kernel/prom_parse.c void of_parse_dma_window(struct device_node *dn, const __be32 *dma_window, dn 22 arch/powerpc/kernel/prom_parse.c prop = of_get_property(dn, "ibm,#dma-address-cells", NULL); dn 24 arch/powerpc/kernel/prom_parse.c prop = of_get_property(dn, "#address-cells", NULL); dn 26 arch/powerpc/kernel/prom_parse.c cells = prop ? of_read_number(prop, 1) : of_n_addr_cells(dn); dn 31 arch/powerpc/kernel/prom_parse.c prop = of_get_property(dn, "ibm,#dma-size-cells", NULL); dn 32 arch/powerpc/kernel/prom_parse.c cells = prop ? of_read_number(prop, 1) : of_n_size_cells(dn); dn 35 arch/powerpc/kernel/rtas_pci.c static inline int config_access_valid(struct pci_dn *dn, int where) dn 39 arch/powerpc/kernel/rtas_pci.c if (where < 4096 && dn->pci_ext_config_space) dn 229 arch/powerpc/kernel/rtas_pci.c struct device_node *dev = phb->dn; dn 448 arch/powerpc/kernel/setup-common.c struct device_node *dn; dn 460 arch/powerpc/kernel/setup-common.c for_each_node_by_type(dn, "cpu") { dn 465 arch/powerpc/kernel/setup-common.c DBG(" * %pOF...\n", dn); dn 467 arch/powerpc/kernel/setup-common.c intserv = of_get_property(dn, "ibm,ppc-interrupt-server#s", dn 474 arch/powerpc/kernel/setup-common.c intserv = of_get_property(dn, "reg", &len); dn 491 arch/powerpc/kernel/setup-common.c avail = of_device_is_available(dn); dn 493 arch/powerpc/kernel/setup-common.c avail = !of_property_match_string(dn, dn 503 arch/powerpc/kernel/setup-common.c of_node_put(dn); dn 520 arch/powerpc/kernel/setup-common.c (dn = of_find_node_by_path("/rtas"))) { dn 524 arch/powerpc/kernel/setup-common.c num_addr_cell = of_n_addr_cells(dn); dn 525 arch/powerpc/kernel/setup-common.c num_size_cell = of_n_size_cells(dn); dn 527 arch/powerpc/kernel/setup-common.c ireg = of_get_property(dn, "ibm,lrdr-capacity", NULL); dn 551 arch/powerpc/kernel/setup-common.c of_node_put(dn); dn 133 arch/powerpc/kernel/setup_64.c struct device_node *dn; dn 155 arch/powerpc/kernel/setup_64.c dn = of_find_node_by_path("/options"); dn 156 arch/powerpc/kernel/setup_64.c if (dn) { dn 157 arch/powerpc/kernel/setup_64.c smt_option = of_get_property(dn, "ibm,smt-enabled", dn 167 arch/powerpc/kernel/setup_64.c of_node_put(dn); dn 702 arch/powerpc/kernel/smp.c static int parse_thread_groups(struct device_node *dn, dn 712 arch/powerpc/kernel/smp.c ret = of_property_read_u32_array(dn, "ibm,thread-groups", dn 727 arch/powerpc/kernel/smp.c ret = of_property_read_u32_array(dn, "ibm,thread-groups", dn 777 arch/powerpc/kernel/smp.c struct device_node *dn = of_get_cpu_node(cpu, NULL); dn 784 arch/powerpc/kernel/smp.c if (!dn) dn 787 arch/powerpc/kernel/smp.c err = parse_thread_groups(dn, &tg, THREAD_GROUP_SHARE_L1); dn 817 arch/powerpc/kernel/smp.c of_node_put(dn); dn 297 arch/powerpc/mm/drmem.c static int __init init_drmem_lmb_size(struct device_node *dn) dn 305 arch/powerpc/mm/drmem.c prop = of_get_property(dn, "ibm,lmb-size", &len); dn 320 arch/powerpc/mm/drmem.c static const __be32 *of_get_usable_memory(struct device_node *dn) dn 325 arch/powerpc/mm/drmem.c prop = of_get_property(dn, "linux,drconf-usable-memory", &len); dn 332 arch/powerpc/mm/drmem.c void __init walk_drmem_lmbs(struct device_node *dn, dn 337 arch/powerpc/mm/drmem.c if (init_drmem_lmb_size(dn)) dn 340 arch/powerpc/mm/drmem.c usm = of_get_usable_memory(dn); dn 342 arch/powerpc/mm/drmem.c prop = of_get_property(dn, "ibm,dynamic-memory", NULL); dn 346 arch/powerpc/mm/drmem.c prop = of_get_property(dn, "ibm,dynamic-memory-v2", NULL); dn 421 arch/powerpc/mm/drmem.c struct device_node *dn; dn 424 arch/powerpc/mm/drmem.c dn = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory"); dn 425 arch/powerpc/mm/drmem.c if (!dn) { dn 430 arch/powerpc/mm/drmem.c if (init_drmem_lmb_size(dn)) { dn 431 arch/powerpc/mm/drmem.c of_node_put(dn); dn 435 arch/powerpc/mm/drmem.c prop = of_get_property(dn, "ibm,dynamic-memory", NULL); dn 439 arch/powerpc/mm/drmem.c prop = of_get_property(dn, "ibm,dynamic-memory-v2", NULL); dn 444 arch/powerpc/mm/drmem.c of_node_put(dn); dn 1057 arch/powerpc/mm/numa.c struct device_node *dn = NULL; dn 1060 arch/powerpc/mm/numa.c dn = of_find_node_by_path("/rtas"); dn 1061 arch/powerpc/mm/numa.c if (dn) { dn 1062 arch/powerpc/mm/numa.c lrdr = of_get_property(dn, "ibm,lrdr-capacity", NULL); dn 1063 arch/powerpc/mm/numa.c of_node_put(dn); dn 1485 arch/powerpc/mm/numa.c if (of_node_is_type(update->dn, "cpu") && dn 1488 arch/powerpc/mm/numa.c of_property_read_u32(update->dn, "reg", &core_id); dn 68 arch/powerpc/platforms/4xx/pci.c if (!of_device_is_compatible(hose->dn, "ibm,plb-pciex") && dn 69 arch/powerpc/platforms/4xx/pci.c !of_device_is_compatible(hose->dn, "ibm,plb-pcix") && dn 70 arch/powerpc/platforms/4xx/pci.c !of_device_is_compatible(hose->dn, "ibm,plb-pci")) dn 73 arch/powerpc/platforms/4xx/pci.c if (of_device_is_compatible(hose->dn, "ibm,plb440epx-pci") || dn 74 arch/powerpc/platforms/4xx/pci.c of_device_is_compatible(hose->dn, "ibm,plb440grx-pci")) { dn 98 arch/powerpc/platforms/4xx/pci.c int pna = of_n_addr_cells(hose->dn); dn 108 arch/powerpc/platforms/4xx/pci.c ranges = of_get_property(hose->dn, "dma-ranges", &rlen); dn 116 arch/powerpc/platforms/4xx/pci.c u64 cpu_addr = of_translate_dma_address(hose->dn, ranges + 3); dn 132 arch/powerpc/platforms/4xx/pci.c hose->dn, dn 155 arch/powerpc/platforms/4xx/pci.c printk(KERN_ERR "%pOF: dma-ranges(s) mismatch\n", hose->dn); dn 165 arch/powerpc/platforms/4xx/pci.c hose->dn, size, (u64)total_memory); dn 172 arch/powerpc/platforms/4xx/pci.c printk(KERN_ERR "%pOF: dma-ranges unaligned\n", hose->dn); dn 180 arch/powerpc/platforms/4xx/pci.c !(of_device_is_compatible(hose->dn, "ibm,plb-pciex-460sx") dn 181 arch/powerpc/platforms/4xx/pci.c || of_device_is_compatible(hose->dn, "ibm,plb-pciex-476fpe"))) { dn 183 arch/powerpc/platforms/4xx/pci.c hose->dn); dn 234 arch/powerpc/platforms/4xx/pci.c printk(KERN_WARNING "%pOF: Resource out of range\n", hose->dn); dn 266 arch/powerpc/platforms/4xx/pci.c printk(KERN_WARNING "%pOF: Too many ranges\n", hose->dn); dn 292 arch/powerpc/platforms/4xx/pci.c hose->dn); dn 422 arch/powerpc/platforms/4xx/pci.c hose->dn); dn 465 arch/powerpc/platforms/4xx/pci.c printk(KERN_WARNING "%pOF: Too many ranges\n", hose->dn); dn 491 arch/powerpc/platforms/4xx/pci.c hose->dn); dn 1725 arch/powerpc/platforms/4xx/pci.c printk(KERN_WARNING "%pOF: Resource out of range\n", hose->dn); dn 1829 arch/powerpc/platforms/4xx/pci.c hose->dn); dn 57 arch/powerpc/platforms/82xx/pq2.c hose->dn = np; dn 118 arch/powerpc/platforms/85xx/mpc85xx_ds.c if (hose->dn == pci_with_uli) dn 49 arch/powerpc/platforms/86xx/mpc86xx_hpcn.c if (hose->dn == fsl_pci_primary) dn 78 arch/powerpc/platforms/cell/axon_msi.c void axon_msi_debug_setup(struct device_node *dn, struct axon_msic *msic); dn 80 arch/powerpc/platforms/cell/axon_msi.c static inline void axon_msi_debug_setup(struct device_node *dn, dn 153 arch/powerpc/platforms/cell/axon_msi.c struct device_node *dn, *tmp; dn 157 arch/powerpc/platforms/cell/axon_msi.c dn = of_node_get(pci_device_to_OF_node(dev)); dn 158 arch/powerpc/platforms/cell/axon_msi.c if (!dn) { dn 163 arch/powerpc/platforms/cell/axon_msi.c for (; dn; dn = of_get_next_parent(dn)) { dn 164 arch/powerpc/platforms/cell/axon_msi.c ph = of_get_property(dn, "msi-translator", NULL); dn 175 arch/powerpc/platforms/cell/axon_msi.c tmp = dn; dn 176 arch/powerpc/platforms/cell/axon_msi.c dn = of_find_node_by_phandle(*ph); dn 178 arch/powerpc/platforms/cell/axon_msi.c if (!dn) { dn 184 arch/powerpc/platforms/cell/axon_msi.c irq_domain = irq_find_host(dn); dn 187 arch/powerpc/platforms/cell/axon_msi.c dn); dn 194 arch/powerpc/platforms/cell/axon_msi.c of_node_put(dn); dn 201 arch/powerpc/platforms/cell/axon_msi.c struct device_node *dn; dn 206 arch/powerpc/platforms/cell/axon_msi.c dn = of_node_get(pci_device_to_OF_node(dev)); dn 207 arch/powerpc/platforms/cell/axon_msi.c if (!dn) { dn 214 arch/powerpc/platforms/cell/axon_msi.c for (; dn; dn = of_get_next_parent(dn)) { dn 216 arch/powerpc/platforms/cell/axon_msi.c prop = of_get_property(dn, "msi-address-64", &len); dn 221 arch/powerpc/platforms/cell/axon_msi.c prop = of_get_property(dn, "msi-address-32", &len); dn 244 arch/powerpc/platforms/cell/axon_msi.c of_node_put(dn); dn 248 arch/powerpc/platforms/cell/axon_msi.c of_node_put(dn); dn 334 arch/powerpc/platforms/cell/axon_msi.c struct device_node *dn = device->dev.of_node; dn 339 arch/powerpc/platforms/cell/axon_msi.c pr_devel("axon_msi: setting up dn %pOF\n", dn); dn 344 arch/powerpc/platforms/cell/axon_msi.c dn); dn 348 arch/powerpc/platforms/cell/axon_msi.c dcr_base = dcr_resource_start(dn, 0); dn 349 arch/powerpc/platforms/cell/axon_msi.c dcr_len = dcr_resource_len(dn, 0); dn 354 arch/powerpc/platforms/cell/axon_msi.c dn); dn 358 arch/powerpc/platforms/cell/axon_msi.c msic->dcr_host = dcr_map(dn, dcr_base, dcr_len); dn 361 arch/powerpc/platforms/cell/axon_msi.c dn); dn 369 arch/powerpc/platforms/cell/axon_msi.c dn); dn 373 arch/powerpc/platforms/cell/axon_msi.c virq = irq_of_parse_and_map(dn, 0); dn 376 arch/powerpc/platforms/cell/axon_msi.c dn); dn 382 arch/powerpc/platforms/cell/axon_msi.c msic->irq_domain = irq_domain_add_nomap(dn, 65536, &msic_host_ops, msic); dn 385 arch/powerpc/platforms/cell/axon_msi.c dn); dn 409 arch/powerpc/platforms/cell/axon_msi.c axon_msi_debug_setup(dn, msic); dn 411 arch/powerpc/platforms/cell/axon_msi.c printk(KERN_DEBUG "axon_msi: setup MSIC on %pOF\n", dn); dn 464 arch/powerpc/platforms/cell/axon_msi.c void axon_msi_debug_setup(struct device_node *dn, struct axon_msic *msic) dn 469 arch/powerpc/platforms/cell/axon_msi.c addr = of_translate_address(dn, of_get_property(dn, "reg", NULL)); dn 481 arch/powerpc/platforms/cell/axon_msi.c snprintf(name, sizeof(name), "msic_%d", of_node_to_nid(dn)); dn 299 arch/powerpc/platforms/cell/interrupt.c struct device_node *dn; dn 305 arch/powerpc/platforms/cell/interrupt.c for_each_node_by_name(dn, "interrupt-controller") { dn 306 arch/powerpc/platforms/cell/interrupt.c if (!of_device_is_compatible(dn, dn 309 arch/powerpc/platforms/cell/interrupt.c np = of_get_property(dn, "ibm,interrupt-server-ranges", NULL); dn 312 arch/powerpc/platforms/cell/interrupt.c of_node_put(dn); dn 315 arch/powerpc/platforms/cell/interrupt.c if (of_address_to_resource(dn, 0, &r0) || dn 316 arch/powerpc/platforms/cell/interrupt.c of_address_to_resource(dn, 1, &r1)) { dn 318 arch/powerpc/platforms/cell/interrupt.c of_node_put(dn); dn 322 arch/powerpc/platforms/cell/interrupt.c init_one_iic(np[0], r0.start, dn); dn 323 arch/powerpc/platforms/cell/interrupt.c init_one_iic(np[1], r1.start, dn); dn 99 arch/powerpc/platforms/cell/setup.c if (!of_device_is_compatible(hose->dn, "pciex")) dn 103 arch/powerpc/platforms/cell/setup.c s = of_get_property(hose->dn, "model", NULL); dn 128 arch/powerpc/platforms/cell/setup.c np = phb->dn; dn 187 arch/powerpc/platforms/cell/setup.c struct device_node *dn; dn 190 arch/powerpc/platforms/cell/setup.c for_each_node_by_name(dn, "interrupt-controller") { dn 191 arch/powerpc/platforms/cell/setup.c if (!of_device_is_compatible(dn, "CBEA,platform-open-pic")) dn 197 arch/powerpc/platforms/cell/setup.c mpic = mpic_alloc(dn, 0, MPIC_SECONDARY | MPIC_NO_RESET, dn 116 arch/powerpc/platforms/cell/spider-pci.c struct device_node *np = bus->phb->dn; dn 323 arch/powerpc/platforms/cell/spider-pic.c struct device_node *dn; dn 333 arch/powerpc/platforms/cell/spider-pic.c for_each_node_by_name(dn, "interrupt-controller") { dn 334 arch/powerpc/platforms/cell/spider-pic.c if (of_device_is_compatible(dn, "CBEA,platform-spider-pic")) { dn 335 arch/powerpc/platforms/cell/spider-pic.c if (of_address_to_resource(dn, 0, &r)) { dn 339 arch/powerpc/platforms/cell/spider-pic.c } else if (of_device_is_compatible(dn, "sti,platform-spider-pic") dn 346 arch/powerpc/platforms/cell/spider-pic.c spider_init_one(dn, chip++, r.start); dn 401 arch/powerpc/platforms/cell/spu_manage.c struct device_node *dn; dn 403 arch/powerpc/platforms/cell/spu_manage.c for_each_node_by_type(dn, "spe") { dn 404 arch/powerpc/platforms/cell/spu_manage.c if (of_find_property(dn, "vicinity", NULL)) { dn 405 arch/powerpc/platforms/cell/spu_manage.c of_node_put(dn); dn 412 arch/powerpc/platforms/cell/spu_manage.c static struct spu *devnode_spu(int cbe, struct device_node *dn) dn 417 arch/powerpc/platforms/cell/spu_manage.c if (spu_devnode(spu) == dn) dn 665 arch/powerpc/platforms/cell/spufs/inode.c struct device_node *dn; dn 669 arch/powerpc/platforms/cell/spufs/inode.c dn = of_find_node_by_path("/spu-isolation"); dn 670 arch/powerpc/platforms/cell/spufs/inode.c if (!dn) dn 673 arch/powerpc/platforms/cell/spufs/inode.c loader = of_get_property(dn, "loader", &size); dn 319 arch/powerpc/platforms/fsl_uli1575.c struct device_node *hosenode = hose ? hose->dn : NULL; dn 580 arch/powerpc/platforms/maple/pci.c np = hose->dn; dn 470 arch/powerpc/platforms/pasemi/dma_lib.c struct device_node *dn; dn 473 arch/powerpc/platforms/pasemi/dma_lib.c dn = pci_device_to_OF_node(p); dn 474 arch/powerpc/platforms/pasemi/dma_lib.c if (!dn) dn 477 arch/powerpc/platforms/pasemi/dma_lib.c ret = of_iomap(dn, index); dn 503 arch/powerpc/platforms/pasemi/dma_lib.c struct device_node *dn; dn 557 arch/powerpc/platforms/pasemi/dma_lib.c dn = pci_device_to_OF_node(iob_pdev); dn 558 arch/powerpc/platforms/pasemi/dma_lib.c if (dn) dn 559 arch/powerpc/platforms/pasemi/dma_lib.c err = of_address_to_resource(dn, 1, &res); dn 560 arch/powerpc/platforms/pasemi/dma_lib.c if (!dn || err) { dn 190 arch/powerpc/platforms/pasemi/iommu.c static int __init iob_init(struct device_node *dn) dn 109 arch/powerpc/platforms/pasemi/pci.c struct device_node *dn; dn 113 arch/powerpc/platforms/pasemi/pci.c dn = of_find_compatible_node(NULL, "isa", "pasemi,1682m-iob"); dn 114 arch/powerpc/platforms/pasemi/pci.c if (!dn) { dn 119 arch/powerpc/platforms/pasemi/pci.c err = of_address_to_resource(dn, 0, &res); dn 120 arch/powerpc/platforms/pasemi/pci.c of_node_put(dn); dn 231 arch/powerpc/platforms/powermac/pci.c struct device_node *busdn, *dn; dn 244 arch/powerpc/platforms/powermac/pci.c busdn = hose->dn; dn 245 arch/powerpc/platforms/powermac/pci.c for (dn = busdn->child; dn; dn = dn->sibling) dn 246 arch/powerpc/platforms/powermac/pci.c if (PCI_DN(dn) && PCI_DN(dn)->devfn == devfn) dn 248 arch/powerpc/platforms/powermac/pci.c if (dn == NULL) dn 256 arch/powerpc/platforms/powermac/pci.c if (k2_skiplist[i] == dn) dn 688 arch/powerpc/platforms/powermac/pci.c hose->mem_resources[cur].name = hose->dn->full_name; dn 703 arch/powerpc/platforms/powermac/pci.c struct device_node *np = hose->dn; dn 889 arch/powerpc/platforms/powermac/pci.c np = hose->dn; dn 174 arch/powerpc/platforms/powermac/setup.c struct device_node *dn = of_find_node_by_name(NULL, "via-cuda"); dn 176 arch/powerpc/platforms/powermac/setup.c if (!dn) dn 178 arch/powerpc/platforms/powermac/setup.c of_node_put(dn); dn 188 arch/powerpc/platforms/powermac/setup.c struct device_node *dn = of_find_node_by_name(NULL, "via-pmu"); dn 190 arch/powerpc/platforms/powermac/setup.c if (!dn) dn 192 arch/powerpc/platforms/powermac/setup.c of_node_put(dn); dn 212 arch/powerpc/platforms/powermac/setup.c struct device_node *dn; dn 223 arch/powerpc/platforms/powermac/setup.c dn = of_find_node_by_name(NULL, "ohare"); dn 224 arch/powerpc/platforms/powermac/setup.c if (dn) { dn 225 arch/powerpc/platforms/powermac/setup.c of_node_put(dn); dn 270 arch/powerpc/platforms/powermac/smp.c struct device_node *dn; dn 286 arch/powerpc/platforms/powermac/smp.c dn = of_find_node_by_name(NULL, "hammerhead"); dn 287 arch/powerpc/platforms/powermac/smp.c if (dn == NULL) dn 289 arch/powerpc/platforms/powermac/smp.c of_node_put(dn); dn 901 arch/powerpc/platforms/powernv/eeh-powernv.c struct device_node *dn = pci_device_to_OF_node(pdev); dn 908 arch/powerpc/platforms/powernv/eeh-powernv.c if (!dn || !of_get_property(dn, "ibm,reset-by-firmware", NULL)) dn 22 arch/powerpc/platforms/powernv/npu-dma.c static struct pci_dev *get_pci_dev(struct device_node *dn) dn 24 arch/powerpc/platforms/powernv/npu-dma.c struct pci_dn *pdn = PCI_DN(dn); dn 46 arch/powerpc/platforms/powernv/npu-dma.c struct device_node *dn; dn 56 arch/powerpc/platforms/powernv/npu-dma.c dn = of_parse_phandle(npdev->dev.of_node, "ibm,gpu", 0); dn 57 arch/powerpc/platforms/powernv/npu-dma.c if (!dn) dn 60 arch/powerpc/platforms/powernv/npu-dma.c gpdev = get_pci_dev(dn); dn 61 arch/powerpc/platforms/powernv/npu-dma.c of_node_put(dn); dn 70 arch/powerpc/platforms/powernv/npu-dma.c struct device_node *dn; dn 81 arch/powerpc/platforms/powernv/npu-dma.c dn = of_parse_phandle(gpdev->dev.of_node, "ibm,npu", index); dn 82 arch/powerpc/platforms/powernv/npu-dma.c if (!dn) dn 85 arch/powerpc/platforms/powernv/npu-dma.c npdev = get_pci_dev(dn); dn 86 arch/powerpc/platforms/powernv/npu-dma.c of_node_put(dn); dn 302 arch/powerpc/platforms/powernv/opal-core.c struct device_node *dn; dn 338 arch/powerpc/platforms/powernv/opal-core.c dn = of_find_node_by_name(NULL, "ibm,opal"); dn 339 arch/powerpc/platforms/powernv/opal-core.c if (dn) { dn 340 arch/powerpc/platforms/powernv/opal-core.c ret = of_property_read_u64(dn, "opal-base-address", dn 343 arch/powerpc/platforms/powernv/opal-core.c ret |= of_property_read_u64(dn, "opal-boot-address", dn 347 arch/powerpc/platforms/powernv/opal-core.c if (!dn || ret) dn 35 arch/powerpc/platforms/powernv/opal-fadump.c unsigned long dn; dn 39 arch/powerpc/platforms/powernv/opal-fadump.c dn = of_get_flat_dt_subnode_by_name(node, "dump"); dn 40 arch/powerpc/platforms/powernv/opal-fadump.c if (dn == -FDT_ERR_NOTFOUND) dn 46 arch/powerpc/platforms/powernv/opal-fadump.c prop = of_get_flat_dt_prop(dn, "mpipl-boot", NULL); dn 626 arch/powerpc/platforms/powernv/opal-fadump.c unsigned long dn; dn 635 arch/powerpc/platforms/powernv/opal-fadump.c dn = of_get_flat_dt_subnode_by_name(node, "dump"); dn 636 arch/powerpc/platforms/powernv/opal-fadump.c if (dn == -FDT_ERR_NOTFOUND) { dn 641 arch/powerpc/platforms/powernv/opal-fadump.c if (!of_flat_dt_is_compatible(dn, "ibm,opal-dump")) { dn 646 arch/powerpc/platforms/powernv/opal-fadump.c prop = of_get_flat_dt_prop(dn, "fw-load-area", &len); dn 679 arch/powerpc/platforms/powernv/opal-fadump.c prop = of_get_flat_dt_prop(dn, "mpipl-boot", NULL); dn 179 arch/powerpc/platforms/powernv/opal-irqchip.c struct device_node *dn, *opal_node; dn 196 arch/powerpc/platforms/powernv/opal-irqchip.c dn = of_find_compatible_node(NULL, NULL, "ibm,opal-event"); dn 197 arch/powerpc/platforms/powernv/opal-irqchip.c opal_event_irqchip.domain = irq_domain_add_linear(dn, MAX_NUM_EVENTS, dn 199 arch/powerpc/platforms/powernv/opal-irqchip.c of_node_put(dn); dn 155 arch/powerpc/platforms/powernv/opal-xscom.c static int scom_debug_init_one(struct dentry *root, struct device_node *dn, dn 167 arch/powerpc/platforms/powernv/opal-xscom.c ent->path.data = (void *)kasprintf(GFP_KERNEL, "%pOF", dn); dn 185 arch/powerpc/platforms/powernv/opal-xscom.c struct device_node *dn; dn 197 arch/powerpc/platforms/powernv/opal-xscom.c for_each_node_with_property(dn, "scom-controller") { dn 198 arch/powerpc/platforms/powernv/opal-xscom.c chip = of_get_ibm_chip_id(dn); dn 200 arch/powerpc/platforms/powernv/opal-xscom.c rc |= scom_debug_init_one(root, dn, chip); dn 434 arch/powerpc/platforms/powernv/pci-ioda.c struct device_node *dn = hose->dn; dn 450 arch/powerpc/platforms/powernv/pci-ioda.c r = of_get_property(dn, "ibm,opal-m64-window", NULL); dn 453 arch/powerpc/platforms/powernv/pci-ioda.c dn); dn 461 arch/powerpc/platforms/powernv/pci-ioda.c if (of_property_read_u32_array(dn, "ibm,opal-available-m64-ranges", dn 482 arch/powerpc/platforms/powernv/pci-ioda.c res->name = dn->full_name; dn 483 arch/powerpc/platforms/powernv/pci-ioda.c res->start = of_translate_address(dn, r + 2); dn 2686 arch/powerpc/platforms/powernv/pci-ioda.c struct device_node *dn = hose->dn; dn 2691 arch/powerpc/platforms/powernv/pci-ioda.c count = of_property_count_u32_elems(dn, "ibm,supported-tce-sizes"); dn 2702 arch/powerpc/platforms/powernv/pci-ioda.c rc = of_property_read_u32_index(dn, "ibm,supported-tce-sizes", dn 2868 arch/powerpc/platforms/powernv/pci-ioda.c const __be32 *prop = of_get_property(phb->hose->dn, dn 2872 arch/powerpc/platforms/powernv/pci-ioda.c prop = of_get_property(phb->hose->dn, "msi-ranges", NULL); dn 2879 arch/powerpc/platforms/powernv/pci-ioda.c if (msi_bitmap_alloc(&phb->msi_bmp, count, phb->hose->dn)) { dn 846 arch/powerpc/platforms/powernv/pci.c return of_node_get(hose->dn); dn 118 arch/powerpc/platforms/powernv/rng.c struct device_node *dn) dn 122 arch/powerpc/platforms/powernv/rng.c chip_id = of_get_ibm_chip_id(dn); dn 124 arch/powerpc/platforms/powernv/rng.c pr_warn("No ibm,chip-id found for %pOF.\n", dn); dn 134 arch/powerpc/platforms/powernv/rng.c static __init int rng_create(struct device_node *dn) dn 144 arch/powerpc/platforms/powernv/rng.c if (of_address_to_resource(dn, 0, &res)) { dn 151 arch/powerpc/platforms/powernv/rng.c rng->regs = of_iomap(dn, 0); dn 160 arch/powerpc/platforms/powernv/rng.c rng_init_per_cpu(rng, dn); dn 171 arch/powerpc/platforms/powernv/rng.c struct device_node *dn; dn 174 arch/powerpc/platforms/powernv/rng.c for_each_compatible_node(dn, NULL, "ibm,power-rng") { dn 175 arch/powerpc/platforms/powernv/rng.c rc = rng_create(dn); dn 178 arch/powerpc/platforms/powernv/rng.c dn, rc); dn 183 arch/powerpc/platforms/powernv/rng.c of_platform_device_create(dn, NULL, NULL); dn 31 arch/powerpc/platforms/powernv/vas.c struct device_node *dn = pdev->dev.of_node; dn 33 arch/powerpc/platforms/powernv/vas.c rc = of_property_read_u32(dn, "ibm,vas-id", &vasid); dn 77 arch/powerpc/platforms/powernv/vas.c if (cpu_to_chip_id(cpu) == of_get_ibm_chip_id(dn)) dn 157 arch/powerpc/platforms/powernv/vas.c struct device_node *dn; dn 161 arch/powerpc/platforms/powernv/vas.c for_each_compatible_node(dn, NULL, "ibm,vas") { dn 162 arch/powerpc/platforms/powernv/vas.c of_platform_device_create(dn, NULL, NULL); dn 79 arch/powerpc/platforms/pseries/dlpar.c struct device_node *dn; dn 82 arch/powerpc/platforms/pseries/dlpar.c dn = kzalloc(sizeof(*dn), GFP_KERNEL); dn 83 arch/powerpc/platforms/pseries/dlpar.c if (!dn) dn 87 arch/powerpc/platforms/pseries/dlpar.c dn->full_name = kstrdup(name, GFP_KERNEL); dn 88 arch/powerpc/platforms/pseries/dlpar.c if (!dn->full_name) { dn 89 arch/powerpc/platforms/pseries/dlpar.c kfree(dn); dn 93 arch/powerpc/platforms/pseries/dlpar.c of_node_set_flag(dn, OF_DYNAMIC); dn 94 arch/powerpc/platforms/pseries/dlpar.c of_node_init(dn); dn 96 arch/powerpc/platforms/pseries/dlpar.c return dn; dn 99 arch/powerpc/platforms/pseries/dlpar.c static void dlpar_free_one_cc_node(struct device_node *dn) dn 103 arch/powerpc/platforms/pseries/dlpar.c while (dn->properties) { dn 104 arch/powerpc/platforms/pseries/dlpar.c prop = dn->properties; dn 105 arch/powerpc/platforms/pseries/dlpar.c dn->properties = prop->next; dn 109 arch/powerpc/platforms/pseries/dlpar.c kfree(dn->full_name); dn 110 arch/powerpc/platforms/pseries/dlpar.c kfree(dn); dn 113 arch/powerpc/platforms/pseries/dlpar.c void dlpar_free_cc_nodes(struct device_node *dn) dn 115 arch/powerpc/platforms/pseries/dlpar.c if (dn->child) dn 116 arch/powerpc/platforms/pseries/dlpar.c dlpar_free_cc_nodes(dn->child); dn 118 arch/powerpc/platforms/pseries/dlpar.c if (dn->sibling) dn 119 arch/powerpc/platforms/pseries/dlpar.c dlpar_free_cc_nodes(dn->sibling); dn 121 arch/powerpc/platforms/pseries/dlpar.c dlpar_free_one_cc_node(dn); dn 136 arch/powerpc/platforms/pseries/dlpar.c struct device_node *dn; dn 176 arch/powerpc/platforms/pseries/dlpar.c dn = dlpar_parse_cc_node(ccwa); dn 177 arch/powerpc/platforms/pseries/dlpar.c if (!dn) dn 180 arch/powerpc/platforms/pseries/dlpar.c dn->parent = last_dn->parent; dn 181 arch/powerpc/platforms/pseries/dlpar.c last_dn->sibling = dn; dn 182 arch/powerpc/platforms/pseries/dlpar.c last_dn = dn; dn 186 arch/powerpc/platforms/pseries/dlpar.c dn = dlpar_parse_cc_node(ccwa); dn 187 arch/powerpc/platforms/pseries/dlpar.c if (!dn) dn 191 arch/powerpc/platforms/pseries/dlpar.c dn->parent = parent; dn 192 arch/powerpc/platforms/pseries/dlpar.c first_dn = dn; dn 194 arch/powerpc/platforms/pseries/dlpar.c dn->parent = last_dn; dn 196 arch/powerpc/platforms/pseries/dlpar.c last_dn->child = dn; dn 199 arch/powerpc/platforms/pseries/dlpar.c last_dn = dn; dn 244 arch/powerpc/platforms/pseries/dlpar.c int dlpar_attach_node(struct device_node *dn, struct device_node *parent) dn 248 arch/powerpc/platforms/pseries/dlpar.c dn->parent = parent; dn 250 arch/powerpc/platforms/pseries/dlpar.c rc = of_attach_node(dn); dn 252 arch/powerpc/platforms/pseries/dlpar.c printk(KERN_ERR "Failed to add device node %pOF\n", dn); dn 259 arch/powerpc/platforms/pseries/dlpar.c int dlpar_detach_node(struct device_node *dn) dn 264 arch/powerpc/platforms/pseries/dlpar.c child = of_get_next_child(dn, NULL); dn 267 arch/powerpc/platforms/pseries/dlpar.c child = of_get_next_child(dn, child); dn 270 arch/powerpc/platforms/pseries/dlpar.c rc = of_detach_node(dn); dn 274 arch/powerpc/platforms/pseries/dlpar.c of_node_put(dn); dn 341 arch/powerpc/platforms/pseries/hotplug-cpu.c static int dlpar_online_cpu(struct device_node *dn) dn 349 arch/powerpc/platforms/pseries/hotplug-cpu.c intserv = of_get_property(dn, "ibm,ppc-interrupt-server#s", &len); dn 433 arch/powerpc/platforms/pseries/hotplug-cpu.c struct device_node *dn, *parent; dn 464 arch/powerpc/platforms/pseries/hotplug-cpu.c dn = dlpar_configure_connector(cpu_to_be32(drc_index), parent); dn 465 arch/powerpc/platforms/pseries/hotplug-cpu.c if (!dn) { dn 473 arch/powerpc/platforms/pseries/hotplug-cpu.c rc = dlpar_attach_node(dn, parent); dn 481 arch/powerpc/platforms/pseries/hotplug-cpu.c dn, rc, drc_index); dn 485 arch/powerpc/platforms/pseries/hotplug-cpu.c dlpar_free_cc_nodes(dn); dn 490 arch/powerpc/platforms/pseries/hotplug-cpu.c rc = dlpar_online_cpu(dn); dn 494 arch/powerpc/platforms/pseries/hotplug-cpu.c dn, rc, drc_index); dn 496 arch/powerpc/platforms/pseries/hotplug-cpu.c rc = dlpar_detach_node(dn); dn 503 arch/powerpc/platforms/pseries/hotplug-cpu.c pr_debug("Successfully added CPU %pOFn, drc index: %x\n", dn, dn 508 arch/powerpc/platforms/pseries/hotplug-cpu.c static int dlpar_offline_cpu(struct device_node *dn) dn 516 arch/powerpc/platforms/pseries/hotplug-cpu.c intserv = of_get_property(dn, "ibm,ppc-interrupt-server#s", &len); dn 565 arch/powerpc/platforms/pseries/hotplug-cpu.c static ssize_t dlpar_cpu_remove(struct device_node *dn, u32 drc_index) dn 570 arch/powerpc/platforms/pseries/hotplug-cpu.c dn, drc_index); dn 572 arch/powerpc/platforms/pseries/hotplug-cpu.c rc = dlpar_offline_cpu(dn); dn 574 arch/powerpc/platforms/pseries/hotplug-cpu.c pr_warn("Failed to offline CPU %pOFn, rc: %d\n", dn, rc); dn 581 arch/powerpc/platforms/pseries/hotplug-cpu.c drc_index, dn, rc); dn 582 arch/powerpc/platforms/pseries/hotplug-cpu.c dlpar_online_cpu(dn); dn 586 arch/powerpc/platforms/pseries/hotplug-cpu.c rc = dlpar_detach_node(dn); dn 590 arch/powerpc/platforms/pseries/hotplug-cpu.c pr_warn("Failed to detach CPU %pOFn, rc: %d", dn, rc); dn 594 arch/powerpc/platforms/pseries/hotplug-cpu.c dlpar_online_cpu(dn); dn 605 arch/powerpc/platforms/pseries/hotplug-cpu.c struct device_node *dn; dn 609 arch/powerpc/platforms/pseries/hotplug-cpu.c for_each_node_by_type(dn, "cpu") { dn 610 arch/powerpc/platforms/pseries/hotplug-cpu.c rc = of_property_read_u32(dn, "ibm,my-drc-index", &my_index); dn 618 arch/powerpc/platforms/pseries/hotplug-cpu.c return dn; dn 623 arch/powerpc/platforms/pseries/hotplug-cpu.c struct device_node *dn; dn 626 arch/powerpc/platforms/pseries/hotplug-cpu.c dn = cpu_drc_index_to_dn(drc_index); dn 627 arch/powerpc/platforms/pseries/hotplug-cpu.c if (!dn) { dn 633 arch/powerpc/platforms/pseries/hotplug-cpu.c rc = dlpar_cpu_remove(dn, drc_index); dn 634 arch/powerpc/platforms/pseries/hotplug-cpu.c of_node_put(dn); dn 640 arch/powerpc/platforms/pseries/hotplug-cpu.c struct device_node *dn; dn 647 arch/powerpc/platforms/pseries/hotplug-cpu.c for_each_node_by_type(dn, "cpu") { dn 651 arch/powerpc/platforms/pseries/hotplug-cpu.c of_node_put(dn); dn 658 arch/powerpc/platforms/pseries/hotplug-cpu.c rc = of_property_read_u32(dn, "ibm,my-drc-index", dn 662 arch/powerpc/platforms/pseries/hotplug-cpu.c dn); dn 663 arch/powerpc/platforms/pseries/hotplug-cpu.c of_node_put(dn); dn 803 arch/powerpc/platforms/pseries/hotplug-cpu.c struct device_node *dn; dn 809 arch/powerpc/platforms/pseries/hotplug-cpu.c dn = dev->of_node; dn 811 arch/powerpc/platforms/pseries/hotplug-cpu.c rc = of_property_read_u32(dn, "ibm,my-drc-index", &drc_index); dn 875 arch/powerpc/platforms/pseries/hotplug-cpu.c struct device_node *dn; dn 879 arch/powerpc/platforms/pseries/hotplug-cpu.c dn = of_find_node_by_path(buf); dn 880 arch/powerpc/platforms/pseries/hotplug-cpu.c if (!dn) dn 883 arch/powerpc/platforms/pseries/hotplug-cpu.c rc = of_property_read_u32(dn, "ibm,my-drc-index", &drc_index); dn 885 arch/powerpc/platforms/pseries/hotplug-cpu.c of_node_put(dn); dn 889 arch/powerpc/platforms/pseries/hotplug-cpu.c rc = dlpar_cpu_remove(dn, drc_index); dn 890 arch/powerpc/platforms/pseries/hotplug-cpu.c of_node_put(dn); dn 905 arch/powerpc/platforms/pseries/hotplug-cpu.c err = pseries_add_processor(rd->dn); dn 908 arch/powerpc/platforms/pseries/hotplug-cpu.c pseries_remove_processor(rd->dn); dn 1038 arch/powerpc/platforms/pseries/hotplug-memory.c err = pseries_add_mem_node(rd->dn); dn 1041 arch/powerpc/platforms/pseries/hotplug-memory.c err = pseries_remove_mem_node(rd->dn); dn 152 arch/powerpc/platforms/pseries/ibmebus.c struct device_node *dn = to_platform_device(dev)->dev.of_node; dn 153 arch/powerpc/platforms/pseries/ibmebus.c return (of_find_node_by_path(data) == dn); dn 161 arch/powerpc/platforms/pseries/ibmebus.c static int ibmebus_create_device(struct device_node *dn) dn 166 arch/powerpc/platforms/pseries/ibmebus.c dev = of_device_alloc(dn, NULL, &ibmebus_bus_device); dn 266 arch/powerpc/platforms/pseries/ibmebus.c struct device_node *dn = NULL; dn 285 arch/powerpc/platforms/pseries/ibmebus.c if ((dn = of_find_node_by_path(path))) { dn 286 arch/powerpc/platforms/pseries/ibmebus.c rc = ibmebus_create_device(dn); dn 287 arch/powerpc/platforms/pseries/ibmebus.c of_node_put(dn); dn 481 arch/powerpc/platforms/pseries/iommu.c struct device_node *dn, dn 488 arch/powerpc/platforms/pseries/iommu.c node = phb->dn; dn 494 arch/powerpc/platforms/pseries/iommu.c "missing tce entries !\n", dn); dn 531 arch/powerpc/platforms/pseries/iommu.c struct device_node *dn, dn 538 arch/powerpc/platforms/pseries/iommu.c of_parse_dma_window(dn, dma_window, &tbl->it_index, &offset, &size); dn 560 arch/powerpc/platforms/pseries/iommu.c struct device_node *dn; dn 567 arch/powerpc/platforms/pseries/iommu.c dn = pci_bus_to_OF_node(bus); dn 569 arch/powerpc/platforms/pseries/iommu.c pr_debug("pci_dma_bus_setup_pSeries: setting up bus %pOF\n", dn); dn 577 arch/powerpc/platforms/pseries/iommu.c pci = PCI_DN(dn); dn 584 arch/powerpc/platforms/pseries/iommu.c while (isa_dn && isa_dn != dn) dn 590 arch/powerpc/platforms/pseries/iommu.c for (children = 0, tmp = dn->child; tmp; tmp = tmp->sibling) dn 625 arch/powerpc/platforms/pseries/iommu.c iommu_table_setparms(pci->phb, dn, tbl); dn 677 arch/powerpc/platforms/pseries/iommu.c struct device_node *dn, *pdn; dn 681 arch/powerpc/platforms/pseries/iommu.c dn = pci_bus_to_OF_node(bus); dn 684 arch/powerpc/platforms/pseries/iommu.c dn); dn 687 arch/powerpc/platforms/pseries/iommu.c for (pdn = dn; pdn != NULL; pdn = pdn->parent) { dn 719 arch/powerpc/platforms/pseries/iommu.c struct device_node *dn; dn 724 arch/powerpc/platforms/pseries/iommu.c dn = dev->dev.of_node; dn 731 arch/powerpc/platforms/pseries/iommu.c struct pci_controller *phb = PCI_DN(dn)->phb; dn 734 arch/powerpc/platforms/pseries/iommu.c PCI_DN(dn)->table_group = iommu_pseries_alloc_group(phb->node); dn 735 arch/powerpc/platforms/pseries/iommu.c tbl = PCI_DN(dn)->table_group->tables[0]; dn 736 arch/powerpc/platforms/pseries/iommu.c iommu_table_setparms(phb, dn, tbl); dn 747 arch/powerpc/platforms/pseries/iommu.c while (dn && PCI_DN(dn) && PCI_DN(dn)->table_group == NULL) dn 748 arch/powerpc/platforms/pseries/iommu.c dn = dn->parent; dn 750 arch/powerpc/platforms/pseries/iommu.c if (dn && PCI_DN(dn)) dn 752 arch/powerpc/platforms/pseries/iommu.c PCI_DN(dn)->table_group->tables[0]); dn 875 arch/powerpc/platforms/pseries/iommu.c struct device_node *dn; dn 887 arch/powerpc/platforms/pseries/iommu.c dn = pci_device_to_OF_node(dev); dn 888 arch/powerpc/platforms/pseries/iommu.c pdn = PCI_DN(dn); dn 904 arch/powerpc/platforms/pseries/iommu.c struct device_node *dn; dn 916 arch/powerpc/platforms/pseries/iommu.c dn = pci_device_to_OF_node(dev); dn 917 arch/powerpc/platforms/pseries/iommu.c pdn = PCI_DN(dn); dn 989 arch/powerpc/platforms/pseries/iommu.c struct device_node *dn; dn 1033 arch/powerpc/platforms/pseries/iommu.c dn = pci_device_to_OF_node(dev); dn 1094 arch/powerpc/platforms/pseries/iommu.c create.liobn, dn); dn 1104 arch/powerpc/platforms/pseries/iommu.c dn, ret); dn 1150 arch/powerpc/platforms/pseries/iommu.c struct device_node *pdn, *dn; dn 1163 arch/powerpc/platforms/pseries/iommu.c dn = pci_device_to_OF_node(dev); dn 1164 arch/powerpc/platforms/pseries/iommu.c pr_debug(" node is %pOF\n", dn); dn 1166 arch/powerpc/platforms/pseries/iommu.c for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->table_group; dn 1176 arch/powerpc/platforms/pseries/iommu.c pci_name(dev), dn); dn 1202 arch/powerpc/platforms/pseries/iommu.c struct device_node *dn = pci_device_to_OF_node(pdev), *pdn; dn 1209 arch/powerpc/platforms/pseries/iommu.c dev_dbg(&pdev->dev, "node is %pOF\n", dn); dn 1217 arch/powerpc/platforms/pseries/iommu.c for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->table_group; dn 1277 arch/powerpc/platforms/pseries/iommu.c struct device_node *np = rd->dn; dn 61 arch/powerpc/platforms/pseries/mobility.c struct device_node *dn; dn 63 arch/powerpc/platforms/pseries/mobility.c dn = of_find_node_by_phandle(be32_to_cpu(phandle)); dn 64 arch/powerpc/platforms/pseries/mobility.c if (!dn) dn 67 arch/powerpc/platforms/pseries/mobility.c dlpar_detach_node(dn); dn 68 arch/powerpc/platforms/pseries/mobility.c of_node_put(dn); dn 72 arch/powerpc/platforms/pseries/mobility.c static int update_dt_property(struct device_node *dn, struct property **prop, dn 125 arch/powerpc/platforms/pseries/mobility.c of_update_property(dn, new_prop); dn 135 arch/powerpc/platforms/pseries/mobility.c struct device_node *dn; dn 152 arch/powerpc/platforms/pseries/mobility.c dn = of_find_node_by_phandle(be32_to_cpu(phandle)); dn 153 arch/powerpc/platforms/pseries/mobility.c if (!dn) { dn 196 arch/powerpc/platforms/pseries/mobility.c of_remove_property(dn, of_find_property(dn, dn 202 arch/powerpc/platforms/pseries/mobility.c rc = update_dt_property(dn, &prop, prop_name, dn 218 arch/powerpc/platforms/pseries/mobility.c of_node_put(dn); dn 225 arch/powerpc/platforms/pseries/mobility.c struct device_node *dn; dn 233 arch/powerpc/platforms/pseries/mobility.c dn = dlpar_configure_connector(drc_index, parent_dn); dn 234 arch/powerpc/platforms/pseries/mobility.c if (!dn) { dn 239 arch/powerpc/platforms/pseries/mobility.c rc = dlpar_attach_node(dn, parent_dn); dn 241 arch/powerpc/platforms/pseries/mobility.c dlpar_free_cc_nodes(dn); dn 250 arch/powerpc/platforms/pseries/mobility.c struct device_node *dn; dn 256 arch/powerpc/platforms/pseries/mobility.c dn = of_find_node_by_phandle(be32_to_cpu(phandle)); dn 257 arch/powerpc/platforms/pseries/mobility.c if (dn) { dn 258 arch/powerpc/platforms/pseries/mobility.c of_node_put(dn); dn 129 arch/powerpc/platforms/pseries/msi.c struct device_node *dn; dn 133 arch/powerpc/platforms/pseries/msi.c dn = pci_device_to_OF_node(pdev); dn 135 arch/powerpc/platforms/pseries/msi.c p = of_get_property(dn, prop_name, NULL); dn 137 arch/powerpc/platforms/pseries/msi.c pr_debug("rtas_msi: No %s on %pOF\n", prop_name, dn); dn 168 arch/powerpc/platforms/pseries/msi.c struct device_node *dn; dn 171 arch/powerpc/platforms/pseries/msi.c dn = of_node_get(pci_device_to_OF_node(dev)); dn 172 arch/powerpc/platforms/pseries/msi.c while (dn) { dn 173 arch/powerpc/platforms/pseries/msi.c p = of_get_property(dn, "ibm,pe-total-#msi", NULL); dn 176 arch/powerpc/platforms/pseries/msi.c dn); dn 178 arch/powerpc/platforms/pseries/msi.c return dn; dn 181 arch/powerpc/platforms/pseries/msi.c dn = of_get_next_parent(dn); dn 189 arch/powerpc/platforms/pseries/msi.c struct device_node *dn; dn 194 arch/powerpc/platforms/pseries/msi.c dn = pci_device_to_OF_node(dev); dn 195 arch/powerpc/platforms/pseries/msi.c if (!dn) dn 199 arch/powerpc/platforms/pseries/msi.c edev = pdn_to_eeh_dev(PCI_DN(dn)); dn 203 arch/powerpc/platforms/pseries/msi.c dn = pci_device_to_OF_node(edev->pdev); dn 204 arch/powerpc/platforms/pseries/msi.c if (!dn) dn 208 arch/powerpc/platforms/pseries/msi.c dn = of_get_parent(dn); dn 209 arch/powerpc/platforms/pseries/msi.c if (!dn) dn 214 arch/powerpc/platforms/pseries/msi.c pr_debug("rtas_msi: using PE dn %pOF\n", dn); dn 216 arch/powerpc/platforms/pseries/msi.c return dn; dn 228 arch/powerpc/platforms/pseries/msi.c static void *count_non_bridge_devices(struct device_node *dn, void *data) dn 234 arch/powerpc/platforms/pseries/msi.c pr_debug("rtas_msi: counting %pOF\n", dn); dn 236 arch/powerpc/platforms/pseries/msi.c p = of_get_property(dn, "class-code", NULL); dn 245 arch/powerpc/platforms/pseries/msi.c static void *count_spare_msis(struct device_node *dn, void *data) dn 251 arch/powerpc/platforms/pseries/msi.c if (dn == counts->requestor) dn 257 arch/powerpc/platforms/pseries/msi.c p = of_get_property(dn, "ibm,req#msi", NULL); dn 261 arch/powerpc/platforms/pseries/msi.c p = of_get_property(dn, "ibm,req#msi-x", NULL); dn 27 arch/powerpc/platforms/pseries/papr_scm.c struct device_node *dn; dn 344 arch/powerpc/platforms/pseries/papr_scm.c dev_err(dev, "Error creating nvdimm bus %pOF\n", p->dn); dn 355 arch/powerpc/platforms/pseries/papr_scm.c dev_err(dev, "Error creating DIMM object for %pOF\n", p->dn); dn 376 arch/powerpc/platforms/pseries/papr_scm.c ndr_desc.of_node = p->dn; dn 389 arch/powerpc/platforms/pseries/papr_scm.c ndr_desc.res, p->dn); dn 405 arch/powerpc/platforms/pseries/papr_scm.c struct device_node *dn = pdev->dev.of_node; dn 414 arch/powerpc/platforms/pseries/papr_scm.c if (of_property_read_u32(dn, "ibm,my-drc-index", &drc_index)) { dn 415 arch/powerpc/platforms/pseries/papr_scm.c dev_err(&pdev->dev, "%pOF: missing drc-index!\n", dn); dn 419 arch/powerpc/platforms/pseries/papr_scm.c if (of_property_read_u64(dn, "ibm,block-size", &block_size)) { dn 420 arch/powerpc/platforms/pseries/papr_scm.c dev_err(&pdev->dev, "%pOF: missing block-size!\n", dn); dn 424 arch/powerpc/platforms/pseries/papr_scm.c if (of_property_read_u64(dn, "ibm,number-of-blocks", &blocks)) { dn 425 arch/powerpc/platforms/pseries/papr_scm.c dev_err(&pdev->dev, "%pOF: missing number-of-blocks!\n", dn); dn 429 arch/powerpc/platforms/pseries/papr_scm.c if (of_property_read_string(dn, "ibm,unit-guid", &uuid_str)) { dn 430 arch/powerpc/platforms/pseries/papr_scm.c dev_err(&pdev->dev, "%pOF: missing unit-guid!\n", dn); dn 440 arch/powerpc/platforms/pseries/papr_scm.c of_property_read_u32(dn, "ibm,metadata-size", &metadata_size); dn 442 arch/powerpc/platforms/pseries/papr_scm.c p->dn = dn; dn 446 arch/powerpc/platforms/pseries/papr_scm.c p->is_volatile = !of_property_read_bool(dn, "ibm,cache-flush-required"); dn 25 arch/powerpc/platforms/pseries/pci.c struct device_node *dn; dn 30 arch/powerpc/platforms/pseries/pci.c dn = pci_device_to_OF_node(dev); dn 31 arch/powerpc/platforms/pseries/pci.c if (dn) { dn 32 arch/powerpc/platforms/pseries/pci.c const char *loc_code = of_get_property(dn, "ibm,loc-code", dn 155 arch/powerpc/platforms/pseries/pci.c struct device_node *dn = pci_device_to_OF_node(pdev); dn 157 arch/powerpc/platforms/pseries/pci.c max_vfs = of_get_property(dn, "ibm,number-of-configurable-vfs", NULL); dn 239 arch/powerpc/platforms/pseries/pci.c struct device_node *dn = hose->dn, *nvdn; dn 242 arch/powerpc/platforms/pseries/pci.c dn = of_find_all_nodes(dn); dn 243 arch/powerpc/platforms/pseries/pci.c if (!dn) dn 245 arch/powerpc/platforms/pseries/pci.c nvdn = of_parse_phandle(dn, "ibm,nvlink", 0); dn 295 arch/powerpc/platforms/pseries/pci.c struct device_node *dn, *pdn; dn 306 arch/powerpc/platforms/pseries/pci.c dn = pcibios_get_phb_of_node(bus); dn 307 arch/powerpc/platforms/pseries/pci.c if (!dn) dn 310 arch/powerpc/platforms/pseries/pci.c for (pdn = dn; pdn != NULL; pdn = of_get_next_parent(pdn)) { dn 37 arch/powerpc/platforms/pseries/pci_dlpar.c struct pci_controller *init_phb_dynamic(struct device_node *dn) dn 41 arch/powerpc/platforms/pseries/pci_dlpar.c pr_debug("PCI: Initializing new hotplug PHB %pOF\n", dn); dn 43 arch/powerpc/platforms/pseries/pci_dlpar.c phb = pcibios_alloc_controller(dn); dn 47 arch/powerpc/platforms/pseries/pci_dlpar.c pci_process_bridge_OF_ranges(phb, dn, 0); dn 55 arch/powerpc/platforms/pseries/pci_dlpar.c if (dn->child) dn 56 arch/powerpc/platforms/pseries/pci_dlpar.c eeh_add_device_tree_early(PCI_DN(dn)); dn 33 arch/powerpc/platforms/pseries/pmem.c struct device_node *dn; dn 45 arch/powerpc/platforms/pseries/pmem.c dn = dlpar_configure_connector(cpu_to_be32(drc_index), pmem_node); dn 46 arch/powerpc/platforms/pseries/pmem.c if (!dn) { dn 53 arch/powerpc/platforms/pseries/pmem.c rc = dlpar_attach_node(dn, pmem_node); dn 56 arch/powerpc/platforms/pseries/pmem.c dn, rc, drc_index); dn 59 arch/powerpc/platforms/pseries/pmem.c dlpar_free_cc_nodes(dn); dn 64 arch/powerpc/platforms/pseries/pmem.c pr_info("Successfully added %pOF, drc index: %x\n", dn, drc_index); dn 71 arch/powerpc/platforms/pseries/pmem.c struct device_node *dn; dn 75 arch/powerpc/platforms/pseries/pmem.c for_each_child_of_node(pmem_node, dn) { dn 76 arch/powerpc/platforms/pseries/pmem.c if (of_property_read_u32(dn, "ibm,my-drc-index", &index)) dn 82 arch/powerpc/platforms/pseries/pmem.c if (!dn) { dn 87 arch/powerpc/platforms/pseries/pmem.c pr_debug("Attempting to remove %pOF, drc index: %x\n", dn, drc_index); dn 90 arch/powerpc/platforms/pseries/pmem.c rc = dlpar_detach_node(dn); dn 97 arch/powerpc/platforms/pseries/pmem.c drc_index, dn, rc); dn 98 arch/powerpc/platforms/pseries/pmem.c dlpar_attach_node(dn, pmem_node); dn 38 arch/powerpc/platforms/pseries/pseries_energy.c struct device_node *dn = NULL; dn 43 arch/powerpc/platforms/pseries/pseries_energy.c dn = of_find_node_by_path("/cpus"); dn 44 arch/powerpc/platforms/pseries/pseries_energy.c if (dn == NULL) dn 57 arch/powerpc/platforms/pseries/pseries_energy.c info = of_find_property(dn, "ibm,drc-info", NULL); dn 85 arch/powerpc/platforms/pseries/pseries_energy.c rc = of_property_read_u32_index(dn, "ibm,drc-indexes", dn 91 arch/powerpc/platforms/pseries/pseries_energy.c rc = of_property_read_u32_index(dn, "ibm,drc-indexes", dn 103 arch/powerpc/platforms/pseries/pseries_energy.c of_node_put(dn); dn 112 arch/powerpc/platforms/pseries/pseries_energy.c struct device_node *dn = NULL; dn 117 arch/powerpc/platforms/pseries/pseries_energy.c dn = of_find_node_by_path("/cpus"); dn 118 arch/powerpc/platforms/pseries/pseries_energy.c if (dn == NULL) dn 128 arch/powerpc/platforms/pseries/pseries_energy.c info = of_find_property(dn, "ibm,drc-info", NULL); dn 156 arch/powerpc/platforms/pseries/pseries_energy.c indexes = of_get_property(dn, "ibm,drc-indexes", NULL); dn 174 arch/powerpc/platforms/pseries/pseries_energy.c of_node_put(dn); dn 29 arch/powerpc/platforms/pseries/rng.c struct device_node *dn; dn 31 arch/powerpc/platforms/pseries/rng.c dn = of_find_compatible_node(NULL, NULL, "ibm,random"); dn 32 arch/powerpc/platforms/pseries/rng.c if (!dn) dn 245 arch/powerpc/platforms/pseries/setup.c struct device_node *parent, *np = rd->dn; dn 586 arch/powerpc/platforms/pseries/setup.c struct device_node *dn = pci_device_to_OF_node(dev); dn 589 arch/powerpc/platforms/pseries/setup.c indexes = of_get_property(dn, "ibm,open-sriov-vf-bar-info", NULL); dn 687 arch/powerpc/platforms/pseries/setup.c struct device_node *dn = pci_device_to_OF_node(pdev); dn 690 arch/powerpc/platforms/pseries/setup.c indexes = of_get_property(dn, "ibm,open-sriov-vf-bar-info", NULL); dn 700 arch/powerpc/platforms/pseries/setup.c struct device_node *dn = pci_device_to_OF_node(pdev); dn 705 arch/powerpc/platforms/pseries/setup.c indexes = of_get_property(dn, "ibm,open-sriov-vf-bar-info", NULL); dn 716 arch/powerpc/platforms/pseries/setup.c struct device_node *dn = pci_device_to_OF_node(pdev); dn 719 arch/powerpc/platforms/pseries/setup.c reg = of_get_property(dn, "ibm,is-open-sriov-pf", NULL); dn 1547 arch/powerpc/platforms/pseries/vio.c struct device_node *dn; dn 1550 arch/powerpc/platforms/pseries/vio.c dn = dev->of_node; dn 1551 arch/powerpc/platforms/pseries/vio.c if (!dn) { dn 1555 arch/powerpc/platforms/pseries/vio.c cp = of_get_property(dn, "compatible", NULL); dn 1593 arch/powerpc/platforms/pseries/vio.c struct device_node *dn; dn 1596 arch/powerpc/platforms/pseries/vio.c dn = dev->of_node; dn 1597 arch/powerpc/platforms/pseries/vio.c if (!dn) dn 1599 arch/powerpc/platforms/pseries/vio.c cp = of_get_property(dn, "compatible", NULL); dn 394 arch/powerpc/sysdev/dart_iommu.c struct device_node *dn; dn 397 arch/powerpc/sysdev/dart_iommu.c dn = of_find_compatible_node(NULL, "dart", "u3-dart"); dn 398 arch/powerpc/sysdev/dart_iommu.c if (dn == NULL) { dn 399 arch/powerpc/sysdev/dart_iommu.c dn = of_find_compatible_node(NULL, "dart", "u4-dart"); dn 400 arch/powerpc/sysdev/dart_iommu.c if (dn == NULL) dn 406 arch/powerpc/sysdev/dart_iommu.c if (dart_init(dn) != 0) dn 152 arch/powerpc/sysdev/fsl_msi.c reg = of_get_property(hose->dn, "msi-address-64", &len); dn 204 arch/powerpc/sysdev/fsl_msi.c np = of_parse_phandle(hose->dn, "fsl,msi", 0); dn 213 arch/powerpc/sysdev/fsl_msi.c hose->dn, np->phandle); dn 215 arch/powerpc/sysdev/fsl_pci.c if (of_device_is_compatible(hose->dn, "fsl,bsc9132-pcie")) { dn 289 arch/powerpc/sysdev/fsl_pci.c pr_err("%pOF: No outbound window space\n", hose->dn); dn 294 arch/powerpc/sysdev/fsl_pci.c pr_err("%pOF: No space for inbound window\n", hose->dn); dn 312 arch/powerpc/sysdev/fsl_pci.c pr_info("%pOF: PCICSRBAR @ 0x%x\n", hose->dn, pcicsrbar); dn 330 arch/powerpc/sysdev/fsl_pci.c reg = of_get_property(hose->dn, "msi-address-64", &len); dn 335 arch/powerpc/sysdev/fsl_pci.c pr_info("%pOF: extending DDR ATMU to cover MSIIR", hose->dn); dn 340 arch/powerpc/sysdev/fsl_pci.c "unsupported\n", hose->dn, address); dn 354 arch/powerpc/sysdev/fsl_pci.c "greater than memory size\n", hose->dn); dn 401 arch/powerpc/sysdev/fsl_pci.c pr_info("%pOF: Setup 64-bit PCI DMA window\n", hose->dn); dn 444 arch/powerpc/sysdev/fsl_pci.c hose->dn); dn 451 arch/powerpc/sysdev/fsl_pci.c hose->dn); dn 453 arch/powerpc/sysdev/fsl_pci.c pr_info("%pOF: DMA window size is 0x%llx\n", hose->dn, dn 707 arch/powerpc/sysdev/fsl_pci.c struct mpc83xx_pcie_priv *pcie = hose->dn->data; dn 775 arch/powerpc/sysdev/fsl_pci.c WARN_ON(hose->dn->data); dn 776 arch/powerpc/sysdev/fsl_pci.c hose->dn->data = pcie; dn 891 arch/powerpc/sysdev/fsl_pci.c struct mpc83xx_pcie_priv *pcie = hose->dn->data; dn 1175 arch/powerpc/sysdev/fsl_pci.c pme_irq = irq_of_parse_and_map(hose->dn, 0); dn 393 arch/powerpc/sysdev/mpic_timer.c struct device_node *dn; dn 395 arch/powerpc/sysdev/mpic_timer.c dn = of_find_compatible_node(NULL, NULL, "fsl,mpic"); dn 396 arch/powerpc/sysdev/mpic_timer.c if (dn) { dn 397 arch/powerpc/sysdev/mpic_timer.c of_property_read_u32(dn, "clock-frequency", dn 399 arch/powerpc/sysdev/mpic_timer.c of_node_put(dn); dn 95 arch/powerpc/sysdev/mpic_u3msi.c if (of_device_is_compatible(hose->dn, "u4-pcie") || dn 96 arch/powerpc/sysdev/mpic_u3msi.c of_device_is_compatible(hose->dn, "U4-pcie")) dn 50 arch/powerpc/sysdev/xilinx_pci.c if (!of_match_node(xilinx_pci_match, hose->dn)) dn 62 arch/riscv/kernel/smpboot.c struct device_node *dn; dn 67 arch/riscv/kernel/smpboot.c for_each_of_cpu_node(dn) { dn 68 arch/riscv/kernel/smpboot.c hart = riscv_of_processor_hartid(dn); dn 119 arch/x86/kernel/devicetree.c struct device_node *dn; dn 123 arch/x86/kernel/devicetree.c dn = of_find_compatible_node(NULL, NULL, "intel,ce4100-hpet"); dn 124 arch/x86/kernel/devicetree.c if (!dn) dn 126 arch/x86/kernel/devicetree.c ret = of_address_to_resource(dn, 0, &r); dn 139 arch/x86/kernel/devicetree.c struct device_node *dn; dn 144 arch/x86/kernel/devicetree.c for_each_of_cpu_node(dn) { dn 145 arch/x86/kernel/devicetree.c ret = of_property_read_u32(dn, "reg", &apic_id); dn 147 arch/x86/kernel/devicetree.c pr_warn("%pOF: missing local APIC ID\n", dn); dn 156 arch/x86/kernel/devicetree.c struct device_node *dn; dn 161 arch/x86/kernel/devicetree.c dn = of_find_compatible_node(NULL, NULL, "intel,ce4100-lapic"); dn 162 arch/x86/kernel/devicetree.c if (dn) { dn 163 arch/x86/kernel/devicetree.c ret = of_address_to_resource(dn, 0, &r); dn 244 arch/x86/kernel/devicetree.c static void __init dtb_add_ioapic(struct device_node *dn) dn 251 arch/x86/kernel/devicetree.c .dev = dn, dn 254 arch/x86/kernel/devicetree.c ret = of_address_to_resource(dn, 0, &r); dn 256 arch/x86/kernel/devicetree.c printk(KERN_ERR "Can't obtain address from device node %pOF.\n", dn); dn 264 arch/x86/kernel/devicetree.c struct device_node *dn; dn 266 arch/x86/kernel/devicetree.c for_each_compatible_node(dn, NULL, "intel,ce4100-ioapic") dn 267 arch/x86/kernel/devicetree.c dtb_add_ioapic(dn); dn 45 drivers/acpi/device_sysfs.c static ssize_t data_node_show_path(struct acpi_data_node *dn, char *buf) dn 47 drivers/acpi/device_sysfs.c return dn->handle ? acpi_object_path(dn->handle, buf) : 0; dn 63 drivers/acpi/device_sysfs.c struct acpi_data_node *dn = to_data_node(kobj); dn 66 drivers/acpi/device_sysfs.c return dn_attr->show ? dn_attr->show(dn, buf) : -ENXIO; dn 75 drivers/acpi/device_sysfs.c struct acpi_data_node *dn = to_data_node(kobj); dn 76 drivers/acpi/device_sysfs.c complete(&dn->kobj_done); dn 89 drivers/acpi/device_sysfs.c struct acpi_data_node *dn; dn 94 drivers/acpi/device_sysfs.c list_for_each_entry(dn, list, sibling) { dn 97 drivers/acpi/device_sysfs.c init_completion(&dn->kobj_done); dn 98 drivers/acpi/device_sysfs.c ret = kobject_init_and_add(&dn->kobj, &acpi_data_node_ktype, dn 99 drivers/acpi/device_sysfs.c kobj, "%s", dn->name); dn 101 drivers/acpi/device_sysfs.c acpi_expose_nondev_subnodes(&dn->kobj, &dn->data); dn 102 drivers/acpi/device_sysfs.c else if (dn->handle) dn 103 drivers/acpi/device_sysfs.c acpi_handle_err(dn->handle, "Failed to expose (%d)\n", ret); dn 110 drivers/acpi/device_sysfs.c struct acpi_data_node *dn; dn 115 drivers/acpi/device_sysfs.c list_for_each_entry_reverse(dn, list, sibling) { dn 116 drivers/acpi/device_sysfs.c acpi_hide_nondev_subnodes(&dn->data); dn 117 drivers/acpi/device_sysfs.c kobject_put(&dn->kobj); dn 68 drivers/acpi/property.c struct acpi_data_node *dn; dn 71 drivers/acpi/property.c dn = kzalloc(sizeof(*dn), GFP_KERNEL); dn 72 drivers/acpi/property.c if (!dn) dn 75 drivers/acpi/property.c dn->name = link->package.elements[0].string.pointer; dn 76 drivers/acpi/property.c dn->fwnode.ops = &acpi_data_fwnode_ops; dn 77 drivers/acpi/property.c dn->parent = parent; dn 78 drivers/acpi/property.c INIT_LIST_HEAD(&dn->data.properties); dn 79 drivers/acpi/property.c INIT_LIST_HEAD(&dn->data.subnodes); dn 81 drivers/acpi/property.c result = acpi_extract_properties(desc, &dn->data); dn 95 drivers/acpi/property.c && acpi_enumerate_nondev_subnodes(scope, desc, &dn->data, dn 96 drivers/acpi/property.c &dn->fwnode)) dn 98 drivers/acpi/property.c } else if (acpi_enumerate_nondev_subnodes(NULL, desc, &dn->data, dn 99 drivers/acpi/property.c &dn->fwnode)) { dn 104 drivers/acpi/property.c dn->handle = handle; dn 105 drivers/acpi/property.c dn->data.pointer = desc; dn 106 drivers/acpi/property.c list_add_tail(&dn->sibling, list); dn 110 drivers/acpi/property.c kfree(dn); dn 435 drivers/acpi/property.c struct acpi_data_node *dn, *next; dn 440 drivers/acpi/property.c list_for_each_entry_safe_reverse(dn, next, list, sibling) { dn 441 drivers/acpi/property.c acpi_destroy_nondev_subnodes(&dn->data.subnodes); dn 442 drivers/acpi/property.c wait_for_completion(&dn->kobj_done); dn 443 drivers/acpi/property.c list_del(&dn->sibling); dn 444 drivers/acpi/property.c ACPI_FREE((void *)dn->data.pointer); dn 445 drivers/acpi/property.c kfree(dn); dn 542 drivers/acpi/property.c const struct acpi_data_node *dn = to_acpi_data_node(fwnode); dn 543 drivers/acpi/property.c return &dn->data; dn 1050 drivers/acpi/property.c struct acpi_data_node *dn; dn 1071 drivers/acpi/property.c dn = to_acpi_data_node(child); dn 1072 drivers/acpi/property.c next = dn->sibling.next; dn 1076 drivers/acpi/property.c dn = list_entry(next, struct acpi_data_node, sibling); dn 1078 drivers/acpi/property.c dn = list_first_entry(head, struct acpi_data_node, sibling); dn 1080 drivers/acpi/property.c return &dn->fwnode; dn 137 drivers/amba/tegra-ahb.c int tegra_ahb_enable_smmu(struct device_node *dn) dn 143 drivers/amba/tegra-ahb.c dev = driver_find_device_by_of_node(&tegra_ahb_driver.driver, dn); dn 51 drivers/ata/pata_amd.c int dn = ap->port_no * 2 + adev->devno; dn 86 drivers/ata/pata_amd.c t = (t & ~(3 << ((3 - dn) << 1))) | ((clamp_val(at.setup, 1, 4) - 1) << ((3 - dn) << 1)); dn 90 drivers/ata/pata_amd.c pci_write_config_byte(pdev, offset + 0x0E + (1 - (dn >> 1)), dn 94 drivers/ata/pata_amd.c pci_write_config_byte(pdev, offset + 0x08 + (3 - dn), dn 120 drivers/ata/pata_amd.c pci_write_config_byte(pdev, offset + 0x10 + (3 - dn), t); dn 102 drivers/ata/pata_artop.c int dn = adev->devno + 2 * ap->port_no; dn 109 drivers/ata/pata_artop.c pci_write_config_word(pdev, 0x40 + 2 * dn, timing[clock][pio]); dn 129 drivers/ata/pata_artop.c int dn = adev->devno + 2 * ap->port_no; dn 136 drivers/ata/pata_artop.c ultra &= ~(3 << (2 * dn)); dn 156 drivers/ata/pata_artop.c int dn = adev->devno + 2 * ap->port_no; dn 163 drivers/ata/pata_artop.c pci_write_config_byte(pdev, 0x40 + dn, timing[clock][pio]); dn 208 drivers/ata/pata_artop.c int dn = adev->devno + 2 * ap->port_no; dn 220 drivers/ata/pata_artop.c ultra &= ~(3 << (2 * dn)); dn 227 drivers/ata/pata_artop.c ultra |= (mode << (2 * dn)); dn 107 drivers/ata/pata_atiixp.c int dn = 2 * ap->port_no + adev->devno; dn 113 drivers/ata/pata_atiixp.c pio_mode_data &= ~(0x7 << (4 * dn)); dn 114 drivers/ata/pata_atiixp.c pio_mode_data |= pio << (4 * dn); dn 155 drivers/ata/pata_atiixp.c int dn = 2 * ap->port_no + adev->devno; dn 167 drivers/ata/pata_atiixp.c udma_mode_data &= ~(0x7 << (4 * dn)); dn 168 drivers/ata/pata_atiixp.c udma_mode_data |= dma << (4 * dn); dn 217 drivers/ata/pata_atiixp.c int dn = (2 * ap->port_no) + adev->devno; dn 222 drivers/ata/pata_atiixp.c tmp16 |= (1 << dn); dn 224 drivers/ata/pata_atiixp.c tmp16 &= ~(1 << dn); dn 244 drivers/ata/pata_atiixp.c int dn = (2 * ap->port_no) + qc->dev->devno; dn 248 drivers/ata/pata_atiixp.c tmp16 &= ~(1 << dn); dn 41 drivers/ata/pata_hpt3x3.c int dn = 2 * ap->port_no + adev->devno; dn 46 drivers/ata/pata_hpt3x3.c r1 &= ~(7 << (3 * dn)); dn 47 drivers/ata/pata_hpt3x3.c r1 |= (adev->pio_mode - XFER_PIO_0) << (3 * dn); dn 48 drivers/ata/pata_hpt3x3.c r2 &= ~(0x11 << dn); /* Clear MWDMA and UDMA bits */ dn 71 drivers/ata/pata_hpt3x3.c int dn = 2 * ap->port_no + adev->devno; dn 77 drivers/ata/pata_hpt3x3.c r1 &= ~(7 << (3 * dn)); dn 78 drivers/ata/pata_hpt3x3.c r1 |= (mode_num << (3 * dn)); dn 79 drivers/ata/pata_hpt3x3.c r2 &= ~(0x11 << dn); /* Clear MWDMA and UDMA bits */ dn 82 drivers/ata/pata_hpt3x3.c r2 |= (0x01 << dn); /* Ultra mode */ dn 84 drivers/ata/pata_hpt3x3.c r2 |= (0x10 << dn); /* MWDMA */ dn 25 drivers/ata/pata_of_platform.c struct device_node *dn = ofdev->dev.of_node; dn 34 drivers/ata/pata_of_platform.c ret = of_address_to_resource(dn, 0, &io_res); dn 41 drivers/ata/pata_of_platform.c ret = of_address_to_resource(dn, 1, &ctl_res); dn 50 drivers/ata/pata_of_platform.c of_property_read_u32(dn, "reg-shift", ®_shift); dn 52 drivers/ata/pata_of_platform.c if (!of_property_read_u32(dn, "pio-mode", &pio_mode)) { dn 61 drivers/ata/pata_of_platform.c use16bit = of_property_read_bool(dn, "ata-generic,use16bit"); dn 599 drivers/atm/iphase.h #define TABLE_ADDRESS(db, dn, to) \ dn 600 drivers/atm/iphase.h (((unsigned long)(db & 0x04)) << 16) | (dn << 5) | (to << 1) dn 2608 drivers/base/power/domain.c static int genpd_iterate_idle_states(struct device_node *dn, dn 2616 drivers/base/power/domain.c ret = of_count_phandle_with_args(dn, "domain-idle-states", NULL); dn 2621 drivers/base/power/domain.c of_for_each_phandle(&it, ret, dn, "domain-idle-states", NULL, 0) { dn 2652 drivers/base/power/domain.c int of_genpd_parse_idle_states(struct device_node *dn, dn 2658 drivers/base/power/domain.c ret = genpd_iterate_idle_states(dn, NULL); dn 2672 drivers/base/power/domain.c ret = genpd_iterate_idle_states(dn, st); dn 110 drivers/bus/arm-cci.c struct device_node *dn; dn 161 drivers/bus/arm-cci.c static int __cci_ace_get_port(struct device_node *dn, int type) dn 167 drivers/bus/arm-cci.c cci_portn = of_parse_phandle(dn, "cci-control-port", 0); dn 170 drivers/bus/arm-cci.c if (ace_match && cci_portn == ports[i].dn) dn 176 drivers/bus/arm-cci.c int cci_ace_get_port(struct device_node *dn) dn 178 drivers/bus/arm-cci.c return __cci_ace_get_port(dn, ACE_LITE_PORT); dn 388 drivers/bus/arm-cci.c int notrace __cci_control_port_by_device(struct device_node *dn, bool enable) dn 392 drivers/bus/arm-cci.c if (!dn) dn 395 drivers/bus/arm-cci.c port = __cci_ace_get_port(dn, ACE_LITE_PORT); dn 397 drivers/bus/arm-cci.c dn)) dn 501 drivers/bus/arm-cci.c ports[i].dn = cp; dn 316 drivers/bus/brcmstb_gisb.c struct device_node *dn = pdev->dev.of_node; dn 339 drivers/bus/brcmstb_gisb.c of_id = of_match_node(brcmstb_gisb_arb_of_match, dn); dn 345 drivers/bus/brcmstb_gisb.c gdev->big_endian = of_device_is_big_endian(dn); dn 360 drivers/bus/brcmstb_gisb.c if (of_property_read_u32(dn, "brcm,gisb-arb-master-mask", dn 367 drivers/bus/brcmstb_gisb.c num_masters = of_property_count_strings(dn, dn 377 drivers/bus/brcmstb_gisb.c of_property_read_string_index(dn, dn 43 drivers/char/tpm/tpm_atmel.h struct device_node *dn; dn 50 drivers/char/tpm/tpm_atmel.h dn = of_find_node_by_name(NULL, "tpm"); dn 52 drivers/char/tpm/tpm_atmel.h if (!dn) dn 55 drivers/char/tpm/tpm_atmel.h if (!of_device_is_compatible(dn, "AT97SC3201")) { dn 56 drivers/char/tpm/tpm_atmel.h of_node_put(dn); dn 60 drivers/char/tpm/tpm_atmel.h reg = of_get_property(dn, "reg", ®len); dn 61 drivers/char/tpm/tpm_atmel.h naddrc = of_n_addr_cells(dn); dn 62 drivers/char/tpm/tpm_atmel.h nsizec = of_n_size_cells(dn); dn 64 drivers/char/tpm/tpm_atmel.h of_node_put(dn); dn 234 drivers/clk/mvebu/ap-cpu-clk.c struct device_node *dn, *np = dev->of_node; dn 255 drivers/clk/mvebu/ap-cpu-clk.c for_each_of_cpu_node(dn) { dn 258 drivers/clk/mvebu/ap-cpu-clk.c err = of_property_read_u32(dn, "reg", &cpu); dn 283 drivers/clk/mvebu/ap-cpu-clk.c for_each_of_cpu_node(dn) { dn 290 drivers/clk/mvebu/ap-cpu-clk.c err = of_property_read_u32(dn, "reg", &cpu); dn 172 drivers/clk/mvebu/clk-cpu.c struct device_node *dn; dn 184 drivers/clk/mvebu/clk-cpu.c for_each_of_cpu_node(dn) dn 195 drivers/clk/mvebu/clk-cpu.c for_each_of_cpu_node(dn) { dn 204 drivers/clk/mvebu/clk-cpu.c err = of_property_read_u32(dn, "reg", &cpu); dn 1175 drivers/clocksource/arm_arch_timer.c struct device_node *dn; dn 1188 drivers/clocksource/arm_arch_timer.c dn = of_find_matching_node(NULL, arch_timer_mem_of_match); dn 1190 drivers/clocksource/arm_arch_timer.c dn = of_find_matching_node(NULL, arch_timer_of_match); dn 1192 drivers/clocksource/arm_arch_timer.c if (dn && of_device_is_available(dn)) dn 1195 drivers/clocksource/arm_arch_timer.c of_node_put(dn); dn 130 drivers/cpufreq/pasemi-cpufreq.c struct device_node *cpu, *dn; dn 147 drivers/cpufreq/pasemi-cpufreq.c dn = of_find_compatible_node(NULL, NULL, "1682m-sdc"); dn 148 drivers/cpufreq/pasemi-cpufreq.c if (!dn) dn 149 drivers/cpufreq/pasemi-cpufreq.c dn = of_find_compatible_node(NULL, NULL, dn 151 drivers/cpufreq/pasemi-cpufreq.c if (!dn) dn 153 drivers/cpufreq/pasemi-cpufreq.c err = of_address_to_resource(dn, 0, &res); dn 154 drivers/cpufreq/pasemi-cpufreq.c of_node_put(dn); dn 163 drivers/cpufreq/pasemi-cpufreq.c dn = of_find_compatible_node(NULL, NULL, "1682m-gizmo"); dn 164 drivers/cpufreq/pasemi-cpufreq.c if (!dn) dn 165 drivers/cpufreq/pasemi-cpufreq.c dn = of_find_compatible_node(NULL, NULL, dn 167 drivers/cpufreq/pasemi-cpufreq.c if (!dn) { dn 171 drivers/cpufreq/pasemi-cpufreq.c err = of_address_to_resource(dn, 0, &res); dn 172 drivers/cpufreq/pasemi-cpufreq.c of_node_put(dn); dn 4746 drivers/crypto/bcm/cipher.c struct device_node *dn = pdev->dev.of_node; dn 4750 drivers/crypto/bcm/cipher.c spu->num_chan = of_count_phandle_with_args(dn, "mboxes", "#mbox-cells"); dn 746 drivers/crypto/nx/nx-842-powernv.c static int __init vas_cfg_coproc_info(struct device_node *dn, int chip_id, dn 757 drivers/crypto/nx/nx-842-powernv.c ret = of_property_read_u64(dn, "rx-fifo-address", &rx_fifo); dn 763 drivers/crypto/nx/nx-842-powernv.c ret = of_property_read_u32(dn, "rx-fifo-size", &fifo_size); dn 769 drivers/crypto/nx/nx-842-powernv.c ret = of_property_read_u32(dn, "lpid", &lpid); dn 775 drivers/crypto/nx/nx-842-powernv.c ret = of_property_read_u32(dn, "pid", &pid); dn 781 drivers/crypto/nx/nx-842-powernv.c ret = of_property_read_u32(dn, "tid", &tid); dn 787 drivers/crypto/nx/nx-842-powernv.c ret = of_property_read_string(dn, "priority", &priority); dn 854 drivers/crypto/nx/nx-842-powernv.c struct device_node *dn; dn 871 drivers/crypto/nx/nx-842-powernv.c for_each_child_of_node(pn, dn) { dn 872 drivers/crypto/nx/nx-842-powernv.c if (of_device_is_compatible(dn, "ibm,p9-nx-842")) { dn 873 drivers/crypto/nx/nx-842-powernv.c ret = vas_cfg_coproc_info(dn, chip_id, vasid, &ct); dn 875 drivers/crypto/nx/nx-842-powernv.c of_node_put(dn); dn 903 drivers/crypto/nx/nx-842-powernv.c static int __init nx842_powernv_probe(struct device_node *dn) dn 909 drivers/crypto/nx/nx-842-powernv.c chip_id = of_get_ibm_chip_id(dn); dn 915 drivers/crypto/nx/nx-842-powernv.c if (of_property_read_u32(dn, "ibm,842-coprocessor-type", &ct)) { dn 920 drivers/crypto/nx/nx-842-powernv.c if (of_property_read_u32(dn, "ibm,842-coprocessor-instance", &ci)) { dn 1007 drivers/crypto/nx/nx-842-powernv.c struct device_node *dn; dn 1019 drivers/crypto/nx/nx-842-powernv.c for_each_compatible_node(dn, NULL, "ibm,power9-nx") { dn 1020 drivers/crypto/nx/nx-842-powernv.c ret = nx842_powernv_probe_vas(dn); dn 1023 drivers/crypto/nx/nx-842-powernv.c of_node_put(dn); dn 1029 drivers/crypto/nx/nx-842-powernv.c for_each_compatible_node(dn, NULL, "ibm,power-nx") dn 1030 drivers/crypto/nx/nx-842-powernv.c nx842_powernv_probe(dn); dn 837 drivers/crypto/nx/nx-842-pseries.c !strcmp(upd->dn->name, node->name)) { dn 899 drivers/dma/mpc512x_dma.c struct device_node *dn = op->dev.of_node; dn 915 drivers/dma/mpc512x_dma.c mdma->irq = irq_of_parse_and_map(dn, 0); dn 922 drivers/dma/mpc512x_dma.c if (of_device_is_compatible(dn, "fsl,mpc8308-dma")) { dn 924 drivers/dma/mpc512x_dma.c mdma->irq2 = irq_of_parse_and_map(dn, 1); dn 932 drivers/dma/mpc512x_dma.c retval = of_address_to_resource(dn, 0, &res); dn 841 drivers/dma/sirf-dma.c struct device_node *dn = op->dev.of_node; dn 862 drivers/dma/sirf-dma.c if (of_property_read_u32(dn, "cell-index", &id)) { dn 867 drivers/dma/sirf-dma.c sdma->irq = irq_of_parse_and_map(dn, 0); dn 879 drivers/dma/sirf-dma.c ret = of_address_to_resource(dn, 0, &res); dn 951 drivers/dma/sirf-dma.c ret = of_dma_controller_register(dn, of_dma_sirfsoc_xlate, sdma); dn 159 drivers/gpio/gpio-davinci.c struct device_node *dn = pdev->dev.of_node; dn 171 drivers/gpio/gpio-davinci.c ret = of_property_read_u32(dn, "ti,ngpio", &val); dn 177 drivers/gpio/gpio-davinci.c ret = of_property_read_u32(dn, "ti,davinci-gpio-unbanked", &val); dn 167 drivers/gpu/drm/exynos/exynos_drm_dpi.c struct device_node *dn = dev->of_node; dn 170 drivers/gpu/drm/exynos/exynos_drm_dpi.c ctx->panel_node = of_graph_get_remote_node(dn, FIMD_PORT_RGB, 0); dn 172 drivers/gpu/drm/exynos/exynos_drm_dpi.c np = of_get_child_by_name(dn, "display-timings"); dn 183 drivers/gpu/drm/exynos/exynos_drm_dpi.c ret = of_get_videomode(dn, vm, 0); dn 477 drivers/gpu/drm/nouveau/nouveau_connector.c struct device_node *cn, *dn = pci_device_to_OF_node(dev->pdev); dn 479 drivers/gpu/drm/nouveau/nouveau_connector.c if (!dn || dn 484 drivers/gpu/drm/nouveau/nouveau_connector.c for_each_child_of_node(dn, cn) { dn 57 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c struct device_node *dn; dn 59 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c if (!(dn = pci_device_to_OF_node(pdev))) dn 63 drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c if ((priv->data = of_get_property(dn, "NVDA,BMP", &priv->size))) dn 152 drivers/hwtracing/coresight/coresight-platform.c struct device_node *dn; dn 157 drivers/hwtracing/coresight/coresight-platform.c dn = of_parse_phandle(dev->of_node, "cpu", 0); dn 158 drivers/hwtracing/coresight/coresight-platform.c if (!dn) dn 161 drivers/hwtracing/coresight/coresight-platform.c cpu = of_cpu_node_to_id(dn); dn 162 drivers/hwtracing/coresight/coresight-platform.c of_node_put(dn); dn 238 drivers/i2c/i2c-core-of.c adap = of_find_i2c_adapter_by_node(rd->dn->parent); dn 242 drivers/i2c/i2c-core-of.c if (of_node_test_and_set_flag(rd->dn, OF_POPULATED)) { dn 247 drivers/i2c/i2c-core-of.c client = of_i2c_register_device(adap, rd->dn); dn 250 drivers/i2c/i2c-core-of.c rd->dn); dn 252 drivers/i2c/i2c-core-of.c of_node_clear_flag(rd->dn, OF_POPULATED); dn 259 drivers/i2c/i2c-core-of.c if (!of_node_check_flag(rd->dn, OF_POPULATED)) dn 263 drivers/i2c/i2c-core-of.c client = of_find_i2c_device_by_node(rd->dn); dn 98 drivers/ide/aec62xx.c pci_read_config_word(dev, 0x40|(2*drive->dn), &d_conf); dn 101 drivers/ide/aec62xx.c pci_write_config_word(dev, 0x40|(2*drive->dn), d_conf); dn 106 drivers/ide/aec62xx.c tmp1 = ((0x00 << (2*drive->dn)) | (ultra & ~(3 << (2*drive->dn)))); dn 108 drivers/ide/aec62xx.c tmp2 = ((ultra_conf << (2*drive->dn)) | (tmp1 & ~(3 << (2*drive->dn)))); dn 118 drivers/ide/aec62xx.c u8 unit = drive->dn & 1; dn 126 drivers/ide/aec62xx.c pci_read_config_byte(dev, 0x40|drive->dn, &drive_conf); dn 128 drivers/ide/aec62xx.c pci_write_config_byte(dev, 0x40|drive->dn, drive_conf); dn 136 drivers/ide/ali14xx.c driveNum = (drive->hwif->index << 1) + (drive->dn & 1); dn 56 drivers/ide/alim15x3.c int shift = 4 * (drive->dn & 1); dn 70 drivers/ide/alim15x3.c u8 unit = drive->dn & 1, udma; dn 46 drivers/ide/amd74xx.c static void amd_set_speed(struct pci_dev *dev, u8 dn, u8 udma_mask, dn 52 drivers/ide/amd74xx.c t = (t & ~(3 << ((3 - dn) << 1))) | ((clamp_val(timing->setup, 1, 4) - 1) << ((3 - dn) << 1)); dn 55 drivers/ide/amd74xx.c pci_write_config_byte(dev, AMD_8BIT_TIMING + offset + (1 - (dn >> 1)), dn 58 drivers/ide/amd74xx.c pci_write_config_byte(dev, AMD_DRIVE_TIMING + offset + (3 - dn), dn 70 drivers/ide/amd74xx.c pci_write_config_byte(dev, AMD_UDMA_TIMING + offset + 3 - dn, t); dn 100 drivers/ide/amd74xx.c amd_set_speed(dev, drive->dn, udma_mask, &t); dn 56 drivers/ide/atiixp.c int timing_shift = (drive->dn ^ 1) * 8; dn 64 drivers/ide/atiixp.c pio_mode_data &= ~(0x07 << (drive->dn * 4)); dn 65 drivers/ide/atiixp.c pio_mode_data |= (pio << (drive->dn * 4)); dn 90 drivers/ide/atiixp.c int timing_shift = (drive->dn ^ 1) * 8; dn 102 drivers/ide/atiixp.c tmp16 &= ~(0x07 << (drive->dn * 4)); dn 103 drivers/ide/atiixp.c tmp16 |= ((speed & 0x07) << (drive->dn * 4)); dn 106 drivers/ide/atiixp.c udma_ctl |= (1 << drive->dn); dn 116 drivers/ide/atiixp.c udma_ctl &= ~(1 << drive->dn); dn 613 drivers/ide/cmd640.c unsigned int i = drive->hwif->channel * 2 + (drive->dn & 1); dn 69 drivers/ide/cmd64x.c if (drive->dn >= ARRAY_SIZE(drwtim_regs)) dn 92 drivers/ide/cmd64x.c pci_write_config_byte(dev, drwtim_regs[drive->dn], dn 124 drivers/ide/cmd64x.c (void) pci_read_config_byte (dev, arttim_regs[drive->dn], &arttim); dn 129 drivers/ide/cmd64x.c (void) pci_write_config_byte(dev, arttim_regs[drive->dn], arttim); dn 154 drivers/ide/cmd64x.c u8 unit = drive->dn & 0x01; dn 63 drivers/ide/cs5520.c int controller = drive->dn > 1 ? 1 : 0; dn 75 drivers/ide/cs5520.c pci_write_config_byte(pdev, 0x64 + 4*controller + (drive->dn&1), dn 79 drivers/ide/cs5520.c pci_write_config_byte(pdev, 0x66 + 4*controller + (drive->dn&1), dn 59 drivers/ide/cs5530.c outl(cs5530_pio_timings[format][pio], basereg + ((drive->dn & 1)<<3)); dn 119 drivers/ide/cs5530.c if ((drive-> dn & 1) == 0) { /* are we configuring drive0? */ dn 76 drivers/ide/cs5535.c u8 unit = drive->dn & 1; dn 83 drivers/ide/cs5536.c int dshift = (drive->dn & 1) ? IDE_D1_SHIFT : IDE_D0_SHIFT; dn 136 drivers/ide/cs5536.c int cshift = (drive->dn & 1) ? IDE_CAST_D1_SHIFT : IDE_CAST_D0_SHIFT; dn 179 drivers/ide/cs5536.c int dshift = (drive->dn & 1) ? IDE_D1_SHIFT : IDE_D0_SHIFT; dn 94 drivers/ide/cy82c693.c if (drive->dn > 1) { /* drive is on the secondary channel */ dn 112 drivers/ide/cy82c693.c if ((drive->dn & 1) == 0) { dn 145 drivers/ide/cy82c693.c if (drive->dn > 1) dn 633 drivers/ide/hpt366.c u8 itr_addr = 0x40 + (drive->dn * 4); dn 369 drivers/ide/ide-acpi.c DEBPRINT("call get_GTF, drive=%s port=%d\n", drive->name, drive->dn); dn 587 drivers/ide/ide-acpi.c drive->name, hwif->channel, drive->dn & 1); dn 591 drivers/ide/ide-acpi.c drive->dn & 1); dn 86 drivers/ide/ide-dma-sff.c u8 unit = drive->dn & 1; dn 17 drivers/ide/ide-pm.c if ((drive->dn & 1) == 0 || pair == NULL) dn 36 drivers/ide/ide-pm.c if ((drive->dn & 1) || pair == NULL) dn 71 drivers/ide/ide-pm.c if ((drive->dn & 1) == 0 || pair == NULL) { dn 408 drivers/ide/ide-probe.c if (drive->dn & 1) { dn 453 drivers/ide/ide-probe.c if (drive->dn & 1) { dn 655 drivers/ide/ide-probe.c if ((dev1->dn & 1) == 0 || (dev0->dev_flags & IDE_DFLAG_PRESENT) == 0) dn 967 drivers/ide/ide-probe.c unsigned int unit = drive->dn & 1; dn 1062 drivers/ide/ide-probe.c drive->dn = i + hwif->channel * 2; dn 209 drivers/ide/ide-proc.c ide_devset_rw_field(number, dn); dn 65 drivers/ide/it8172.c drive_enables &= drive->dn ? 0xc006 : 0xc060; dn 68 drivers/ide/it8172.c drive_enables |= 0x0004 << (drive->dn * 4); dn 71 drivers/ide/it8172.c drive_enables |= 0x0002 << (drive->dn * 4); dn 73 drivers/ide/it8172.c drive_timing &= drive->dn ? 0x00003f00 : 0x000fc000; dn 74 drivers/ide/it8172.c drive_timing |= timings[pio] << (drive->dn * 6 + 8); dn 83 drivers/ide/it8172.c int a_speed = 3 << (drive->dn * 4); dn 84 drivers/ide/it8172.c int u_flag = 1 << drive->dn; dn 94 drivers/ide/it8172.c u_speed = udma << (drive->dn * 4); dn 30 drivers/ide/it8213.c int is_slave = drive->dn & 1; dn 88 drivers/ide/it8213.c int a_speed = 3 << (drive->dn * 4); dn 89 drivers/ide/it8213.c int u_flag = 1 << drive->dn; dn 90 drivers/ide/it8213.c int v_flag = 0x01 << drive->dn; dn 91 drivers/ide/it8213.c int w_flag = 0x10 << drive->dn; dn 106 drivers/ide/it8213.c u_speed = min_t(u8, 2 - (udma & 1), udma) << (drive->dn * 4); dn 144 drivers/ide/it821x.c u8 unit = drive->dn & 1, conf; dn 175 drivers/ide/it821x.c u8 unit = drive->dn & 1, v; dn 244 drivers/ide/it821x.c u8 unit = drive->dn & 1, set_pio = pio; dn 286 drivers/ide/it821x.c u8 unit = drive->dn & 1, channel = hwif->channel, conf; dn 323 drivers/ide/it821x.c u8 unit = drive->dn & 1, channel = hwif->channel, conf; dn 365 drivers/ide/it821x.c u8 unit = drive->dn & 1; dn 388 drivers/ide/it821x.c u8 unit = drive->dn & 1; dn 142 drivers/ide/ns87415.c bit = 1 << (20 + (drive->dn & 1) + (hwif->channel << 1)); dn 143 drivers/ide/ns87415.c other = 1 << (20 + (1 - (drive->dn & 1)) + (hwif->channel << 1)); dn 114 drivers/ide/opti621.c write_reg(drive->dn & 1, MISC_REG); dn 180 drivers/ide/palm_bk3710.c int is_slave = drive->dn & 1; dn 197 drivers/ide/palm_bk3710.c int is_slave = drive->dn & 1; dn 131 drivers/ide/pdc202xx_new.c u8 adj = (drive->dn & 1) ? 0x08 : 0x00; dn 169 drivers/ide/pdc202xx_new.c u8 adj = (drive->dn & 1) ? 0x08 : 0x00; dn 28 drivers/ide/pdc202xx_old.c u8 drive_pci = 0x60 + (drive->dn << 2); dn 71 drivers/ide/piix.c int is_slave = drive->dn & 1; dn 141 drivers/ide/piix.c int a_speed = 3 << (drive->dn * 4); dn 142 drivers/ide/piix.c int u_flag = 1 << drive->dn; dn 143 drivers/ide/piix.c int v_flag = 0x01 << drive->dn; dn 144 drivers/ide/piix.c int w_flag = 0x10 << drive->dn; dn 161 drivers/ide/piix.c u_speed = min_t(u8, 2 - (udma & 1), udma) << (drive->dn * 4); dn 415 drivers/ide/pmac.c if (drive->dn & 1) dn 432 drivers/ide/pmac.c if (drive->dn & 1) { dn 503 drivers/ide/pmac.c timings = &pmif->timings[drive->dn & 1]; dn 778 drivers/ide/pmac.c u8 unit = drive->dn & 1; dn 1534 drivers/ide/pmac.c u8 unit = drive->dn & 1, ata4 = (pmif->kind == controller_kl_ata4); dn 312 drivers/ide/qd65xx.c ide_set_drivedata(drive, (void *)((drive->dn & 1) ? t2 : t1)); dn 91 drivers/ide/sc1200.c pci_write_config_dword(pdev, basereg + ((drive->dn & 1) << 3), dn 158 drivers/ide/sc1200.c if ((drive->dn & 1) == 0) { dn 118 drivers/ide/serverworks.c if (drive->dn >= ARRAY_SIZE(drive_pci)) dn 121 drivers/ide/serverworks.c pci_write_config_byte(dev, drive_pci[drive->dn], pio_modes[pio]); dn 128 drivers/ide/serverworks.c csb_pio &= ~(0x0f << (4 * drive->dn)); dn 129 drivers/ide/serverworks.c csb_pio |= (pio << (4 * drive->dn)); dn 143 drivers/ide/serverworks.c u8 unit = drive->dn & 1; dn 147 drivers/ide/serverworks.c if (drive->dn >= ARRAY_SIZE(drive_pci2)) dn 154 drivers/ide/serverworks.c ultra_enable &= ~(0x01 << drive->dn); dn 159 drivers/ide/serverworks.c ultra_enable |= (0x01 << drive->dn); dn 163 drivers/ide/serverworks.c pci_write_config_byte(dev, drive_pci2[drive->dn], dma_timing); dn 118 drivers/ide/siimage.c u8 unit = drive->dn & 1; dn 257 drivers/ide/siimage.c u8 unit = drive->dn & 1; dn 307 drivers/ide/siimage.c u8 mode = 0, unit = drive->dn & 1; dn 194 drivers/ide/sis5513.c return ((reg54 & 0x40000000) ? 0x70 : 0x40) + drive->dn * 4; dn 201 drivers/ide/sis5513.c u8 drive_pci = 0x40 + drive->dn * 2; dn 223 drivers/ide/sis5513.c u8 t1, drive_pci = 0x40 + drive->dn * 2; dn 284 drivers/ide/sis5513.c rw_prefetch = reg4bh & ~(0x11 << drive->dn); dn 287 drivers/ide/sis5513.c rw_prefetch |= 0x11 << drive->dn; dn 321 drivers/ide/sis5513.c u8 drive_pci = 0x40 + drive->dn * 2, reg = 0, i = chipset_family; dn 71 drivers/ide/sl82c105.c int reg = 0x44 + drive->dn * 4; dn 190 drivers/ide/sl82c105.c int reg = 0x44 + drive->dn * 4; dn 209 drivers/ide/sl82c105.c int reg = 0x44 + drive->dn * 4; dn 25 drivers/ide/slc90e66.c int is_slave = drive->dn & 1; dn 80 drivers/ide/slc90e66.c int sitre = 0, a_speed = 7 << (drive->dn * 4); dn 81 drivers/ide/slc90e66.c int u_speed = 0, u_flag = 1 << drive->dn; dn 92 drivers/ide/slc90e66.c u_speed = (speed - XFER_UDMA_0) << (drive->dn * 4); dn 19 drivers/ide/tc86c001.c unsigned long scr_port = hwif->config_data + (drive->dn ? 0x02 : 0x00); dn 76 drivers/ide/tc86c001.c unsigned long twcr_port = sc_base + (drive->dn ? 0x06 : 0x04); dn 116 drivers/ide/tc86c001.c unsigned long twcr_port = sc_base + (drive->dn ? 0x06 : 0x04); dn 30 drivers/ide/triflex.c u8 channel_offset = hwif->channel ? 0x74 : 0x70, unit = drive->dn & 1; dn 109 drivers/ide/tx4939ide.c int is_slave = drive->dn; dn 138 drivers/ide/tx4939ide.c if (drive->dn) { dn 203 drivers/ide/tx4939ide.c u8 unit = drive->dn; dn 306 drivers/ide/tx4939ide.c tx4939ide_writew(SECTOR_SIZE / 2, base, drive->dn ? dn 424 drivers/ide/tx4939ide.c u16 sysctl = hwif->select_data >> (drive->dn ? 16 : 0); dn 121 drivers/ide/via82cxxx.c static void via_set_speed(ide_hwif_t *hwif, u8 dn, struct ide_timing *timing) dn 130 drivers/ide/via82cxxx.c t = (t & ~(3 << ((3 - dn) << 1))) | ((clamp_val(timing->setup, 1, 4) - 1) << ((3 - dn) << 1)); dn 134 drivers/ide/via82cxxx.c pci_write_config_byte(dev, VIA_8BIT_TIMING + (1 - (dn >> 1)), dn 137 drivers/ide/via82cxxx.c pci_write_config_byte(dev, VIA_DRIVE_TIMING + (3 - dn), dn 151 drivers/ide/via82cxxx.c pci_read_config_byte(dev, VIA_UDMA_TIMING + 3 - dn, &udma_etc); dn 162 drivers/ide/via82cxxx.c pci_write_config_byte(dev, VIA_UDMA_TIMING + 3 - dn, udma_etc); dn 202 drivers/ide/via82cxxx.c via_set_speed(hwif, drive->dn, &t); dn 26 drivers/infiniband/hw/hfi1/aspm.c u32 up, dn; dn 35 drivers/infiniband/hw/hfi1/aspm.c pcie_capability_read_dword(dd->pcidev, PCI_EXP_LNKCAP, &dn); dn 36 drivers/infiniband/hw/hfi1/aspm.c dn = ASPM_L1_SUPPORTED(dn); dn 42 drivers/infiniband/hw/hfi1/aspm.c return (!!dn || is_ax(dd)) && !!up; dn 33 drivers/iommu/of_iommu.c int of_get_dma_window(struct device_node *dn, const char *prefix, int index, dn 40 drivers/iommu/of_iommu.c if (!dn || !addr || !size) dn 50 drivers/iommu/of_iommu.c dma_window = of_get_property(dn, propname, &bytes); dn 63 drivers/iommu/of_iommu.c prop = of_get_property(dn, addrname, NULL); dn 65 drivers/iommu/of_iommu.c prop = of_get_property(dn, "#address-cells", NULL); dn 67 drivers/iommu/of_iommu.c cells = prop ? be32_to_cpup(prop) : of_n_addr_cells(dn); dn 73 drivers/iommu/of_iommu.c prop = of_get_property(dn, sizename, NULL); dn 74 drivers/iommu/of_iommu.c cells = prop ? be32_to_cpup(prop) : of_n_size_cells(dn); dn 236 drivers/irqchip/irq-bcm6345-l1.c static int __init bcm6345_l1_init_one(struct device_node *dn, dn 245 drivers/irqchip/irq-bcm6345-l1.c if (of_address_to_resource(dn, idx, &res)) dn 269 drivers/irqchip/irq-bcm6345-l1.c cpu->parent_irq = irq_of_parse_and_map(dn, idx); dn 302 drivers/irqchip/irq-bcm6345-l1.c static int __init bcm6345_l1_of_init(struct device_node *dn, dn 314 drivers/irqchip/irq-bcm6345-l1.c ret = bcm6345_l1_init_one(dn, idx, intc); dn 329 drivers/irqchip/irq-bcm6345-l1.c intc->domain = irq_domain_add_linear(dn, IRQS_PER_WORD * intc->n_words, dn 244 drivers/irqchip/irq-bcm7038-l1.c static int __init bcm7038_l1_init_one(struct device_node *dn, dn 253 drivers/irqchip/irq-bcm7038-l1.c if (of_address_to_resource(dn, idx, &res)) dn 279 drivers/irqchip/irq-bcm7038-l1.c parent_irq = irq_of_parse_and_map(dn, idx); dn 285 drivers/irqchip/irq-bcm7038-l1.c if (of_property_read_bool(dn, "brcm,irq-can-wake")) dn 318 drivers/irqchip/irq-bcm7038-l1.c int __init bcm7038_l1_of_init(struct device_node *dn, dn 330 drivers/irqchip/irq-bcm7038-l1.c ret = bcm7038_l1_init_one(dn, idx, intc); dn 339 drivers/irqchip/irq-bcm7038-l1.c intc->domain = irq_domain_add_linear(dn, IRQS_PER_WORD * intc->n_words, dn 348 drivers/irqchip/irq-bcm7038-l1.c dn, IRQS_PER_WORD * intc->n_words); dn 108 drivers/irqchip/irq-bcm7120-l2.c static int bcm7120_l2_intc_init_one(struct device_node *dn, dn 116 drivers/irqchip/irq-bcm7120-l2.c parent_irq = irq_of_parse_and_map(dn, irq); dn 149 drivers/irqchip/irq-bcm7120-l2.c static int __init bcm7120_l2_intc_iomap_7120(struct device_node *dn, dn 154 drivers/irqchip/irq-bcm7120-l2.c data->map_base[0] = of_iomap(dn, 0); dn 165 drivers/irqchip/irq-bcm7120-l2.c ret = of_property_read_u32_array(dn, "brcm,int-fwd-mask", dn 173 drivers/irqchip/irq-bcm7120-l2.c data->map_mask_prop = of_get_property(dn, "brcm,int-map-mask", &ret); dn 183 drivers/irqchip/irq-bcm7120-l2.c static int __init bcm7120_l2_intc_iomap_3380(struct device_node *dn, dn 190 drivers/irqchip/irq-bcm7120-l2.c void __iomem *en = of_iomap(dn, map_idx + 0); dn 191 drivers/irqchip/irq-bcm7120-l2.c void __iomem *stat = of_iomap(dn, map_idx + 1); dn 214 drivers/irqchip/irq-bcm7120-l2.c static int __init bcm7120_l2_intc_probe(struct device_node *dn, dn 232 drivers/irqchip/irq-bcm7120-l2.c data->num_parent_irqs = of_irq_count(dn); dn 246 drivers/irqchip/irq-bcm7120-l2.c ret = iomap_regs_fn(dn, data); dn 251 drivers/irqchip/irq-bcm7120-l2.c ret = bcm7120_l2_intc_init_one(dn, data, irq, valid_mask); dn 256 drivers/irqchip/irq-bcm7120-l2.c data->domain = irq_domain_add_linear(dn, IRQS_PER_WORD * data->n_words, dn 271 drivers/irqchip/irq-bcm7120-l2.c dn->full_name, handle_level_irq, clr, 0, flags); dn 277 drivers/irqchip/irq-bcm7120-l2.c if (of_property_read_bool(dn, "brcm,irq-can-wake")) dn 319 drivers/irqchip/irq-bcm7120-l2.c intc_name, dn, data->num_parent_irqs); dn 336 drivers/irqchip/irq-bcm7120-l2.c static int __init bcm7120_l2_intc_probe_7120(struct device_node *dn, dn 339 drivers/irqchip/irq-bcm7120-l2.c return bcm7120_l2_intc_probe(dn, parent, bcm7120_l2_intc_iomap_7120, dn 343 drivers/irqchip/irq-bcm7120-l2.c static int __init bcm7120_l2_intc_probe_3380(struct device_node *dn, dn 346 drivers/irqchip/irq-bcm7120-l2.c return bcm7120_l2_intc_probe(dn, parent, bcm7120_l2_intc_iomap_3380, dn 678 drivers/isdn/mISDN/socket.c struct mISDN_devrename dn; dn 679 drivers/isdn/mISDN/socket.c if (copy_from_user(&dn, (void __user *)arg, dn 680 drivers/isdn/mISDN/socket.c sizeof(dn))) { dn 684 drivers/isdn/mISDN/socket.c dn.name[sizeof(dn.name) - 1] = '\0'; dn 685 drivers/isdn/mISDN/socket.c dev = get_mdevice(dn.id); dn 687 drivers/isdn/mISDN/socket.c err = device_rename(&dev->dev, dn.name); dn 1390 drivers/mailbox/bcm-pdc-mailbox.c struct device_node *dn = pdev->dev.of_node; dn 1404 drivers/mailbox/bcm-pdc-mailbox.c pdcs->pdc_irq = irq_of_parse_and_map(dn, 0); dn 1496 drivers/mailbox/bcm-pdc-mailbox.c struct device_node *dn = pdev->dev.of_node; dn 1501 drivers/mailbox/bcm-pdc-mailbox.c err = of_property_read_u32(dn, "brcm,rx-status-len", dn 1508 drivers/mailbox/bcm-pdc-mailbox.c pdcs->use_bcm_hdr = of_property_read_bool(dn, "brcm,use-bcm-hdr"); dn 2409 drivers/md/raid10.c int dn = r10_bio->devs[r10_bio->read_slot].devnum; dn 2410 drivers/md/raid10.c rdev = conf->mirrors[dn].rdev; dn 297 drivers/media/rc/mtk-cir.c struct device_node *dn = dev->of_node; dn 344 drivers/media/rc/mtk-cir.c map_name = of_get_property(dn, "linux,rc-map-name", NULL); dn 153 drivers/media/rc/sunxi-cir.c struct device_node *dn = dev->of_node; dn 186 drivers/media/rc/sunxi-cir.c of_property_read_u32(dn, "clock-frequency", &b_clk_freq); dn 239 drivers/media/rc/sunxi-cir.c ir->map_name = of_get_property(dn, "linux,rc-map-name", NULL); dn 98 drivers/misc/cxl/base.c int cxl_update_properties(struct device_node *dn, dn 101 drivers/misc/cxl/base.c return of_update_property(dn, new_prop); dn 859 drivers/misc/cxl/cxl.h int cxl_update_properties(struct device_node *dn, struct property *new_prop); dn 67 drivers/misc/cxl/flash.c static int update_property(struct device_node *dn, const char *name, dn 94 drivers/misc/cxl/flash.c rc = cxl_update_properties(dn, new_prop); dn 96 drivers/misc/cxl/flash.c dn, name, vd, be32_to_cpu(*val)); dn 109 drivers/misc/cxl/flash.c struct device_node *dn; dn 125 drivers/misc/cxl/flash.c dn = of_find_node_by_phandle(be32_to_cpu(phandle)); dn 126 drivers/misc/cxl/flash.c if (!dn) { dn 157 drivers/misc/cxl/flash.c ret = update_property(dn, prop_name, vd, dn 168 drivers/misc/cxl/flash.c of_node_put(dn); dn 2367 drivers/mtd/nand/raw/brcmnand/brcmnand.c static int brcmnand_init_cs(struct brcmnand_host *host, struct device_node *dn) dn 2376 drivers/mtd/nand/raw/brcmnand/brcmnand.c ret = of_property_read_u32(dn, "reg", &host->cs); dn 2385 drivers/mtd/nand/raw/brcmnand/brcmnand.c nand_set_flash_node(chip, dn); dn 2543 drivers/mtd/nand/raw/brcmnand/brcmnand.c struct device_node *dn = dev->of_node, *child; dn 2549 drivers/mtd/nand/raw/brcmnand/brcmnand.c if (!dn) dn 2552 drivers/mtd/nand/raw/brcmnand/brcmnand.c if (!of_match_node(brcmnand_of_match, dn)) dn 2699 drivers/mtd/nand/raw/brcmnand/brcmnand.c for_each_available_child_of_node(dn, child) { dn 273 drivers/mtd/nand/raw/mpc5121_nfc.c struct device_node *dn; dn 275 drivers/mtd/nand/raw/mpc5121_nfc.c dn = of_find_compatible_node(NULL, NULL, "fsl,mpc5121ads-cpld"); dn 276 drivers/mtd/nand/raw/mpc5121_nfc.c if (dn) { dn 277 drivers/mtd/nand/raw/mpc5121_nfc.c prv->csreg = of_iomap(dn, 0); dn 278 drivers/mtd/nand/raw/mpc5121_nfc.c of_node_put(dn); dn 607 drivers/mtd/nand/raw/mpc5121_nfc.c struct device_node *dn = op->dev.of_node; dn 639 drivers/mtd/nand/raw/mpc5121_nfc.c nand_set_flash_node(chip, dn); dn 649 drivers/mtd/nand/raw/mpc5121_nfc.c prv->irq = irq_of_parse_and_map(dn, 0); dn 655 drivers/mtd/nand/raw/mpc5121_nfc.c retval = of_address_to_resource(dn, 0, &res); dn 661 drivers/mtd/nand/raw/mpc5121_nfc.c chips_no = of_get_property(dn, "chips", &len); dn 4944 drivers/mtd/nand/raw/nand_base.c struct device_node *dn = nand_get_flash_node(chip); dn 4947 drivers/mtd/nand/raw/nand_base.c if (!dn) dn 4950 drivers/mtd/nand/raw/nand_base.c if (of_get_nand_bus_width(dn) == 16) dn 4953 drivers/mtd/nand/raw/nand_base.c if (of_property_read_bool(dn, "nand-is-boot-medium")) dn 4956 drivers/mtd/nand/raw/nand_base.c if (of_get_nand_on_flash_bbt(dn)) dn 4959 drivers/mtd/nand/raw/nand_base.c ecc_mode = of_get_nand_ecc_mode(dn); dn 4960 drivers/mtd/nand/raw/nand_base.c ecc_algo = of_get_nand_ecc_algo(dn); dn 4961 drivers/mtd/nand/raw/nand_base.c ecc_strength = of_get_nand_ecc_strength(dn); dn 4962 drivers/mtd/nand/raw/nand_base.c ecc_step = of_get_nand_ecc_step_size(dn); dn 4976 drivers/mtd/nand/raw/nand_base.c if (of_property_read_bool(dn, "nand-ecc-maximize")) dn 2775 drivers/mtd/nand/raw/qcom_nandc.c struct device_node *dn) dn 2782 drivers/mtd/nand/raw/qcom_nandc.c ret = of_property_read_u32(dn, "reg", &host->cs); dn 2788 drivers/mtd/nand/raw/qcom_nandc.c nand_set_flash_node(chip, dn); dn 2846 drivers/mtd/nand/raw/qcom_nandc.c struct device_node *dn = dev->of_node, *child; dn 2850 drivers/mtd/nand/raw/qcom_nandc.c for_each_available_child_of_node(dn, child) { dn 1791 drivers/mtd/nand/raw/stm32_fmc2_nand.c struct device_node *dn) dn 1797 drivers/mtd/nand/raw/stm32_fmc2_nand.c if (!of_get_property(dn, "reg", &nand->ncs)) dn 1807 drivers/mtd/nand/raw/stm32_fmc2_nand.c ret = of_property_read_u32_index(dn, "reg", i, &cs); dn 1828 drivers/mtd/nand/raw/stm32_fmc2_nand.c nand_set_flash_node(&nand->chip, dn); dn 1835 drivers/mtd/nand/raw/stm32_fmc2_nand.c struct device_node *dn = fmc2->dev->of_node; dn 1837 drivers/mtd/nand/raw/stm32_fmc2_nand.c int nchips = of_get_child_count(dn); dn 1850 drivers/mtd/nand/raw/stm32_fmc2_nand.c for_each_child_of_node(dn, child) { dn 841 drivers/net/can/dev.c struct device_node *dn; dn 846 drivers/net/can/dev.c dn = of_get_child_by_name(np, "can-transceiver"); dn 847 drivers/net/can/dev.c if (!dn) dn 850 drivers/net/can/dev.c ret = of_property_read_u32(dn, "max-bitrate", &priv->bitrate_max); dn 851 drivers/net/can/dev.c of_node_put(dn); dn 590 drivers/net/dsa/b53/b53_srab.c struct device_node *dn = pdev->dev.of_node; dn 595 drivers/net/dsa/b53/b53_srab.c if (dn) dn 596 drivers/net/dsa/b53/b53_srab.c of_id = of_match_node(b53_srab_of_match, dn); dn 382 drivers/net/dsa/bcm_sf2.c struct device_node *dn) dn 390 drivers/net/dsa/bcm_sf2.c for_each_available_child_of_node(dn, port) { dn 417 drivers/net/dsa/bcm_sf2.c struct device_node *dn; dn 422 drivers/net/dsa/bcm_sf2.c dn = of_find_compatible_node(NULL, NULL, "brcm,unimac-mdio"); dn 423 drivers/net/dsa/bcm_sf2.c priv->master_mii_bus = of_mdio_find_bus(dn); dn 428 drivers/net/dsa/bcm_sf2.c priv->master_mii_dn = dn; dn 440 drivers/net/dsa/bcm_sf2.c priv->slave_mii_bus->dev.of_node = dn; dn 463 drivers/net/dsa/bcm_sf2.c if (err && dn) dn 464 drivers/net/dsa/bcm_sf2.c of_node_put(dn); dn 1051 drivers/net/dsa/bcm_sf2.c struct device_node *dn = pdev->dev.of_node; dn 1081 drivers/net/dsa/bcm_sf2.c of_id = of_match_node(bcm_sf2_of_match, dn); dn 1119 drivers/net/dsa/bcm_sf2.c ports = of_find_node_by_name(dn, "ports"); dn 1125 drivers/net/dsa/bcm_sf2.c priv->irq0 = irq_of_parse_and_map(dn, 0); dn 1126 drivers/net/dsa/bcm_sf2.c priv->irq1 = irq_of_parse_and_map(dn, 1); dn 1190 drivers/net/dsa/bcm_sf2.c if (of_property_read_u32(dn, "brcm,num-gphy", dn 1178 drivers/net/dsa/mt7530.c struct device_node *dn; dn 1186 drivers/net/dsa/mt7530.c dn = ds->ports[MT7530_CPU_PORT].master->dev.of_node->parent; dn 1272 drivers/net/dsa/mt7530.c interface = of_get_phy_mode(ds->ports[5].dn); dn 1275 drivers/net/dsa/mt7530.c for_each_child_of_node(dn, mac_np) { dn 1551 drivers/net/dsa/mt7530.c struct device_node *dn; dn 1553 drivers/net/dsa/mt7530.c dn = mdiodev->dev.of_node; dn 1566 drivers/net/dsa/mt7530.c priv->mcm = of_property_read_bool(dn, "mediatek,mcm"); dn 664 drivers/net/dsa/qca8k.c phy_mode = of_get_phy_mode(ds->ports[QCA8K_CPU_PORT].dn); dn 70 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c static void xgene_cle_dn_to_hw(const struct xgene_cle_ptree_ewdn *dn, dn 77 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c buf[j++] = SET_VAL(CLE_DN_TYPE, dn->node_type) | dn 78 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c SET_VAL(CLE_DN_LASTN, dn->last_node) | dn 79 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c SET_VAL(CLE_DN_HLS, dn->hdr_len_store) | dn 80 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c SET_VAL(CLE_DN_EXT, dn->hdr_extn) | dn 81 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c SET_VAL(CLE_DN_BSTOR, dn->byte_store) | dn 82 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c SET_VAL(CLE_DN_SBSTOR, dn->search_byte_store) | dn 83 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c SET_VAL(CLE_DN_RPTR, dn->result_pointer); dn 85 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c for (i = 0; i < dn->num_branches; i++) { dn 86 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c br = &dn->branch[i]; dn 567 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c const struct xgene_cle_ptree_ewdn *dn = xgene_init_ptree_dn; dn 575 drivers/net/ethernet/apm/xgene/xgene_enet_cle.c xgene_cle_dn_to_hw(&dn[i], buf, cle->jump_bytes); dn 2421 drivers/net/ethernet/broadcom/bcmsysport.c struct device_node *dn; dn 2427 drivers/net/ethernet/broadcom/bcmsysport.c dn = pdev->dev.of_node; dn 2428 drivers/net/ethernet/broadcom/bcmsysport.c of_id = of_match_node(bcm_sysport_of_match, dn); dn 2436 drivers/net/ethernet/broadcom/bcmsysport.c if (of_property_read_u32(dn, "systemport,num-txq", &txq)) dn 2438 drivers/net/ethernet/broadcom/bcmsysport.c if (of_property_read_u32(dn, "systemport,num-rxq", &rxq)) dn 2484 drivers/net/ethernet/broadcom/bcmsysport.c priv->phy_interface = of_get_phy_mode(dn); dn 2492 drivers/net/ethernet/broadcom/bcmsysport.c if (of_phy_is_fixed_link(dn)) { dn 2493 drivers/net/ethernet/broadcom/bcmsysport.c ret = of_phy_register_fixed_link(dn); dn 2499 drivers/net/ethernet/broadcom/bcmsysport.c priv->phy_dn = dn; dn 2503 drivers/net/ethernet/broadcom/bcmsysport.c macaddr = of_get_mac_address(dn); dn 2566 drivers/net/ethernet/broadcom/bcmsysport.c if (of_phy_is_fixed_link(dn)) dn 2567 drivers/net/ethernet/broadcom/bcmsysport.c of_phy_deregister_fixed_link(dn); dn 2577 drivers/net/ethernet/broadcom/bcmsysport.c struct device_node *dn = pdev->dev.of_node; dn 2584 drivers/net/ethernet/broadcom/bcmsysport.c if (of_phy_is_fixed_link(dn)) dn 2585 drivers/net/ethernet/broadcom/bcmsysport.c of_phy_deregister_fixed_link(dn); dn 3440 drivers/net/ethernet/broadcom/genet/bcmgenet.c struct device_node *dn = pdev->dev.of_node; dn 3457 drivers/net/ethernet/broadcom/genet/bcmgenet.c if (dn) { dn 3458 drivers/net/ethernet/broadcom/genet/bcmgenet.c of_id = of_match_node(bcmgenet_match, dn); dn 3473 drivers/net/ethernet/broadcom/genet/bcmgenet.c if (dn) { dn 3474 drivers/net/ethernet/broadcom/genet/bcmgenet.c macaddr = of_get_mac_address(dn); dn 3557 drivers/net/ethernet/broadcom/genet/bcmgenet.c if (dn && !of_property_read_string(dn, "phy-mode", &phy_mode_str) && dn 311 drivers/net/ethernet/broadcom/genet/bcmmii.c struct device_node *dn = priv->pdev->dev.of_node; dn 326 drivers/net/ethernet/broadcom/genet/bcmmii.c if (dn) { dn 372 drivers/net/ethernet/broadcom/genet/bcmmii.c struct device_node *dn = priv->pdev->dev.of_node; dn 380 drivers/net/ethernet/broadcom/genet/bcmmii.c priv->mdio_dn = of_get_compatible_child(dn, compat); dn 422 drivers/net/ethernet/broadcom/genet/bcmmii.c struct device_node *dn = pdev->dev.of_node; dn 443 drivers/net/ethernet/broadcom/genet/bcmmii.c if (dn) dn 444 drivers/net/ethernet/broadcom/genet/bcmmii.c id = of_alias_get_id(dn, "eth"); dn 479 drivers/net/ethernet/broadcom/genet/bcmmii.c struct device_node *dn = priv->pdev->dev.of_node; dn 486 drivers/net/ethernet/broadcom/genet/bcmmii.c priv->phy_dn = of_parse_phandle(dn, "phy-handle", 0); dn 491 drivers/net/ethernet/broadcom/genet/bcmmii.c if (!priv->phy_dn && of_phy_is_fixed_link(dn)) { dn 492 drivers/net/ethernet/broadcom/genet/bcmmii.c ret = of_phy_register_fixed_link(dn); dn 496 drivers/net/ethernet/broadcom/genet/bcmmii.c priv->phy_dn = of_node_get(dn); dn 500 drivers/net/ethernet/broadcom/genet/bcmmii.c phy_mode = of_get_phy_mode(dn); dn 517 drivers/net/ethernet/broadcom/genet/bcmmii.c phydev = of_phy_find_device(dn); dn 581 drivers/net/ethernet/broadcom/genet/bcmmii.c struct device_node *dn = priv->pdev->dev.of_node; dn 583 drivers/net/ethernet/broadcom/genet/bcmmii.c if (dn) dn 612 drivers/net/ethernet/broadcom/genet/bcmmii.c struct device_node *dn = priv->pdev->dev.of_node; dn 614 drivers/net/ethernet/broadcom/genet/bcmmii.c if (of_phy_is_fixed_link(dn)) dn 615 drivers/net/ethernet/broadcom/genet/bcmmii.c of_phy_deregister_fixed_link(dn); dn 2885 drivers/net/ethernet/ibm/ehea/ehea_main.c struct device_node *dn) dn 2889 drivers/net/ethernet/ibm/ehea/ehea_main.c port->ofdev.dev.of_node = of_node_get(dn); dn 2937 drivers/net/ethernet/ibm/ehea/ehea_main.c struct device_node *dn) dn 2980 drivers/net/ethernet/ibm/ehea/ehea_main.c port_dev = ehea_register_port(port, dn); dn 439 drivers/net/ethernet/marvell/mvneta.c struct device_node *dn; dn 1053 drivers/net/ethernet/marvell/mvneta.c struct device_node *dn = pdev->dev.of_node; dn 1064 drivers/net/ethernet/marvell/mvneta.c if (of_property_read_u32(dn, "bm,pool-long", &long_pool_id)) { dn 1084 drivers/net/ethernet/marvell/mvneta.c if (of_property_read_u32(dn, "bm,pool-short", &short_pool_id)) dn 3659 drivers/net/ethernet/marvell/mvneta.c int err = phylink_of_phy_connect(pp->phylink, pp->dn, 0); dn 4486 drivers/net/ethernet/marvell/mvneta.c struct device_node *dn = pdev->dev.of_node; dn 4505 drivers/net/ethernet/marvell/mvneta.c dev->irq = irq_of_parse_and_map(dn, 0); dn 4509 drivers/net/ethernet/marvell/mvneta.c phy_mode = of_get_phy_mode(dn); dn 4516 drivers/net/ethernet/marvell/mvneta.c comphy = devm_of_phy_get(&pdev->dev, dn, NULL); dn 4546 drivers/net/ethernet/marvell/mvneta.c pp->dn = dn; dn 4552 drivers/net/ethernet/marvell/mvneta.c if (of_device_is_compatible(dn, "marvell,armada-3700-neta")) dn 4589 drivers/net/ethernet/marvell/mvneta.c dt_mac_addr = of_get_mac_address(dn); dn 4604 drivers/net/ethernet/marvell/mvneta.c if (!of_property_read_u32(dn, "tx-csum-limit", &tx_csum_limit)) { dn 4612 drivers/net/ethernet/marvell/mvneta.c } else if (of_device_is_compatible(dn, "marvell,armada-370-neta")) { dn 4638 drivers/net/ethernet/marvell/mvneta.c bm_node = of_parse_phandle(dn, "buffer-manager", 0); dn 285 drivers/net/ethernet/marvell/mvneta_bm.c struct device_node *dn = priv->pdev->dev.of_node; dn 308 drivers/net/ethernet/marvell/mvneta_bm.c if (of_property_read_u32(dn, prop, &size)) { dn 334 drivers/net/ethernet/marvell/mvneta_bm.c if (of_property_read_u32(dn, prop, &bm_pool->pkt_size)) dn 374 drivers/net/ethernet/marvell/mvneta_bm.c static int mvneta_bm_get_sram(struct device_node *dn, dn 377 drivers/net/ethernet/marvell/mvneta_bm.c priv->bppi_pool = of_gen_pool_get(dn, "internal-mem", 0); dn 412 drivers/net/ethernet/marvell/mvneta_bm.c struct device_node *dn = pdev->dev.of_node; dn 431 drivers/net/ethernet/marvell/mvneta_bm.c err = mvneta_bm_get_sram(dn, priv); dn 446 drivers/net/ethernet/marvell/mvneta_bm.c dn->data = priv; dn 173 drivers/net/ethernet/pasemi/pasemi_mac.c struct device_node *dn = pci_device_to_OF_node(pdev); dn 178 drivers/net/ethernet/pasemi/pasemi_mac.c if (!dn) { dn 184 drivers/net/ethernet/pasemi/pasemi_mac.c maddr = of_get_property(dn, "local-mac-address", &len); dn 196 drivers/net/ethernet/pasemi/pasemi_mac.c maddr = of_get_property(dn, "mac-address", NULL); dn 1040 drivers/net/ethernet/pasemi/pasemi_mac.c struct device_node *dn, *phy_dn; dn 1043 drivers/net/ethernet/pasemi/pasemi_mac.c dn = pci_device_to_OF_node(mac->pdev); dn 1044 drivers/net/ethernet/pasemi/pasemi_mac.c phy_dn = of_parse_phandle(dn, "phy-handle", 0); dn 1842 drivers/net/ethernet/toshiba/spider_net.c struct device_node *dn; dn 1866 drivers/net/ethernet/toshiba/spider_net.c dn = pci_device_to_OF_node(card->pdev); dn 1867 drivers/net/ethernet/toshiba/spider_net.c if (!dn) dn 1870 drivers/net/ethernet/toshiba/spider_net.c fw_prop = of_get_property(dn, "firmware", &fw_size); dn 2240 drivers/net/ethernet/toshiba/spider_net.c struct device_node *dn; dn 2274 drivers/net/ethernet/toshiba/spider_net.c dn = pci_device_to_OF_node(card->pdev); dn 2275 drivers/net/ethernet/toshiba/spider_net.c if (!dn) dn 2278 drivers/net/ethernet/toshiba/spider_net.c mac = of_get_property(dn, "local-mac-address", NULL); dn 256 drivers/net/phy/phylink.c struct fwnode_handle *dn; dn 259 drivers/net/phy/phylink.c dn = fwnode_get_named_child_node(fwnode, "fixed-link"); dn 260 drivers/net/phy/phylink.c if (dn || fwnode_property_present(fwnode, "fixed-link")) dn 262 drivers/net/phy/phylink.c fwnode_handle_put(dn); dn 841 drivers/net/phy/phylink.c int phylink_of_phy_connect(struct phylink *pl, struct device_node *dn, dn 854 drivers/net/phy/phylink.c phy_node = of_parse_phandle(dn, "phy-handle", 0); dn 856 drivers/net/phy/phylink.c phy_node = of_parse_phandle(dn, "phy", 0); dn 858 drivers/net/phy/phylink.c phy_node = of_parse_phandle(dn, "phy-device", 0); dn 1580 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c static int up, dn, m, n, wait_cnt; dn 1669 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c dn = 0; dn 1681 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c up, dn, m, n, wait_cnt); dn 1687 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c dn--; dn 1689 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c if (dn <= 0) dn 1690 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c dn = 0; dn 1696 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c dn = 0; dn 1703 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c dn++; dn 1708 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c if (dn == 2) { dn 1719 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c dn = 0; dn 1736 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8192e2ant.c dn = 0; dn 1422 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c static s32 up, dn, m, n, wait_count; dn 1449 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c dn = 0; dn 1467 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c dn = 0; dn 1486 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c dn--; dn 1488 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c if (dn <= 0) dn 1489 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c dn = 0; dn 1498 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c dn = 0; dn 1506 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c dn++; dn 1511 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c if (dn == 2) { dn 1530 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c dn = 0; dn 1555 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b1ant.c dn = 0; dn 1784 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c static s32 up, dn, m, n, wait_count; dn 1891 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c dn = 0; dn 1908 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c up, dn, m, n, wait_count); dn 1914 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c dn--; dn 1916 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c if (dn <= 0) dn 1917 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c dn = 0; dn 1926 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c dn = 0; dn 1933 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c dn++; dn 1938 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c if (dn == 2) { dn 1957 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c dn = 0; dn 1982 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c dn = 0; dn 1702 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c static long up, dn, m, n, wait_count; dn 1796 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c dn = 0; dn 1808 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c (int)up, (int)dn, (int)m, (int)n, (int)wait_count); dn 1815 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c dn--; dn 1817 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c if (dn <= 0) dn 1818 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c dn = 0; dn 1827 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c dn = 0; dn 1835 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c dn++; dn 1840 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c if (dn == 2) { dn 1856 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c dn = 0; dn 1878 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c dn = 0; dn 833 drivers/of/address.c struct device_node *dn = of_find_matching_node(from, matches); dn 836 drivers/of/address.c while (dn) { dn 837 drivers/of/address.c if (!of_address_to_resource(dn, 0, &res) && dn 839 drivers/of/address.c return dn; dn 841 drivers/of/address.c dn = of_find_matching_node(dn, matches); dn 2173 drivers/of/base.c bool of_console_check(struct device_node *dn, char *name, int index) dn 2175 drivers/of/base.c if (!dn || dn != of_stdout || console_set_on_cmdline) dn 86 drivers/of/dynamic.c pr->dn); dn 92 drivers/of/dynamic.c pr->dn, pr->prop->name); dn 119 drivers/of/dynamic.c prop = of_find_property(pr->dn, "status", NULL); dn 197 drivers/of/dynamic.c pr.dn = np; dn 239 drivers/of/dynamic.c rd.dn = np; dn 292 drivers/of/dynamic.c rd.dn = np; dn 547 drivers/of/dynamic.c rd.dn = ce->np; dn 429 drivers/of/of_mdio.c struct device_node *dn; dn 434 drivers/of/of_mdio.c dn = of_get_child_by_name(np, "fixed-link"); dn 435 drivers/of/of_mdio.c if (dn) { dn 436 drivers/of/of_mdio.c of_node_put(dn); dn 667 drivers/of/platform.c if (!of_node_check_flag(rd->dn->parent, OF_POPULATED_BUS)) dn 671 drivers/of/platform.c if (of_node_check_flag(rd->dn, OF_POPULATED)) dn 675 drivers/of/platform.c pdev_parent = of_find_device_by_node(rd->dn->parent); dn 676 drivers/of/platform.c pdev = of_platform_device_create(rd->dn, NULL, dn 682 drivers/of/platform.c __func__, rd->dn); dn 691 drivers/of/platform.c if (!of_node_check_flag(rd->dn, OF_POPULATED)) dn 695 drivers/of/platform.c pdev = of_find_device_by_node(rd->dn); dn 103 drivers/pci/controller/pci-mvebu.c struct device_node *dn; dn 932 drivers/pci/controller/pci-mvebu.c of_property_read_u32(port->dn, "reset-delay-us", dn 1090 drivers/pci/controller/pci-mvebu.c port->dn = child; dn 1098 drivers/pci/controller/pci-mvebu.c child = port->dn; dn 608 drivers/pci/controller/pci-xgene.c struct device_node *dn = dev->of_node; dn 622 drivers/pci/controller/pci-xgene.c port->node = of_node_get(dn); dn 30 drivers/pci/hotplug/pnv_php.c static void pnv_php_register(struct device_node *dn); dn 31 drivers/pci/hotplug/pnv_php.c static void pnv_php_unregister_one(struct device_node *dn); dn 32 drivers/pci/hotplug/pnv_php.c static void pnv_php_unregister(struct device_node *dn); dn 87 drivers/pci/hotplug/pnv_php.c static struct pnv_php_slot *pnv_php_match(struct device_node *dn, dn 92 drivers/pci/hotplug/pnv_php.c if (php_slot->dn == dn) { dn 98 drivers/pci/hotplug/pnv_php.c target = pnv_php_match(dn, tmp); dn 106 drivers/pci/hotplug/pnv_php.c struct pnv_php_slot *pnv_php_find_slot(struct device_node *dn) dn 113 drivers/pci/hotplug/pnv_php.c php_slot = pnv_php_match(dn, tmp); dn 129 drivers/pci/hotplug/pnv_php.c static void pnv_php_rmv_pdns(struct device_node *dn) dn 133 drivers/pci/hotplug/pnv_php.c for_each_child_of_node(dn, child) { dn 153 drivers/pci/hotplug/pnv_php.c struct device_node *dn; dn 156 drivers/pci/hotplug/pnv_php.c for_each_child_of_node(parent, dn) { dn 157 drivers/pci/hotplug/pnv_php.c pnv_php_detach_device_nodes(dn); dn 159 drivers/pci/hotplug/pnv_php.c of_node_put(dn); dn 160 drivers/pci/hotplug/pnv_php.c refcount = kref_read(&dn->kobj.kref); dn 163 drivers/pci/hotplug/pnv_php.c refcount, dn); dn 165 drivers/pci/hotplug/pnv_php.c of_detach_node(dn); dn 171 drivers/pci/hotplug/pnv_php.c pnv_php_rmv_pdns(php_slot->dn); dn 179 drivers/pci/hotplug/pnv_php.c pnv_php_detach_device_nodes(php_slot->dn); dn 185 drivers/pci/hotplug/pnv_php.c php_slot->dn->child = NULL; dn 216 drivers/pci/hotplug/pnv_php.c struct device_node *dn) dn 221 drivers/pci/hotplug/pnv_php.c for_each_child_of_node(dn, child) { dn 238 drivers/pci/hotplug/pnv_php.c static void *pnv_php_add_one_pdn(struct device_node *dn, void *data) dn 243 drivers/pci/hotplug/pnv_php.c pdn = pci_add_device_node_info(hose, dn); dn 254 drivers/pci/hotplug/pnv_php.c pci_traverse_device_nodes(slot->dn, pnv_php_add_one_pdn, hose); dn 272 drivers/pci/hotplug/pnv_php.c ret = pnv_pci_get_device_tree(php_slot->dn->phandle, fdt1, 0x10000); dn 285 drivers/pci/hotplug/pnv_php.c dt = of_fdt_unflatten_tree(fdt, php_slot->dn, NULL); dn 294 drivers/pci/hotplug/pnv_php.c pnv_php_reverse_nodes(php_slot->dn); dn 295 drivers/pci/hotplug/pnv_php.c ret = pnv_php_populate_changeset(&php_slot->ocs, php_slot->dn); dn 297 drivers/pci/hotplug/pnv_php.c pnv_php_reverse_nodes(php_slot->dn); dn 303 drivers/pci/hotplug/pnv_php.c php_slot->dn->child = NULL; dn 321 drivers/pci/hotplug/pnv_php.c php_slot->dn->child = NULL; dn 344 drivers/pci/hotplug/pnv_php.c if (be64_to_cpu(msg.params[1]) != php_slot->dn->phandle || dn 518 drivers/pci/hotplug/pnv_php.c pnv_php_register(php_slot->dn); dn 578 drivers/pci/hotplug/pnv_php.c pnv_php_unregister(php_slot->dn); dn 611 drivers/pci/hotplug/pnv_php.c static struct pnv_php_slot *pnv_php_alloc_slot(struct device_node *dn) dn 619 drivers/pci/hotplug/pnv_php.c ret = of_property_read_string(dn, "ibm,slot-label", &label); dn 623 drivers/pci/hotplug/pnv_php.c if (pnv_pci_get_slot_id(dn, &id)) dn 626 drivers/pci/hotplug/pnv_php.c bus = pci_find_bus_by_node(dn); dn 640 drivers/pci/hotplug/pnv_php.c if (dn->child && PCI_DN(dn->child)) dn 641 drivers/pci/hotplug/pnv_php.c php_slot->slot_no = PCI_SLOT(PCI_DN(dn->child)->devfn); dn 647 drivers/pci/hotplug/pnv_php.c php_slot->dn = dn; dn 663 drivers/pci/hotplug/pnv_php.c struct device_node *dn = php_slot->dn; dn 668 drivers/pci/hotplug/pnv_php.c parent = pnv_php_find_slot(php_slot->dn); dn 683 drivers/pci/hotplug/pnv_php.c while ((dn = of_get_parent(dn))) { dn 684 drivers/pci/hotplug/pnv_php.c if (!PCI_DN(dn)) { dn 685 drivers/pci/hotplug/pnv_php.c of_node_put(dn); dn 689 drivers/pci/hotplug/pnv_php.c parent = pnv_php_find_slot(dn); dn 691 drivers/pci/hotplug/pnv_php.c of_node_put(dn); dn 695 drivers/pci/hotplug/pnv_php.c of_node_put(dn); dn 843 drivers/pci/hotplug/pnv_php.c ret = of_property_read_u32(php_slot->dn, "ibm,slot-broken-pdc", dn 921 drivers/pci/hotplug/pnv_php.c static int pnv_php_register_one(struct device_node *dn) dn 928 drivers/pci/hotplug/pnv_php.c ret = of_property_read_u32(dn, "ibm,slot-pluggable", &prop32); dn 932 drivers/pci/hotplug/pnv_php.c ret = of_property_read_u32(dn, "ibm,reset-by-firmware", &prop32); dn 936 drivers/pci/hotplug/pnv_php.c php_slot = pnv_php_alloc_slot(dn); dn 949 drivers/pci/hotplug/pnv_php.c ret = of_property_read_u32(dn, "ibm,slot-surprise-pluggable", &prop32); dn 956 drivers/pci/hotplug/pnv_php.c pnv_php_unregister_one(php_slot->dn); dn 962 drivers/pci/hotplug/pnv_php.c static void pnv_php_register(struct device_node *dn) dn 970 drivers/pci/hotplug/pnv_php.c for_each_child_of_node(dn, child) { dn 976 drivers/pci/hotplug/pnv_php.c static void pnv_php_unregister_one(struct device_node *dn) dn 980 drivers/pci/hotplug/pnv_php.c php_slot = pnv_php_find_slot(dn); dn 990 drivers/pci/hotplug/pnv_php.c static void pnv_php_unregister(struct device_node *dn) dn 995 drivers/pci/hotplug/pnv_php.c for_each_child_of_node(dn, child) { dn 1003 drivers/pci/hotplug/pnv_php.c struct device_node *dn; dn 1006 drivers/pci/hotplug/pnv_php.c for_each_compatible_node(dn, NULL, "ibm,ioda2-phb") dn 1007 drivers/pci/hotplug/pnv_php.c pnv_php_register(dn); dn 1009 drivers/pci/hotplug/pnv_php.c for_each_compatible_node(dn, NULL, "ibm,ioda3-phb") dn 1010 drivers/pci/hotplug/pnv_php.c pnv_php_register(dn); dn 1017 drivers/pci/hotplug/pnv_php.c struct device_node *dn; dn 1019 drivers/pci/hotplug/pnv_php.c for_each_compatible_node(dn, NULL, "ibm,ioda2-phb") dn 1020 drivers/pci/hotplug/pnv_php.c pnv_php_unregister(dn); dn 1022 drivers/pci/hotplug/pnv_php.c for_each_compatible_node(dn, NULL, "ibm,ioda3-phb") dn 1023 drivers/pci/hotplug/pnv_php.c pnv_php_unregister(dn); dn 43 drivers/pci/hotplug/rpadlpar_core.c struct device_node *dn = NULL; dn 49 drivers/pci/hotplug/rpadlpar_core.c while ((dn = of_get_next_child(parent, dn))) { dn 50 drivers/pci/hotplug/rpadlpar_core.c rc = rpaphp_check_drc_props(dn, drc_name, NULL); dn 56 drivers/pci/hotplug/rpadlpar_core.c return dn; dn 78 drivers/pci/hotplug/rpadlpar_core.c struct device_node *dn; dn 80 drivers/pci/hotplug/rpadlpar_core.c dn = find_php_slot_pci_node(drc_name, "SLOT"); dn 81 drivers/pci/hotplug/rpadlpar_core.c if (dn) { dn 83 drivers/pci/hotplug/rpadlpar_core.c return dn; dn 86 drivers/pci/hotplug/rpadlpar_core.c dn = find_php_slot_pci_node(drc_name, "PHB"); dn 87 drivers/pci/hotplug/rpadlpar_core.c if (dn) { dn 89 drivers/pci/hotplug/rpadlpar_core.c return dn; dn 92 drivers/pci/hotplug/rpadlpar_core.c dn = find_vio_slot_node(drc_name); dn 93 drivers/pci/hotplug/rpadlpar_core.c if (dn) { dn 95 drivers/pci/hotplug/rpadlpar_core.c return dn; dn 110 drivers/pci/hotplug/rpadlpar_core.c static struct slot *find_php_slot(struct device_node *dn) dn 116 drivers/pci/hotplug/rpadlpar_core.c if (slot->dn == dn) dn 137 drivers/pci/hotplug/rpadlpar_core.c static void dlpar_pci_add_bus(struct device_node *dn) dn 139 drivers/pci/hotplug/rpadlpar_core.c struct pci_dn *pdn = PCI_DN(dn); dn 146 drivers/pci/hotplug/rpadlpar_core.c dev = of_create_pci_dev(dn, phb->bus, pdn->devfn); dn 149 drivers/pci/hotplug/rpadlpar_core.c __func__, dn); dn 168 drivers/pci/hotplug/rpadlpar_core.c static int dlpar_add_pci_slot(char *drc_name, struct device_node *dn) dn 173 drivers/pci/hotplug/rpadlpar_core.c if (pci_find_bus_by_node(dn)) dn 177 drivers/pci/hotplug/rpadlpar_core.c dlpar_pci_add_bus(dn); dn 180 drivers/pci/hotplug/rpadlpar_core.c phb = PCI_DN(dn)->phb; dn 181 drivers/pci/hotplug/rpadlpar_core.c dev = dlpar_find_new_dev(phb->bus, dn); dn 196 drivers/pci/hotplug/rpadlpar_core.c if (rpaphp_add_slot(dn)) { dn 204 drivers/pci/hotplug/rpadlpar_core.c static int dlpar_remove_phb(char *drc_name, struct device_node *dn) dn 210 drivers/pci/hotplug/rpadlpar_core.c if (!pci_find_bus_by_node(dn)) dn 214 drivers/pci/hotplug/rpadlpar_core.c slot = find_php_slot(dn); dn 221 drivers/pci/hotplug/rpadlpar_core.c pdn = dn->data; dn 232 drivers/pci/hotplug/rpadlpar_core.c static int dlpar_add_phb(char *drc_name, struct device_node *dn) dn 236 drivers/pci/hotplug/rpadlpar_core.c if (PCI_DN(dn) && PCI_DN(dn)->phb) { dn 241 drivers/pci/hotplug/rpadlpar_core.c phb = init_phb_dynamic(dn); dn 245 drivers/pci/hotplug/rpadlpar_core.c if (rpaphp_add_slot(dn)) { dn 253 drivers/pci/hotplug/rpadlpar_core.c static int dlpar_add_vio_slot(char *drc_name, struct device_node *dn) dn 257 drivers/pci/hotplug/rpadlpar_core.c vio_dev = vio_find_node(dn); dn 263 drivers/pci/hotplug/rpadlpar_core.c if (!vio_register_device_node(dn)) { dn 286 drivers/pci/hotplug/rpadlpar_core.c struct device_node *dn = NULL; dn 294 drivers/pci/hotplug/rpadlpar_core.c dn = find_dlpar_node(drc_name, &node_type); dn 295 drivers/pci/hotplug/rpadlpar_core.c if (!dn) { dn 302 drivers/pci/hotplug/rpadlpar_core.c rc = dlpar_add_vio_slot(drc_name, dn); dn 305 drivers/pci/hotplug/rpadlpar_core.c rc = dlpar_add_pci_slot(drc_name, dn); dn 308 drivers/pci/hotplug/rpadlpar_core.c rc = dlpar_add_phb(drc_name, dn); dn 311 drivers/pci/hotplug/rpadlpar_core.c of_node_put(dn); dn 329 drivers/pci/hotplug/rpadlpar_core.c static int dlpar_remove_vio_slot(char *drc_name, struct device_node *dn) dn 333 drivers/pci/hotplug/rpadlpar_core.c vio_dev = vio_find_node(dn); dn 355 drivers/pci/hotplug/rpadlpar_core.c int dlpar_remove_pci_slot(char *drc_name, struct device_node *dn) dn 363 drivers/pci/hotplug/rpadlpar_core.c bus = pci_find_bus_by_node(dn); dn 372 drivers/pci/hotplug/rpadlpar_core.c slot = find_php_slot(dn); dn 421 drivers/pci/hotplug/rpadlpar_core.c struct device_node *dn; dn 428 drivers/pci/hotplug/rpadlpar_core.c dn = find_dlpar_node(drc_name, &node_type); dn 429 drivers/pci/hotplug/rpadlpar_core.c if (!dn) { dn 436 drivers/pci/hotplug/rpadlpar_core.c rc = dlpar_remove_vio_slot(drc_name, dn); dn 439 drivers/pci/hotplug/rpadlpar_core.c rc = dlpar_remove_phb(drc_name, dn); dn 442 drivers/pci/hotplug/rpadlpar_core.c rc = dlpar_remove_pci_slot(drc_name, dn); dn 445 drivers/pci/hotplug/rpadlpar_core.c of_node_put(dn); dn 68 drivers/pci/hotplug/rpaphp.h struct device_node *dn; dn 89 drivers/pci/hotplug/rpaphp.h int rpaphp_add_slot(struct device_node *dn); dn 90 drivers/pci/hotplug/rpaphp.h int rpaphp_check_drc_props(struct device_node *dn, char *drc_name, dn 95 drivers/pci/hotplug/rpaphp.h struct slot *alloc_slot_struct(struct device_node *dn, int drc_index, char *drc_name, int power_domain); dn 157 drivers/pci/hotplug/rpaphp_core.c static int get_children_props(struct device_node *dn, const __be32 **drc_indexes, dn 163 drivers/pci/hotplug/rpaphp_core.c indexes = of_get_property(dn, "ibm,drc-indexes", NULL); dn 164 drivers/pci/hotplug/rpaphp_core.c names = of_get_property(dn, "ibm,drc-names", NULL); dn 165 drivers/pci/hotplug/rpaphp_core.c types = of_get_property(dn, "ibm,drc-types", NULL); dn 166 drivers/pci/hotplug/rpaphp_core.c domains = of_get_property(dn, "ibm,drc-power-domains", NULL); dn 193 drivers/pci/hotplug/rpaphp_core.c static int rpaphp_check_drc_props_v1(struct device_node *dn, char *drc_name, dn 201 drivers/pci/hotplug/rpaphp_core.c rc = get_children_props(dn->parent, &indexes, &names, &types, &domains); dn 225 drivers/pci/hotplug/rpaphp_core.c static int rpaphp_check_drc_props_v2(struct device_node *dn, char *drc_name, dn 235 drivers/pci/hotplug/rpaphp_core.c info = of_find_property(dn->parent, "ibm,drc-info", NULL); dn 268 drivers/pci/hotplug/rpaphp_core.c int rpaphp_check_drc_props(struct device_node *dn, char *drc_name, dn 273 drivers/pci/hotplug/rpaphp_core.c my_index = of_get_property(dn, "ibm,my-drc-index", NULL); dn 279 drivers/pci/hotplug/rpaphp_core.c if (of_find_property(dn->parent, "ibm,drc-info", NULL)) dn 280 drivers/pci/hotplug/rpaphp_core.c return rpaphp_check_drc_props_v2(dn, drc_name, drc_type, dn 283 drivers/pci/hotplug/rpaphp_core.c return rpaphp_check_drc_props_v1(dn, drc_name, drc_type, dn 315 drivers/pci/hotplug/rpaphp_core.c static int is_php_dn(struct device_node *dn, const __be32 **indexes, dn 322 drivers/pci/hotplug/rpaphp_core.c rc = get_children_props(dn, indexes, names, &drc_types, power_domains); dn 349 drivers/pci/hotplug/rpaphp_core.c int rpaphp_add_slot(struct device_node *dn) dn 357 drivers/pci/hotplug/rpaphp_core.c if (!dn->name || strcmp(dn->name, "pci")) dn 361 drivers/pci/hotplug/rpaphp_core.c if (!is_php_dn(dn, &indexes, &names, &types, &power_domains)) dn 364 drivers/pci/hotplug/rpaphp_core.c dbg("Entry %s: dn=%pOF\n", __func__, dn); dn 373 drivers/pci/hotplug/rpaphp_core.c slot = alloc_slot_struct(dn, index, name, dn 419 drivers/pci/hotplug/rpaphp_core.c struct device_node *dn; dn 423 drivers/pci/hotplug/rpaphp_core.c for_each_node_by_name(dn, "pci") dn 424 drivers/pci/hotplug/rpaphp_core.c rpaphp_add_slot(dn); dn 78 drivers/pci/hotplug/rpaphp_pci.c bus = pci_find_bus_by_node(slot->dn); dn 80 drivers/pci/hotplug/rpaphp_pci.c err("%s: no pci_bus for dn %pOF\n", __func__, slot->dn); dn 92 drivers/pci/hotplug/rpaphp_pci.c if (!slot->dn->child) { dn 107 drivers/pci/hotplug/rpaphp_pci.c dbg("%s: pci_devs of slot[%pOF]\n", __func__, slot->dn); dn 24 drivers/pci/hotplug/rpaphp_slot.c of_node_put(slot->dn); dn 29 drivers/pci/hotplug/rpaphp_slot.c struct slot *alloc_slot_struct(struct device_node *dn, dn 40 drivers/pci/hotplug/rpaphp_slot.c slot->dn = of_node_get(dn); dn 90 drivers/pci/hotplug/rpaphp_slot.c __func__, slot->dn, slot->index, slot->name, dn 99 drivers/pci/hotplug/rpaphp_slot.c for_each_child_of_node(slot->dn, child) { dn 366 drivers/pci/of.c struct device_node *dn, *ppnode; dn 376 drivers/pci/of.c dn = pci_device_to_OF_node(pdev); dn 377 drivers/pci/of.c if (dn) { dn 378 drivers/pci/of.c rc = of_irq_parse_one(dn, 0, out_irq); dn 67 drivers/perf/arm_pmu_platform.c struct device_node *dn; dn 78 drivers/perf/arm_pmu_platform.c dn = of_parse_phandle(node, "interrupt-affinity", i); dn 79 drivers/perf/arm_pmu_platform.c if (!dn) { dn 85 drivers/perf/arm_pmu_platform.c cpu = of_cpu_node_to_id(dn); dn 87 drivers/perf/arm_pmu_platform.c pr_warn("failed to find logical CPU for %pOFn\n", dn); dn 91 drivers/perf/arm_pmu_platform.c of_node_put(dn); dn 355 drivers/phy/broadcom/phy-bcm-sr-usb.c struct device_node *dn = dev->of_node; dn 368 drivers/phy/broadcom/phy-bcm-sr-usb.c of_id = of_match_node(bcm_usb_phy_of_match, dn); dn 374 drivers/phy/broadcom/phy-bcm-sr-usb.c ret = bcm_usb_phy_create(dev, dn, regs, version); dn 624 drivers/phy/broadcom/phy-brcm-sata.c struct device_node *dn = dev->of_node, *child; dn 631 drivers/phy/broadcom/phy-brcm-sata.c if (of_get_child_count(dn) == 0) dn 645 drivers/phy/broadcom/phy-brcm-sata.c of_id = of_match_node(brcm_sata_phy_of_match, dn); dn 659 drivers/phy/broadcom/phy-brcm-sata.c for_each_available_child_of_node(dn, child) { dn 233 drivers/phy/broadcom/phy-brcm-usb.c struct device_node *dn) dn 238 drivers/phy/broadcom/phy-brcm-usb.c priv->usb_20_clk = of_clk_get_by_name(dn, "sw_usb"); dn 268 drivers/phy/broadcom/phy-brcm-usb.c priv->usb_30_clk = of_clk_get_by_name(dn, "sw_usb3"); dn 287 drivers/phy/broadcom/phy-brcm-usb.c struct device_node *dn = pdev->dev.of_node; dn 323 drivers/phy/broadcom/phy-brcm-usb.c of_property_read_u32(dn, "brcm,ipp", &priv->ini.ipp); dn 324 drivers/phy/broadcom/phy-brcm-usb.c of_property_read_u32(dn, "brcm,ioc", &priv->ini.ioc); dn 327 drivers/phy/broadcom/phy-brcm-usb.c err = of_property_read_string(dn, "dr_mode", &mode); dn 333 drivers/phy/broadcom/phy-brcm-usb.c if (of_property_read_bool(dn, "brcm,has-xhci")) dn 335 drivers/phy/broadcom/phy-brcm-usb.c if (of_property_read_bool(dn, "brcm,has-eohci")) dn 338 drivers/phy/broadcom/phy-brcm-usb.c err = brcm_usb_phy_dvr_init(dev, priv, dn); dn 170 drivers/phy/cadence/phy-cadence-sierra.c struct device_node *dn = dev->of_node, *child; dn 172 drivers/phy/cadence/phy-cadence-sierra.c if (of_get_child_count(dn) == 0) dn 227 drivers/phy/cadence/phy-cadence-sierra.c sp->autoconf = of_property_read_bool(dn, "cdns,autoconf"); dn 229 drivers/phy/cadence/phy-cadence-sierra.c for_each_available_child_of_node(dn, child) { dn 173 drivers/s390/block/dasd_eckd.c int dn, kn; dn 183 drivers/s390/block/dasd_eckd.c dn = ceil_quot(dl + 6, 232) + 1; dn 187 drivers/s390/block/dasd_eckd.c 9 + ceil_quot(dl + 6 * dn, 34)); dn 189 drivers/s390/block/dasd_eckd.c return 1729 / (10 + 9 + ceil_quot(dl + 6 * dn, 34)); dn 191 drivers/s390/block/dasd_eckd.c dn = ceil_quot(dl + 6, 232) + 1; dn 195 drivers/s390/block/dasd_eckd.c ceil_quot(dl + 6 * dn, 34)); dn 197 drivers/s390/block/dasd_eckd.c return 1420 / (18 + 7 + ceil_quot(dl + 6 * dn, 34)); dn 391 drivers/s390/block/dasd_eckd.c int dn, d; dn 408 drivers/s390/block/dasd_eckd.c dn = ceil_quot(reclen + 6, 232); dn 409 drivers/s390/block/dasd_eckd.c d = 9 + ceil_quot(reclen + 6 * (dn + 1), 34); dn 608 drivers/s390/block/dasd_eckd.c int dn, d; dn 624 drivers/s390/block/dasd_eckd.c dn = ceil_quot(reclen + 6, 232); dn 625 drivers/s390/block/dasd_eckd.c d = 9 + ceil_quot(reclen + 6 * (dn + 1), 34); dn 4216 drivers/s390/block/dasd_eckd.c int dn, d; dn 4316 drivers/s390/block/dasd_eckd.c dn = ceil_quot(blksize + 6, 232); dn 4317 drivers/s390/block/dasd_eckd.c d = 9 + ceil_quot(blksize + 6 * (dn + 1), 34); dn 117 drivers/soc/bcm/brcmstb/pm/pm-arm.c static int brcmstb_init_sram(struct device_node *dn) dn 123 drivers/soc/bcm/brcmstb/pm/pm-arm.c ret = of_address_to_resource(dn, 0, &res); dn 652 drivers/soc/bcm/brcmstb/pm/pm-arm.c struct device_node *dn; dn 655 drivers/soc/bcm/brcmstb/pm/pm-arm.c dn = of_find_matching_node_and_match(NULL, matches, &match); dn 656 drivers/soc/bcm/brcmstb/pm/pm-arm.c if (!dn) dn 662 drivers/soc/bcm/brcmstb/pm/pm-arm.c return of_io_request_and_map(dn, index, dn->full_name); dn 682 drivers/soc/bcm/brcmstb/pm/pm-arm.c struct device_node *dn; dn 728 drivers/soc/bcm/brcmstb/pm/pm-arm.c for_each_matching_node(dn, ddr_shimphy_dt_ids) { dn 735 drivers/soc/bcm/brcmstb/pm/pm-arm.c base = of_io_request_and_map(dn, 0, dn->full_name); dn 749 drivers/soc/bcm/brcmstb/pm/pm-arm.c for_each_matching_node(dn, brcmstb_memc_of_match) { dn 750 drivers/soc/bcm/brcmstb/pm/pm-arm.c base = of_iomap(dn, 0); dn 756 drivers/soc/bcm/brcmstb/pm/pm-arm.c of_id = of_match_node(brcmstb_memc_of_match, dn); dn 776 drivers/soc/bcm/brcmstb/pm/pm-arm.c dn = of_find_matching_node(NULL, sram_dt_ids); dn 777 drivers/soc/bcm/brcmstb/pm/pm-arm.c if (!dn) { dn 782 drivers/soc/bcm/brcmstb/pm/pm-arm.c ret = brcmstb_init_sram(dn); dn 358 drivers/soc/bcm/brcmstb/pm/pm-mips.c static inline void __iomem *brcmstb_ioremap_node(struct device_node *dn, dn 361 drivers/soc/bcm/brcmstb/pm/pm-mips.c return of_io_request_and_map(dn, index, dn->full_name); dn 367 drivers/soc/bcm/brcmstb/pm/pm-mips.c struct device_node *dn; dn 370 drivers/soc/bcm/brcmstb/pm/pm-mips.c dn = of_find_matching_node_and_match(NULL, matches, &match); dn 371 drivers/soc/bcm/brcmstb/pm/pm-mips.c if (!dn) dn 377 drivers/soc/bcm/brcmstb/pm/pm-mips.c return brcmstb_ioremap_node(dn, index); dn 382 drivers/soc/bcm/brcmstb/pm/pm-mips.c struct device_node *dn; dn 404 drivers/soc/bcm/brcmstb/pm/pm-mips.c for_each_matching_node(dn, ddr_phy_dt_ids) { dn 410 drivers/soc/bcm/brcmstb/pm/pm-mips.c base = brcmstb_ioremap_node(dn, 0); dn 531 drivers/soc/qcom/rpmh-rsc.c struct device_node *dn = pdev->dev.of_node; dn 545 drivers/soc/qcom/rpmh-rsc.c ret = of_property_read_u32(dn, "qcom,tcs-offset", &offset); dn 559 drivers/soc/qcom/rpmh-rsc.c n = of_property_count_u32_elems(dn, "qcom,tcs-config"); dn 564 drivers/soc/qcom/rpmh-rsc.c ret = of_property_read_u32_index(dn, "qcom,tcs-config", dn 571 drivers/soc/qcom/rpmh-rsc.c ret = of_property_read_u32_index(dn, "qcom,tcs-config", dn 621 drivers/soc/qcom/rpmh-rsc.c struct device_node *dn = pdev->dev.of_node; dn 641 drivers/soc/qcom/rpmh-rsc.c ret = of_property_read_u32(dn, "qcom,drv-id", &drv->id); dn 645 drivers/soc/qcom/rpmh-rsc.c drv->name = of_get_property(dn, "label", NULL); dn 53 drivers/soc/renesas/r9a06g032-smp.c struct device_node *dn; dn 57 drivers/soc/renesas/r9a06g032-smp.c dn = of_get_cpu_node(1, NULL); dn 58 drivers/soc/renesas/r9a06g032-smp.c if (!dn) { dn 67 drivers/soc/renesas/r9a06g032-smp.c if (of_find_property(dn, "cpu-release-addr", &dns)) { dn 71 drivers/soc/renesas/r9a06g032-smp.c ret = of_property_read_u64(dn, dn 75 drivers/soc/renesas/r9a06g032-smp.c ret = of_property_read_u32(dn, dn 80 drivers/soc/renesas/r9a06g032-smp.c of_node_put(dn); dn 3693 drivers/spi/spi.c ctlr = of_find_spi_controller_by_node(rd->dn->parent); dn 3697 drivers/spi/spi.c if (of_node_test_and_set_flag(rd->dn, OF_POPULATED)) { dn 3702 drivers/spi/spi.c spi = of_register_spi_device(ctlr, rd->dn); dn 3707 drivers/spi/spi.c __func__, rd->dn); dn 3708 drivers/spi/spi.c of_node_clear_flag(rd->dn, OF_POPULATED); dn 3715 drivers/spi/spi.c if (!of_node_check_flag(rd->dn, OF_POPULATED)) dn 3719 drivers/spi/spi.c spi = of_find_spi_device_by_node(rd->dn); dn 27 drivers/staging/board/board.c struct device_node *dn = of_find_all_nodes(NULL); dn 30 drivers/staging/board/board.c while (dn) { dn 31 drivers/staging/board/board.c if (!of_address_to_resource(dn, 0, &res)) { dn 33 drivers/staging/board/board.c of_node_put(dn); dn 37 drivers/staging/board/board.c dn = of_find_all_nodes(dn); dn 1758 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c static s32 up, dn, m, n, WaitCount; dn 1783 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c dn = 0; dn 1804 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c dn = 0; dn 1825 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c dn--; dn 1827 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c if (dn <= 0) dn 1828 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c dn = 0; dn 1834 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c dn = 0; dn 1844 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c dn++; dn 1849 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c if (dn == 2) { /* if 連續 2 個2秒 retry count< 3, 則調窄WiFi duration */ dn 1860 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c dn = 0; dn 1876 drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c dn = 0; dn 1597 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c static s32 up, dn, m, n, WaitCount; dn 1651 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c dn = 0; dn 1665 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c up, dn, m, n, WaitCount dn 1673 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c dn--; dn 1675 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c if (dn <= 0) dn 1676 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c dn = 0; dn 1682 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c dn = 0; dn 1688 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c dn++; dn 1693 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c if (dn == 2) { /* if 連續 2 個2秒 retry count< 3, 則調窄WiFi duration */ dn 1704 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c dn = 0; dn 1720 drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c dn = 0; dn 59 drivers/staging/wusbcore/host/whci/int.c struct dn_buf_entry *dn; dn 62 drivers/staging/wusbcore/host/whci/int.c for (dn = whc->dn_buf; dn < whc->dn_buf + WHC_N_DN_ENTRIES; dn++) { dn 63 drivers/staging/wusbcore/host/whci/int.c if (dn->status & WHC_DN_STATUS_VALID) { dn 64 drivers/staging/wusbcore/host/whci/int.c wusbhc_handle_dn(wusbhc, dn->src_addr, dn 65 drivers/staging/wusbcore/host/whci/int.c (struct wusb_dn_hdr *)dn->dn_data, dn 66 drivers/staging/wusbcore/host/whci/int.c dn->msg_size); dn 67 drivers/staging/wusbcore/host/whci/int.c dn->status &= ~WHC_DN_STATUS_VALID; dn 209 drivers/staging/wusbcore/include/wusb.h static inline int wusb_dn_connect_prev_dev_addr(const struct wusb_dn_connect *dn) dn 211 drivers/staging/wusbcore/include/wusb.h return le16_to_cpu(dn->attributes) & 0xff; dn 214 drivers/staging/wusbcore/include/wusb.h static inline int wusb_dn_connect_new_connection(const struct wusb_dn_connect *dn) dn 216 drivers/staging/wusbcore/include/wusb.h return (le16_to_cpu(dn->attributes) >> 8) & 0x1; dn 219 drivers/staging/wusbcore/include/wusb.h static inline int wusb_dn_connect_beacon_behavior(const struct wusb_dn_connect *dn) dn 221 drivers/staging/wusbcore/include/wusb.h return (le16_to_cpu(dn->attributes) >> 9) & 0x03; dn 74 drivers/usb/host/ehci-grlib.c struct device_node *dn = op->dev.of_node; dn 87 drivers/usb/host/ehci-grlib.c rv = of_address_to_resource(dn, 0, &res); dn 101 drivers/usb/host/ehci-grlib.c irq = irq_of_parse_and_map(dn, 0); dn 79 drivers/usb/host/ehci-ppc-of.c ppc44x_enable_bmt(struct device_node *dn) dn 83 drivers/usb/host/ehci-ppc-of.c insreg_virt = of_iomap(dn, 1); dn 96 drivers/usb/host/ehci-ppc-of.c struct device_node *dn = op->dev.of_node; dn 110 drivers/usb/host/ehci-ppc-of.c rv = of_address_to_resource(dn, 0, &res); dn 121 drivers/usb/host/ehci-ppc-of.c irq = irq_of_parse_and_map(dn, 0); dn 153 drivers/usb/host/ehci-ppc-of.c if (of_get_property(dn, "big-endian", NULL)) { dn 157 drivers/usb/host/ehci-ppc-of.c if (of_get_property(dn, "big-endian-regs", NULL)) dn 159 drivers/usb/host/ehci-ppc-of.c if (of_get_property(dn, "big-endian-desc", NULL)) dn 164 drivers/usb/host/ehci-ppc-of.c if (of_device_is_compatible(dn, "ibm,usb-ehci-440epx")) { dn 165 drivers/usb/host/ehci-ppc-of.c rv = ppc44x_enable_bmt(dn); dn 118 drivers/usb/host/ehci-xilinx-of.c struct device_node *dn = op->dev.of_node; dn 131 drivers/usb/host/ehci-xilinx-of.c rv = of_address_to_resource(dn, 0, &res); dn 143 drivers/usb/host/ehci-xilinx-of.c irq = irq_of_parse_and_map(dn, 0); dn 167 drivers/usb/host/ehci-xilinx-of.c value = (int *)of_get_property(dn, "xlnx,support-usb-fs", NULL); dn 89 drivers/usb/host/ohci-ppc-of.c struct device_node *dn = op->dev.of_node; dn 103 drivers/usb/host/ohci-ppc-of.c of_device_is_compatible(dn, "ohci-bigendian") || dn 104 drivers/usb/host/ohci-ppc-of.c of_device_is_compatible(dn, "ohci-be"); dn 108 drivers/usb/host/ohci-ppc-of.c rv = of_address_to_resource(dn, 0, &res); dn 125 drivers/usb/host/ohci-ppc-of.c irq = irq_of_parse_and_map(dn, 0); dn 136 drivers/usb/host/ohci-ppc-of.c if (of_device_is_compatible(dn, "fsl,mpc5200-ohci")) dn 138 drivers/usb/host/ohci-ppc-of.c if (of_device_is_compatible(dn, "mpc5200-ohci")) dn 92 drivers/usb/host/uhci-grlib.c struct device_node *dn = op->dev.of_node; dn 104 drivers/usb/host/uhci-grlib.c rv = of_address_to_resource(dn, 0, &res); dn 118 drivers/usb/host/uhci-grlib.c irq = irq_of_parse_and_map(dn, 0); dn 315 drivers/usb/host/xhci-mtk.c struct device_node *dn) dn 321 drivers/usb/host/xhci-mtk.c mtk->uwk_en = of_property_read_bool(dn, "wakeup-source"); dn 325 drivers/usb/host/xhci-mtk.c ret = of_parse_phandle_with_fixed_args(dn, dn 18 drivers/usb/mtu3/mtu3_dr.h struct device_node *dn); dn 36 drivers/usb/mtu3/mtu3_dr.h struct ssusb_mtk *ssusb, struct device_node *dn) dn 63 drivers/usb/mtu3/mtu3_host.c struct device_node *dn) dn 69 drivers/usb/mtu3/mtu3_host.c ssusb->uwk_en = of_property_read_bool(dn, "wakeup-source"); dn 73 drivers/usb/mtu3/mtu3_host.c ret = of_parse_phandle_with_fixed_args(dn, dn 711 drivers/usb/musb/musb_dsps.c static int get_int_prop(struct device_node *dn, const char *s) dn 716 drivers/usb/musb/musb_dsps.c ret = of_property_read_u32(dn, s, &val); dn 731 drivers/usb/musb/musb_dsps.c struct device_node *dn = parent->dev.of_node; dn 779 drivers/usb/musb/musb_dsps.c config->num_eps = get_int_prop(dn, "mentor,num-eps"); dn 780 drivers/usb/musb/musb_dsps.c config->ram_bits = get_int_prop(dn, "mentor,ram-bits"); dn 784 drivers/usb/musb/musb_dsps.c pdata.power = get_int_prop(dn, "mentor,power") / 2; dn 786 drivers/usb/musb/musb_dsps.c ret = of_property_read_u32(dn, "mentor,multipoint", &val); dn 423 drivers/vfio/pci/vfio_pci_nvlink2.c if (of_property_read_u64_index(hose->dn, "ibm,mmio-atsd", nvlink_index, dn 3042 fs/ceph/caps.c struct dentry *dn, *prev = NULL; dn 3055 fs/ceph/caps.c while ((dn = d_find_alias(inode))) { dn 3056 fs/ceph/caps.c if (dn == prev) { dn 3057 fs/ceph/caps.c dput(dn); dn 3060 fs/ceph/caps.c d_invalidate(dn); dn 3063 fs/ceph/caps.c prev = dn; dn 1152 fs/ceph/dir.c struct dentry *dn = di->dentry; dn 1155 fs/ceph/dir.c dout("dentry_lease_touch %p %p '%pd'\n", di, dn, dn); dn 1163 fs/ceph/dir.c mdsc = ceph_sb_to_client(dn->d_sb)->mdsc; dn 1186 fs/ceph/dir.c struct dentry *dn = di->dentry; dn 1190 fs/ceph/dir.c di, dn, dn, di->offset); dn 1210 fs/ceph/dir.c mdsc = ceph_sb_to_client(dn->d_sb)->mdsc; dn 1786 fs/ceph/dir.c unsigned ceph_dentry_hash(struct inode *dir, struct dentry *dn) dn 1794 fs/ceph/dir.c return dn->d_name.hash; dn 1797 fs/ceph/dir.c spin_lock(&dn->d_lock); dn 1799 fs/ceph/dir.c dn->d_name.name, dn->d_name.len); dn 1800 fs/ceph/dir.c spin_unlock(&dn->d_lock); dn 336 fs/ceph/export.c struct dentry *dn; dn 343 fs/ceph/export.c dn = ERR_PTR(-EINVAL); dn 348 fs/ceph/export.c dn = ERR_CAST(dir); dn 359 fs/ceph/export.c dn = ERR_CAST(snapdir); dn 368 fs/ceph/export.c dn = d_obtain_root(dir); dn 370 fs/ceph/export.c dn = d_obtain_alias(dir); dn 372 fs/ceph/export.c dn = __get_parent(child->d_sb, child, 0); dn 376 fs/ceph/export.c child, ceph_vinop(inode), (long)PTR_ERR_OR_ZERO(dn)); dn 377 fs/ceph/export.c return dn; dn 444 fs/ceph/file.c struct dentry *dn; dn 505 fs/ceph/file.c dn = ceph_finish_lookup(req, dentry, err); dn 506 fs/ceph/file.c if (IS_ERR(dn)) dn 507 fs/ceph/file.c err = PTR_ERR(dn); dn 510 fs/ceph/file.c dn = NULL; dn 514 fs/ceph/file.c if (dn || d_really_is_negative(dentry) || d_is_symlink(dentry)) { dn 516 fs/ceph/file.c dout("atomic_open finish_no_open on dn %p\n", dn); dn 517 fs/ceph/file.c err = finish_no_open(file, dn); dn 519 fs/ceph/file.c dout("atomic_open finish_open on dn %p\n", dn); dn 1152 fs/ceph/inode.c struct dentry *dn = *pdn; dn 1155 fs/ceph/inode.c BUG_ON(d_inode(dn)); dn 1179 fs/ceph/inode.c if (!d_unhashed(dn)) dn 1180 fs/ceph/inode.c d_drop(dn); dn 1181 fs/ceph/inode.c realdn = d_splice_alias(in, dn); dn 1184 fs/ceph/inode.c PTR_ERR(realdn), dn, in, ceph_vinop(in)); dn 1191 fs/ceph/inode.c dn, d_count(dn), dn 1194 fs/ceph/inode.c dput(dn); dn 1197 fs/ceph/inode.c BUG_ON(!ceph_dentry(dn)); dn 1199 fs/ceph/inode.c dn, d_inode(dn), ceph_vinop(d_inode(dn))); dn 1252 fs/ceph/inode.c struct dentry *dn, *parent; dn 1266 fs/ceph/inode.c dn = d_lookup(parent, &dname); dn 1268 fs/ceph/inode.c parent, dname.len, dname.name, dn); dn 1270 fs/ceph/inode.c if (!dn) { dn 1271 fs/ceph/inode.c dn = d_alloc(parent, &dname); dn 1273 fs/ceph/inode.c dname.len, dname.name, dn); dn 1274 fs/ceph/inode.c if (!dn) { dn 1280 fs/ceph/inode.c } else if (d_really_is_positive(dn) && dn 1281 fs/ceph/inode.c (ceph_ino(d_inode(dn)) != tvino.ino || dn 1282 fs/ceph/inode.c ceph_snap(d_inode(dn)) != tvino.snap)) { dn 1284 fs/ceph/inode.c dn, d_inode(dn)); dn 1286 fs/ceph/inode.c d_delete(dn); dn 1287 fs/ceph/inode.c dput(dn); dn 1291 fs/ceph/inode.c req->r_dentry = dn; dn 1335 fs/ceph/inode.c struct dentry *dn = req->r_dentry; dn 1338 fs/ceph/inode.c BUG_ON(!dn); dn 1340 fs/ceph/inode.c BUG_ON(d_inode(dn->d_parent) != dir); dn 1367 fs/ceph/inode.c dn, dn); dn 1369 fs/ceph/inode.c req->r_old_dentry, dn); dn 1375 fs/ceph/inode.c d_move(req->r_old_dentry, dn); dn 1379 fs/ceph/inode.c dn, dn); dn 1383 fs/ceph/inode.c ceph_invalidate_dentry_lease(dn); dn 1392 fs/ceph/inode.c req->r_old_dentry = dn; dn 1393 fs/ceph/inode.c dn = req->r_dentry; dn 1399 fs/ceph/inode.c if (d_really_is_positive(dn)) { dn 1400 fs/ceph/inode.c dout("d_delete %p\n", dn); dn 1402 fs/ceph/inode.c d_delete(dn); dn 1404 fs/ceph/inode.c if (d_unhashed(dn)) dn 1405 fs/ceph/inode.c d_add(dn, NULL); dn 1406 fs/ceph/inode.c update_dentry_lease(dir, dn, dn 1414 fs/ceph/inode.c if (d_really_is_negative(dn)) { dn 1420 fs/ceph/inode.c dn = req->r_dentry; /* may have spliced */ dn 1421 fs/ceph/inode.c } else if (d_really_is_positive(dn) && d_inode(dn) != in) { dn 1423 fs/ceph/inode.c dn, d_inode(dn), ceph_vinop(d_inode(dn)), dn 1425 fs/ceph/inode.c d_invalidate(dn); dn 1430 fs/ceph/inode.c update_dentry_lease(dir, dn, dn 1434 fs/ceph/inode.c dout(" final dn %p\n", dn); dn 1518 fs/ceph/inode.c static int fill_readdir_cache(struct inode *dir, struct dentry *dn, dn 1547 fs/ceph/inode.c dout("readdir cache dn %p idx %d\n", dn, ctl->index); dn 1548 fs/ceph/inode.c ctl->dentries[idx] = dn; dn 1564 fs/ceph/inode.c struct dentry *dn; dn 1648 fs/ceph/inode.c dn = d_lookup(parent, &dname); dn 1650 fs/ceph/inode.c parent, dname.len, dname.name, dn); dn 1652 fs/ceph/inode.c if (!dn) { dn 1653 fs/ceph/inode.c dn = d_alloc(parent, &dname); dn 1655 fs/ceph/inode.c dname.len, dname.name, dn); dn 1656 fs/ceph/inode.c if (!dn) { dn 1661 fs/ceph/inode.c } else if (d_really_is_positive(dn) && dn 1662 fs/ceph/inode.c (ceph_ino(d_inode(dn)) != tvino.ino || dn 1663 fs/ceph/inode.c ceph_snap(d_inode(dn)) != tvino.snap)) { dn 1664 fs/ceph/inode.c struct ceph_dentry_info *di = ceph_dentry(dn); dn 1666 fs/ceph/inode.c dn, d_inode(dn)); dn 1668 fs/ceph/inode.c spin_lock(&dn->d_lock); dn 1675 fs/ceph/inode.c spin_unlock(&dn->d_lock); dn 1677 fs/ceph/inode.c d_delete(dn); dn 1678 fs/ceph/inode.c dput(dn); dn 1683 fs/ceph/inode.c if (d_really_is_positive(dn)) { dn 1684 fs/ceph/inode.c in = d_inode(dn); dn 1689 fs/ceph/inode.c d_drop(dn); dn 1690 fs/ceph/inode.c dput(dn); dn 1701 fs/ceph/inode.c if (d_really_is_negative(dn)) { dn 1706 fs/ceph/inode.c d_drop(dn); dn 1711 fs/ceph/inode.c if (d_really_is_negative(dn)) { dn 1714 fs/ceph/inode.c " (security xattr deadlock)\n", dn, in); dn 1720 fs/ceph/inode.c err = splice_dentry(&dn, in); dn 1725 fs/ceph/inode.c ceph_dentry(dn)->offset = rde->offset; dn 1727 fs/ceph/inode.c update_dentry_lease(d_inode(parent), dn, dn 1732 fs/ceph/inode.c ret = fill_readdir_cache(d_inode(parent), dn, dn 1738 fs/ceph/inode.c dput(dn); dn 1072 fs/ceph/super.h extern int ceph_encode_dentry_release(void **p, struct dentry *dn, dn 1121 fs/ceph/super.h extern unsigned ceph_dentry_hash(struct inode *dir, struct dentry *dn); dn 736 fs/f2fs/data.c static void __set_data_blkaddr(struct dnode_of_data *dn) dn 738 fs/f2fs/data.c struct f2fs_node *rn = F2FS_NODE(dn->node_page); dn 742 fs/f2fs/data.c if (IS_INODE(dn->node_page) && f2fs_has_extra_attr(dn->inode)) dn 743 fs/f2fs/data.c base = get_extra_isize(dn->inode); dn 747 fs/f2fs/data.c addr_array[base + dn->ofs_in_node] = cpu_to_le32(dn->data_blkaddr); dn 756 fs/f2fs/data.c void f2fs_set_data_blkaddr(struct dnode_of_data *dn) dn 758 fs/f2fs/data.c f2fs_wait_on_page_writeback(dn->node_page, NODE, true, true); dn 759 fs/f2fs/data.c __set_data_blkaddr(dn); dn 760 fs/f2fs/data.c if (set_page_dirty(dn->node_page)) dn 761 fs/f2fs/data.c dn->node_changed = true; dn 764 fs/f2fs/data.c void f2fs_update_data_blkaddr(struct dnode_of_data *dn, block_t blkaddr) dn 766 fs/f2fs/data.c dn->data_blkaddr = blkaddr; dn 767 fs/f2fs/data.c f2fs_set_data_blkaddr(dn); dn 768 fs/f2fs/data.c f2fs_update_extent_cache(dn); dn 772 fs/f2fs/data.c int f2fs_reserve_new_blocks(struct dnode_of_data *dn, blkcnt_t count) dn 774 fs/f2fs/data.c struct f2fs_sb_info *sbi = F2FS_I_SB(dn->inode); dn 780 fs/f2fs/data.c if (unlikely(is_inode_flag_set(dn->inode, FI_NO_ALLOC))) dn 782 fs/f2fs/data.c if (unlikely((err = inc_valid_block_count(sbi, dn->inode, &count)))) dn 785 fs/f2fs/data.c trace_f2fs_reserve_new_blocks(dn->inode, dn->nid, dn 786 fs/f2fs/data.c dn->ofs_in_node, count); dn 788 fs/f2fs/data.c f2fs_wait_on_page_writeback(dn->node_page, NODE, true, true); dn 790 fs/f2fs/data.c for (; count > 0; dn->ofs_in_node++) { dn 791 fs/f2fs/data.c block_t blkaddr = datablock_addr(dn->inode, dn 792 fs/f2fs/data.c dn->node_page, dn->ofs_in_node); dn 794 fs/f2fs/data.c dn->data_blkaddr = NEW_ADDR; dn 795 fs/f2fs/data.c __set_data_blkaddr(dn); dn 800 fs/f2fs/data.c if (set_page_dirty(dn->node_page)) dn 801 fs/f2fs/data.c dn->node_changed = true; dn 806 fs/f2fs/data.c int f2fs_reserve_new_block(struct dnode_of_data *dn) dn 808 fs/f2fs/data.c unsigned int ofs_in_node = dn->ofs_in_node; dn 811 fs/f2fs/data.c ret = f2fs_reserve_new_blocks(dn, 1); dn 812 fs/f2fs/data.c dn->ofs_in_node = ofs_in_node; dn 816 fs/f2fs/data.c int f2fs_reserve_block(struct dnode_of_data *dn, pgoff_t index) dn 818 fs/f2fs/data.c bool need_put = dn->inode_page ? false : true; dn 821 fs/f2fs/data.c err = f2fs_get_dnode_of_data(dn, index, ALLOC_NODE); dn 825 fs/f2fs/data.c if (dn->data_blkaddr == NULL_ADDR) dn 826 fs/f2fs/data.c err = f2fs_reserve_new_block(dn); dn 828 fs/f2fs/data.c f2fs_put_dnode(dn); dn 832 fs/f2fs/data.c int f2fs_get_block(struct dnode_of_data *dn, pgoff_t index) dn 835 fs/f2fs/data.c struct inode *inode = dn->inode; dn 838 fs/f2fs/data.c dn->data_blkaddr = ei.blk + index - ei.fofs; dn 842 fs/f2fs/data.c return f2fs_reserve_block(dn, index); dn 849 fs/f2fs/data.c struct dnode_of_data dn; dn 859 fs/f2fs/data.c dn.data_blkaddr = ei.blk + index - ei.fofs; dn 860 fs/f2fs/data.c if (!f2fs_is_valid_blkaddr(F2FS_I_SB(inode), dn.data_blkaddr, dn 868 fs/f2fs/data.c set_new_dnode(&dn, inode, NULL, NULL, 0); dn 869 fs/f2fs/data.c err = f2fs_get_dnode_of_data(&dn, index, LOOKUP_NODE); dn 872 fs/f2fs/data.c f2fs_put_dnode(&dn); dn 874 fs/f2fs/data.c if (unlikely(dn.data_blkaddr == NULL_ADDR)) { dn 878 fs/f2fs/data.c if (dn.data_blkaddr != NEW_ADDR && dn 880 fs/f2fs/data.c dn.data_blkaddr, dn 898 fs/f2fs/data.c if (dn.data_blkaddr == NEW_ADDR) { dn 906 fs/f2fs/data.c err = f2fs_submit_page_read(inode, page, dn.data_blkaddr); dn 983 fs/f2fs/data.c struct dnode_of_data dn; dn 996 fs/f2fs/data.c set_new_dnode(&dn, inode, ipage, NULL, 0); dn 997 fs/f2fs/data.c err = f2fs_reserve_block(&dn, index); dn 1003 fs/f2fs/data.c f2fs_put_dnode(&dn); dn 1008 fs/f2fs/data.c if (dn.data_blkaddr == NEW_ADDR) { dn 1028 fs/f2fs/data.c static int __allocate_data_block(struct dnode_of_data *dn, int seg_type) dn 1030 fs/f2fs/data.c struct f2fs_sb_info *sbi = F2FS_I_SB(dn->inode); dn 1037 fs/f2fs/data.c if (unlikely(is_inode_flag_set(dn->inode, FI_NO_ALLOC))) dn 1040 fs/f2fs/data.c err = f2fs_get_node_info(sbi, dn->nid, &ni); dn 1044 fs/f2fs/data.c dn->data_blkaddr = datablock_addr(dn->inode, dn 1045 fs/f2fs/data.c dn->node_page, dn->ofs_in_node); dn 1046 fs/f2fs/data.c if (dn->data_blkaddr != NULL_ADDR) dn 1049 fs/f2fs/data.c if (unlikely((err = inc_valid_block_count(sbi, dn->inode, &count)))) dn 1053 fs/f2fs/data.c set_summary(&sum, dn->nid, dn->ofs_in_node, ni.version); dn 1054 fs/f2fs/data.c old_blkaddr = dn->data_blkaddr; dn 1055 fs/f2fs/data.c f2fs_allocate_data_block(sbi, NULL, old_blkaddr, &dn->data_blkaddr, dn 1060 fs/f2fs/data.c f2fs_update_data_blkaddr(dn, dn->data_blkaddr); dn 1144 fs/f2fs/data.c struct dnode_of_data dn; dn 1188 fs/f2fs/data.c set_new_dnode(&dn, inode, NULL, NULL, 0); dn 1189 fs/f2fs/data.c err = f2fs_get_dnode_of_data(&dn, pgofs, mode); dn 1197 fs/f2fs/data.c f2fs_get_next_page_offset(&dn, pgofs); dn 1200 fs/f2fs/data.c f2fs_get_next_page_offset(&dn, pgofs); dn 1207 fs/f2fs/data.c last_ofs_in_node = ofs_in_node = dn.ofs_in_node; dn 1208 fs/f2fs/data.c end_offset = ADDRS_PER_PAGE(dn.node_page, inode); dn 1211 fs/f2fs/data.c blkaddr = datablock_addr(dn.inode, dn.node_page, dn.ofs_in_node); dn 1223 fs/f2fs/data.c err = __allocate_data_block(&dn, map->m_seg_type); dn 1226 fs/f2fs/data.c blkaddr = dn.data_blkaddr; dn 1238 fs/f2fs/data.c last_ofs_in_node = dn.ofs_in_node; dn 1243 fs/f2fs/data.c err = __allocate_data_block(&dn, dn 1251 fs/f2fs/data.c blkaddr = dn.data_blkaddr; dn 1296 fs/f2fs/data.c dn.ofs_in_node++; dn 1301 fs/f2fs/data.c (pgofs == end || dn.ofs_in_node == end_offset)) { dn 1303 fs/f2fs/data.c dn.ofs_in_node = ofs_in_node; dn 1304 fs/f2fs/data.c err = f2fs_reserve_new_blocks(&dn, prealloc); dn 1308 fs/f2fs/data.c map->m_len += dn.ofs_in_node - ofs_in_node; dn 1309 fs/f2fs/data.c if (prealloc && dn.ofs_in_node != last_ofs_in_node + 1) { dn 1313 fs/f2fs/data.c dn.ofs_in_node = end_offset; dn 1318 fs/f2fs/data.c else if (dn.ofs_in_node < end_offset) dn 1325 fs/f2fs/data.c f2fs_update_extent_cache_range(&dn, dn 1331 fs/f2fs/data.c f2fs_put_dnode(&dn); dn 1335 fs/f2fs/data.c f2fs_balance_fs(sbi, dn.node_changed); dn 1350 fs/f2fs/data.c f2fs_update_extent_cache_range(&dn, dn 1357 fs/f2fs/data.c f2fs_put_dnode(&dn); dn 1361 fs/f2fs/data.c f2fs_balance_fs(sbi, dn.node_changed); dn 1970 fs/f2fs/data.c struct dnode_of_data dn; dn 1976 fs/f2fs/data.c set_new_dnode(&dn, inode, NULL, NULL, 0); dn 1994 fs/f2fs/data.c err = f2fs_get_dnode_of_data(&dn, page->index, LOOKUP_NODE); dn 1998 fs/f2fs/data.c fio->old_blkaddr = dn.data_blkaddr; dn 2026 fs/f2fs/data.c f2fs_put_dnode(&dn); dn 2050 fs/f2fs/data.c err = f2fs_get_node_info(fio->sbi, dn.nid, &ni); dn 2064 fs/f2fs/data.c f2fs_outplace_write_data(&dn, fio); dn 2070 fs/f2fs/data.c f2fs_put_dnode(&dn); dn 2521 fs/f2fs/data.c struct dnode_of_data dn; dn 2556 fs/f2fs/data.c set_new_dnode(&dn, inode, ipage, ipage, 0); dn 2565 fs/f2fs/data.c err = f2fs_convert_inline_page(&dn, page); dn 2568 fs/f2fs/data.c if (dn.data_blkaddr == NULL_ADDR) dn 2569 fs/f2fs/data.c err = f2fs_get_block(&dn, index); dn 2572 fs/f2fs/data.c err = f2fs_get_block(&dn, index); dn 2575 fs/f2fs/data.c dn.data_blkaddr = ei.blk + index - ei.fofs; dn 2578 fs/f2fs/data.c err = f2fs_get_dnode_of_data(&dn, index, LOOKUP_NODE); dn 2579 fs/f2fs/data.c if (err || dn.data_blkaddr == NULL_ADDR) { dn 2580 fs/f2fs/data.c f2fs_put_dnode(&dn); dn 2591 fs/f2fs/data.c *blk_addr = dn.data_blkaddr; dn 2592 fs/f2fs/data.c *node_changed = dn.node_changed; dn 2594 fs/f2fs/data.c f2fs_put_dnode(&dn); dn 788 fs/f2fs/extent_cache.c void f2fs_update_extent_cache(struct dnode_of_data *dn) dn 793 fs/f2fs/extent_cache.c if (!f2fs_may_extent_tree(dn->inode)) dn 796 fs/f2fs/extent_cache.c if (dn->data_blkaddr == NEW_ADDR) dn 799 fs/f2fs/extent_cache.c blkaddr = dn->data_blkaddr; dn 801 fs/f2fs/extent_cache.c fofs = f2fs_start_bidx_of_node(ofs_of_node(dn->node_page), dn->inode) + dn 802 fs/f2fs/extent_cache.c dn->ofs_in_node; dn 803 fs/f2fs/extent_cache.c f2fs_update_extent_tree_range(dn->inode, fofs, blkaddr, 1); dn 806 fs/f2fs/extent_cache.c void f2fs_update_extent_cache_range(struct dnode_of_data *dn, dn 810 fs/f2fs/extent_cache.c if (!f2fs_may_extent_tree(dn->inode)) dn 813 fs/f2fs/extent_cache.c f2fs_update_extent_tree_range(dn->inode, fofs, blkaddr, len); dn 859 fs/f2fs/f2fs.h static inline void set_new_dnode(struct dnode_of_data *dn, struct inode *inode, dn 862 fs/f2fs/f2fs.h memset(dn, 0, sizeof(*dn)); dn 863 fs/f2fs/f2fs.h dn->inode = inode; dn 864 fs/f2fs/f2fs.h dn->inode_page = ipage; dn 865 fs/f2fs/f2fs.h dn->node_page = npage; dn 866 fs/f2fs/f2fs.h dn->nid = nid; dn 2188 fs/f2fs/f2fs.h static inline void f2fs_put_dnode(struct dnode_of_data *dn) dn 2190 fs/f2fs/f2fs.h if (dn->node_page) dn 2191 fs/f2fs/f2fs.h f2fs_put_page(dn->node_page, 1); dn 2192 fs/f2fs/f2fs.h if (dn->inode_page && dn->node_page != dn->inode_page) dn 2193 fs/f2fs/f2fs.h f2fs_put_page(dn->inode_page, 0); dn 2194 fs/f2fs/f2fs.h dn->node_page = NULL; dn 2195 fs/f2fs/f2fs.h dn->inode_page = NULL; dn 2282 fs/f2fs/f2fs.h return RAW_IS_INODE(node) ? node->i.i_addr : node->dn.addr; dn 2926 fs/f2fs/f2fs.h void f2fs_truncate_data_blocks(struct dnode_of_data *dn); dn 2933 fs/f2fs/f2fs.h void f2fs_truncate_data_blocks_range(struct dnode_of_data *dn, int count); dn 3050 fs/f2fs/f2fs.h pgoff_t f2fs_get_next_page_offset(struct dnode_of_data *dn, pgoff_t pgofs); dn 3051 fs/f2fs/f2fs.h int f2fs_get_dnode_of_data(struct dnode_of_data *dn, pgoff_t index, int mode); dn 3058 fs/f2fs/f2fs.h struct page *f2fs_new_node_page(struct dnode_of_data *dn, unsigned int ofs); dn 3124 fs/f2fs/f2fs.h void f2fs_outplace_write_data(struct dnode_of_data *dn, dn 3130 fs/f2fs/f2fs.h void f2fs_replace_block(struct f2fs_sb_info *sbi, struct dnode_of_data *dn, dn 3211 fs/f2fs/f2fs.h void f2fs_set_data_blkaddr(struct dnode_of_data *dn); dn 3212 fs/f2fs/f2fs.h void f2fs_update_data_blkaddr(struct dnode_of_data *dn, block_t blkaddr); dn 3213 fs/f2fs/f2fs.h int f2fs_reserve_new_blocks(struct dnode_of_data *dn, blkcnt_t count); dn 3214 fs/f2fs/f2fs.h int f2fs_reserve_new_block(struct dnode_of_data *dn); dn 3215 fs/f2fs/f2fs.h int f2fs_get_block(struct dnode_of_data *dn, pgoff_t index); dn 3217 fs/f2fs/f2fs.h int f2fs_reserve_block(struct dnode_of_data *dn, pgoff_t index); dn 3497 fs/f2fs/f2fs.h int f2fs_convert_inline_page(struct dnode_of_data *dn, struct page *page); dn 3551 fs/f2fs/f2fs.h void f2fs_update_extent_cache(struct dnode_of_data *dn); dn 3552 fs/f2fs/f2fs.h void f2fs_update_extent_cache_range(struct dnode_of_data *dn, dn 53 fs/f2fs/file.c struct dnode_of_data dn; dn 86 fs/f2fs/file.c set_new_dnode(&dn, inode, NULL, NULL, 0); dn 87 fs/f2fs/file.c err = f2fs_get_block(&dn, page->index); dn 88 fs/f2fs/file.c f2fs_put_dnode(&dn); dn 99 fs/f2fs/file.c f2fs_wait_on_block_writeback(inode, dn.data_blkaddr); dn 383 fs/f2fs/file.c struct dnode_of_data dn; dn 407 fs/f2fs/file.c set_new_dnode(&dn, inode, NULL, NULL, 0); dn 408 fs/f2fs/file.c err = f2fs_get_dnode_of_data(&dn, pgofs, LOOKUP_NODE); dn 414 fs/f2fs/file.c pgofs = f2fs_get_next_page_offset(&dn, pgofs); dn 421 fs/f2fs/file.c end_offset = ADDRS_PER_PAGE(dn.node_page, inode); dn 424 fs/f2fs/file.c for (; dn.ofs_in_node < end_offset; dn 425 fs/f2fs/file.c dn.ofs_in_node++, pgofs++, dn 429 fs/f2fs/file.c blkaddr = datablock_addr(dn.inode, dn 430 fs/f2fs/file.c dn.node_page, dn.ofs_in_node); dn 435 fs/f2fs/file.c f2fs_put_dnode(&dn); dn 441 fs/f2fs/file.c f2fs_put_dnode(&dn); dn 445 fs/f2fs/file.c f2fs_put_dnode(&dn); dn 515 fs/f2fs/file.c void f2fs_truncate_data_blocks_range(struct dnode_of_data *dn, int count) dn 517 fs/f2fs/file.c struct f2fs_sb_info *sbi = F2FS_I_SB(dn->inode); dn 519 fs/f2fs/file.c int nr_free = 0, ofs = dn->ofs_in_node, len = count; dn 523 fs/f2fs/file.c if (IS_INODE(dn->node_page) && f2fs_has_extra_attr(dn->inode)) dn 524 fs/f2fs/file.c base = get_extra_isize(dn->inode); dn 526 fs/f2fs/file.c raw_node = F2FS_NODE(dn->node_page); dn 529 fs/f2fs/file.c for (; count > 0; count--, addr++, dn->ofs_in_node++) { dn 535 fs/f2fs/file.c dn->data_blkaddr = NULL_ADDR; dn 536 fs/f2fs/file.c f2fs_set_data_blkaddr(dn); dn 544 fs/f2fs/file.c if (dn->ofs_in_node == 0 && IS_INODE(dn->node_page)) dn 545 fs/f2fs/file.c clear_inode_flag(dn->inode, FI_FIRST_BLOCK_WRITTEN); dn 555 fs/f2fs/file.c fofs = f2fs_start_bidx_of_node(ofs_of_node(dn->node_page), dn 556 fs/f2fs/file.c dn->inode) + ofs; dn 557 fs/f2fs/file.c f2fs_update_extent_cache_range(dn, fofs, 0, len); dn 558 fs/f2fs/file.c dec_valid_block_count(sbi, dn->inode, nr_free); dn 560 fs/f2fs/file.c dn->ofs_in_node = ofs; dn 563 fs/f2fs/file.c trace_f2fs_truncate_data_blocks_range(dn->inode, dn->nid, dn 564 fs/f2fs/file.c dn->ofs_in_node, nr_free); dn 567 fs/f2fs/file.c void f2fs_truncate_data_blocks(struct dnode_of_data *dn) dn 569 fs/f2fs/file.c f2fs_truncate_data_blocks_range(dn, ADDRS_PER_BLOCK(dn->inode)); dn 609 fs/f2fs/file.c struct dnode_of_data dn; dn 638 fs/f2fs/file.c set_new_dnode(&dn, inode, ipage, NULL, 0); dn 639 fs/f2fs/file.c err = f2fs_get_dnode_of_data(&dn, free_from, LOOKUP_NODE_RA); dn 646 fs/f2fs/file.c count = ADDRS_PER_PAGE(dn.node_page, inode); dn 648 fs/f2fs/file.c count -= dn.ofs_in_node; dn 651 fs/f2fs/file.c if (dn.ofs_in_node || IS_INODE(dn.node_page)) { dn 652 fs/f2fs/file.c f2fs_truncate_data_blocks_range(&dn, count); dn 656 fs/f2fs/file.c f2fs_put_dnode(&dn); dn 917 fs/f2fs/file.c struct dnode_of_data dn; dn 920 fs/f2fs/file.c set_new_dnode(&dn, inode, NULL, NULL, 0); dn 921 fs/f2fs/file.c err = f2fs_get_dnode_of_data(&dn, pg_start, LOOKUP_NODE); dn 924 fs/f2fs/file.c pg_start = f2fs_get_next_page_offset(&dn, dn 931 fs/f2fs/file.c end_offset = ADDRS_PER_PAGE(dn.node_page, inode); dn 932 fs/f2fs/file.c count = min(end_offset - dn.ofs_in_node, pg_end - pg_start); dn 936 fs/f2fs/file.c f2fs_truncate_data_blocks_range(&dn, count); dn 937 fs/f2fs/file.c f2fs_put_dnode(&dn); dn 1010 fs/f2fs/file.c struct dnode_of_data dn; dn 1014 fs/f2fs/file.c set_new_dnode(&dn, inode, NULL, NULL, 0); dn 1015 fs/f2fs/file.c ret = f2fs_get_dnode_of_data(&dn, off, LOOKUP_NODE_RA); dn 1019 fs/f2fs/file.c if (dn.max_level == 0) dn 1021 fs/f2fs/file.c done = min((pgoff_t)ADDRS_PER_BLOCK(inode) - dn.ofs_in_node, dn 1028 fs/f2fs/file.c done = min((pgoff_t)ADDRS_PER_PAGE(dn.node_page, inode) - dn 1029 fs/f2fs/file.c dn.ofs_in_node, len); dn 1030 fs/f2fs/file.c for (i = 0; i < done; i++, blkaddr++, do_replace++, dn.ofs_in_node++) { dn 1031 fs/f2fs/file.c *blkaddr = datablock_addr(dn.inode, dn 1032 fs/f2fs/file.c dn.node_page, dn.ofs_in_node); dn 1037 fs/f2fs/file.c f2fs_put_dnode(&dn); dn 1044 fs/f2fs/file.c f2fs_put_dnode(&dn); dn 1049 fs/f2fs/file.c f2fs_update_data_blkaddr(&dn, NULL_ADDR); dn 1053 fs/f2fs/file.c f2fs_put_dnode(&dn); dn 1066 fs/f2fs/file.c struct dnode_of_data dn; dn 1073 fs/f2fs/file.c set_new_dnode(&dn, inode, NULL, NULL, 0); dn 1074 fs/f2fs/file.c ret = f2fs_get_dnode_of_data(&dn, off + i, LOOKUP_NODE_RA); dn 1079 fs/f2fs/file.c f2fs_update_data_blkaddr(&dn, *blkaddr); dn 1081 fs/f2fs/file.c f2fs_put_dnode(&dn); dn 1101 fs/f2fs/file.c struct dnode_of_data dn; dn 1106 fs/f2fs/file.c set_new_dnode(&dn, dst_inode, NULL, NULL, 0); dn 1107 fs/f2fs/file.c ret = f2fs_get_dnode_of_data(&dn, dst + i, ALLOC_NODE); dn 1111 fs/f2fs/file.c ret = f2fs_get_node_info(sbi, dn.nid, &ni); dn 1113 fs/f2fs/file.c f2fs_put_dnode(&dn); dn 1118 fs/f2fs/file.c ADDRS_PER_PAGE(dn.node_page, dst_inode) - dn 1119 fs/f2fs/file.c dn.ofs_in_node, len - i); dn 1121 fs/f2fs/file.c dn.data_blkaddr = datablock_addr(dn.inode, dn 1122 fs/f2fs/file.c dn.node_page, dn.ofs_in_node); dn 1123 fs/f2fs/file.c f2fs_truncate_data_blocks_range(&dn, 1); dn 1130 fs/f2fs/file.c f2fs_replace_block(sbi, &dn, dn.data_blkaddr, dn 1135 fs/f2fs/file.c dn.ofs_in_node++; dn 1142 fs/f2fs/file.c f2fs_put_dnode(&dn); dn 1288 fs/f2fs/file.c static int f2fs_do_zero_range(struct dnode_of_data *dn, pgoff_t start, dn 1291 fs/f2fs/file.c struct f2fs_sb_info *sbi = F2FS_I_SB(dn->inode); dn 1293 fs/f2fs/file.c unsigned int ofs_in_node = dn->ofs_in_node; dn 1297 fs/f2fs/file.c for (; index < end; index++, dn->ofs_in_node++) { dn 1298 fs/f2fs/file.c if (datablock_addr(dn->inode, dn->node_page, dn 1299 fs/f2fs/file.c dn->ofs_in_node) == NULL_ADDR) dn 1303 fs/f2fs/file.c dn->ofs_in_node = ofs_in_node; dn 1304 fs/f2fs/file.c ret = f2fs_reserve_new_blocks(dn, count); dn 1308 fs/f2fs/file.c dn->ofs_in_node = ofs_in_node; dn 1309 fs/f2fs/file.c for (index = start; index < end; index++, dn->ofs_in_node++) { dn 1310 fs/f2fs/file.c dn->data_blkaddr = datablock_addr(dn->inode, dn 1311 fs/f2fs/file.c dn->node_page, dn->ofs_in_node); dn 1316 fs/f2fs/file.c if (dn->data_blkaddr == NULL_ADDR) { dn 1320 fs/f2fs/file.c if (dn->data_blkaddr != NEW_ADDR) { dn 1321 fs/f2fs/file.c f2fs_invalidate_blocks(sbi, dn->data_blkaddr); dn 1322 fs/f2fs/file.c dn->data_blkaddr = NEW_ADDR; dn 1323 fs/f2fs/file.c f2fs_set_data_blkaddr(dn); dn 1327 fs/f2fs/file.c f2fs_update_extent_cache_range(dn, start, 0, index - start); dn 1379 fs/f2fs/file.c struct dnode_of_data dn; dn 1392 fs/f2fs/file.c set_new_dnode(&dn, inode, NULL, NULL, 0); dn 1393 fs/f2fs/file.c ret = f2fs_get_dnode_of_data(&dn, index, ALLOC_NODE); dn 1401 fs/f2fs/file.c end_offset = ADDRS_PER_PAGE(dn.node_page, inode); dn 1402 fs/f2fs/file.c end = min(pg_end, end_offset - dn.ofs_in_node + index); dn 1404 fs/f2fs/file.c ret = f2fs_do_zero_range(&dn, index, end); dn 1405 fs/f2fs/file.c f2fs_put_dnode(&dn); dn 1411 fs/f2fs/file.c f2fs_balance_fs(sbi, dn.node_changed); dn 662 fs/f2fs/gc.c struct dnode_of_data dn; dn 683 fs/f2fs/gc.c dn.data_blkaddr = ei.blk + index - ei.fofs; dn 684 fs/f2fs/gc.c if (unlikely(!f2fs_is_valid_blkaddr(sbi, dn.data_blkaddr, dn 692 fs/f2fs/gc.c set_new_dnode(&dn, inode, NULL, NULL, 0); dn 693 fs/f2fs/gc.c err = f2fs_get_dnode_of_data(&dn, index, LOOKUP_NODE); dn 696 fs/f2fs/gc.c f2fs_put_dnode(&dn); dn 698 fs/f2fs/gc.c if (!__is_valid_data_blkaddr(dn.data_blkaddr)) { dn 702 fs/f2fs/gc.c if (unlikely(!f2fs_is_valid_blkaddr(sbi, dn.data_blkaddr, dn 710 fs/f2fs/gc.c fio.new_blkaddr = fio.old_blkaddr = dn.data_blkaddr; dn 718 fs/f2fs/gc.c f2fs_wait_on_block_writeback(inode, dn.data_blkaddr); dn 721 fs/f2fs/gc.c dn.data_blkaddr, dn 759 fs/f2fs/gc.c struct dnode_of_data dn; dn 790 fs/f2fs/gc.c set_new_dnode(&dn, inode, NULL, NULL, 0); dn 791 fs/f2fs/gc.c err = f2fs_get_dnode_of_data(&dn, bidx, LOOKUP_NODE); dn 795 fs/f2fs/gc.c if (unlikely(dn.data_blkaddr == NULL_ADDR)) { dn 807 fs/f2fs/gc.c f2fs_wait_on_block_writeback(inode, dn.data_blkaddr); dn 809 fs/f2fs/gc.c err = f2fs_get_node_info(fio.sbi, dn.nid, &ni); dn 813 fs/f2fs/gc.c set_summary(&sum, dn.nid, dn.ofs_in_node, ni.version); dn 817 fs/f2fs/gc.c fio.new_blkaddr = fio.old_blkaddr = dn.data_blkaddr; dn 872 fs/f2fs/gc.c f2fs_wait_on_page_writeback(dn.node_page, NODE, true, true); dn 887 fs/f2fs/gc.c f2fs_update_data_blkaddr(&dn, newaddr); dn 901 fs/f2fs/gc.c f2fs_put_dnode(&dn); dn 110 fs/f2fs/inline.c int f2fs_convert_inline_page(struct dnode_of_data *dn, struct page *page) dn 113 fs/f2fs/inline.c .sbi = F2FS_I_SB(dn->inode), dn 114 fs/f2fs/inline.c .ino = dn->inode->i_ino, dn 125 fs/f2fs/inline.c if (!f2fs_exist_data(dn->inode)) dn 128 fs/f2fs/inline.c err = f2fs_reserve_block(dn, 0); dn 132 fs/f2fs/inline.c err = f2fs_get_node_info(fio.sbi, dn->nid, &ni); dn 134 fs/f2fs/inline.c f2fs_truncate_data_blocks_range(dn, 1); dn 135 fs/f2fs/inline.c f2fs_put_dnode(dn); dn 141 fs/f2fs/inline.c if (unlikely(dn->data_blkaddr != NEW_ADDR)) { dn 142 fs/f2fs/inline.c f2fs_put_dnode(dn); dn 145 fs/f2fs/inline.c __func__, dn->inode->i_ino, dn->data_blkaddr); dn 151 fs/f2fs/inline.c f2fs_do_read_inline_data(page, dn->inode_page); dn 160 fs/f2fs/inline.c fio.old_blkaddr = dn->data_blkaddr; dn 161 fs/f2fs/inline.c set_inode_flag(dn->inode, FI_HOT_DATA); dn 162 fs/f2fs/inline.c f2fs_outplace_write_data(dn, &fio); dn 165 fs/f2fs/inline.c inode_dec_dirty_pages(dn->inode); dn 166 fs/f2fs/inline.c f2fs_remove_dirty_inode(dn->inode); dn 170 fs/f2fs/inline.c set_inode_flag(dn->inode, FI_APPEND_WRITE); dn 173 fs/f2fs/inline.c f2fs_truncate_inline_inode(dn->inode, dn->inode_page, 0); dn 174 fs/f2fs/inline.c clear_inline_node(dn->inode_page); dn 176 fs/f2fs/inline.c stat_dec_inline_inode(dn->inode); dn 177 fs/f2fs/inline.c clear_inode_flag(dn->inode, FI_INLINE_DATA); dn 178 fs/f2fs/inline.c f2fs_put_dnode(dn); dn 185 fs/f2fs/inline.c struct dnode_of_data dn; dn 204 fs/f2fs/inline.c set_new_dnode(&dn, inode, ipage, ipage, 0); dn 207 fs/f2fs/inline.c err = f2fs_convert_inline_page(&dn, page); dn 209 fs/f2fs/inline.c f2fs_put_dnode(&dn); dn 215 fs/f2fs/inline.c f2fs_balance_fs(sbi, dn.node_changed); dn 223 fs/f2fs/inline.c struct dnode_of_data dn; dn 226 fs/f2fs/inline.c set_new_dnode(&dn, inode, NULL, NULL, 0); dn 227 fs/f2fs/inline.c err = f2fs_get_dnode_of_data(&dn, 0, LOOKUP_NODE); dn 232 fs/f2fs/inline.c f2fs_put_dnode(&dn); dn 238 fs/f2fs/inline.c f2fs_wait_on_page_writeback(dn.inode_page, NODE, true, true); dn 240 fs/f2fs/inline.c dst_addr = inline_data_addr(inode, dn.inode_page); dn 243 fs/f2fs/inline.c set_page_dirty(dn.inode_page); dn 250 fs/f2fs/inline.c clear_inline_node(dn.inode_page); dn 251 fs/f2fs/inline.c f2fs_put_dnode(&dn); dn 366 fs/f2fs/inline.c struct dnode_of_data dn; dn 377 fs/f2fs/inline.c set_new_dnode(&dn, dir, ipage, NULL, 0); dn 378 fs/f2fs/inline.c err = f2fs_reserve_block(&dn, 0); dn 382 fs/f2fs/inline.c if (unlikely(dn.data_blkaddr != NEW_ADDR)) { dn 383 fs/f2fs/inline.c f2fs_put_dnode(&dn); dn 386 fs/f2fs/inline.c __func__, dir->i_ino, dn.data_blkaddr); dn 605 fs/f2fs/node.c pgoff_t f2fs_get_next_page_offset(struct dnode_of_data *dn, pgoff_t pgofs) dn 607 fs/f2fs/node.c const long direct_index = ADDRS_PER_INODE(dn->inode); dn 608 fs/f2fs/node.c const long direct_blks = ADDRS_PER_BLOCK(dn->inode); dn 609 fs/f2fs/node.c const long indirect_blks = ADDRS_PER_BLOCK(dn->inode) * NIDS_PER_BLOCK; dn 610 fs/f2fs/node.c unsigned int skipped_unit = ADDRS_PER_BLOCK(dn->inode); dn 611 fs/f2fs/node.c int cur_level = dn->cur_level; dn 612 fs/f2fs/node.c int max_level = dn->max_level; dn 615 fs/f2fs/node.c if (!dn->max_level) dn 621 fs/f2fs/node.c switch (dn->max_level) { dn 632 fs/f2fs/node.c f2fs_bug_on(F2FS_I_SB(dn->inode), 1); dn 722 fs/f2fs/node.c int f2fs_get_dnode_of_data(struct dnode_of_data *dn, pgoff_t index, int mode) dn 724 fs/f2fs/node.c struct f2fs_sb_info *sbi = F2FS_I_SB(dn->inode); dn 733 fs/f2fs/node.c level = get_node_path(dn->inode, index, offset, noffset); dn 737 fs/f2fs/node.c nids[0] = dn->inode->i_ino; dn 738 fs/f2fs/node.c npage[0] = dn->inode_page; dn 747 fs/f2fs/node.c if (f2fs_has_inline_data(dn->inode) && index) { dn 756 fs/f2fs/node.c dn->inode_page = npage[0]; dn 757 fs/f2fs/node.c dn->inode_page_locked = true; dn 770 fs/f2fs/node.c dn->nid = nids[i]; dn 771 fs/f2fs/node.c npage[i] = f2fs_new_node_page(dn, noffset[i]); dn 790 fs/f2fs/node.c dn->inode_page_locked = false; dn 809 fs/f2fs/node.c dn->nid = nids[level]; dn 810 fs/f2fs/node.c dn->ofs_in_node = offset[level]; dn 811 fs/f2fs/node.c dn->node_page = npage[level]; dn 812 fs/f2fs/node.c dn->data_blkaddr = datablock_addr(dn->inode, dn 813 fs/f2fs/node.c dn->node_page, dn->ofs_in_node); dn 821 fs/f2fs/node.c dn->inode_page = NULL; dn 822 fs/f2fs/node.c dn->node_page = NULL; dn 824 fs/f2fs/node.c dn->cur_level = i; dn 825 fs/f2fs/node.c dn->max_level = level; dn 826 fs/f2fs/node.c dn->ofs_in_node = offset[level]; dn 831 fs/f2fs/node.c static int truncate_node(struct dnode_of_data *dn) dn 833 fs/f2fs/node.c struct f2fs_sb_info *sbi = F2FS_I_SB(dn->inode); dn 838 fs/f2fs/node.c err = f2fs_get_node_info(sbi, dn->nid, &ni); dn 844 fs/f2fs/node.c dec_valid_node_count(sbi, dn->inode, dn->nid == dn->inode->i_ino); dn 847 fs/f2fs/node.c if (dn->nid == dn->inode->i_ino) { dn 848 fs/f2fs/node.c f2fs_remove_orphan_inode(sbi, dn->nid); dn 850 fs/f2fs/node.c f2fs_inode_synced(dn->inode); dn 853 fs/f2fs/node.c clear_node_page_dirty(dn->node_page); dn 856 fs/f2fs/node.c index = dn->node_page->index; dn 857 fs/f2fs/node.c f2fs_put_page(dn->node_page, 1); dn 862 fs/f2fs/node.c dn->node_page = NULL; dn 863 fs/f2fs/node.c trace_f2fs_truncate_node(dn->inode, dn->nid, ni.blk_addr); dn 868 fs/f2fs/node.c static int truncate_dnode(struct dnode_of_data *dn) dn 873 fs/f2fs/node.c if (dn->nid == 0) dn 877 fs/f2fs/node.c page = f2fs_get_node_page(F2FS_I_SB(dn->inode), dn->nid); dn 884 fs/f2fs/node.c dn->node_page = page; dn 885 fs/f2fs/node.c dn->ofs_in_node = 0; dn 886 fs/f2fs/node.c f2fs_truncate_data_blocks(dn); dn 887 fs/f2fs/node.c err = truncate_node(dn); dn 894 fs/f2fs/node.c static int truncate_nodes(struct dnode_of_data *dn, unsigned int nofs, dn 897 fs/f2fs/node.c struct dnode_of_data rdn = *dn; dn 905 fs/f2fs/node.c if (dn->nid == 0) dn 908 fs/f2fs/node.c trace_f2fs_truncate_nodes_enter(dn->inode, dn->nid, dn->data_blkaddr); dn 910 fs/f2fs/node.c page = f2fs_get_node_page(F2FS_I_SB(dn->inode), dn->nid); dn 912 fs/f2fs/node.c trace_f2fs_truncate_nodes_exit(dn->inode, PTR_ERR(page)); dn 929 fs/f2fs/node.c dn->node_changed = true; dn 943 fs/f2fs/node.c dn->node_changed = true; dn 954 fs/f2fs/node.c dn->node_page = page; dn 955 fs/f2fs/node.c ret = truncate_node(dn); dn 962 fs/f2fs/node.c trace_f2fs_truncate_nodes_exit(dn->inode, freed); dn 967 fs/f2fs/node.c trace_f2fs_truncate_nodes_exit(dn->inode, ret); dn 971 fs/f2fs/node.c static int truncate_partial_nodes(struct dnode_of_data *dn, dn 988 fs/f2fs/node.c pages[i] = f2fs_get_node_page(F2FS_I_SB(dn->inode), nid[i]); dn 1004 fs/f2fs/node.c dn->nid = child_nid; dn 1005 fs/f2fs/node.c err = truncate_dnode(dn); dn 1009 fs/f2fs/node.c dn->node_changed = true; dn 1013 fs/f2fs/node.c dn->node_page = pages[idx]; dn 1014 fs/f2fs/node.c dn->nid = nid[idx]; dn 1015 fs/f2fs/node.c err = truncate_node(dn); dn 1028 fs/f2fs/node.c trace_f2fs_truncate_partial_nodes(dn->inode, nid, depth, err); dn 1043 fs/f2fs/node.c struct dnode_of_data dn; dn 1058 fs/f2fs/node.c set_new_dnode(&dn, inode, page, NULL, 0); dn 1071 fs/f2fs/node.c err = truncate_partial_nodes(&dn, ri, offset, level); dn 1080 fs/f2fs/node.c err = truncate_partial_nodes(&dn, ri, offset, level); dn 1090 fs/f2fs/node.c dn.nid = le32_to_cpu(ri->i_nid[offset[0] - NODE_DIR1_BLOCK]); dn 1094 fs/f2fs/node.c err = truncate_dnode(&dn); dn 1099 fs/f2fs/node.c err = truncate_nodes(&dn, nofs, offset[1], 2); dn 1103 fs/f2fs/node.c err = truncate_nodes(&dn, nofs, offset[1], 3); dn 1136 fs/f2fs/node.c struct dnode_of_data dn; dn 1147 fs/f2fs/node.c set_new_dnode(&dn, inode, NULL, npage, nid); dn 1148 fs/f2fs/node.c err = truncate_node(&dn); dn 1165 fs/f2fs/node.c struct dnode_of_data dn; dn 1168 fs/f2fs/node.c set_new_dnode(&dn, inode, NULL, NULL, inode->i_ino); dn 1169 fs/f2fs/node.c err = f2fs_get_dnode_of_data(&dn, 0, LOOKUP_NODE); dn 1175 fs/f2fs/node.c f2fs_put_dnode(&dn); dn 1182 fs/f2fs/node.c f2fs_truncate_data_blocks_range(&dn, 1); dn 1186 fs/f2fs/node.c f2fs_put_dnode(&dn); dn 1197 fs/f2fs/node.c err = truncate_node(&dn); dn 1199 fs/f2fs/node.c f2fs_put_dnode(&dn); dn 1207 fs/f2fs/node.c struct dnode_of_data dn; dn 1210 fs/f2fs/node.c set_new_dnode(&dn, inode, NULL, NULL, inode->i_ino); dn 1213 fs/f2fs/node.c return f2fs_new_node_page(&dn, 0); dn 1216 fs/f2fs/node.c struct page *f2fs_new_node_page(struct dnode_of_data *dn, unsigned int ofs) dn 1218 fs/f2fs/node.c struct f2fs_sb_info *sbi = F2FS_I_SB(dn->inode); dn 1223 fs/f2fs/node.c if (unlikely(is_inode_flag_set(dn->inode, FI_NO_ALLOC))) dn 1226 fs/f2fs/node.c page = f2fs_grab_cache_page(NODE_MAPPING(sbi), dn->nid, false); dn 1230 fs/f2fs/node.c if (unlikely((err = inc_valid_node_count(sbi, dn->inode, !ofs)))) dn 1234 fs/f2fs/node.c err = f2fs_get_node_info(sbi, dn->nid, &new_ni); dn 1236 fs/f2fs/node.c dec_valid_node_count(sbi, dn->inode, !ofs); dn 1241 fs/f2fs/node.c new_ni.nid = dn->nid; dn 1242 fs/f2fs/node.c new_ni.ino = dn->inode->i_ino; dn 1249 fs/f2fs/node.c fill_node_footer(page, dn->nid, dn->inode->i_ino, ofs, true); dn 1250 fs/f2fs/node.c set_cold_node(page, S_ISDIR(dn->inode->i_mode)); dn 1254 fs/f2fs/node.c dn->node_changed = true; dn 1257 fs/f2fs/node.c f2fs_i_xnid_write(dn->inode, dn->nid); dn 2549 fs/f2fs/node.c struct dnode_of_data dn; dn 2571 fs/f2fs/node.c set_new_dnode(&dn, inode, NULL, NULL, new_xnid); dn 2572 fs/f2fs/node.c xpage = f2fs_new_node_page(&dn, XATTR_NODE_OFFSET); dn 398 fs/f2fs/recovery.c block_t blkaddr, struct dnode_of_data *dn) dn 406 fs/f2fs/recovery.c struct dnode_of_data tdn = *dn; dn 435 fs/f2fs/recovery.c if (dn->inode->i_ino == nid) { dn 437 fs/f2fs/recovery.c if (!dn->inode_page_locked) dn 438 fs/f2fs/recovery.c lock_page(dn->inode_page); dn 439 fs/f2fs/recovery.c tdn.node_page = dn->inode_page; dn 442 fs/f2fs/recovery.c } else if (dn->nid == nid) { dn 456 fs/f2fs/recovery.c if (ino != dn->inode->i_ino) { dn 470 fs/f2fs/recovery.c inode = dn->inode; dn 480 fs/f2fs/recovery.c if (ino == dn->inode->i_ino && dn->inode_page_locked) dn 481 fs/f2fs/recovery.c unlock_page(dn->inode_page); dn 492 fs/f2fs/recovery.c if (ino != dn->inode->i_ino) dn 494 fs/f2fs/recovery.c else if (dn->inode_page_locked) dn 495 fs/f2fs/recovery.c lock_page(dn->inode_page); dn 502 fs/f2fs/recovery.c if (dn->inode->i_ino == nid && !dn->inode_page_locked) dn 503 fs/f2fs/recovery.c unlock_page(dn->inode_page); dn 510 fs/f2fs/recovery.c struct dnode_of_data dn; dn 533 fs/f2fs/recovery.c set_new_dnode(&dn, inode, NULL, NULL, 0); dn 535 fs/f2fs/recovery.c err = f2fs_get_dnode_of_data(&dn, start, ALLOC_NODE); dn 544 fs/f2fs/recovery.c f2fs_wait_on_page_writeback(dn.node_page, NODE, true, true); dn 546 fs/f2fs/recovery.c err = f2fs_get_node_info(sbi, dn.nid, &ni); dn 552 fs/f2fs/recovery.c if (ofs_of_node(dn.node_page) != ofs_of_node(page)) { dn 554 fs/f2fs/recovery.c inode->i_ino, ofs_of_node(dn.node_page), dn 560 fs/f2fs/recovery.c for (; start < end; start++, dn.ofs_in_node++) { dn 563 fs/f2fs/recovery.c src = datablock_addr(dn.inode, dn.node_page, dn.ofs_in_node); dn 564 fs/f2fs/recovery.c dest = datablock_addr(dn.inode, page, dn.ofs_in_node); dn 584 fs/f2fs/recovery.c f2fs_truncate_data_blocks_range(&dn, 1); dn 598 fs/f2fs/recovery.c f2fs_truncate_data_blocks_range(&dn, 1); dn 599 fs/f2fs/recovery.c f2fs_reserve_new_block(&dn); dn 607 fs/f2fs/recovery.c err = f2fs_reserve_new_block(&dn); dn 610 fs/f2fs/recovery.c err = f2fs_reserve_new_block(&dn); dn 618 fs/f2fs/recovery.c err = check_index_in_prev_nodes(sbi, dest, &dn); dn 628 fs/f2fs/recovery.c f2fs_replace_block(sbi, &dn, src, dest, dn 634 fs/f2fs/recovery.c copy_node_footer(dn.node_page, page); dn 635 fs/f2fs/recovery.c fill_node_footer(dn.node_page, dn.nid, ni.ino, dn 637 fs/f2fs/recovery.c set_page_dirty(dn.node_page); dn 639 fs/f2fs/recovery.c f2fs_put_dnode(&dn); dn 238 fs/f2fs/segment.c struct dnode_of_data dn; dn 243 fs/f2fs/segment.c set_new_dnode(&dn, inode, NULL, NULL, 0); dn 244 fs/f2fs/segment.c err = f2fs_get_dnode_of_data(&dn, page->index, dn 256 fs/f2fs/segment.c err = f2fs_get_node_info(sbi, dn.nid, &ni); dn 258 fs/f2fs/segment.c f2fs_put_dnode(&dn); dn 263 fs/f2fs/segment.c f2fs_invalidate_blocks(sbi, dn.data_blkaddr); dn 264 fs/f2fs/segment.c f2fs_update_data_blkaddr(&dn, NEW_ADDR); dn 266 fs/f2fs/segment.c f2fs_replace_block(sbi, &dn, dn.data_blkaddr, dn 268 fs/f2fs/segment.c f2fs_put_dnode(&dn); dn 3232 fs/f2fs/segment.c void f2fs_outplace_write_data(struct dnode_of_data *dn, dn 3238 fs/f2fs/segment.c f2fs_bug_on(sbi, dn->data_blkaddr == NULL_ADDR); dn 3239 fs/f2fs/segment.c set_summary(&sum, dn->nid, dn->ofs_in_node, fio->version); dn 3241 fs/f2fs/segment.c f2fs_update_data_blkaddr(dn, fio->new_blkaddr); dn 3370 fs/f2fs/segment.c void f2fs_replace_block(struct f2fs_sb_info *sbi, struct dnode_of_data *dn, dn 3377 fs/f2fs/segment.c set_summary(&sum, dn->nid, dn->ofs_in_node, version); dn 3382 fs/f2fs/segment.c f2fs_update_data_blkaddr(dn, new_addr); dn 468 fs/f2fs/xattr.c struct dnode_of_data dn; dn 469 fs/f2fs/xattr.c set_new_dnode(&dn, inode, NULL, NULL, new_nid); dn 470 fs/f2fs/xattr.c xpage = f2fs_new_node_page(&dn, XATTR_NODE_OFFSET); dn 797 fs/hpfs/dnode.c struct quad_buffer_head *qbh, struct dnode **dn) dn 804 fs/hpfs/dnode.c if (dn) *dn=dnode; dn 35 fs/notify/dnotify/dnotify.c struct dnotify_struct *dn; dn 49 fs/notify/dnotify/dnotify.c struct dnotify_struct *dn; dn 56 fs/notify/dnotify/dnotify.c for (dn = dn_mark->dn; dn != NULL; dn = dn->dn_next) dn 57 fs/notify/dnotify/dnotify.c new_mask |= (dn->dn_mask & ~FS_DN_MULTISHOT); dn 81 fs/notify/dnotify/dnotify.c struct dnotify_struct *dn; dn 96 fs/notify/dnotify/dnotify.c prev = &dn_mark->dn; dn 97 fs/notify/dnotify/dnotify.c while ((dn = *prev) != NULL) { dn 98 fs/notify/dnotify/dnotify.c if ((dn->dn_mask & test_mask) == 0) { dn 99 fs/notify/dnotify/dnotify.c prev = &dn->dn_next; dn 102 fs/notify/dnotify/dnotify.c fown = &dn->dn_filp->f_owner; dn 103 fs/notify/dnotify/dnotify.c send_sigio(fown, dn->dn_fd, POLL_MSG); dn 104 fs/notify/dnotify/dnotify.c if (dn->dn_mask & FS_DN_MULTISHOT) dn 105 fs/notify/dnotify/dnotify.c prev = &dn->dn_next; dn 107 fs/notify/dnotify/dnotify.c *prev = dn->dn_next; dn 108 fs/notify/dnotify/dnotify.c kmem_cache_free(dnotify_struct_cache, dn); dn 124 fs/notify/dnotify/dnotify.c BUG_ON(dn_mark->dn); dn 145 fs/notify/dnotify/dnotify.c struct dnotify_struct *dn; dn 162 fs/notify/dnotify/dnotify.c prev = &dn_mark->dn; dn 163 fs/notify/dnotify/dnotify.c while ((dn = *prev) != NULL) { dn 164 fs/notify/dnotify/dnotify.c if ((dn->dn_owner == id) && (dn->dn_filp == filp)) { dn 165 fs/notify/dnotify/dnotify.c *prev = dn->dn_next; dn 166 fs/notify/dnotify/dnotify.c kmem_cache_free(dnotify_struct_cache, dn); dn 170 fs/notify/dnotify/dnotify.c prev = &dn->dn_next; dn 177 fs/notify/dnotify/dnotify.c if (dn_mark->dn == NULL) { dn 218 fs/notify/dnotify/dnotify.c static int attach_dn(struct dnotify_struct *dn, struct dnotify_mark *dn_mark, dn 223 fs/notify/dnotify/dnotify.c odn = dn_mark->dn; dn 234 fs/notify/dnotify/dnotify.c dn->dn_mask = mask; dn 235 fs/notify/dnotify/dnotify.c dn->dn_fd = fd; dn 236 fs/notify/dnotify/dnotify.c dn->dn_filp = filp; dn 237 fs/notify/dnotify/dnotify.c dn->dn_owner = id; dn 238 fs/notify/dnotify/dnotify.c dn->dn_next = dn_mark->dn; dn 239 fs/notify/dnotify/dnotify.c dn_mark->dn = dn; dn 253 fs/notify/dnotify/dnotify.c struct dnotify_struct *dn; dn 262 fs/notify/dnotify/dnotify.c dn = NULL; dn 295 fs/notify/dnotify/dnotify.c dn = kmem_cache_alloc(dnotify_struct_cache, GFP_KERNEL); dn 296 fs/notify/dnotify/dnotify.c if (!dn) { dn 312 fs/notify/dnotify/dnotify.c new_dn_mark->dn = NULL; dn 359 fs/notify/dnotify/dnotify.c error = attach_dn(dn, dn_mark, id, fd, filp, mask); dn 362 fs/notify/dnotify/dnotify.c dn = NULL; dn 381 fs/notify/dnotify/dnotify.c if (dn) dn 382 fs/notify/dnotify/dnotify.c kmem_cache_free(dnotify_struct_cache, dn); dn 27 fs/ubifs/crypto.c int ubifs_encrypt(const struct inode *inode, struct ubifs_data_node *dn, dn 31 fs/ubifs/crypto.c void *p = &dn->data; dn 36 fs/ubifs/crypto.c dn->compr_size = cpu_to_le16(in_len); dn 53 fs/ubifs/crypto.c int ubifs_decrypt(const struct inode *inode, struct ubifs_data_node *dn, dn 58 fs/ubifs/crypto.c unsigned int clen = le16_to_cpu(dn->compr_size); dn 67 fs/ubifs/crypto.c err = fscrypt_decrypt_block_inplace(inode, virt_to_page(&dn->data), dn 68 fs/ubifs/crypto.c dlen, offset_in_page(&dn->data), dn 469 fs/ubifs/debug.c const struct ubifs_data_node *dn = node; dn 472 fs/ubifs/debug.c key_read(c, &dn->key, &key); dn 475 fs/ubifs/debug.c pr_err("\tsize %u\n", le32_to_cpu(dn->size)); dn 477 fs/ubifs/debug.c (int)le16_to_cpu(dn->compr_type)); dn 481 fs/ubifs/debug.c (void *)&dn->data, dlen, 0); dn 2030 fs/ubifs/debug.c struct ubifs_data_node *dn = node; dn 2038 fs/ubifs/debug.c inum = key_inum_flash(c, &dn->key); dn 2048 fs/ubifs/debug.c blk_offs = key_block_flash(c, &dn->key); dn 2050 fs/ubifs/debug.c blk_offs += le32_to_cpu(dn->size); dn 46 fs/ubifs/file.c struct ubifs_data_node *dn) dn 54 fs/ubifs/file.c err = ubifs_tnc_lookup(c, &key, dn); dn 62 fs/ubifs/file.c ubifs_assert(c, le64_to_cpu(dn->ch.sqnum) > dn 64 fs/ubifs/file.c len = le32_to_cpu(dn->size); dn 68 fs/ubifs/file.c dlen = le32_to_cpu(dn->ch.len) - UBIFS_DATA_NODE_SZ; dn 71 fs/ubifs/file.c err = ubifs_decrypt(inode, dn, &dlen, block); dn 77 fs/ubifs/file.c err = ubifs_decompress(c, &dn->data, dlen, addr, &out_len, dn 78 fs/ubifs/file.c le16_to_cpu(dn->compr_type)); dn 95 fs/ubifs/file.c ubifs_dump_node(c, dn); dn 104 fs/ubifs/file.c struct ubifs_data_node *dn; dn 125 fs/ubifs/file.c dn = kmalloc(UBIFS_MAX_DATA_NODE_SZ, GFP_NOFS); dn 126 fs/ubifs/file.c if (!dn) { dn 140 fs/ubifs/file.c ret = read_block(inode, addr, block, dn); dn 146 fs/ubifs/file.c int dlen = le32_to_cpu(dn->size); dn 172 fs/ubifs/file.c kfree(dn); dn 181 fs/ubifs/file.c kfree(dn); dn 636 fs/ubifs/file.c struct ubifs_data_node *dn; dn 638 fs/ubifs/file.c dn = bu->buf + (bu->zbranch[nn].offs - offs); dn 640 fs/ubifs/file.c ubifs_assert(c, le64_to_cpu(dn->ch.sqnum) > dn 643 fs/ubifs/file.c len = le32_to_cpu(dn->size); dn 647 fs/ubifs/file.c dlen = le32_to_cpu(dn->ch.len) - UBIFS_DATA_NODE_SZ; dn 651 fs/ubifs/file.c err = ubifs_decrypt(inode, dn, &dlen, page_block); dn 656 fs/ubifs/file.c err = ubifs_decompress(c, &dn->data, dlen, addr, &out_len, dn 657 fs/ubifs/file.c le16_to_cpu(dn->compr_type)); dn 1438 fs/ubifs/journal.c unsigned int block, struct ubifs_data_node *dn, dn 1444 fs/ubifs/journal.c out_len = le32_to_cpu(dn->size); dn 1449 fs/ubifs/journal.c dlen = old_dlen = le32_to_cpu(dn->ch.len) - UBIFS_DATA_NODE_SZ; dn 1450 fs/ubifs/journal.c compr_type = le16_to_cpu(dn->compr_type); dn 1453 fs/ubifs/journal.c err = ubifs_decrypt(inode, dn, &dlen, block); dn 1461 fs/ubifs/journal.c err = ubifs_decompress(c, &dn->data, dlen, buf, &out_len, compr_type); dn 1465 fs/ubifs/journal.c ubifs_compress(c, buf, *new_len, &dn->data, &out_len, &compr_type); dn 1469 fs/ubifs/journal.c err = ubifs_encrypt(inode, dn, out_len, &old_dlen, block); dn 1475 fs/ubifs/journal.c dn->compr_size = 0; dn 1479 fs/ubifs/journal.c dn->compr_type = cpu_to_le16(compr_type); dn 1480 fs/ubifs/journal.c dn->size = cpu_to_le32(*new_len); dn 1509 fs/ubifs/journal.c struct ubifs_data_node *uninitialized_var(dn); dn 1542 fs/ubifs/journal.c dn = (void *)trun + UBIFS_TRUN_NODE_SZ; dn 1546 fs/ubifs/journal.c err = ubifs_tnc_lookup(c, &key, dn); dn 1552 fs/ubifs/journal.c int dn_len = le32_to_cpu(dn->size); dn 1557 fs/ubifs/journal.c ubifs_dump_node(c, dn); dn 1564 fs/ubifs/journal.c err = truncate_data_node(c, inode, blk, dn, &dlen); dn 1590 fs/ubifs/journal.c ubifs_prep_grp_node(c, dn, dlen, 1); dn 1591 fs/ubifs/journal.c err = ubifs_node_calc_hash(c, dn, hash_dn); dn 757 fs/ubifs/replay.c struct ubifs_data_node *dn = snod->node; dn 758 fs/ubifs/replay.c loff_t new_size = le32_to_cpu(dn->size) + dn 2072 fs/ubifs/ubifs.h struct ubifs_data_node *dn, dn 2081 fs/ubifs/ubifs.h struct ubifs_data_node *dn, dn 2090 fs/ubifs/ubifs.h int ubifs_encrypt(const struct inode *inode, struct ubifs_data_node *dn, dn 2092 fs/ubifs/ubifs.h int ubifs_decrypt(const struct inode *inode, struct ubifs_data_node *dn, dn 25 include/linux/arm-cci.h extern int cci_ace_get_port(struct device_node *dn); dn 27 include/linux/arm-cci.h extern int __cci_control_port_by_device(struct device_node *dn, bool enable); dn 30 include/linux/arm-cci.h static inline int cci_ace_get_port(struct device_node *dn) dn 35 include/linux/arm-cci.h static inline int __cci_control_port_by_device(struct device_node *dn, dn 312 include/linux/f2fs_fs.h struct direct_node dn; dn 565 include/linux/ide.h u8 dn; /* now wide spread use */ dn 1596 include/linux/ide.h ide_drive_t *peer = drive->hwif->devices[(drive->dn ^ 1) & 1]; dn 98 include/linux/of.h struct device_node *dn; dn 264 include/linux/of.h #define for_each_of_allnodes_from(from, dn) \ dn 265 include/linux/of.h for (dn = __of_find_all_nodes(from); dn; dn = __of_find_all_nodes(dn)) dn 266 include/linux/of.h #define for_each_of_allnodes(dn) for_each_of_allnodes_from(NULL, dn) dn 355 include/linux/of.h #define for_each_property_of_node(dn, pp) \ dn 356 include/linux/of.h for (pp = dn->properties; pp != NULL; pp = pp->next) dn 551 include/linux/of.h bool of_console_check(struct device_node *dn, char *name, int index); dn 919 include/linux/of.h static inline bool of_console_check(const struct device_node *dn, const char *name, int index) dn 1228 include/linux/of.h #define for_each_node_by_name(dn, name) \ dn 1229 include/linux/of.h for (dn = of_find_node_by_name(NULL, name); dn; \ dn 1230 include/linux/of.h dn = of_find_node_by_name(dn, name)) dn 1231 include/linux/of.h #define for_each_node_by_type(dn, type) \ dn 1232 include/linux/of.h for (dn = of_find_node_by_type(NULL, type); dn; \ dn 1233 include/linux/of.h dn = of_find_node_by_type(dn, type)) dn 1234 include/linux/of.h #define for_each_compatible_node(dn, type, compatible) \ dn 1235 include/linux/of.h for (dn = of_find_compatible_node(NULL, type, compatible); dn; \ dn 1236 include/linux/of.h dn = of_find_compatible_node(dn, type, compatible)) dn 1237 include/linux/of.h #define for_each_matching_node(dn, matches) \ dn 1238 include/linux/of.h for (dn = of_find_matching_node(NULL, matches); dn; \ dn 1239 include/linux/of.h dn = of_find_matching_node(dn, matches)) dn 1240 include/linux/of.h #define for_each_matching_node_and_match(dn, matches, match) \ dn 1241 include/linux/of.h for (dn = of_find_matching_node_and_match(NULL, matches, match); \ dn 1242 include/linux/of.h dn; dn = of_find_matching_node_and_match(dn, matches, match)) dn 1255 include/linux/of.h #define for_each_node_with_property(dn, prop_name) \ dn 1256 include/linux/of.h for (dn = of_find_node_with_property(NULL, prop_name); dn; \ dn 1257 include/linux/of.h dn = of_find_node_with_property(dn, prop_name)) dn 11 include/linux/of_iommu.h extern int of_get_dma_window(struct device_node *dn, const char *prefix, dn 20 include/linux/of_iommu.h static inline int of_get_dma_window(struct device_node *dn, const char *prefix, dn 288 include/linux/pm_domain.h int of_genpd_parse_idle_states(struct device_node *dn, dn 325 include/linux/pm_domain.h static inline int of_genpd_parse_idle_states(struct device_node *dn, dn 150 include/net/caif/caif_layer.h struct cflayer *dn; dn 247 include/net/caif/caif_layer.h #define layer_set_dn(layr, below) ((layr)->dn = (struct cflayer *)(below)) dn 16 include/net/caif/cffrml.h void cffrml_set_dnlayer(struct cflayer *this, struct cflayer *dn); dn 188 include/net/dsa.h struct device_node *dn; dn 178 include/net/flow.h struct flowidn dn; dn 204 include/net/flow.h return container_of(fldn, struct flowi, u.dn); dn 1912 lib/vsprintf.c char *device_node_string(char *buf, char *end, struct device_node *dn, dn 1934 lib/vsprintf.c if (check_pointer(&buf, end, dn, spec)) dn 1952 lib/vsprintf.c buf = device_node_gen_full_name(dn, buf, end); dn 1955 lib/vsprintf.c p = kbasename(of_node_full_name(dn)); dn 1962 lib/vsprintf.c buf = number(buf, end, (unsigned int)dn->phandle, num_spec); dn 1965 lib/vsprintf.c p = kbasename(of_node_full_name(dn)); dn 1971 lib/vsprintf.c tbuf[0] = of_node_check_flag(dn, OF_DYNAMIC) ? 'D' : '-'; dn 1972 lib/vsprintf.c tbuf[1] = of_node_check_flag(dn, OF_DETACHED) ? 'd' : '-'; dn 1973 lib/vsprintf.c tbuf[2] = of_node_check_flag(dn, OF_POPULATED) ? 'P' : '-'; dn 1974 lib/vsprintf.c tbuf[3] = of_node_check_flag(dn, OF_POPULATED_BUS) ? 'B' : '-'; dn 1979 lib/vsprintf.c ret = of_property_read_string(dn, "compatible", &p); dn 1985 lib/vsprintf.c of_property_for_each_string(dn, "compatible", prop, p) { dn 116 net/caif/caif_socket.c if (cf_sk->layer.dn && cf_sk->layer.dn->modemcmd) dn 117 net/caif/caif_socket.c cf_sk->layer.dn->modemcmd(cf_sk->layer.dn, mode); dn 509 net/caif/caif_socket.c if (cf_sk->layer.dn == NULL) { dn 514 net/caif/caif_socket.c return cf_sk->layer.dn->transmit(cf_sk->layer.dn, pkt); dn 74 net/caif/caif_usb.c return layr->dn->transmit(layr->dn, pkt); dn 588 net/caif/cfcnfg.c frml_dn = frml->dn; dn 180 net/caif/cfctrl.c struct cflayer *dn = cfctrl->serv.layer.dn; dn 182 net/caif/cfctrl.c if (!dn) { dn 196 net/caif/cfctrl.c dn->transmit(dn, pkt); dn 211 net/caif/cfctrl.c struct cflayer *dn = cfctrl->serv.layer.dn; dn 213 net/caif/cfctrl.c if (!dn) { dn 290 net/caif/cfctrl.c dn->transmit(dn, pkt); dn 310 net/caif/cfctrl.c struct cflayer *dn = cfctrl->serv.layer.dn; dn 312 net/caif/cfctrl.c if (!dn) { dn 324 net/caif/cfctrl.c dn->transmit(dn, pkt); dn 54 net/caif/cfdbgl.c return layr->dn->transmit(layr->dn, pkt); dn 112 net/caif/cfdgml.c return layr->dn->transmit(layr->dn, pkt); dn 69 net/caif/cffrml.c void cffrml_set_dnlayer(struct cflayer *this, struct cflayer *dn) dn 71 net/caif/cffrml.c this->dn = dn; dn 161 net/caif/cffrml.c if (layr->dn == NULL) { dn 166 net/caif/cffrml.c return layr->dn->transmit(layr->dn, pkt); dn 65 net/caif/cfmuxl.c int cfmuxl_set_dnlayer(struct cflayer *layr, struct cflayer *dn, u8 phyid) dn 70 net/caif/cfmuxl.c list_add_rcu(&dn->node, &muxl->frml_list); dn 107 net/caif/cfmuxl.c struct cflayer *dn; dn 112 net/caif/cfmuxl.c dn = get_from_id(&muxl->frml_list, phyid); dn 113 net/caif/cfmuxl.c if (dn == NULL) dn 116 net/caif/cfmuxl.c list_del_rcu(&dn->node); dn 117 net/caif/cfmuxl.c caif_assert(dn != NULL); dn 120 net/caif/cfmuxl.c return dn; dn 139 net/caif/cfmuxl.c struct cflayer *dn; dn 141 net/caif/cfmuxl.c dn = rcu_dereference(muxl->dn_cache[idx]); dn 142 net/caif/cfmuxl.c if (dn == NULL || dn->id != dev_info->id) { dn 144 net/caif/cfmuxl.c dn = get_from_id(&muxl->frml_list, dev_info->id); dn 145 net/caif/cfmuxl.c rcu_assign_pointer(muxl->dn_cache[idx], dn); dn 148 net/caif/cfmuxl.c return dn; dn 216 net/caif/cfmuxl.c struct cflayer *dn; dn 222 net/caif/cfmuxl.c dn = get_dn(muxl, info->dev_info); dn 223 net/caif/cfmuxl.c if (dn == NULL) { dn 236 net/caif/cfmuxl.c cffrml_hold(dn); dn 240 net/caif/cfmuxl.c err = dn->transmit(dn, pkt); dn 242 net/caif/cfmuxl.c cffrml_put(dn); dn 210 net/caif/cfrfml.c return rfml->serv.layer.dn->transmit(rfml->serv.layer.dn, pkt); dn 222 net/caif/cfrfml.c caif_assert(layr->dn != NULL); dn 223 net/caif/cfrfml.c caif_assert(layr->dn->transmit != NULL); dn 181 net/caif/cfserl.c return layer->dn->transmit(layer->dn, newpkt); dn 100 net/caif/cfsrvl.c caif_assert(layr->dn != NULL); dn 101 net/caif/cfsrvl.c caif_assert(layr->dn->transmit != NULL); dn 126 net/caif/cfsrvl.c return layr->dn->transmit(layr->dn, pkt); dn 147 net/caif/cfsrvl.c return layr->dn->transmit(layr->dn, pkt); dn 202 net/caif/cfsrvl.c if (adap_layer == NULL || adap_layer->dn == NULL) dn 204 net/caif/cfsrvl.c servl = container_obj(adap_layer->dn); dn 215 net/caif/cfsrvl.c if (WARN_ON(adapt_layer == NULL || adapt_layer->dn == NULL)) dn 217 net/caif/cfsrvl.c service = container_of(adapt_layer->dn, struct cfsrvl, layer); dn 85 net/caif/cfutill.c caif_assert(layr->dn != NULL); dn 86 net/caif/cfutill.c caif_assert(layr->dn->transmit != NULL); dn 103 net/caif/cfutill.c return layr->dn->transmit(layr->dn, pkt); dn 83 net/caif/cfveil.c caif_assert(layr->dn != NULL); dn 84 net/caif/cfveil.c caif_assert(layr->dn->transmit != NULL); dn 97 net/caif/cfveil.c return layr->dn->transmit(layr->dn, pkt); dn 64 net/caif/cfvidl.c return layr->dn->transmit(layr->dn, pkt); dn 246 net/caif/chnl_net.c result = priv->chnl.dn->transmit(priv->chnl.dn, pkt); dn 2201 net/decnet/af_decnet.c static void dn_printable_object(struct sockaddr_dn *dn, unsigned char *buf) dn 2205 net/decnet/af_decnet.c switch (le16_to_cpu(dn->sdn_objnamel)) { dn 2207 net/decnet/af_decnet.c sprintf(buf, "%d", dn->sdn_objnum); dn 2210 net/decnet/af_decnet.c for (i = 0; i < le16_to_cpu(dn->sdn_objnamel); i++) { dn 2211 net/decnet/af_decnet.c buf[i] = dn->sdn_objname[i]; dn 862 net/decnet/dn_dev.c struct dn_neigh *dn = (struct dn_neigh *)dn_db->router; dn 863 net/decnet/dn_dev.c dn_dn2eth(msg->neighbor, dn->addr); dn 882 net/decnet/dn_dev.c static int dn_am_i_a_router(struct dn_neigh *dn, struct dn_dev *dn_db, struct dn_ifaddr *ifa) dn 893 net/decnet/dn_dev.c if (dn->priority < dn_db->parms.priority) dn 897 net/decnet/dn_dev.c if (dn->priority != dn_db->parms.priority) dn 900 net/decnet/dn_dev.c if (le16_to_cpu(dn->addr) < le16_to_cpu(ifa->ifa_local)) dn 910 net/decnet/dn_dev.c struct dn_neigh *dn = (struct dn_neigh *)dn_db->router; dn 968 net/decnet/dn_dev.c if (dn_am_i_a_router(dn, dn_db, ifa)) { dn 114 net/decnet/dn_neigh.c struct dn_neigh *dn = container_of(neigh, struct dn_neigh, n); dn 142 net/decnet/dn_neigh.c dn_dn2eth(neigh->ha, dn->addr); dn 162 net/decnet/dn_neigh.c dn->blksize = dev->mtu - 2; dn 343 net/decnet/dn_neigh.c struct dn_neigh *dn = container_of(neigh, struct dn_neigh, n); dn 356 net/decnet/dn_neigh.c if (dn->flags & DN_NDFLAG_P3) dn 387 net/decnet/dn_neigh.c struct dn_neigh *dn; dn 395 net/decnet/dn_neigh.c dn = container_of(neigh, struct dn_neigh, n); dn 409 net/decnet/dn_neigh.c dn->blksize = le16_to_cpu(msg->blksize); dn 410 net/decnet/dn_neigh.c dn->priority = msg->priority; dn 412 net/decnet/dn_neigh.c dn->flags &= ~DN_NDFLAG_P3; dn 416 net/decnet/dn_neigh.c dn->flags &=~DN_NDFLAG_R2; dn 417 net/decnet/dn_neigh.c dn->flags |= DN_NDFLAG_R1; dn 420 net/decnet/dn_neigh.c dn->flags |= DN_NDFLAG_R2; dn 448 net/decnet/dn_neigh.c struct dn_neigh *dn; dn 455 net/decnet/dn_neigh.c dn = container_of(neigh, struct dn_neigh, n); dn 467 net/decnet/dn_neigh.c dn->flags &= ~(DN_NDFLAG_R1 | DN_NDFLAG_R2); dn 468 net/decnet/dn_neigh.c dn->blksize = le16_to_cpu(msg->blksize); dn 469 net/decnet/dn_neigh.c dn->priority = 0; dn 509 net/decnet/dn_neigh.c struct dn_neigh *dn; dn 514 net/decnet/dn_neigh.c dn = container_of(neigh, struct dn_neigh, n); dn 515 net/decnet/dn_neigh.c if (!(dn->flags & (DN_NDFLAG_R1|DN_NDFLAG_R2))) dn 519 net/decnet/dn_neigh.c s->rs = dn_find_slot(s->ptr, s->n, dn->priority); dn 525 net/decnet/dn_neigh.c dn_dn2eth(s->rs, dn->addr); dn 528 net/decnet/dn_neigh.c *(s->rs) |= dn->priority; dn 553 net/decnet/dn_neigh.c struct dn_neigh *dn = container_of(n, struct dn_neigh, n); dn 558 net/decnet/dn_neigh.c dn_addr2asc(le16_to_cpu(dn->addr), buf), dn 559 net/decnet/dn_neigh.c (dn->flags&DN_NDFLAG_R1) ? "1" : "-", dn 560 net/decnet/dn_neigh.c (dn->flags&DN_NDFLAG_R2) ? "2" : "-", dn 561 net/decnet/dn_neigh.c (dn->flags&DN_NDFLAG_P3) ? "3" : "-", dn 562 net/decnet/dn_neigh.c dn->n.nud_state, dn 563 net/decnet/dn_neigh.c refcount_read(&dn->n.refcnt), dn 564 net/decnet/dn_neigh.c dn->blksize, dn 565 net/decnet/dn_neigh.c (dn->n.dev) ? dn->n.dev->name : "?"); dn 261 net/decnet/dn_route.c struct dn_dev *dn; dn 263 net/decnet/dn_route.c dn = n ? rcu_dereference_raw(n->dev->dn_ptr) : NULL; dn 265 net/decnet/dn_route.c if (dn && dn->use_long == 0) dn 621 net/decnet/dn_route.c struct dn_dev *dn = rcu_dereference(dev->dn_ptr); dn 627 net/decnet/dn_route.c if (dn == NULL) dn 689 net/decnet/dn_route.c if (dn->parms.state != DN_DEV_S_RU) dn 714 net/decnet/dn_route.c if (dn->parms.state != DN_DEV_S_RU) dn 71 net/decnet/dn_rules.c struct flowidn *fld = &flp->u.dn; dn 111 net/decnet/dn_rules.c struct flowidn *fld = &fl->u.dn; dn 112 net/dsa/dsa2.c struct device_node *dn) dn 126 net/dsa/dsa2.c if (dp->dn == dn) dn 138 net/dsa/dsa2.c struct device_node *dn = dp->dn; dn 143 net/dsa/dsa2.c of_for_each_phandle(&it, err, dn, "link", NULL, 0) { dn 321 net/dsa/dsa2.c dp->mac = of_get_mac_address(dp->dn); dn 657 net/dsa/dsa2.c static int dsa_port_parse_of(struct dsa_port *dp, struct device_node *dn) dn 659 net/dsa/dsa2.c struct device_node *ethernet = of_parse_phandle(dn, "ethernet", 0); dn 660 net/dsa/dsa2.c const char *name = of_get_property(dn, "label", NULL); dn 661 net/dsa/dsa2.c bool link = of_property_read_bool(dn, "link"); dn 663 net/dsa/dsa2.c dp->dn = dn; dn 682 net/dsa/dsa2.c struct device_node *dn) dn 689 net/dsa/dsa2.c ports = of_get_child_by_name(dn, "ports"); dn 718 net/dsa/dsa2.c struct device_node *dn) dn 724 net/dsa/dsa2.c sz = of_property_read_variable_u32_array(dn, "dsa,member", m, 2, 2); dn 739 net/dsa/dsa2.c static int dsa_switch_parse_of(struct dsa_switch *ds, struct device_node *dn) dn 743 net/dsa/dsa2.c err = dsa_switch_parse_member_of(ds, dn); dn 747 net/dsa/dsa2.c return dsa_switch_parse_ports_of(ds, dn); dn 428 net/dsa/port.c phy_dn = of_parse_phandle(dp->dn, "phy-handle", 0); dn 584 net/dsa/port.c struct device_node *dn = dp->dn; dn 591 net/dsa/port.c err = of_phy_register_fixed_link(dn); dn 599 net/dsa/port.c phydev = of_phy_find_device(dn); dn 601 net/dsa/port.c mode = of_get_phy_mode(dn); dn 619 net/dsa/port.c struct device_node *port_dn = dp->dn; dn 655 net/dsa/port.c phy_np = of_parse_phandle(dp->dn, "phy-handle", 0); dn 656 net/dsa/port.c if (of_phy_is_fixed_link(dp->dn) || phy_np) dn 664 net/dsa/port.c if (of_phy_is_fixed_link(dp->dn)) dn 683 net/dsa/port.c if (of_phy_is_fixed_link(dp->dn)) dn 684 net/dsa/port.c of_phy_deregister_fixed_link(dp->dn); dn 694 net/dsa/port.c if (of_phy_is_fixed_link(dp->dn)) dn 713 net/dsa/port.c if (of_phy_is_fixed_link(dp->dn)) dn 732 net/dsa/port.c if (of_phy_is_fixed_link(dp->dn)) dn 1292 net/dsa/slave.c struct device_node *port_dn = dp->dn; dn 1425 net/dsa/slave.c slave_dev->dev.of_node = port->dn; dn 44 net/mac802154/llsec.c struct ieee802154_llsec_device *dev, *dn; dn 55 net/mac802154/llsec.c list_for_each_entry_safe(dev, dn, &sec->table.devices, list) { dn 388 net/netfilter/nf_conntrack_proto_dccp.c struct nf_dccp_net *dn; dn 395 net/netfilter/nf_conntrack_proto_dccp.c dn = nf_dccp_pernet(net); dn 396 net/netfilter/nf_conntrack_proto_dccp.c if (dn->dccp_loose == 0) { dn 676 net/netfilter/nf_conntrack_proto_dccp.c struct nf_dccp_net *dn = nf_dccp_pernet(net); dn 681 net/netfilter/nf_conntrack_proto_dccp.c timeouts = dn->dccp_timeout; dn 685 net/netfilter/nf_conntrack_proto_dccp.c timeouts[i] = dn->dccp_timeout[i]; dn 728 net/netfilter/nf_conntrack_proto_dccp.c struct nf_dccp_net *dn = nf_dccp_pernet(net); dn 731 net/netfilter/nf_conntrack_proto_dccp.c dn->dccp_loose = 1; dn 732 net/netfilter/nf_conntrack_proto_dccp.c dn->dccp_timeout[CT_DCCP_REQUEST] = 2 * DCCP_MSL; dn 733 net/netfilter/nf_conntrack_proto_dccp.c dn->dccp_timeout[CT_DCCP_RESPOND] = 4 * DCCP_MSL; dn 734 net/netfilter/nf_conntrack_proto_dccp.c dn->dccp_timeout[CT_DCCP_PARTOPEN] = 4 * DCCP_MSL; dn 735 net/netfilter/nf_conntrack_proto_dccp.c dn->dccp_timeout[CT_DCCP_OPEN] = 12 * 3600 * HZ; dn 736 net/netfilter/nf_conntrack_proto_dccp.c dn->dccp_timeout[CT_DCCP_CLOSEREQ] = 64 * HZ; dn 737 net/netfilter/nf_conntrack_proto_dccp.c dn->dccp_timeout[CT_DCCP_CLOSING] = 64 * HZ; dn 738 net/netfilter/nf_conntrack_proto_dccp.c dn->dccp_timeout[CT_DCCP_TIMEWAIT] = 2 * DCCP_MSL; dn 743 net/netfilter/nf_conntrack_proto_dccp.c dn->dccp_timeout[CT_DCCP_NONE] = dn->dccp_timeout[CT_DCCP_REQUEST]; dn 993 net/netfilter/nf_conntrack_standalone.c struct nf_dccp_net *dn = nf_dccp_pernet(net); dn 995 net/netfilter/nf_conntrack_standalone.c #define XASSIGN(XNAME, dn) \ dn 997 net/netfilter/nf_conntrack_standalone.c &(dn)->dccp_timeout[CT_DCCP_ ## XNAME] dn 999 net/netfilter/nf_conntrack_standalone.c XASSIGN(REQUEST, dn); dn 1000 net/netfilter/nf_conntrack_standalone.c XASSIGN(RESPOND, dn); dn 1001 net/netfilter/nf_conntrack_standalone.c XASSIGN(PARTOPEN, dn); dn 1002 net/netfilter/nf_conntrack_standalone.c XASSIGN(OPEN, dn); dn 1003 net/netfilter/nf_conntrack_standalone.c XASSIGN(CLOSEREQ, dn); dn 1004 net/netfilter/nf_conntrack_standalone.c XASSIGN(CLOSING, dn); dn 1005 net/netfilter/nf_conntrack_standalone.c XASSIGN(TIMEWAIT, dn); dn 1008 net/netfilter/nf_conntrack_standalone.c table[NF_SYSCTL_CT_PROTO_DCCP_LOOSE].data = &dn->dccp_loose; dn 921 sound/ppc/pmac.c struct device_node *dn; dn 1039 sound/ppc/pmac.c dn = of_find_node_by_name(NULL, "perch"); dn 1040 sound/ppc/pmac.c chip->has_iic = (dn != NULL); dn 1041 sound/ppc/pmac.c of_node_put(dn); dn 1188 sound/soc/bcm/cygnus-ssp.c struct device_node *dn, dn 1198 sound/soc/bcm/cygnus-ssp.c if (of_property_read_u32(dn, "reg", &rawval)) {