/linux/drivers/pci/hotplug/ |
A D | rpadlpar_core.c | 56 return dn; in find_vio_slot_node() 81 if (dn) { in find_dlpar_node() 83 return dn; in find_dlpar_node() 87 if (dn) { in find_dlpar_node() 89 return dn; in find_dlpar_node() 93 if (dn) { in find_dlpar_node() 95 return dn; in find_dlpar_node() 116 if (slot->dn == dn) in find_php_slot() 236 if (PCI_DN(dn) && PCI_DN(dn)->phb) { in dlpar_add_phb() 295 if (!dn) { in dlpar_add_slot() [all …]
|
A D | pnv_php.c | 95 if (php_slot->dn == dn) { in pnv_php_match() 161 of_node_put(dn); in pnv_php_detach_device_nodes() 162 of_detach_node(dn); in pnv_php_detach_device_nodes() 649 if (dn->child && PCI_DN(dn->child)) in pnv_php_alloc_slot() 656 php_slot->dn = dn; in pnv_php_alloc_slot() 672 struct device_node *dn = php_slot->dn; in pnv_php_register_slot() local 692 while ((dn = of_get_parent(dn))) { in pnv_php_register_slot() 693 if (!PCI_DN(dn)) { in pnv_php_register_slot() 694 of_node_put(dn); in pnv_php_register_slot() 700 of_node_put(dn); in pnv_php_register_slot() [all …]
|
A D | rpaphp_core.c | 164 names = of_get_property(dn, "ibm,drc-names", NULL); in get_children_props() 385 dbg("Entry %s: dn=%pOF\n", __func__, dn); in rpaphp_drc_add_slot() 394 slot = alloc_slot_struct(dn, index, name, in rpaphp_drc_add_slot() 436 int rpaphp_add_slot(struct device_node *dn) in rpaphp_add_slot() argument 438 if (!of_node_name_eq(dn, "pci")) in rpaphp_add_slot() 441 if (of_find_property(dn, "ibm,drc-info", NULL)) in rpaphp_add_slot() 442 return rpaphp_drc_info_add_slot(dn); in rpaphp_add_slot() 444 return rpaphp_drc_add_slot(dn); in rpaphp_add_slot() 467 struct device_node *dn; in rpaphp_init() local 471 for_each_node_by_name(dn, "pci") in rpaphp_init() [all …]
|
/linux/fs/notify/dnotify/ |
A D | dnotify.c | 56 for (dn = dn_mark->dn; dn != NULL; dn = dn->dn_next) in dnotify_recalc_inode_mask() 158 if ((dn->dn_owner == id) && (dn->dn_filp == filp)) { in dnotify_flush() 217 odn = dn_mark->dn; in attach_dn() 229 dn->dn_fd = fd; in attach_dn() 231 dn->dn_owner = id; in attach_dn() 232 dn->dn_next = dn_mark->dn; in attach_dn() 233 dn_mark->dn = dn; in attach_dn() 256 dn = NULL; in fcntl_dirnotify() 290 if (!dn) { in fcntl_dirnotify() 356 dn = NULL; in fcntl_dirnotify() [all …]
|
/linux/arch/powerpc/platforms/pseries/ |
A D | hotplug-cpu.c | 528 for (of_changeset_init(&cs); dn != NULL; dn = dn->sibling) { in pseries_cpuhp_attach_nodes() 574 if (!dn) { in dlpar_cpu_add() 650 dn = cpudn; in pseries_cpuhp_detach_nodes() 651 while ((dn = of_find_next_cache_node(dn))) { in pseries_cpuhp_detach_nodes() 671 dn, drc_index); in dlpar_cpu_remove() 719 return dn; in cpu_drc_index_to_dn() 728 if (!dn) { in dlpar_cpu_remove_by_index() 735 of_node_put(dn); in dlpar_cpu_remove_by_index() 802 if (!dn) in dlpar_cpu_release() 807 of_node_put(dn); in dlpar_cpu_release() [all …]
|
A D | dlpar.c | 82 dn = kzalloc(sizeof(*dn), GFP_KERNEL); in dlpar_parse_cc_node() 83 if (!dn) in dlpar_parse_cc_node() 89 kfree(dn); in dlpar_parse_cc_node() 96 return dn; in dlpar_parse_cc_node() 110 kfree(dn); in dlpar_free_one_cc_node() 115 if (dn->child) in dlpar_free_cc_nodes() 118 if (dn->sibling) in dlpar_free_cc_nodes() 179 if (!dn) in dlpar_configure_connector() 184 last_dn = dn; in dlpar_configure_connector() 189 if (!dn) in dlpar_configure_connector() [all …]
|
A D | pmem.c | 32 struct device_node *dn; in pmem_drc_add_node() local 45 if (!dn) { in pmem_drc_add_node() 52 rc = dlpar_attach_node(dn, pmem_node); in pmem_drc_add_node() 55 dn, rc, drc_index); in pmem_drc_add_node() 58 dlpar_free_cc_nodes(dn); in pmem_drc_add_node() 70 struct device_node *dn; in pmem_drc_remove_node() local 74 for_each_child_of_node(pmem_node, dn) { in pmem_drc_remove_node() 81 if (!dn) { in pmem_drc_remove_node() 89 rc = dlpar_detach_node(dn); in pmem_drc_remove_node() 96 drc_index, dn, rc); in pmem_drc_remove_node() [all …]
|
A D | msi.c | 116 struct device_node *dn; in check_req() local 155 struct device_node *dn; in __find_pe_total_msi() local 159 while (dn) { in __find_pe_total_msi() 163 dn); in __find_pe_total_msi() 165 return dn; in __find_pe_total_msi() 168 dn = of_get_next_parent(dn); in __find_pe_total_msi() 187 if (!dn) in find_pe_dn() 196 if (!dn) in find_pe_dn() 200 dn = of_get_parent(dn); in find_pe_dn() 201 if (!dn) in find_pe_dn() [all …]
|
A D | mobility.c | 69 pdn = of_get_parent(dn); in delete_dt_node() 87 pr_debug("removing node %pOFfp\n", dn); in delete_dt_node() 88 dlpar_detach_node(dn); in delete_dt_node() 146 of_update_property(dn, new_prop); in update_dt_property() 210 of_remove_property(dn, of_find_property(dn, in update_dt_node() 239 struct device_node *dn; in add_dt_node() local 243 if (!dn) in add_dt_node() 255 dlpar_free_cc_nodes(dn); in add_dt_node() 259 rc = dlpar_attach_node(dn, parent_dn); in add_dt_node() 261 dlpar_free_cc_nodes(dn); in add_dt_node() [all …]
|
/linux/arch/powerpc/platforms/cell/ |
A D | axon_msi.c | 158 if (!dn) { in find_msi_translator() 163 for (; dn; dn = of_get_next_parent(dn)) { in find_msi_translator() 175 tmp = dn; in find_msi_translator() 178 if (!dn) { in find_msi_translator() 187 dn); in find_msi_translator() 207 if (!dn) { in setup_msi_msg_address() 214 for (; dn; dn = of_get_next_parent(dn)) { in setup_msi_msg_address() 344 dn); in axon_msi_probe() 354 dn); in axon_msi_probe() 361 dn); in axon_msi_probe() [all …]
|
/linux/arch/powerpc/kernel/ |
A D | pci_dn.c | 33 struct device_node *dn; in pci_bus_to_pdn() local 53 pdn = dn ? PCI_DN(dn) : NULL; in pci_bus_to_pdn() 77 pdn = dn ? PCI_DN(dn) : NULL; in pci_get_pdn_by_devfn() 106 pdn = dn ? PCI_DN(dn) : NULL; in pci_get_pdn() 296 dn->data = pdn; in pci_add_device_node_info() 342 struct pci_dn *pdn = dn ? PCI_DN(dn) : NULL; in pci_remove_device_node_info() 375 dn->data = NULL; in pci_remove_device_node_info() 409 for (dn = start->child; dn; dn = nextdn) { in pci_traverse_device_nodes() 435 dn = dn->parent; in pci_traverse_device_nodes() 436 if (dn == start) in pci_traverse_device_nodes() [all …]
|
A D | pci-hotplug.c | 21 struct device_node *dn) in find_bus_among_children() argument 26 if (pci_bus_to_OF_node(bus) == dn) in find_bus_among_children() 30 child = find_bus_among_children(tmp, dn); in find_bus_among_children() 38 struct pci_bus *pci_find_bus_by_node(struct device_node *dn) in pci_find_bus_by_node() argument 40 struct pci_dn *pdn = PCI_DN(dn); in pci_find_bus_by_node() 45 return find_bus_among_children(pdn->phb->bus, dn); in pci_find_bus_by_node() 111 struct device_node *dn = pci_bus_to_OF_node(bus); in pci_hp_add_devices() local 121 of_rescan_bus(dn, bus); in pci_hp_add_devices() 123 dn->child && PCI_DN(dn->child)) { in pci_hp_add_devices() 131 slotno = PCI_SLOT(PCI_DN(dn->child)->devfn); in pci_hp_add_devices()
|
/linux/net/caif/ |
A D | cfmuxl.c | 107 struct cflayer *dn; in cfmuxl_remove_dnlayer() local 113 if (dn == NULL) in cfmuxl_remove_dnlayer() 120 return dn; in cfmuxl_remove_dnlayer() 139 struct cflayer *dn; in get_dn() local 142 if (dn == NULL || dn->id != dev_info->id) { in get_dn() 148 return dn; in get_dn() 216 struct cflayer *dn; in cfmuxl_transmit() local 223 if (dn == NULL) { in cfmuxl_transmit() 236 cffrml_hold(dn); in cfmuxl_transmit() 240 err = dn->transmit(dn, pkt); in cfmuxl_transmit() [all …]
|
/linux/arch/x86/kernel/ |
A D | devicetree.c | 115 struct device_node *dn; in dtb_setup_hpet() local 120 if (!dn) in dtb_setup_hpet() 122 ret = of_address_to_resource(dn, 0, &r); in dtb_setup_hpet() 135 struct device_node *dn; in dtb_cpu_setup() local 139 for_each_of_cpu_node(dn) { in dtb_cpu_setup() 140 apic_id = of_get_cpu_hwid(dn, 0); in dtb_cpu_setup() 151 struct device_node *dn; in dtb_lapic_setup() local 157 if (dn) { in dtb_lapic_setup() 246 .dev = dn, in dtb_add_ioapic() 259 struct device_node *dn; in dtb_ioapic_setup() local [all …]
|
/linux/fs/f2fs/ |
A D | inline.c | 116 .ino = dn->inode->i_ino, in f2fs_convert_inline_page() 137 f2fs_put_dnode(dn); in f2fs_convert_inline_page() 144 f2fs_put_dnode(dn); in f2fs_convert_inline_page() 147 __func__, dn->inode->i_ino, dn->data_blkaddr); in f2fs_convert_inline_page() 175 f2fs_truncate_inline_inode(dn->inode, dn->inode_page, 0); in f2fs_convert_inline_page() 180 f2fs_put_dnode(dn); in f2fs_convert_inline_page() 187 struct dnode_of_data dn; in f2fs_convert_inline_inode() local 216 f2fs_put_dnode(&dn); in f2fs_convert_inline_inode() 240 f2fs_put_dnode(&dn); in f2fs_write_inline_data() 259 f2fs_put_dnode(&dn); in f2fs_write_inline_data() [all …]
|
A D | recovery.c | 484 if (!dn->inode_page_locked) in check_index_in_prev_nodes() 485 lock_page(dn->inode_page); in check_index_in_prev_nodes() 489 } else if (dn->nid == nid) { in check_index_in_prev_nodes() 517 inode = dn->inode; in check_index_in_prev_nodes() 527 if (ino == dn->inode->i_ino && dn->inode_page_locked) in check_index_in_prev_nodes() 542 lock_page(dn->inode_page); in check_index_in_prev_nodes() 548 if (dn->inode->i_ino == nid && !dn->inode_page_locked) in check_index_in_prev_nodes() 556 struct dnode_of_data dn; in do_recover_data() local 616 dest = data_blkaddr(dn.inode, page, dn.ofs_in_node); in do_recover_data() 688 fill_node_footer(dn.node_page, dn.nid, ni.ino, in do_recover_data() [all …]
|
A D | file.c | 125 f2fs_put_dnode(&dn); in f2fs_vm_page_mkwrite() 566 if (IS_INODE(dn->node_page) && f2fs_has_extra_attr(dn->inode)) in f2fs_truncate_data_blocks_range() 599 if (dn->ofs_in_node == 0 && IS_INODE(dn->node_page)) in f2fs_truncate_data_blocks_range() 625 trace_f2fs_truncate_data_blocks_range(dn->inode, dn->nid, in f2fs_truncate_data_blocks_range() 631 f2fs_truncate_data_blocks_range(dn, ADDRS_PER_BLOCK(dn->inode)); in f2fs_truncate_data_blocks() 713 if (dn.ofs_in_node || IS_INODE(dn.node_page)) { in f2fs_do_truncate_blocks() 1245 dn.data_blkaddr = f2fs_data_blkaddr(&dn); in __clone_blkaddrs() 1253 f2fs_replace_block(sbi, &dn, dn.data_blkaddr, in __clone_blkaddrs() 1430 dn->data_blkaddr = f2fs_data_blkaddr(dn); in f2fs_do_zero_range() 3365 blkaddr = data_blkaddr(dn->inode, dn->node_page, in release_compress_blocks() [all …]
|
A D | node.c | 845 dn->data_blkaddr = f2fs_data_blkaddr(dn); in f2fs_get_dnode_of_data() 857 blkaddr = data_blkaddr(dn->inode, dn->node_page, in f2fs_get_dnode_of_data() 896 dec_valid_node_count(sbi, dn->inode, dn->nid == dn->inode->i_ino); in truncate_node() 899 if (dn->nid == dn->inode->i_ino) { in truncate_node() 915 trace_f2fs_truncate_node(dn->inode, dn->nid, ni.blk_addr); in truncate_node() 925 if (dn->nid == 0) in truncate_dnode() 929 page = f2fs_get_node_page(F2FS_I_SB(dn->inode), dn->nid); in truncate_dnode() 960 trace_f2fs_truncate_nodes_enter(dn->inode, dn->nid, dn->data_blkaddr); in truncate_nodes() 962 page = f2fs_get_node_page(F2FS_I_SB(dn->inode), dn->nid); in truncate_nodes() 1304 fill_node_footer(page, dn->nid, dn->inode->i_ino, ofs, true); in f2fs_new_node_page() [all …]
|
/linux/net/decnet/ |
A D | dn_neigh.c | 162 dn->blksize = dev->mtu - 2; in dn_neigh_construct() 356 if (dn->flags & DN_NDFLAG_P3) in dn_to_neigh_output() 387 struct dn_neigh *dn; in dn_neigh_router_hello() local 448 struct dn_neigh *dn; in dn_neigh_endnode_hello() local 469 dn->priority = 0; in dn_neigh_endnode_hello() 509 struct dn_neigh *dn; in neigh_elist_cb() local 525 dn_dn2eth(s->rs, dn->addr); in neigh_elist_cb() 528 *(s->rs) |= dn->priority; in neigh_elist_cb() 562 dn->n.nud_state, in dn_neigh_format_entry() 564 dn->blksize, in dn_neigh_format_entry() [all …]
|
/linux/drivers/perf/ |
A D | arm-cmn.c | 258 struct arm_cmn_node *dn; member 266 for (i = 0, dn = hw->dn; i < hw->num_dns; i++, dn++) 310 dn->to_xp = (cmn->xps + xp_idx) - dn; in arm_cmn_init_node_to_xp() 315 return dn->type == CMN_TYPE_XP ? dn : dn + dn->to_xp; in arm_cmn_node_to_xp() 960 hw->dn++; in arm_cmn_event_init() 1292 for (dn = cmn->dns; dn < cmn->dns + cmn->num_dns; dn++) { in arm_cmn_init_dtcs() 1296 dn->dtc = 0; in arm_cmn_init_dtcs() 1375 dn = cmn->dns; in arm_cmn_discover() 1413 switch (dn->type) { in arm_cmn_discover() 1416 dn++; in arm_cmn_discover() [all …]
|
/linux/drivers/irqchip/ |
A D | irq-bcm7120-l2.c | 106 static int bcm7120_l2_intc_init_one(struct device_node *dn, in bcm7120_l2_intc_init_one() argument 114 parent_irq = irq_of_parse_and_map(dn, irq); in bcm7120_l2_intc_init_one() 155 data->map_base[0] = of_iomap(dn, 0); in bcm7120_l2_intc_iomap_7120() 166 ret = of_property_read_u32_array(dn, "brcm,int-fwd-mask", in bcm7120_l2_intc_iomap_7120() 191 void __iomem *en = of_iomap(dn, map_idx + 0); in bcm7120_l2_intc_iomap_3380() 192 void __iomem *stat = of_iomap(dn, map_idx + 1); in bcm7120_l2_intc_iomap_3380() 234 pdev = of_find_device_by_node(dn); in bcm7120_l2_intc_probe() 255 ret = iomap_regs_fn(dn, data); in bcm7120_l2_intc_probe() 262 ret = bcm7120_l2_intc_init_one(dn, data, irq, valid_mask); in bcm7120_l2_intc_probe() 282 dn->full_name, handle_level_irq, clr, 0, flags); in bcm7120_l2_intc_probe() [all …]
|
/linux/arch/powerpc/platforms/powernv/ |
A D | rng.c | 118 struct device_node *dn) in rng_init_per_cpu() argument 122 chip_id = of_get_ibm_chip_id(dn); in rng_init_per_cpu() 124 pr_warn("No ibm,chip-id found for %pOF.\n", dn); in rng_init_per_cpu() 134 static __init int rng_create(struct device_node *dn) in rng_create() argument 144 if (of_address_to_resource(dn, 0, &res)) { in rng_create() 151 rng->regs = of_iomap(dn, 0); in rng_create() 160 rng_init_per_cpu(rng, dn); in rng_create() 171 struct device_node *dn; in rng_init() local 175 rc = rng_create(dn); in rng_init() 178 dn, rc); in rng_init() [all …]
|
/linux/arch/powerpc/kexec/ |
A D | ranges.c | 245 struct device_node *dn = NULL; in add_tce_mem_ranges() local 248 for_each_node_by_type(dn, "pci") { in add_tce_mem_ranges() 271 of_node_put(dn); in add_tce_mem_ranges() 336 struct device_node *dn; in add_rtas_mem_range() local 340 dn = of_find_node_by_path("/rtas"); in add_rtas_mem_range() 341 if (!dn) in add_rtas_mem_range() 349 of_node_put(dn); in add_rtas_mem_range() 361 struct device_node *dn; in add_opal_mem_range() local 365 dn = of_find_node_by_path("/ibm,opal"); in add_opal_mem_range() 366 if (!dn) in add_opal_mem_range() [all …]
|
/linux/drivers/cpufreq/ |
A D | pasemi-cpufreq.c | 132 struct device_node *cpu, *dn; in pas_cpufreq_cpu_init() local 150 if (!dn) in pas_cpufreq_cpu_init() 151 dn = of_find_compatible_node(NULL, NULL, in pas_cpufreq_cpu_init() 153 if (!dn) in pas_cpufreq_cpu_init() 155 err = of_address_to_resource(dn, 0, &res); in pas_cpufreq_cpu_init() 156 of_node_put(dn); in pas_cpufreq_cpu_init() 166 if (!dn) in pas_cpufreq_cpu_init() 167 dn = of_find_compatible_node(NULL, NULL, in pas_cpufreq_cpu_init() 169 if (!dn) { in pas_cpufreq_cpu_init() 173 err = of_address_to_resource(dn, 0, &res); in pas_cpufreq_cpu_init() [all …]
|
/linux/arch/arm/mach-bcm/ |
A D | bcm63xx_smp.c | 110 struct device_node *dn; in bcm63138_smp_boot_secondary() local 114 dn = of_find_matching_node(NULL, bcm63138_bootlut_ids); in bcm63138_smp_boot_secondary() 115 if (!dn) { in bcm63138_smp_boot_secondary() 120 bootlut_base = of_iomap(dn, 0); in bcm63138_smp_boot_secondary() 121 of_node_put(dn); in bcm63138_smp_boot_secondary() 129 dn = of_get_cpu_node(cpu, NULL); in bcm63138_smp_boot_secondary() 130 if (!dn) { in bcm63138_smp_boot_secondary() 143 ret = bcm63xx_pmb_power_on_cpu(dn); in bcm63138_smp_boot_secondary() 144 of_node_put(dn); in bcm63138_smp_boot_secondary()
|