Home
last modified time | relevance | path

Searched full:dn (Results 1 – 25 of 303) sorted by relevance

12345678910>>...13

/linux/drivers/pci/hotplug/
H A Drpadlpar_core.c44 struct device_node *dn; in find_vio_slot_node() local
50 for_each_child_of_node(parent, dn) { in find_vio_slot_node()
51 rc = rpaphp_check_drc_props(dn, drc_name, NULL); in find_vio_slot_node()
57 return dn; in find_vio_slot_node()
79 struct device_node *dn; in find_dlpar_node() local
81 dn = find_php_slot_pci_node(drc_name, "SLOT"); in find_dlpar_node()
82 if (dn) { in find_dlpar_node()
84 return dn; in find_dlpar_node()
87 dn = find_php_slot_pci_node(drc_name, "PHB"); in find_dlpar_node()
88 if (dn) { in find_dlpar_node()
[all …]
H A Dpnv_php.c35 static void pnv_php_register(struct device_node *dn);
36 static void pnv_php_unregister_one(struct device_node *dn);
37 static void pnv_php_unregister(struct device_node *dn);
91 static struct pnv_php_slot *pnv_php_match(struct device_node *dn, in pnv_php_match() argument
96 if (php_slot->dn == dn) { in pnv_php_match()
102 target = pnv_php_match(dn, tmp); in pnv_php_match()
110 struct pnv_php_slot *pnv_php_find_slot(struct device_node *dn) in pnv_php_find_slot() argument
117 php_slot = pnv_php_match(dn, tmp); in pnv_php_find_slot()
133 static void pnv_php_rmv_pdns(struct device_node *dn) in pnv_php_rmv_pdns() argument
137 for_each_child_of_node(dn, child) { in pnv_php_rmv_pdns()
[all …]
H A Drpaphp_core.c159 static int get_children_props(struct device_node *dn, const __be32 **drc_indexes, in get_children_props() argument
165 indexes = of_get_property(dn, "ibm,drc-indexes", NULL); in get_children_props()
166 names = of_get_property(dn, "ibm,drc-names", NULL); in get_children_props()
167 types = of_get_property(dn, "ibm,drc-types", NULL); in get_children_props()
168 domains = of_get_property(dn, "ibm,drc-power-domains", NULL); in get_children_props()
195 static int rpaphp_check_drc_props_v1(struct device_node *dn, char *drc_name, in rpaphp_check_drc_props_v1() argument
203 rc = get_children_props(dn->parent, &indexes, &names, &types, &domains); in rpaphp_check_drc_props_v1()
227 static int rpaphp_check_drc_props_v2(struct device_node *dn, char *drc_name, in rpaphp_check_drc_props_v2() argument
237 info = of_find_property(dn->parent, "ibm,drc-info", NULL); in rpaphp_check_drc_props_v2()
270 int rpaphp_check_drc_props(struct device_node *dn, char *drc_name, in rpaphp_check_drc_props() argument
[all …]
/linux/fs/notify/dnotify/
H A Ddnotify.c47 * the same directory with dnotify their information is chained in dn
51 struct dnotify_struct *dn; member
65 struct dnotify_struct *dn; in dnotify_recalc_inode_mask() local
72 for (dn = dn_mark->dn; dn != NULL; dn = dn->dn_next) in dnotify_recalc_inode_mask()
73 new_mask |= (dn->dn_mask & ~FS_DN_MULTISHOT); in dnotify_recalc_inode_mask()
94 struct dnotify_struct *dn; in dnotify_handle_event() local
106 prev = &dn_mark->dn; in dnotify_handle_event()
107 while ((dn = *prev) != NULL) { in dnotify_handle_event()
108 if ((dn->dn_mask & test_mask) == 0) { in dnotify_handle_event()
109 prev = &dn->dn_next; in dnotify_handle_event()
[all …]
/linux/arch/powerpc/kernel/
H A Dpci_dn.c33 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 …]
H A Dpci-hotplug.c22 struct device_node *dn) in find_bus_among_children() argument
27 if (pci_bus_to_OF_node(bus) == dn) in find_bus_among_children()
31 child = find_bus_among_children(tmp, dn); in find_bus_among_children()
39 struct pci_bus *pci_find_bus_by_node(struct device_node *dn) in pci_find_bus_by_node() argument
41 struct pci_dn *pdn = PCI_DN(dn); in pci_find_bus_by_node()
46 return find_bus_among_children(pdn->phb->bus, dn); in pci_find_bus_by_node()
98 struct device_node *dn; in traverse_siblings_and_scan_slot() local
113 for_each_child_of_node(start, dn) { in traverse_siblings_and_scan_slot()
119 slotno = PCI_SLOT(PCI_DN(dn)->devfn); in traverse_siblings_and_scan_slot()
142 struct device_node *dn = pci_bus_to_OF_node(bus); in pci_hp_add_devices() local
[all …]
H A Dprom_parse.c11 void of_parse_dma_window(struct device_node *dn, const __be32 *dma_window, in of_parse_dma_window() argument
22 prop = of_get_property(dn, "ibm,#dma-address-cells", NULL); in of_parse_dma_window()
24 prop = of_get_property(dn, "#address-cells", NULL); in of_parse_dma_window()
26 cells = prop ? of_read_number(prop, 1) : of_n_addr_cells(dn); in of_parse_dma_window()
31 prop = of_get_property(dn, "ibm,#dma-size-cells", NULL); in of_parse_dma_window()
32 cells = prop ? of_read_number(prop, 1) : of_n_size_cells(dn); in of_parse_dma_window()
/linux/arch/powerpc/platforms/pseries/
H A Dhotplug-cpu.c328 static int dlpar_offline_cpu(struct device_node *dn) in dlpar_offline_cpu() argument
336 intserv = of_get_property(dn, "ibm,ppc-interrupt-server#s", &len); in dlpar_offline_cpu()
360 pr_warn("Unable to remove last online CPU %pOFn\n", dn); in dlpar_offline_cpu()
384 static int dlpar_online_cpu(struct device_node *dn) in dlpar_online_cpu() argument
392 intserv = of_get_property(dn, "ibm,ppc-interrupt-server#s", &len); in dlpar_online_cpu()
416 dlpar_offline_cpu(dn); in dlpar_online_cpu()
531 static int pseries_cpuhp_attach_nodes(struct device_node *dn) in pseries_cpuhp_attach_nodes() argument
540 for (of_changeset_init(&cs); dn != NULL; dn = dn->sibling) { in pseries_cpuhp_attach_nodes()
541 ret = of_changeset_attach_node(&cs, dn); in pseries_cpuhp_attach_nodes()
554 struct device_node *dn, *parent; in dlpar_cpu_add() local
[all …]
H A Ddlpar.c80 struct device_node *dn; in dlpar_parse_cc_node() local
83 dn = kzalloc(sizeof(*dn), GFP_KERNEL); in dlpar_parse_cc_node()
84 if (!dn) in dlpar_parse_cc_node()
88 dn->full_name = kstrdup(name, GFP_KERNEL); in dlpar_parse_cc_node()
89 if (!dn->full_name) { in dlpar_parse_cc_node()
90 kfree(dn); in dlpar_parse_cc_node()
94 of_node_set_flag(dn, OF_DYNAMIC); in dlpar_parse_cc_node()
95 of_node_init(dn); in dlpar_parse_cc_node()
97 return dn; in dlpar_parse_cc_node()
100 static void dlpar_free_one_cc_node(struct device_node *dn) in dlpar_free_one_cc_node() argument
[all …]
H A Dpmem.c31 struct device_node *dn; in pmem_drc_add_node() local
43 dn = dlpar_configure_connector(cpu_to_be32(drc_index), pmem_node); in pmem_drc_add_node()
44 if (!dn) { in pmem_drc_add_node()
51 rc = dlpar_attach_node(dn, pmem_node); in pmem_drc_add_node()
54 dn, rc, drc_index); in pmem_drc_add_node()
57 dlpar_free_cc_nodes(dn); in pmem_drc_add_node()
62 pr_info("Successfully added %pOF, drc index: %x\n", dn, drc_index); in pmem_drc_add_node()
69 struct device_node *dn; in pmem_drc_remove_node() local
73 for_each_child_of_node(pmem_node, dn) { in pmem_drc_remove_node()
74 if (of_property_read_u32(dn, "ibm,my-drc-index", &index)) in pmem_drc_remove_node()
[all …]
H A Diommu.c581 struct device_node *dn, in iommu_table_setparms() argument
594 node = phb->dn; in iommu_table_setparms()
599 "missing tce entries !\n", dn); in iommu_table_setparms()
623 struct device_node *dn; in pci_dma_bus_setup_pSeries() local
630 dn = pci_bus_to_OF_node(bus); in pci_dma_bus_setup_pSeries()
632 pr_debug("pci_dma_bus_setup_pSeries: setting up bus %pOF\n", dn); in pci_dma_bus_setup_pSeries()
640 pci = PCI_DN(dn); in pci_dma_bus_setup_pSeries()
647 while (isa_dn && isa_dn != dn) in pci_dma_bus_setup_pSeries()
653 for (children = 0, tmp = dn->child; tmp; tmp = tmp->sibling) in pci_dma_bus_setup_pSeries()
688 iommu_table_setparms(pci->phb, dn, tbl); in pci_dma_bus_setup_pSeries()
[all …]
H A Dpseries_energy.c38 struct device_node *dn = NULL; in cpu_to_drc_index() local
44 dn = of_find_node_by_path("/cpus"); in cpu_to_drc_index()
45 if (dn == NULL) in cpu_to_drc_index()
51 info = of_find_property(dn, "ibm,drc-info", NULL); in cpu_to_drc_index()
84 rc = of_property_read_u32_index(dn, "ibm,drc-indexes", in cpu_to_drc_index()
90 rc = of_property_read_u32_index(dn, "ibm,drc-indexes", in cpu_to_drc_index()
102 of_node_put(dn); in cpu_to_drc_index()
111 struct device_node *dn = NULL; in drc_index_to_cpu() local
117 dn = of_find_node_by_path("/cpus"); in drc_index_to_cpu()
118 if (dn == NULL) in drc_index_to_cpu()
[all …]
H A Dpci_dlpar.c22 struct pci_controller *init_phb_dynamic(struct device_node *dn) in init_phb_dynamic() argument
27 pr_debug("PCI: Initializing new hotplug PHB %pOF\n", dn); in init_phb_dynamic()
29 nid = of_node_to_nid(dn); in init_phb_dynamic()
35 update_numa_distance(dn); in init_phb_dynamic()
41 phb = pcibios_alloc_controller(dn); in init_phb_dynamic()
45 pci_process_bridge_OF_ranges(phb, dn, 0); in init_phb_dynamic()
57 if (dn->child) in init_phb_dynamic()
58 pseries_eeh_init_edev_recursive(PCI_DN(dn)); in init_phb_dynamic()
/linux/net/caif/
H A Dcfmuxl.c65 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/arch/powerpc/platforms/powernv/
H A Drng.c101 struct device_node *dn) in rng_init_per_cpu() argument
105 chip_id = of_get_ibm_chip_id(dn); in rng_init_per_cpu()
107 pr_warn("No ibm,chip-id found for %pOF.\n", dn); in rng_init_per_cpu()
117 static __init int rng_create(struct device_node *dn) in rng_create() argument
127 if (of_address_to_resource(dn, 0, &res)) { in rng_create()
134 rng->regs = of_iomap(dn, 0); in rng_create()
143 rng_init_per_cpu(rng, dn); in rng_create()
152 struct device_node *dn; in pnv_get_random_long_early() local
161 for_each_compatible_node(dn, NULL, "ibm,power-rng") in pnv_get_random_long_early()
162 rng_create(dn); in pnv_get_random_long_early()
[all …]
/linux/drivers/perf/
H A Darm-cmn.c292 /* DN/HN-F/CXHA */
377 static struct arm_cmn_nodeid arm_cmn_nid(const struct arm_cmn_node *dn) in arm_cmn_nid() argument
381 nid.dev = dn->id & ((1U << dn->deviceid_bits) - 1); in arm_cmn_nid()
382 nid.port = (dn->id >> dn->deviceid_bits) & ((1U << dn->portid_bits) - 1); in arm_cmn_nid()
387 const struct arm_cmn_node *dn) in arm_cmn_node_to_xp() argument
389 int id = dn->id >> (dn->portid_bits + dn->deviceid_bits); in arm_cmn_node_to_xp()
399 struct arm_cmn_node *dn; in arm_cmn_node() local
401 for (dn = cmn->dns; dn->type; dn++) in arm_cmn_node()
402 if (dn->type == type) in arm_cmn_node()
403 return dn; in arm_cmn_node()
[all …]
/linux/fs/f2fs/
H A Dinline.c145 int f2fs_convert_inline_page(struct dnode_of_data *dn, struct page *page) in f2fs_convert_inline_page() argument
148 .sbi = F2FS_I_SB(dn->inode), in f2fs_convert_inline_page()
149 .ino = dn->inode->i_ino, in f2fs_convert_inline_page()
160 if (!f2fs_exist_data(dn->inode)) in f2fs_convert_inline_page()
163 err = f2fs_reserve_block(dn, 0); in f2fs_convert_inline_page()
167 err = f2fs_get_node_info(fio.sbi, dn->nid, &ni, false); in f2fs_convert_inline_page()
169 f2fs_truncate_data_blocks_range(dn, 1); in f2fs_convert_inline_page()
170 f2fs_put_dnode(dn); in f2fs_convert_inline_page()
176 if (unlikely(dn->data_blkaddr != NEW_ADDR)) { in f2fs_convert_inline_page()
177 f2fs_put_dnode(dn); in f2fs_convert_inline_page()
[all …]
H A Dfile.c59 struct dnode_of_data dn; in f2fs_vm_page_mkwrite() local
117 set_new_dnode(&dn, inode, NULL, NULL, 0); in f2fs_vm_page_mkwrite()
120 err = f2fs_get_block_locked(&dn, folio->index); in f2fs_vm_page_mkwrite()
122 err = f2fs_get_dnode_of_data(&dn, folio->index, LOOKUP_NODE); in f2fs_vm_page_mkwrite()
123 f2fs_put_dnode(&dn); in f2fs_vm_page_mkwrite()
125 !__is_valid_data_blkaddr(dn.data_blkaddr)) in f2fs_vm_page_mkwrite()
137 f2fs_wait_on_block_writeback(inode, dn.data_blkaddr); in f2fs_vm_page_mkwrite()
399 struct dnode_of_data *dn, pgoff_t index, int whence) in __found_offset() argument
401 block_t blkaddr = f2fs_data_blkaddr(dn); in __found_offset()
406 block_t first_blkaddr = data_blkaddr(dn->inode, dn->node_page, in __found_offset()
[all …]
/linux/drivers/irqchip/
H A Dirq-bcm7120-l2.c106 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/drivers/cpufreq/
H A Dpasemi-cpufreq.c131 struct device_node *cpu, *dn; in pas_cpufreq_cpu_init() local
148 dn = of_find_compatible_node(NULL, NULL, "1682m-sdc"); in pas_cpufreq_cpu_init()
149 if (!dn) in pas_cpufreq_cpu_init()
150 dn = of_find_compatible_node(NULL, NULL, in pas_cpufreq_cpu_init()
152 if (!dn) in pas_cpufreq_cpu_init()
154 err = of_address_to_resource(dn, 0, &res); in pas_cpufreq_cpu_init()
155 of_node_put(dn); in pas_cpufreq_cpu_init()
164 dn = of_find_compatible_node(NULL, NULL, "1682m-gizmo"); in pas_cpufreq_cpu_init()
165 if (!dn) in pas_cpufreq_cpu_init()
166 dn = of_find_compatible_node(NULL, NULL, in pas_cpufreq_cpu_init()
[all …]
/linux/fs/ubifs/
H A Dcrypto.c30 * @dn: data node to encrypt
32 * @out_len: allocated memory size for the data area of @dn
38 int ubifs_encrypt(const struct inode *inode, struct ubifs_data_node *dn, in ubifs_encrypt() argument
42 void *p = &dn->data; in ubifs_encrypt()
47 dn->compr_size = cpu_to_le16(in_len); in ubifs_encrypt()
64 int ubifs_decrypt(const struct inode *inode, struct ubifs_data_node *dn, in ubifs_decrypt() argument
69 unsigned int clen = le16_to_cpu(dn->compr_size); in ubifs_decrypt()
78 err = fscrypt_decrypt_block_inplace(inode, virt_to_page(&dn->data), in ubifs_decrypt()
79 dlen, offset_in_page(&dn->data), in ubifs_decrypt()
/linux/fs/ceph/
H A Dinode.c1457 struct dentry *dn = *pdn; in splice_dentry() local
1460 BUG_ON(d_inode(dn)); in splice_dentry()
1483 /* dn must be unhashed */ in splice_dentry()
1484 if (!d_unhashed(dn)) in splice_dentry()
1485 d_drop(dn); in splice_dentry()
1486 realdn = d_splice_alias(in, dn); in splice_dentry()
1489 PTR_ERR(realdn), dn, in, ceph_vinop(in)); in splice_dentry()
1494 doutc(cl, "dn %p (%d) spliced with %p (%d) inode %p ino %llx.%llx\n", in splice_dentry()
1495 dn, d_count(dn), realdn, d_count(realdn), in splice_dentry()
1497 dput(dn); in splice_dentry()
[all …]
/linux/drivers/acpi/
H A Dproperty.c85 struct acpi_data_node *dn; in acpi_nondev_subnode_extract() local
91 dn = kzalloc(sizeof(*dn), GFP_KERNEL); in acpi_nondev_subnode_extract()
92 if (!dn) in acpi_nondev_subnode_extract()
95 dn->name = link->package.elements[0].string.pointer; in acpi_nondev_subnode_extract()
96 fwnode_init(&dn->fwnode, &acpi_data_fwnode_ops); in acpi_nondev_subnode_extract()
97 dn->parent = parent; in acpi_nondev_subnode_extract()
98 INIT_LIST_HEAD(&dn->data.properties); in acpi_nondev_subnode_extract()
99 INIT_LIST_HEAD(&dn->data.subnodes); in acpi_nondev_subnode_extract()
101 result = acpi_extract_properties(handle, desc, &dn->data); in acpi_nondev_subnode_extract()
115 && acpi_enumerate_nondev_subnodes(scope, desc, &dn->data, in acpi_nondev_subnode_extract()
[all …]
/linux/drivers/usb/misc/
H A Dbrcmstb-usb-pinmap.c112 static void get_pin_counts(struct device_node *dn, int *in_count, in get_pin_counts() argument
120 in = of_property_count_strings(dn, "brcm,in-functions"); in get_pin_counts()
123 out = of_property_count_strings(dn, "brcm,out-functions"); in get_pin_counts()
130 static int parse_pins(struct device *dev, struct device_node *dn, in parse_pins() argument
147 res = of_property_read_string_index(dn, "brcm,in-functions", x, in parse_pins()
154 res = of_property_read_u32_index(dn, "brcm,in-masks", index++, in parse_pins()
161 res = of_property_read_u32_index(dn, "brcm,in-masks", index++, in parse_pins()
179 res = of_property_read_string_index(dn, "brcm,out-functions", x, in parse_pins()
186 res = of_property_read_u32_index(dn, "brcm,out-masks", index++, in parse_pins()
193 res = of_property_read_u32_index(dn, "brcm,out-masks", index++, in parse_pins()
[all …]
/linux/arch/arm/mach-bcm/
H A Dbcm63xx_smp.c110 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()

12345678910>>...13