/Linux-v5.15/drivers/pci/hotplug/ |
D | rpadlpar_core.c | 43 struct device_node *dn; in find_vio_slot_node() local 49 for_each_child_of_node(parent, dn) { in find_vio_slot_node() 50 rc = rpaphp_check_drc_props(dn, drc_name, NULL); in find_vio_slot_node() 56 return dn; in find_vio_slot_node() 78 struct device_node *dn; in find_dlpar_node() local 80 dn = find_php_slot_pci_node(drc_name, "SLOT"); in find_dlpar_node() 81 if (dn) { in find_dlpar_node() 83 return dn; in find_dlpar_node() 86 dn = find_php_slot_pci_node(drc_name, "PHB"); in find_dlpar_node() 87 if (dn) { in find_dlpar_node() [all …]
|
D | pnv_php.c | 33 static void pnv_php_register(struct device_node *dn); 34 static void pnv_php_unregister_one(struct device_node *dn); 35 static void pnv_php_unregister(struct device_node *dn); 90 static struct pnv_php_slot *pnv_php_match(struct device_node *dn, in pnv_php_match() argument 95 if (php_slot->dn == dn) { in pnv_php_match() 101 target = pnv_php_match(dn, tmp); in pnv_php_match() 109 struct pnv_php_slot *pnv_php_find_slot(struct device_node *dn) in pnv_php_find_slot() argument 116 php_slot = pnv_php_match(dn, tmp); in pnv_php_find_slot() 132 static void pnv_php_rmv_pdns(struct device_node *dn) in pnv_php_rmv_pdns() argument 136 for_each_child_of_node(dn, child) { in pnv_php_rmv_pdns() [all …]
|
D | rpaphp_core.c | 157 static int get_children_props(struct device_node *dn, const __be32 **drc_indexes, in get_children_props() argument 163 indexes = of_get_property(dn, "ibm,drc-indexes", NULL); in get_children_props() 164 names = of_get_property(dn, "ibm,drc-names", NULL); in get_children_props() 165 types = of_get_property(dn, "ibm,drc-types", NULL); in get_children_props() 166 domains = of_get_property(dn, "ibm,drc-power-domains", NULL); in get_children_props() 193 static int rpaphp_check_drc_props_v1(struct device_node *dn, char *drc_name, in rpaphp_check_drc_props_v1() argument 201 rc = get_children_props(dn->parent, &indexes, &names, &types, &domains); in rpaphp_check_drc_props_v1() 225 static int rpaphp_check_drc_props_v2(struct device_node *dn, char *drc_name, in rpaphp_check_drc_props_v2() argument 235 info = of_find_property(dn->parent, "ibm,drc-info", NULL); in rpaphp_check_drc_props_v2() 268 int rpaphp_check_drc_props(struct device_node *dn, char *drc_name, in rpaphp_check_drc_props() argument [all …]
|
/Linux-v5.15/fs/notify/dnotify/ |
D | dnotify.c | 35 struct dnotify_struct *dn; member 49 struct dnotify_struct *dn; in dnotify_recalc_inode_mask() local 56 for (dn = dn_mark->dn; dn != NULL; dn = dn->dn_next) in dnotify_recalc_inode_mask() 57 new_mask |= (dn->dn_mask & ~FS_DN_MULTISHOT); in dnotify_recalc_inode_mask() 78 struct dnotify_struct *dn; in dnotify_handle_event() local 90 prev = &dn_mark->dn; in dnotify_handle_event() 91 while ((dn = *prev) != NULL) { in dnotify_handle_event() 92 if ((dn->dn_mask & test_mask) == 0) { in dnotify_handle_event() 93 prev = &dn->dn_next; in dnotify_handle_event() 96 fown = &dn->dn_filp->f_owner; in dnotify_handle_event() [all …]
|
/Linux-v5.15/arch/powerpc/platforms/cell/ |
D | axon_msi.c | 78 void axon_msi_debug_setup(struct device_node *dn, struct axon_msic *msic); 80 static inline void axon_msi_debug_setup(struct device_node *dn, in axon_msi_debug_setup() argument 153 struct device_node *dn, *tmp; in find_msi_translator() local 157 dn = of_node_get(pci_device_to_OF_node(dev)); in find_msi_translator() 158 if (!dn) { in find_msi_translator() 163 for (; dn; dn = of_get_next_parent(dn)) { in find_msi_translator() 164 ph = of_get_property(dn, "msi-translator", NULL); in find_msi_translator() 175 tmp = dn; in find_msi_translator() 176 dn = of_find_node_by_phandle(*ph); in find_msi_translator() 178 if (!dn) { in find_msi_translator() [all …]
|
/Linux-v5.15/arch/powerpc/kernel/ |
D | pci_dn.c | 33 struct device_node *dn; in pci_bus_to_pdn() local 52 dn = pci_bus_to_OF_node(pbus); in pci_bus_to_pdn() 53 pdn = dn ? PCI_DN(dn) : NULL; in pci_bus_to_pdn() 61 struct device_node *dn = NULL; in pci_get_pdn_by_devfn() local 71 dn = pci_device_to_OF_node(pdev); in pci_get_pdn_by_devfn() 77 pdn = dn ? PCI_DN(dn) : NULL; in pci_get_pdn_by_devfn() 97 struct device_node *dn; in pci_get_pdn() local 105 dn = pci_device_to_OF_node(pdev); in pci_get_pdn() 106 pdn = dn ? PCI_DN(dn) : NULL; in pci_get_pdn() 283 struct device_node *dn) in pci_add_device_node_info() argument [all …]
|
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-v5.15/arch/powerpc/platforms/pseries/ |
D | dlpar.c | 79 struct device_node *dn; in dlpar_parse_cc_node() local 82 dn = kzalloc(sizeof(*dn), GFP_KERNEL); in dlpar_parse_cc_node() 83 if (!dn) in dlpar_parse_cc_node() 87 dn->full_name = kstrdup(name, GFP_KERNEL); in dlpar_parse_cc_node() 88 if (!dn->full_name) { in dlpar_parse_cc_node() 89 kfree(dn); in dlpar_parse_cc_node() 93 of_node_set_flag(dn, OF_DYNAMIC); in dlpar_parse_cc_node() 94 of_node_init(dn); in dlpar_parse_cc_node() 96 return dn; in dlpar_parse_cc_node() 99 static void dlpar_free_one_cc_node(struct device_node *dn) in dlpar_free_one_cc_node() argument [all …]
|
D | pmem.c | 32 struct device_node *dn; in pmem_drc_add_node() local 44 dn = dlpar_configure_connector(cpu_to_be32(drc_index), pmem_node); in pmem_drc_add_node() 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() 63 pr_info("Successfully added %pOF, drc index: %x\n", dn, drc_index); 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() 75 if (of_property_read_u32(dn, "ibm,my-drc-index", &index)) in pmem_drc_remove_node() [all …]
|
D | hotplug-cpu.c | 329 static int dlpar_offline_cpu(struct device_node *dn) in dlpar_offline_cpu() argument 337 intserv = of_get_property(dn, "ibm,ppc-interrupt-server#s", &len); in dlpar_offline_cpu() 361 pr_warn("Unable to remove last online CPU %pOFn\n", dn); in dlpar_offline_cpu() 385 static int dlpar_online_cpu(struct device_node *dn) in dlpar_online_cpu() argument 393 intserv = of_get_property(dn, "ibm,ppc-interrupt-server#s", &len); in dlpar_online_cpu() 409 dlpar_offline_cpu(dn); in dlpar_online_cpu() 526 struct device_node *dn, *parent; in dlpar_cpu_add() local 557 dn = dlpar_configure_connector(cpu_to_be32(drc_index), parent); in dlpar_cpu_add() 558 if (!dn) { in dlpar_cpu_add() 566 rc = dlpar_attach_node(dn, parent); in dlpar_cpu_add() [all …]
|
D | msi.c | 116 struct device_node *dn; in check_req() local 120 dn = pci_device_to_OF_node(pdev); in check_req() 122 p = of_get_property(dn, prop_name, NULL); in check_req() 124 pr_debug("rtas_msi: No %s on %pOF\n", prop_name, dn); in check_req() 155 struct device_node *dn; in __find_pe_total_msi() local 158 dn = of_node_get(node); in __find_pe_total_msi() 159 while (dn) { in __find_pe_total_msi() 160 p = of_get_property(dn, "ibm,pe-total-#msi", NULL); in __find_pe_total_msi() 163 dn); in __find_pe_total_msi() 165 return dn; in __find_pe_total_msi() [all …]
|
/Linux-v5.15/arch/x86/kernel/ |
D | devicetree.c | 120 struct device_node *dn; in dtb_setup_hpet() local 124 dn = of_find_compatible_node(NULL, NULL, "intel,ce4100-hpet"); in dtb_setup_hpet() 125 if (!dn) in dtb_setup_hpet() 127 ret = of_address_to_resource(dn, 0, &r); in dtb_setup_hpet() 140 struct device_node *dn; in dtb_cpu_setup() local 145 for_each_of_cpu_node(dn) { in dtb_cpu_setup() 146 ret = of_property_read_u32(dn, "reg", &apic_id); in dtb_cpu_setup() 148 pr_warn("%pOF: missing local APIC ID\n", dn); in dtb_cpu_setup() 157 struct device_node *dn; in dtb_lapic_setup() local 162 dn = of_find_compatible_node(NULL, NULL, "intel,ce4100-lapic"); in dtb_lapic_setup() [all …]
|
/Linux-v5.15/net/caif/ |
D | cfmuxl.c | 65 int cfmuxl_set_dnlayer(struct cflayer *layr, struct cflayer *dn, u8 phyid) in cfmuxl_set_dnlayer() argument 70 list_add_rcu(&dn->node, &muxl->frml_list); in cfmuxl_set_dnlayer() 107 struct cflayer *dn; in cfmuxl_remove_dnlayer() local 112 dn = get_from_id(&muxl->frml_list, phyid); in cfmuxl_remove_dnlayer() 113 if (dn == NULL) in cfmuxl_remove_dnlayer() 116 list_del_rcu(&dn->node); in cfmuxl_remove_dnlayer() 117 caif_assert(dn != NULL); in cfmuxl_remove_dnlayer() 120 return dn; in cfmuxl_remove_dnlayer() 139 struct cflayer *dn; in get_dn() local 141 dn = rcu_dereference(muxl->dn_cache[idx]); in get_dn() [all …]
|
/Linux-v5.15/arch/powerpc/platforms/powernv/ |
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 174 for_each_compatible_node(dn, NULL, "ibm,power-rng") { in rng_init() 175 rc = rng_create(dn); in rng_init() [all …]
|
/Linux-v5.15/fs/f2fs/ |
D | inline.c | 112 int f2fs_convert_inline_page(struct dnode_of_data *dn, struct page *page) in f2fs_convert_inline_page() argument 115 .sbi = F2FS_I_SB(dn->inode), in f2fs_convert_inline_page() 116 .ino = dn->inode->i_ino, in f2fs_convert_inline_page() 127 if (!f2fs_exist_data(dn->inode)) in f2fs_convert_inline_page() 130 err = f2fs_reserve_block(dn, 0); in f2fs_convert_inline_page() 134 err = f2fs_get_node_info(fio.sbi, dn->nid, &ni); in f2fs_convert_inline_page() 136 f2fs_truncate_data_blocks_range(dn, 1); in f2fs_convert_inline_page() 137 f2fs_put_dnode(dn); in f2fs_convert_inline_page() 143 if (unlikely(dn->data_blkaddr != NEW_ADDR)) { in f2fs_convert_inline_page() 144 f2fs_put_dnode(dn); in f2fs_convert_inline_page() [all …]
|
D | recovery.c | 444 block_t blkaddr, struct dnode_of_data *dn) in check_index_in_prev_nodes() argument 452 struct dnode_of_data tdn = *dn; in check_index_in_prev_nodes() 482 if (dn->inode->i_ino == nid) { in check_index_in_prev_nodes() 484 if (!dn->inode_page_locked) in check_index_in_prev_nodes() 485 lock_page(dn->inode_page); in check_index_in_prev_nodes() 486 tdn.node_page = dn->inode_page; in check_index_in_prev_nodes() 489 } else if (dn->nid == nid) { in check_index_in_prev_nodes() 503 if (ino != dn->inode->i_ino) { 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() [all …]
|
D | file.c | 58 struct dnode_of_data dn; in f2fs_vm_page_mkwrite() local 116 set_new_dnode(&dn, inode, NULL, NULL, 0); in f2fs_vm_page_mkwrite() 117 err = f2fs_get_block(&dn, page->index); in f2fs_vm_page_mkwrite() 123 set_new_dnode(&dn, inode, NULL, NULL, 0); in f2fs_vm_page_mkwrite() 124 err = f2fs_get_dnode_of_data(&dn, page->index, LOOKUP_NODE); in f2fs_vm_page_mkwrite() 125 f2fs_put_dnode(&dn); in f2fs_vm_page_mkwrite() 136 f2fs_wait_on_block_writeback(inode, dn.data_blkaddr); in f2fs_vm_page_mkwrite() 417 struct dnode_of_data dn; in f2fs_seek_block() local 443 set_new_dnode(&dn, inode, NULL, NULL, 0); in f2fs_seek_block() 444 err = f2fs_get_dnode_of_data(&dn, pgofs, LOOKUP_NODE); in f2fs_seek_block() [all …]
|
/Linux-v5.15/net/decnet/ |
D | dn_neigh.c | 114 struct dn_neigh *dn = container_of(neigh, struct dn_neigh, n); in dn_neigh_construct() local 142 dn_dn2eth(neigh->ha, dn->addr); in dn_neigh_construct() 162 dn->blksize = dev->mtu - 2; in dn_neigh_construct() 343 struct dn_neigh *dn = container_of(neigh, struct dn_neigh, n); in dn_to_neigh_output() local 356 if (dn->flags & DN_NDFLAG_P3) in dn_to_neigh_output() 387 struct dn_neigh *dn; in dn_neigh_router_hello() local 395 dn = container_of(neigh, struct dn_neigh, n); in dn_neigh_router_hello() 409 dn->blksize = le16_to_cpu(msg->blksize); in dn_neigh_router_hello() 410 dn->priority = msg->priority; in dn_neigh_router_hello() 412 dn->flags &= ~DN_NDFLAG_P3; in dn_neigh_router_hello() [all …]
|
/Linux-v5.15/drivers/irqchip/ |
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() 150 static int __init bcm7120_l2_intc_iomap_7120(struct device_node *dn, in bcm7120_l2_intc_iomap_7120() argument 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() 174 data->map_mask_prop = of_get_property(dn, "brcm,int-map-mask", &ret); in bcm7120_l2_intc_iomap_7120() 184 static int __init bcm7120_l2_intc_iomap_3380(struct device_node *dn, in bcm7120_l2_intc_iomap_3380() argument 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() 215 static int __init bcm7120_l2_intc_probe(struct device_node *dn, in bcm7120_l2_intc_probe() argument [all …]
|
/Linux-v5.15/drivers/perf/ |
D | arm-cmn.c | 258 struct arm_cmn_node *dn; member 265 #define for_each_hw_dn(hw, dn, i) \ argument 266 for (i = 0, dn = hw->dn; i < hw->num_dns; i++, dn++) 303 struct arm_cmn_node *dn) in arm_cmn_init_node_to_xp() argument 306 int x = CMN_NODEID_X(dn->id, bits); in arm_cmn_init_node_to_xp() 307 int y = CMN_NODEID_Y(dn->id, bits); in arm_cmn_init_node_to_xp() 310 dn->to_xp = (cmn->xps + xp_idx) - dn; in arm_cmn_init_node_to_xp() 313 static struct arm_cmn_node *arm_cmn_node_to_xp(struct arm_cmn_node *dn) in arm_cmn_node_to_xp() argument 315 return dn->type == CMN_TYPE_XP ? dn : dn + dn->to_xp; in arm_cmn_node_to_xp() 682 struct arm_cmn_node *dn; in arm_cmn_read_dtm() local [all …]
|
/Linux-v5.15/drivers/cpufreq/ |
D | pasemi-cpufreq.c | 132 struct device_node *cpu, *dn; in pas_cpufreq_cpu_init() local 149 dn = of_find_compatible_node(NULL, NULL, "1682m-sdc"); in pas_cpufreq_cpu_init() 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() 165 dn = of_find_compatible_node(NULL, NULL, "1682m-gizmo"); 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() [all …]
|
/Linux-v5.15/arch/arm/mach-bcm/ |
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()
|
/Linux-v5.15/arch/powerpc/kexec/ |
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() 252 ret = of_property_read_u64(dn, "linux,tce-base", &base); in add_tce_mem_ranges() 253 ret |= of_property_read_u32(dn, "linux,tce-size", &size); 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() 344 ret = of_property_read_u32(dn, "linux,rtas-base", &base); in add_rtas_mem_range() 345 ret |= of_property_read_u32(dn, "rtas-size", &size); in add_rtas_mem_range() [all …]
|
/Linux-v5.15/drivers/char/tpm/ |
D | tpm_atmel.h | 43 struct device_node *dn; in atmel_get_base_addr() local 50 dn = of_find_node_by_name(NULL, "tpm"); in atmel_get_base_addr() 52 if (!dn) in atmel_get_base_addr() 55 if (!of_device_is_compatible(dn, "AT97SC3201")) { in atmel_get_base_addr() 56 of_node_put(dn); in atmel_get_base_addr() 60 reg = of_get_property(dn, "reg", ®len); in atmel_get_base_addr() 61 naddrc = of_n_addr_cells(dn); in atmel_get_base_addr() 62 nsizec = of_n_size_cells(dn); in atmel_get_base_addr() 64 of_node_put(dn); in atmel_get_base_addr()
|
/Linux-v5.15/drivers/soc/renesas/ |
D | r9a06g032-smp.c | 53 struct device_node *dn; in r9a06g032_smp_prepare_cpus() local 57 dn = of_get_cpu_node(1, NULL); in r9a06g032_smp_prepare_cpus() 58 if (!dn) { in r9a06g032_smp_prepare_cpus() 67 if (of_find_property(dn, "cpu-release-addr", &dns)) { in r9a06g032_smp_prepare_cpus() 71 ret = of_property_read_u64(dn, in r9a06g032_smp_prepare_cpus() 75 ret = of_property_read_u32(dn, in r9a06g032_smp_prepare_cpus() 80 of_node_put(dn); in r9a06g032_smp_prepare_cpus()
|