Searched refs:dn (Results 101 - 125 of 276) sorted by relevance

1234567891011>>

/linux-master/arch/powerpc/platforms/pseries/
H A Dpci.c126 struct device_node *dn = pci_device_to_OF_node(pdev); local
128 max_vfs = of_get_property(dn, "ibm,number-of-configurable-vfs", NULL);
262 struct device_node *dn, *pdn; local
273 dn = pcibios_get_phb_of_node(bus);
274 if (!dn)
277 for (pdn = dn; pdn != NULL; pdn = of_get_next_parent(pdn)) {
H A Dsetup.c283 struct device_node *parent, *np = rd->dn;
667 struct device_node *dn = pci_device_to_OF_node(dev); local
670 indexes = of_get_property(dn, "ibm,open-sriov-vf-bar-info", NULL);
768 struct device_node *dn = pci_device_to_OF_node(pdev); local
771 indexes = of_get_property(dn, "ibm,open-sriov-vf-bar-info", NULL);
781 struct device_node *dn = pci_device_to_OF_node(pdev); local
786 indexes = of_get_property(dn, "ibm,open-sriov-vf-bar-info", NULL);
797 struct device_node *dn = pci_device_to_OF_node(pdev); local
800 reg = of_get_property(dn, "ibm,is-open-sriov-pf", NULL);
1012 struct device_node *dn; local
[all...]
H A Dibmebus.c155 struct device_node *dn = to_platform_device(dev)->dev.of_node; local
160 return (tn == dn);
168 static int ibmebus_create_device(struct device_node *dn) argument
173 dev = of_device_alloc(dn, NULL, &ibmebus_bus_device);
273 struct device_node *dn = NULL; local
292 if ((dn = of_find_node_by_path(path))) {
293 rc = ibmebus_create_device(dn);
294 of_node_put(dn);
H A Dpapr_scm.c53 struct device_node *dn; member in struct:papr_scm_priv
1220 dev_err(dev, "Error creating nvdimm bus %pOF\n", p->dn);
1240 dev_err(dev, "Error creating DIMM object for %pOF\n", p->dn);
1260 ndr_desc.of_node = p->dn;
1279 ndr_desc.res, p->dn);
1361 struct device_node *dn = pdev->dev.of_node; local
1372 if (of_property_read_u32(dn, "ibm,my-drc-index", &drc_index)) {
1373 dev_err(&pdev->dev, "%pOF: missing drc-index!\n", dn);
1377 if (of_property_read_u64(dn, "ibm,block-size", &block_size)) {
1378 dev_err(&pdev->dev, "%pOF: missing block-size!\n", dn);
[all...]
/linux-master/net/caif/
H A Dcfctrl.c180 struct cflayer *dn = cfctrl->serv.layer.dn; local
182 if (!dn) {
196 dn->transmit(dn, pkt);
204 struct cflayer *dn = cfctrl->serv.layer.dn; local
213 if (!dn) {
294 dn->transmit(dn, pk
314 struct cflayer *dn = cfctrl->serv.layer.dn; local
[all...]
H A Dcfdgml.c112 return layr->dn->transmit(layr->dn, pkt);
H A Dcfrfml.c210 return rfml->serv.layer.dn->transmit(rfml->serv.layer.dn, pkt);
222 caif_assert(layr->dn != NULL);
223 caif_assert(layr->dn->transmit != NULL);
/linux-master/arch/powerpc/platforms/powermac/
H A Dsetup.c165 struct device_node *dn = of_find_node_by_name(NULL, "via-cuda"); local
167 if (!dn)
169 of_node_put(dn);
179 struct device_node *dn = of_find_node_by_name(NULL, "via-pmu"); local
181 if (!dn)
183 of_node_put(dn);
203 struct device_node *dn; local
214 dn = of_find_node_by_name(NULL, "ohare");
215 if (dn) {
216 of_node_put(dn);
[all...]
/linux-master/net/dsa/
H A Ddsa.c276 struct device_node *dn)
281 if (dp->dn == dn)
317 struct device_node *dn = dp->dn; local
323 of_for_each_phandle(&it, err, dn, "link", NULL, 0) {
374 ethernet = of_parse_phandle(cpu_dp->dn, "ethernet", 0);
482 if (dp->dn) {
500 if (dp->dn) {
518 of_get_mac_address(dp->dn, d
275 dsa_tree_find_port_by_node(struct dsa_switch_tree *dst, struct device_node *dn) argument
1237 dsa_port_parse_of(struct dsa_port *dp, struct device_node *dn) argument
1264 dsa_switch_parse_ports_of(struct dsa_switch *ds, struct device_node *dn) argument
1311 dsa_switch_parse_member_of(struct dsa_switch *ds, struct device_node *dn) argument
1355 dsa_switch_parse_of(struct dsa_switch *ds, struct device_node *dn) argument
[all...]
/linux-master/arch/powerpc/platforms/pasemi/
H A Ddma_lib.c472 struct device_node *dn; local
475 dn = pci_device_to_OF_node(p);
476 if (!dn)
479 ret = of_iomap(dn, index);
505 struct device_node *dn; local
559 dn = pci_device_to_OF_node(iob_pdev);
560 if (dn)
561 err = of_address_to_resource(dn, 1, &res);
562 if (!dn || err) {
H A Dpci.c110 struct device_node *dn; local
114 dn = of_find_compatible_node(NULL, "isa", "pasemi,1682m-iob");
115 if (!dn) {
120 err = of_address_to_resource(dn, 0, &res);
121 of_node_put(dn);
/linux-master/drivers/irqchip/
H A Dirq-bcm7038-l1.c222 static int __init bcm7038_l1_init_one(struct device_node *dn, argument
232 if (of_address_to_resource(dn, idx, &res))
244 ret = of_property_read_u32_array(dn , "brcm,int-fwd-mask",
269 parent_irq = irq_of_parse_and_map(dn, idx);
275 if (of_property_read_bool(dn, "brcm,irq-can-wake"))
398 static int __init bcm7038_l1_of_init(struct device_node *dn, argument
410 ret = bcm7038_l1_init_one(dn, idx, intc);
419 intc->domain = irq_domain_add_linear(dn, IRQS_PER_WORD * intc->n_words,
438 dn, IRQS_PER_WORD * intc->n_words);
H A Dirq-bcm6345-l1.c222 static int __init bcm6345_l1_init_one(struct device_node *dn, argument
231 if (of_address_to_resource(dn, idx, &res))
259 cpu->parent_irq = irq_of_parse_and_map(dn, idx);
292 static int __init bcm6345_l1_of_init(struct device_node *dn, argument
304 ret = bcm6345_l1_init_one(dn, idx, intc);
319 intc->domain = irq_domain_add_linear(dn, IRQS_PER_WORD * intc->n_words,
H A Dirq-imx-mu-msi.c306 static int __init imx_mu_of_init(struct device_node *dn, argument
310 struct platform_device *pdev = of_find_device_by_node(dn);
426 static int __init imx_mu_imx7ulp_of_init(struct device_node *dn, argument
429 return imx_mu_of_init(dn, parent, &imx_mu_cfg_imx7ulp);
432 static int __init imx_mu_imx6sx_of_init(struct device_node *dn, argument
435 return imx_mu_of_init(dn, parent, &imx_mu_cfg_imx6sx);
438 static int __init imx_mu_imx8ulp_of_init(struct device_node *dn, argument
441 return imx_mu_of_init(dn, parent, &imx_mu_cfg_imx8ulp);
/linux-master/drivers/infiniband/hw/hfi1/
H A Daspm.c26 u32 up, dn; local
35 pcie_capability_read_dword(dd->pcidev, PCI_EXP_LNKCAP, &dn);
36 dn = ASPM_L1_SUPPORTED(dn);
42 return (!!dn || is_ax(dd)) && !!up;
/linux-master/drivers/usb/host/
H A Duhci-grlib.c93 struct device_node *dn = op->dev.of_node; local
105 rv = of_address_to_resource(dn, 0, &res);
119 irq = irq_of_parse_and_map(dn, 0);
/linux-master/arch/powerpc/kernel/
H A Dpci_of_scan.c349 struct device_node *dn)
355 struct eeh_dev *edev = pdn_to_eeh_dev(PCI_DN(dn));
358 pr_debug(" * %pOF\n", dn);
359 if (!of_device_is_available(dn))
362 reg = of_get_property(dn, "reg", &reglen);
381 dev = of_create_pci_dev(dn, bus, devfn);
348 of_scan_pci_dev(struct pci_bus *bus, struct device_node *dn) argument
/linux-master/drivers/misc/cxl/
H A Dflash.c68 static int update_property(struct device_node *dn, const char *name, argument
95 rc = cxl_update_properties(dn, new_prop);
97 dn, name, vd, be32_to_cpu(*val));
110 struct device_node *dn; local
126 dn = of_find_node_by_phandle(be32_to_cpu(phandle));
127 if (!dn) {
158 ret = update_property(dn, prop_name, vd,
169 of_node_put(dn);
/linux-master/drivers/net/ethernet/marvell/
H A Dmvneta_bm.c285 struct device_node *dn = priv->pdev->dev.of_node; local
308 if (of_property_read_u32(dn, prop, &size)) {
334 if (of_property_read_u32(dn, prop, &bm_pool->pkt_size))
374 static int mvneta_bm_get_sram(struct device_node *dn, argument
377 priv->bppi_pool = of_gen_pool_get(dn, "internal-mem", 0);
412 struct device_node *dn = pdev->dev.of_node; local
431 err = mvneta_bm_get_sram(dn, priv);
446 dn->data = priv;
/linux-master/fs/ubifs/
H A Dfile.c46 struct ubifs_data_node *dn)
54 err = ubifs_tnc_lookup(c, &key, dn);
62 ubifs_assert(c, le64_to_cpu(dn->ch.sqnum) >
64 len = le32_to_cpu(dn->size);
68 dlen = le32_to_cpu(dn->ch.len) - UBIFS_DATA_NODE_SZ;
71 err = ubifs_decrypt(inode, dn, &dlen, block);
77 err = ubifs_decompress(c, &dn->data, dlen, addr, &out_len,
78 le16_to_cpu(dn->compr_type));
95 ubifs_dump_node(c, dn, UBIFS_MAX_DATA_NODE_SZ);
104 struct ubifs_data_node *dn local
45 read_block(struct inode *inode, void *addr, unsigned int block, struct ubifs_data_node *dn) argument
629 struct ubifs_data_node *dn; local
[all...]
/linux-master/arch/powerpc/platforms/powernv/
H A Dopal-irqchip.c176 struct device_node *dn, *opal_node; local
186 /* If dn is NULL it means the domain won't be linked to a DT
189 * version of skiboot that doesn't have the dn then the
193 dn = of_find_compatible_node(NULL, NULL, "ibm,opal-event");
194 opal_event_irqchip.domain = irq_domain_add_linear(dn, MAX_NUM_EVENTS,
196 of_node_put(dn);
/linux-master/drivers/gpu/drm/exynos/
H A Dexynos_drm_dpi.c160 struct device_node *dn = dev->of_node; local
163 ctx->panel_node = of_graph_get_remote_node(dn, FIMD_PORT_RGB, 0);
165 np = of_get_child_by_name(dn, "display-timings");
176 ret = of_get_videomode(dn, vm, 0);
/linux-master/tools/testing/nvdimm/test/
H A Dndtest.h12 struct device_node *dn; member in struct:ndtest_priv
/linux-master/drivers/mtd/nand/
H A Decc.c430 struct device_node *dn = nanddev_get_of_node(nand); local
433 nand->ecc.user_conf.engine_type = of_get_nand_ecc_engine_type(dn);
434 nand->ecc.user_conf.algo = of_get_nand_ecc_algo(dn);
435 nand->ecc.user_conf.placement = of_get_nand_ecc_placement(dn);
437 strength = of_get_nand_ecc_strength(dn);
441 size = of_get_nand_ecc_step_size(dn);
445 if (of_property_read_bool(dn, "nand-ecc-maximize"))
/linux-master/drivers/mtd/nand/raw/
H A Dmpc5121_nfc.c274 struct device_node *dn; local
276 dn = of_find_compatible_node(NULL, NULL, "fsl,mpc5121ads-cpld");
277 if (dn) {
278 prv->csreg = of_iomap(dn, 0);
279 of_node_put(dn);
617 struct device_node *dn = op->dev.of_node; local
653 nand_set_flash_node(chip, dn);
663 prv->irq = irq_of_parse_and_map(dn, 0);
669 retval = of_address_to_resource(dn, 0, &res);
675 chips_no = of_get_property(dn, "chip
[all...]

Completed in 287 milliseconds

1234567891011>>