Home
last modified time | relevance | path

Searched refs:dn (Results 1 – 25 of 139) sorted by relevance

123456

/drivers/pci/hotplug/
Drpadlpar_core.c46 struct device_node *dn = NULL; in find_vio_slot_node() local
53 while ((dn = of_get_next_child(parent, dn))) { in find_vio_slot_node()
54 rc = rpaphp_get_drc_props(dn, NULL, &name, NULL, NULL); in find_vio_slot_node()
60 return dn; in find_vio_slot_node()
85 struct device_node *dn; in find_dlpar_node() local
87 dn = find_php_slot_pci_node(drc_name, "SLOT"); in find_dlpar_node()
88 if (dn) { in find_dlpar_node()
90 return dn; in find_dlpar_node()
93 dn = find_php_slot_pci_node(drc_name, "PHB"); in find_dlpar_node()
94 if (dn) { in find_dlpar_node()
[all …]
Dpnv_php.c34 static void pnv_php_register(struct device_node *dn);
35 static void pnv_php_unregister_one(struct device_node *dn);
36 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 …]
Drpaphp_core.c170 static int get_children_props(struct device_node *dn, const int **drc_indexes, in get_children_props() argument
176 indexes = of_get_property(dn, "ibm,drc-indexes", NULL); in get_children_props()
177 names = of_get_property(dn, "ibm,drc-names", NULL); in get_children_props()
178 types = of_get_property(dn, "ibm,drc-types", NULL); in get_children_props()
179 domains = of_get_property(dn, "ibm,drc-power-domains", NULL); in get_children_props()
203 int rpaphp_get_drc_props(struct device_node *dn, int *drc_index, in rpaphp_get_drc_props() argument
212 my_index = of_get_property(dn, "ibm,my-drc-index", NULL); in rpaphp_get_drc_props()
218 rc = get_children_props(dn->parent, &indexes, &names, &types, &domains); in rpaphp_get_drc_props()
273 static int is_php_dn(struct device_node *dn, const int **indexes, in is_php_dn() argument
279 rc = get_children_props(dn, indexes, names, &drc_types, power_domains); in is_php_dn()
[all …]
/drivers/irqchip/
Dirq-bcm7120-l2.c111 static int bcm7120_l2_intc_init_one(struct device_node *dn, in bcm7120_l2_intc_init_one() argument
119 parent_irq = irq_of_parse_and_map(dn, irq); in bcm7120_l2_intc_init_one()
152 static int __init bcm7120_l2_intc_iomap_7120(struct device_node *dn, in bcm7120_l2_intc_iomap_7120() argument
157 data->map_base[0] = of_iomap(dn, 0); in bcm7120_l2_intc_iomap_7120()
168 ret = of_property_read_u32_array(dn, "brcm,int-fwd-mask", in bcm7120_l2_intc_iomap_7120()
176 data->map_mask_prop = of_get_property(dn, "brcm,int-map-mask", &ret); in bcm7120_l2_intc_iomap_7120()
186 static int __init bcm7120_l2_intc_iomap_3380(struct device_node *dn, in bcm7120_l2_intc_iomap_3380() argument
193 void __iomem *en = of_iomap(dn, map_idx + 0); in bcm7120_l2_intc_iomap_3380()
194 void __iomem *stat = of_iomap(dn, map_idx + 1); in bcm7120_l2_intc_iomap_3380()
217 static int __init bcm7120_l2_intc_probe(struct device_node *dn, in bcm7120_l2_intc_probe() argument
[all …]
/drivers/cpufreq/
Dpasemi-cpufreq.c144 struct device_node *cpu, *dn; in pas_cpufreq_cpu_init() local
161 dn = of_find_compatible_node(NULL, NULL, "1682m-sdc"); in pas_cpufreq_cpu_init()
162 if (!dn) in pas_cpufreq_cpu_init()
163 dn = of_find_compatible_node(NULL, NULL, in pas_cpufreq_cpu_init()
165 if (!dn) in pas_cpufreq_cpu_init()
167 err = of_address_to_resource(dn, 0, &res); in pas_cpufreq_cpu_init()
168 of_node_put(dn); in pas_cpufreq_cpu_init()
177 dn = of_find_compatible_node(NULL, NULL, "1682m-gizmo"); in pas_cpufreq_cpu_init()
178 if (!dn) in pas_cpufreq_cpu_init()
179 dn = of_find_compatible_node(NULL, NULL, in pas_cpufreq_cpu_init()
[all …]
/drivers/usb/host/whci/
Dint.c70 struct dn_buf_entry *dn; in process_dn_buf() local
73 for (dn = whc->dn_buf; dn < whc->dn_buf + WHC_N_DN_ENTRIES; dn++) { in process_dn_buf()
74 if (dn->status & WHC_DN_STATUS_VALID) { in process_dn_buf()
75 wusbhc_handle_dn(wusbhc, dn->src_addr, in process_dn_buf()
76 (struct wusb_dn_hdr *)dn->dn_data, in process_dn_buf()
77 dn->msg_size); in process_dn_buf()
78 dn->status &= ~WHC_DN_STATUS_VALID; in process_dn_buf()
/drivers/char/tpm/
Dtpm_atmel.h48 struct device_node *dn; in atmel_get_base_addr() local
55 dn = of_find_node_by_name(NULL, "tpm"); in atmel_get_base_addr()
57 if (!dn) in atmel_get_base_addr()
60 if (!of_device_is_compatible(dn, "AT97SC3201")) { in atmel_get_base_addr()
61 of_node_put(dn); in atmel_get_base_addr()
65 reg = of_get_property(dn, "reg", &reglen); in atmel_get_base_addr()
66 naddrc = of_n_addr_cells(dn); in atmel_get_base_addr()
67 nsizec = of_n_size_cells(dn); in atmel_get_base_addr()
69 of_node_put(dn); in atmel_get_base_addr()
/drivers/crypto/nx/
Dnx-842-powernv.c735 static int __init vas_cfg_coproc_info(struct device_node *dn, int chip_id, in vas_cfg_coproc_info() argument
746 ret = of_property_read_u64(dn, "rx-fifo-address", &rx_fifo); in vas_cfg_coproc_info()
752 ret = of_property_read_u32(dn, "rx-fifo-size", &fifo_size); in vas_cfg_coproc_info()
758 ret = of_property_read_u32(dn, "lpid", &lpid); in vas_cfg_coproc_info()
764 ret = of_property_read_u32(dn, "pid", &pid); in vas_cfg_coproc_info()
770 ret = of_property_read_u32(dn, "tid", &tid); in vas_cfg_coproc_info()
776 ret = of_property_read_string(dn, "priority", &priority); in vas_cfg_coproc_info()
842 struct device_node *dn; in nx842_powernv_probe_vas() local
852 for_each_compatible_node(dn, NULL, "ibm,power9-vas-x") { in nx842_powernv_probe_vas()
853 if (of_get_ibm_chip_id(dn) == chip_id) in nx842_powernv_probe_vas()
[all …]
/drivers/usb/host/
Dehci-ppc-of.c78 ppc44x_enable_bmt(struct device_node *dn) in ppc44x_enable_bmt() argument
82 insreg_virt = of_iomap(dn, 1); in ppc44x_enable_bmt()
95 struct device_node *dn = op->dev.of_node; in ehci_hcd_ppc_of_probe() local
109 rv = of_address_to_resource(dn, 0, &res); in ehci_hcd_ppc_of_probe()
120 irq = irq_of_parse_and_map(dn, 0); in ehci_hcd_ppc_of_probe()
152 if (of_get_property(dn, "big-endian", NULL)) { in ehci_hcd_ppc_of_probe()
156 if (of_get_property(dn, "big-endian-regs", NULL)) in ehci_hcd_ppc_of_probe()
158 if (of_get_property(dn, "big-endian-desc", NULL)) in ehci_hcd_ppc_of_probe()
163 if (of_device_is_compatible(dn, "ibm,usb-ehci-440epx")) { in ehci_hcd_ppc_of_probe()
164 rv = ppc44x_enable_bmt(dn); in ehci_hcd_ppc_of_probe()
Dohci-ppc-of.c88 struct device_node *dn = op->dev.of_node; in ohci_hcd_ppc_of_probe() local
102 of_device_is_compatible(dn, "ohci-bigendian") || in ohci_hcd_ppc_of_probe()
103 of_device_is_compatible(dn, "ohci-be"); in ohci_hcd_ppc_of_probe()
107 rv = of_address_to_resource(dn, 0, &res); in ohci_hcd_ppc_of_probe()
124 irq = irq_of_parse_and_map(dn, 0); in ohci_hcd_ppc_of_probe()
135 if (of_device_is_compatible(dn, "fsl,mpc5200-ohci")) in ohci_hcd_ppc_of_probe()
137 if (of_device_is_compatible(dn, "mpc5200-ohci")) in ohci_hcd_ppc_of_probe()
/drivers/net/ethernet/broadcom/genet/
Dbcmmii.c297 struct device_node *dn = priv->pdev->dev.of_node; in bcmgenet_mii_probe() local
312 if (dn) { in bcmgenet_mii_probe()
360 struct device_node *dn = priv->pdev->dev.of_node; in bcmgenet_mii_of_find_mdio() local
368 priv->mdio_dn = of_get_compatible_child(dn, compat); in bcmgenet_mii_of_find_mdio()
410 struct device_node *dn = pdev->dev.of_node; in bcmgenet_mii_register() local
431 if (dn) in bcmgenet_mii_register()
432 id = of_alias_get_id(dn, "eth"); in bcmgenet_mii_register()
467 struct device_node *dn = priv->pdev->dev.of_node; in bcmgenet_mii_of_init() local
474 priv->phy_dn = of_parse_phandle(dn, "phy-handle", 0); in bcmgenet_mii_of_init()
479 if (!priv->phy_dn && of_phy_is_fixed_link(dn)) { in bcmgenet_mii_of_init()
[all …]
/drivers/ide/
Dit8172.c65 drive_enables &= drive->dn ? 0xc006 : 0xc060; in it8172_set_pio_mode()
68 drive_enables |= 0x0004 << (drive->dn * 4); in it8172_set_pio_mode()
71 drive_enables |= 0x0002 << (drive->dn * 4); in it8172_set_pio_mode()
73 drive_timing &= drive->dn ? 0x00003f00 : 0x000fc000; in it8172_set_pio_mode()
74 drive_timing |= timings[pio] << (drive->dn * 6 + 8); in it8172_set_pio_mode()
83 int a_speed = 3 << (drive->dn * 4); in it8172_set_dma_mode()
84 int u_flag = 1 << drive->dn; in it8172_set_dma_mode()
94 u_speed = udma << (drive->dn * 4); in it8172_set_dma_mode()
Datiixp.c55 int timing_shift = (drive->dn ^ 1) * 8; in atiixp_set_pio_mode()
63 pio_mode_data &= ~(0x07 << (drive->dn * 4)); in atiixp_set_pio_mode()
64 pio_mode_data |= (pio << (drive->dn * 4)); in atiixp_set_pio_mode()
89 int timing_shift = (drive->dn ^ 1) * 8; in atiixp_set_dma_mode()
101 tmp16 &= ~(0x07 << (drive->dn * 4)); in atiixp_set_dma_mode()
102 tmp16 |= ((speed & 0x07) << (drive->dn * 4)); in atiixp_set_dma_mode()
105 udma_ctl |= (1 << drive->dn); in atiixp_set_dma_mode()
115 udma_ctl &= ~(1 << drive->dn); in atiixp_set_dma_mode()
Daec62xx.c97 pci_read_config_word(dev, 0x40|(2*drive->dn), &d_conf); in aec6210_set_mode()
100 pci_write_config_word(dev, 0x40|(2*drive->dn), d_conf); in aec6210_set_mode()
105 tmp1 = ((0x00 << (2*drive->dn)) | (ultra & ~(3 << (2*drive->dn)))); in aec6210_set_mode()
107 tmp2 = ((ultra_conf << (2*drive->dn)) | (tmp1 & ~(3 << (2*drive->dn)))); in aec6210_set_mode()
117 u8 unit = drive->dn & 1; in aec6260_set_mode()
125 pci_read_config_byte(dev, 0x40|drive->dn, &drive_conf); in aec6260_set_mode()
127 pci_write_config_byte(dev, 0x40|drive->dn, drive_conf); in aec6260_set_mode()
Dserverworks.c117 if (drive->dn >= ARRAY_SIZE(drive_pci)) in svwks_set_pio_mode()
120 pci_write_config_byte(dev, drive_pci[drive->dn], pio_modes[pio]); in svwks_set_pio_mode()
127 csb_pio &= ~(0x0f << (4 * drive->dn)); in svwks_set_pio_mode()
128 csb_pio |= (pio << (4 * drive->dn)); in svwks_set_pio_mode()
142 u8 unit = drive->dn & 1; in svwks_set_dma_mode()
146 if (drive->dn >= ARRAY_SIZE(drive_pci2)) in svwks_set_dma_mode()
153 ultra_enable &= ~(0x01 << drive->dn); in svwks_set_dma_mode()
158 ultra_enable |= (0x01 << drive->dn); in svwks_set_dma_mode()
162 pci_write_config_byte(dev, drive_pci2[drive->dn], dma_timing); in svwks_set_dma_mode()
/drivers/ata/
Dpata_atiixp.c106 int dn = 2 * ap->port_no + adev->devno; in atiixp_set_pio_timing() local
112 pio_mode_data &= ~(0x7 << (4 * dn)); in atiixp_set_pio_timing()
113 pio_mode_data |= pio << (4 * dn); in atiixp_set_pio_timing()
154 int dn = 2 * ap->port_no + adev->devno; in atiixp_set_dmamode() local
166 udma_mode_data &= ~(0x7 << (4 * dn)); in atiixp_set_dmamode()
167 udma_mode_data |= dma << (4 * dn); in atiixp_set_dmamode()
216 int dn = (2 * ap->port_no) + adev->devno; in atiixp_bmdma_start() local
221 tmp16 |= (1 << dn); in atiixp_bmdma_start()
223 tmp16 &= ~(1 << dn); in atiixp_bmdma_start()
243 int dn = (2 * ap->port_no) + qc->dev->devno; in atiixp_bmdma_stop() local
[all …]
Dpata_hpt3x3.c41 int dn = 2 * ap->port_no + adev->devno; in hpt3x3_set_piomode() local
46 r1 &= ~(7 << (3 * dn)); in hpt3x3_set_piomode()
47 r1 |= (adev->pio_mode - XFER_PIO_0) << (3 * dn); in hpt3x3_set_piomode()
48 r2 &= ~(0x11 << dn); /* Clear MWDMA and UDMA bits */ in hpt3x3_set_piomode()
71 int dn = 2 * ap->port_no + adev->devno; in hpt3x3_set_dmamode() local
77 r1 &= ~(7 << (3 * dn)); in hpt3x3_set_dmamode()
78 r1 |= (mode_num << (3 * dn)); in hpt3x3_set_dmamode()
79 r2 &= ~(0x11 << dn); /* Clear MWDMA and UDMA bits */ in hpt3x3_set_dmamode()
82 r2 |= (0x01 << dn); /* Ultra mode */ in hpt3x3_set_dmamode()
84 r2 |= (0x10 << dn); /* MWDMA */ in hpt3x3_set_dmamode()
Dpata_of_platform.c28 struct device_node *dn = ofdev->dev.of_node; in pata_of_platform_probe() local
36 ret = of_address_to_resource(dn, 0, &io_res); in pata_of_platform_probe()
43 ret = of_address_to_resource(dn, 1, &ctl_res); in pata_of_platform_probe()
52 of_property_read_u32(dn, "reg-shift", &reg_shift); in pata_of_platform_probe()
54 if (!of_property_read_u32(dn, "pio-mode", &pio_mode)) { in pata_of_platform_probe()
Dpata_artop.c101 int dn = adev->devno + 2 * ap->port_no; in artop6210_load_piomode() local
108 pci_write_config_word(pdev, 0x40 + 2 * dn, timing[clock][pio]); in artop6210_load_piomode()
128 int dn = adev->devno + 2 * ap->port_no; in artop6210_set_piomode() local
135 ultra &= ~(3 << (2 * dn)); in artop6210_set_piomode()
155 int dn = adev->devno + 2 * ap->port_no; in artop6260_load_piomode() local
162 pci_write_config_byte(pdev, 0x40 + dn, timing[clock][pio]); in artop6260_load_piomode()
207 int dn = adev->devno + 2 * ap->port_no; in artop6210_set_dmamode() local
219 ultra &= ~(3 << (2 * dn)); in artop6210_set_dmamode()
226 ultra |= (mode << (2 * dn)); in artop6210_set_dmamode()
/drivers/acpi/
Dproperty.c49 struct acpi_data_node *dn; in acpi_nondev_subnode_extract() local
52 dn = kzalloc(sizeof(*dn), GFP_KERNEL); in acpi_nondev_subnode_extract()
53 if (!dn) in acpi_nondev_subnode_extract()
56 dn->name = link->package.elements[0].string.pointer; in acpi_nondev_subnode_extract()
57 dn->fwnode.ops = &acpi_data_fwnode_ops; in acpi_nondev_subnode_extract()
58 dn->parent = parent; in acpi_nondev_subnode_extract()
59 INIT_LIST_HEAD(&dn->data.subnodes); in acpi_nondev_subnode_extract()
61 result = acpi_extract_properties(desc, &dn->data); in acpi_nondev_subnode_extract()
75 && acpi_enumerate_nondev_subnodes(scope, desc, &dn->data, in acpi_nondev_subnode_extract()
76 &dn->fwnode)) in acpi_nondev_subnode_extract()
[all …]
Ddevice_sysfs.c53 static ssize_t data_node_show_path(struct acpi_data_node *dn, char *buf) in data_node_show_path() argument
55 return dn->handle ? acpi_object_path(dn->handle, buf) : 0; in data_node_show_path()
71 struct acpi_data_node *dn = to_data_node(kobj); in acpi_data_node_attr_show() local
74 return dn_attr->show ? dn_attr->show(dn, buf) : -ENXIO; in acpi_data_node_attr_show()
83 struct acpi_data_node *dn = to_data_node(kobj); in acpi_data_node_release() local
84 complete(&dn->kobj_done); in acpi_data_node_release()
97 struct acpi_data_node *dn; in acpi_expose_nondev_subnodes() local
102 list_for_each_entry(dn, list, sibling) { in acpi_expose_nondev_subnodes()
105 init_completion(&dn->kobj_done); in acpi_expose_nondev_subnodes()
106 ret = kobject_init_and_add(&dn->kobj, &acpi_data_node_ktype, in acpi_expose_nondev_subnodes()
[all …]
/drivers/iommu/
Dof_iommu.c47 int of_get_dma_window(struct device_node *dn, const char *prefix, int index, in of_get_dma_window() argument
54 if (!dn || !addr || !size) in of_get_dma_window()
64 dma_window = of_get_property(dn, propname, &bytes); in of_get_dma_window()
77 prop = of_get_property(dn, addrname, NULL); in of_get_dma_window()
79 prop = of_get_property(dn, "#address-cells", NULL); in of_get_dma_window()
81 cells = prop ? be32_to_cpup(prop) : of_n_addr_cells(dn); in of_get_dma_window()
87 prop = of_get_property(dn, sizename, NULL); in of_get_dma_window()
88 cells = prop ? be32_to_cpup(prop) : of_n_size_cells(dn); in of_get_dma_window()
/drivers/staging/board/
Dboard.c30 struct device_node *dn = of_find_all_nodes(NULL); in find_by_address() local
33 while (dn) { in find_by_address()
34 if (!of_address_to_resource(dn, 0, &res)) { in find_by_address()
36 of_node_put(dn); in find_by_address()
40 dn = of_find_all_nodes(dn); in find_by_address()
/drivers/i2c/
Di2c-core-of.c231 adap = of_find_i2c_adapter_by_node(rd->dn->parent); in of_i2c_notify()
235 if (of_node_test_and_set_flag(rd->dn, OF_POPULATED)) { in of_i2c_notify()
240 client = of_i2c_register_device(adap, rd->dn); in of_i2c_notify()
243 rd->dn); in of_i2c_notify()
245 of_node_clear_flag(rd->dn, OF_POPULATED); in of_i2c_notify()
252 if (!of_node_check_flag(rd->dn, OF_POPULATED)) in of_i2c_notify()
256 client = of_find_i2c_device_by_node(rd->dn); in of_i2c_notify()
/drivers/perf/
Darm_pmu_platform.c67 struct device_node *dn; in pmu_parse_irq_affinity() local
78 dn = of_parse_phandle(node, "interrupt-affinity", i); in pmu_parse_irq_affinity()
79 if (!dn) { in pmu_parse_irq_affinity()
92 if (dn == cpu_dn) in pmu_parse_irq_affinity()
97 pr_warn("failed to find logical CPU for %s\n", dn->name); in pmu_parse_irq_affinity()
100 of_node_put(dn); in pmu_parse_irq_affinity()

123456