| /drivers/pci/hotplug/ |
| A D | rpadlpar_core.c | 57 return dn; in find_vio_slot_node() 82 if (dn) { in find_dlpar_node() 84 return dn; in find_dlpar_node() 88 if (dn) { in find_dlpar_node() 90 return dn; in find_dlpar_node() 94 if (dn) { in find_dlpar_node() 96 return dn; in find_dlpar_node() 117 if (slot->dn == dn) in find_php_slot() 237 if (PCI_DN(dn) && PCI_DN(dn)->phb) { in dlpar_add_phb() 296 if (!dn) { in dlpar_add_slot() [all …]
|
| A D | pnv_php.c | 98 if (php_slot->dn == dn) { in pnv_php_match() 164 of_node_put(dn); in pnv_php_detach_device_nodes() 165 of_detach_node(dn); in pnv_php_detach_device_nodes() 813 if (dn->child && PCI_DN(dn->child)) in pnv_php_alloc_slot() 820 php_slot->dn = dn; in pnv_php_alloc_slot() 836 struct device_node *dn = php_slot->dn; in pnv_php_register_slot() local 856 while ((dn = of_get_parent(dn))) { in pnv_php_register_slot() 857 if (!PCI_DN(dn)) { in pnv_php_register_slot() 858 of_node_put(dn); in pnv_php_register_slot() 864 of_node_put(dn); in pnv_php_register_slot() [all …]
|
| A D | rpaphp_core.c | 166 names = of_get_property(dn, "ibm,drc-names", NULL); in get_children_props() 387 dbg("Entry %s: dn=%pOF\n", __func__, dn); in rpaphp_drc_add_slot() 396 slot = alloc_slot_struct(dn, index, name, in rpaphp_drc_add_slot() 438 int rpaphp_add_slot(struct device_node *dn) in rpaphp_add_slot() argument 440 if (!of_node_name_eq(dn, "pci")) in rpaphp_add_slot() 443 if (of_property_present(dn, "ibm,drc-info")) in rpaphp_add_slot() 444 return rpaphp_drc_info_add_slot(dn); in rpaphp_add_slot() 446 return rpaphp_drc_add_slot(dn); in rpaphp_add_slot() 469 struct device_node *dn; in rpaphp_init() local 473 for_each_node_by_name(dn, "pci") in rpaphp_init() [all …]
|
| A D | rpaphp_pci.c | 78 struct pci_controller *phb = PCI_DN(slot->dn)->phb; in __rpaphp_get_sensor_state() 87 pdn = list_first_entry_or_null(&PCI_DN(phb->dn)->child_list, in __rpaphp_get_sensor_state() 158 bus = pci_find_bus_by_node(slot->dn); in rpaphp_enable_slot() 160 err("%s: no pci_bus for dn %pOF\n", __func__, slot->dn); in rpaphp_enable_slot() 172 if (!slot->dn->child) { in rpaphp_enable_slot() 179 pseries_eeh_init_edev_recursive(PCI_DN(slot->dn)); in rpaphp_enable_slot() 189 dbg("%s: pci_devs of slot[%pOF]\n", __func__, slot->dn); in rpaphp_enable_slot()
|
| A D | rpaphp_slot.c | 25 of_node_put(slot->dn); in dealloc_slot_struct() 30 struct slot *alloc_slot_struct(struct device_node *dn, in alloc_slot_struct() argument 41 slot->dn = of_node_get(dn); in alloc_slot_struct() 91 __func__, slot->dn, slot->index, slot->name, in rpaphp_register_slot() 100 for_each_child_of_node(slot->dn, child) { in rpaphp_register_slot()
|
| /drivers/irqchip/ |
| A D | irq-bcm7120-l2.c | 102 static int bcm7120_l2_intc_init_one(struct device_node *dn, in bcm7120_l2_intc_init_one() argument 110 parent_irq = irq_of_parse_and_map(dn, irq); in bcm7120_l2_intc_init_one() 151 data->map_base[0] = of_iomap(dn, 0); in bcm7120_l2_intc_iomap_7120() 162 ret = of_property_read_u32_array(dn, "brcm,int-fwd-mask", in bcm7120_l2_intc_iomap_7120() 187 void __iomem *en = of_iomap(dn, map_idx + 0); in bcm7120_l2_intc_iomap_3380() 188 void __iomem *stat = of_iomap(dn, map_idx + 1); in bcm7120_l2_intc_iomap_3380() 230 pdev = of_find_device_by_node(dn); in bcm7120_l2_intc_probe() 251 ret = iomap_regs_fn(dn, data); in bcm7120_l2_intc_probe() 258 ret = bcm7120_l2_intc_init_one(dn, data, irq, valid_mask); in bcm7120_l2_intc_probe() 278 dn->full_name, handle_level_irq, clr, in bcm7120_l2_intc_probe() [all …]
|
| /drivers/perf/ |
| A D | arm-cmn.c | 382 nid.port = (dn->id >> dn->deviceid_bits) & ((1U << dn->portid_bits) - 1); in arm_cmn_nid() 389 int id = dn->id >> (dn->portid_bits + dn->deviceid_bits); in arm_cmn_node_to_xp() 401 for (dn = cmn->dns; dn->type; dn++) in arm_cmn_node() 503 for (dn = cmn->dns; dn->type; dn++) { in arm_cmn_show_logid() 613 for (i = 0, dn = hw->dn; i < hw->num_dns; i++, dn++) 1815 for (dn = hw->dn; dn->type == type; dn++) { in arm_cmn_event_init() 2170 for (dn = cmn->dns; dn->type; dn++) { in arm_cmn_init_dtcs() 2178 dn->dtm += arm_cmn_nid(dn).port / 2; in arm_cmn_init_dtcs() 2460 dn[1] = dn[0]; in arm_cmn_discover() 2462 dn[1].type = arm_cmn_subtype(dn->type); in arm_cmn_discover() [all …]
|
| /drivers/cpufreq/ |
| A D | pasemi-cpufreq.c | 131 struct device_node *cpu, *dn; in pas_cpufreq_cpu_init() local 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() 165 if (!dn) in pas_cpufreq_cpu_init() 166 dn = of_find_compatible_node(NULL, NULL, in pas_cpufreq_cpu_init() 168 if (!dn) { in pas_cpufreq_cpu_init() 172 err = of_address_to_resource(dn, 0, &res); in pas_cpufreq_cpu_init() [all …]
|
| /drivers/acpi/ |
| A D | property.c | 91 dn = kzalloc(sizeof(*dn), GFP_KERNEL); in acpi_nondev_subnode_extract() 92 if (!dn) in acpi_nondev_subnode_extract() 97 dn->parent = parent; in acpi_nondev_subnode_extract() 119 &dn->fwnode)) { in acpi_nondev_subnode_extract() 124 dn->handle = handle; in acpi_nondev_subnode_extract() 130 kfree(dn); in acpi_nondev_subnode_extract() 386 status = acpi_attach_data(dn->handle, acpi_nondev_subnode_tag, dn); in acpi_tie_nondev_subnodes() 629 kfree(dn); in acpi_destroy_nondev_subnodes() 724 return &dn->data; in acpi_device_data_of_node() 882 return &dn->fwnode; in acpi_parse_string_ref() [all …]
|
| A D | device_sysfs.c | 47 return dn->handle ? acpi_object_path(dn->handle, buf) : 0; in data_node_show_path() 78 complete(&dn->kobj_done); in acpi_data_node_release() 91 struct acpi_data_node *dn; in acpi_expose_nondev_subnodes() local 96 list_for_each_entry(dn, list, sibling) { in acpi_expose_nondev_subnodes() 99 init_completion(&dn->kobj_done); in acpi_expose_nondev_subnodes() 101 kobj, "%s", dn->name); in acpi_expose_nondev_subnodes() 103 acpi_expose_nondev_subnodes(&dn->kobj, &dn->data); in acpi_expose_nondev_subnodes() 104 else if (dn->handle) in acpi_expose_nondev_subnodes() 112 struct acpi_data_node *dn; in acpi_hide_nondev_subnodes() local 118 acpi_hide_nondev_subnodes(&dn->data); in acpi_hide_nondev_subnodes() [all …]
|
| /drivers/soc/renesas/ |
| A 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()
|
| /drivers/usb/misc/ |
| A D | brcmstb-usb-pinmap.c | 112 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() 186 res = of_property_read_u32_index(dn, "brcm,out-masks", index++, in parse_pins() 251 struct device_node *dn = pdev->dev.of_node; in brcmstb_usb_pinmap_probe() local 261 get_pin_counts(dn, &in_count, &out_count); in brcmstb_usb_pinmap_probe() [all …]
|
| /drivers/crypto/nx/ |
| A D | nx-common-powernv.c | 795 ret = of_property_read_u32(dn, "pid", &pid); in vas_cfg_coproc_info() 898 if (of_device_is_compatible(dn, devname)) { in find_nx_device_tree() 901 of_node_put(dn); in find_nx_device_tree() 911 struct device_node *dn; in nx_powernv_probe_vas() local 925 for_each_child_of_node(pn, dn) { in nx_powernv_probe_vas() 934 of_node_put(dn); in nx_powernv_probe_vas() 958 chip_id = of_get_ibm_chip_id(dn); in nx842_powernv_probe() 1054 struct device_node *dn; in nx_compress_powernv_init() local 1067 ret = nx_powernv_probe_vas(dn); in nx_compress_powernv_init() 1070 of_node_put(dn); in nx_compress_powernv_init() [all …]
|
| /drivers/usb/host/ |
| A D | ehci-ppc-of.c | 79 ppc44x_enable_bmt(struct device_node *dn) in ppc44x_enable_bmt() argument 83 insreg_virt = of_iomap(dn, 1); in ppc44x_enable_bmt() 96 struct device_node *dn = op->dev.of_node; in ehci_hcd_ppc_of_probe() local 110 rv = of_address_to_resource(dn, 0, &res); in ehci_hcd_ppc_of_probe() 121 irq = irq_of_parse_and_map(dn, 0); in ehci_hcd_ppc_of_probe() 154 if (of_property_read_bool(dn, "big-endian")) { in ehci_hcd_ppc_of_probe() 158 if (of_property_read_bool(dn, "big-endian-regs")) in ehci_hcd_ppc_of_probe() 160 if (of_property_read_bool(dn, "big-endian-desc")) in ehci_hcd_ppc_of_probe() 165 if (of_device_is_compatible(dn, "ibm,usb-ehci-440epx")) { in ehci_hcd_ppc_of_probe() 166 rv = ppc44x_enable_bmt(dn); in ehci_hcd_ppc_of_probe()
|
| A D | ohci-ppc-of.c | 87 struct device_node *dn = op->dev.of_node; in ohci_hcd_ppc_of_probe() local 101 of_device_is_compatible(dn, "ohci-bigendian") || in ohci_hcd_ppc_of_probe() 102 of_device_is_compatible(dn, "ohci-be"); in ohci_hcd_ppc_of_probe() 106 rv = of_address_to_resource(dn, 0, &res); in ohci_hcd_ppc_of_probe() 123 irq = irq_of_parse_and_map(dn, 0); in ohci_hcd_ppc_of_probe() 134 if (of_device_is_compatible(dn, "fsl,mpc5200-ohci")) in ohci_hcd_ppc_of_probe() 136 if (of_device_is_compatible(dn, "mpc5200-ohci")) in ohci_hcd_ppc_of_probe()
|
| /drivers/power/reset/ |
| A D | linkstation-poweroff.c | 160 struct device_node *dn; in linkstation_poweroff_init() local 163 dn = of_find_matching_node(NULL, ls_poweroff_of_match); in linkstation_poweroff_init() 164 if (!dn) in linkstation_poweroff_init() 166 of_node_put(dn); in linkstation_poweroff_init() 168 match = of_match_node(ls_poweroff_of_match, dn); in linkstation_poweroff_init() 171 dn = of_find_node_by_name(NULL, cfg->mdio_node_name); in linkstation_poweroff_init() 172 if (!dn) in linkstation_poweroff_init() 175 bus = of_mdio_find_bus(dn); in linkstation_poweroff_init() 176 of_node_put(dn); in linkstation_poweroff_init()
|
| /drivers/net/ethernet/broadcom/genet/ |
| A D | bcmmii.c | 309 struct device_node *dn = kdev->of_node; in bcmgenet_mii_probe() local 354 if (dn) { in bcmgenet_mii_probe() 500 if (dn) in bcmgenet_mii_register() 501 id = of_alias_get_id(dn, "eth"); in bcmgenet_mii_register() 512 if (dn) in bcmgenet_mii_register() 573 ret = of_phy_register_fixed_link(dn); in bcmgenet_mii_of_init() 577 priv->phy_dn = of_node_get(dn); in bcmgenet_mii_of_init() 587 phydev = of_phy_find_device(dn); in bcmgenet_mii_of_init() 654 if (dn) in bcmgenet_mii_bus_init() 687 if (of_phy_is_fixed_link(dn)) in bcmgenet_mii_exit() [all …]
|
| /drivers/bus/ |
| A D | imx-weim.c | 311 of_id = of_match_node(weim_id_table, rd->dn->parent); in of_weim_notify() 317 pdev = of_find_device_by_node(rd->dn->parent); in of_weim_notify() 320 __func__, rd->dn->parent); in of_weim_notify() 325 if (weim_timing_setup(&pdev->dev, rd->dn, devtype)) in of_weim_notify() 327 "Failed to setup timing for '%pOF'\n", rd->dn); in of_weim_notify() 329 if (!of_node_check_flag(rd->dn, OF_POPULATED)) { in of_weim_notify() 335 rd->dn->fwnode.flags &= ~FWNODE_FLAG_NOT_DEVICE; in of_weim_notify() 339 rd->dn); in of_weim_notify() 348 if (!of_node_check_flag(rd->dn, OF_POPULATED)) in of_weim_notify() 355 pdev = of_find_device_by_node(rd->dn); in of_weim_notify() [all …]
|
| A D | arm-cci.c | 110 struct device_node *dn; member 161 static int __cci_ace_get_port(struct device_node *dn, int type) in __cci_ace_get_port() argument 167 cci_portn = of_parse_phandle(dn, "cci-control-port", 0); in __cci_ace_get_port() 170 if (ace_match && cci_portn == ports[i].dn) in __cci_ace_get_port() 176 int cci_ace_get_port(struct device_node *dn) in cci_ace_get_port() argument 178 return __cci_ace_get_port(dn, ACE_LITE_PORT); in cci_ace_get_port() 388 int notrace __cci_control_port_by_device(struct device_node *dn, bool enable) in __cci_control_port_by_device() argument 392 if (!dn) in __cci_control_port_by_device() 395 port = __cci_ace_get_port(dn, ACE_LITE_PORT); in __cci_control_port_by_device() 397 dn)) in __cci_control_port_by_device() [all …]
|
| /drivers/ata/ |
| A D | pata_atiixp.c | 108 int dn = 2 * ap->port_no + adev->devno; in atiixp_set_pio_timing() local 114 pio_mode_data &= ~(0x7 << (4 * dn)); in atiixp_set_pio_timing() 115 pio_mode_data |= pio << (4 * dn); in atiixp_set_pio_timing() 156 int dn = 2 * ap->port_no + adev->devno; in atiixp_set_dmamode() local 168 udma_mode_data &= ~(0x7 << (4 * dn)); in atiixp_set_dmamode() 169 udma_mode_data |= dma << (4 * dn); in atiixp_set_dmamode() 218 int dn = (2 * ap->port_no) + adev->devno; in atiixp_bmdma_start() local 223 tmp16 |= (1 << dn); in atiixp_bmdma_start() 225 tmp16 &= ~(1 << dn); in atiixp_bmdma_start() 245 int dn = (2 * ap->port_no) + qc->dev->devno; in atiixp_bmdma_stop() local [all …]
|
| A D | pata_hpt3x3.c | 41 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()
|
| A D | pata_of_platform.c | 25 struct device_node *dn = ofdev->dev.of_node; in pata_of_platform_probe() local 35 ret = of_address_to_resource(dn, 0, &io_res); in pata_of_platform_probe() 42 ret = of_address_to_resource(dn, 1, &ctl_res); in pata_of_platform_probe() 59 of_property_read_u32(dn, "reg-shift", ®_shift); in pata_of_platform_probe() 61 if (!of_property_read_u32(dn, "pio-mode", &pio_mode)) { in pata_of_platform_probe() 70 use16bit = of_property_read_bool(dn, "ata-generic,use16bit"); in pata_of_platform_probe()
|
| /drivers/soc/bcm/brcmstb/pm/ |
| A D | pm-mips.c | 358 static inline void __iomem *brcmstb_ioremap_node(struct device_node *dn, in brcmstb_ioremap_node() argument 361 return of_io_request_and_map(dn, index, dn->full_name); in brcmstb_ioremap_node() 367 struct device_node *dn; in brcmstb_ioremap_match() local 370 dn = of_find_matching_node_and_match(NULL, matches, &match); in brcmstb_ioremap_match() 371 if (!dn) in brcmstb_ioremap_match() 377 return brcmstb_ioremap_node(dn, index); in brcmstb_ioremap_match() 382 struct device_node *dn; in brcmstb_pm_init() local 404 for_each_matching_node(dn, ddr_phy_dt_ids) { in brcmstb_pm_init() 408 of_node_put(dn); in brcmstb_pm_init() 411 base = brcmstb_ioremap_node(dn, 0); in brcmstb_pm_init() [all …]
|
| /drivers/i2c/ |
| A D | i2c-core-of.c | 170 adap = of_find_i2c_adapter_by_node(rd->dn->parent); in of_i2c_notify() 174 if (of_node_test_and_set_flag(rd->dn, OF_POPULATED)) { in of_i2c_notify() 183 rd->dn->fwnode.flags &= ~FWNODE_FLAG_NOT_DEVICE; in of_i2c_notify() 184 client = of_i2c_register_device(adap, rd->dn); in of_i2c_notify() 187 rd->dn); in of_i2c_notify() 189 of_node_clear_flag(rd->dn, OF_POPULATED); in of_i2c_notify() 196 if (!of_node_check_flag(rd->dn, OF_POPULATED)) in of_i2c_notify() 200 client = of_find_i2c_device_by_node(rd->dn); in of_i2c_notify()
|
| /drivers/clk/mvebu/ |
| A D | ap-cpu-clk.c | 233 struct device_node *dn, *np = dev->of_node; in ap_cpu_clock_probe() local 254 for_each_of_cpu_node(dn) { in ap_cpu_clock_probe() 257 cpu = of_get_cpu_hwid(dn, 0); in ap_cpu_clock_probe() 259 of_node_put(dn); in ap_cpu_clock_probe() 266 of_node_put(dn); in ap_cpu_clock_probe() 285 for_each_of_cpu_node(dn) { in ap_cpu_clock_probe() 292 cpu = of_get_cpu_hwid(dn, 0); in ap_cpu_clock_probe() 294 of_node_put(dn); in ap_cpu_clock_probe() 308 of_node_put(dn); in ap_cpu_clock_probe() 328 of_node_put(dn); in ap_cpu_clock_probe()
|