Home
last modified time | relevance | path

Searched refs:to_of_node (Results 1 – 25 of 73) sorted by relevance

123

/linux-6.15/drivers/of/
H A Dproperty.c1003 of_node_put(to_of_node(fwnode)); in of_fwnode_put()
1008 return of_device_is_available(to_of_node(fwnode)); in of_fwnode_device_is_available()
1019 if (of_dma_is_coherent(to_of_node(fwnode))) in of_fwnode_device_get_dma_attr()
1076 return kbasename(to_of_node(fwnode)->full_name); in of_fwnode_get_name()
1082 if (!to_of_node(fwnode)->parent) in of_fwnode_get_name_prefix()
1099 to_of_node(child))); in of_fwnode_get_next_child_node()
1153 to_of_node(prev))); in of_fwnode_graph_get_next_endpoint()
1169 np = of_get_parent(to_of_node(fwnode)); in of_fwnode_graph_get_port_parent()
1591 return of_iomap(to_of_node(fwnode), index); in of_fwnode_iomap()
1600 return of_irq_get(to_of_node(fwnode), index); in of_fwnode_irq_get()
[all …]
/linux-6.15/drivers/irqchip/
H A Dirq-thead-c900-aclint-sswi.c80 contexts = of_irq_count(to_of_node(fwnode)); in thead_aclint_sswi_parse_irq()
87 rc = of_irq_parse_one(to_of_node(fwnode), i, &parent); in thead_aclint_sswi_parse_irq()
122 reg = of_iomap(to_of_node(fwnode), 0); in thead_aclint_sswi_probe()
H A Dirq-riscv-imsic-state.c598 rc = of_property_read_u32(to_of_node(fwnode), "riscv,guest-index-bits", in imsic_populate_global_dt()
604 rc = of_property_read_u32(to_of_node(fwnode), "riscv,hart-index-bits", in imsic_populate_global_dt()
614 rc = of_property_read_u32(to_of_node(fwnode), "riscv,group-index-bits", in imsic_populate_global_dt()
623 rc = of_property_read_u32(to_of_node(fwnode), "riscv,group-index-shift", in imsic_populate_global_dt()
629 rc = of_property_read_u32(to_of_node(fwnode), "riscv,num-ids", in imsic_populate_global_dt()
637 rc = of_property_read_u32(to_of_node(fwnode), "riscv,num-guest-ids", in imsic_populate_global_dt()
676 rc = of_irq_parse_one(to_of_node(fwnode), index, &parent); in imsic_get_parent_hartid()
696 return of_address_to_resource(to_of_node(fwnode), index, res); in imsic_get_mmio_resource()
H A Dirq-sifive-plic.c467 rc = of_property_read_u32(to_of_node(fwnode), "riscv,ndev", nr_irqs); in plic_parse_nr_irqs_and_contexts()
473 *nr_contexts = of_irq_count(to_of_node(fwnode)); in plic_parse_nr_irqs_and_contexts()
502 rc = of_irq_parse_one(to_of_node(fwnode), context, &parent); in plic_parse_context_parent()
530 id = of_match_node(plic_match, to_of_node(fwnode)); in plic_probe()
534 regs = of_iomap(to_of_node(fwnode), 0); in plic_probe()
H A Dirq-riscv-aplic-main.c141 struct device_node *np = to_of_node(dev->fwnode); in aplic_setup_priv()
201 msi_mode = of_property_present(to_of_node(dev->fwnode), "msi-parent"); in aplic_probe()
H A Dirq-riscv-aplic-direct.c210 rc = of_irq_parse_one(to_of_node(dev->fwnode), index, &parent); in aplic_direct_parse_parent_hwirq()
226 struct device_node *np = to_of_node(dev->fwnode); in aplic_direct_get_hart_index()
H A Dirq-gic-v2m.c236 of_node_put(to_of_node(v2m->fwnode)); in gicv2m_teardown()
383 struct device_node *node = to_of_node(parent_handle); in gicv2m_of_init()
H A Dirq-mips-cpu.c225 return (!node || (to_of_node(d->fwnode) == node)) && is_ipi; in mips_cpu_ipi_match()
/linux-6.15/drivers/media/platform/renesas/rzg2l-cru/
H A Drzg2l-core.c151 dev_err(cru->dev, "Failed to parse %pOF\n", to_of_node(fwnode)); in rzg2l_cru_mc_parse_of()
156 if (!of_device_is_available(to_of_node(fwnode))) { in rzg2l_cru_mc_parse_of()
158 to_of_node(fwnode)); in rzg2l_cru_mc_parse_of()
173 to_of_node(fwnode), vep.base.id); in rzg2l_cru_mc_parse_of()
/linux-6.15/drivers/hwtracing/coresight/
H A Dcoresight-cti-platform.c77 return of_cti_get_cpu_at_node(to_of_node(fwnode)); in cti_plat_get_cpu_at_node()
84 return of_node_full_name(to_of_node(fwnode)); in cti_plat_get_node_name()
110 return of_node_name_eq(to_of_node(fwnode), name); in cti_plat_node_name_eq()
227 return of_device_is_compatible(to_of_node(fwnode), in cti_plat_check_v8_arch_compatible()
/linux-6.15/drivers/net/mdio/
H A Dfwnode_mdio.c29 np = to_of_node(fwnode); in fwnode_find_pse_control()
50 err = of_parse_phandle_with_fixed_args(to_of_node(fwnode), in fwnode_find_mii_timestamper()
H A Dmdio-thunder.c65 node = to_of_node(fwn); in thunder_mdiobus_pci_probe()
/linux-6.15/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-mac.c122 err = of_property_read_u32(to_of_node(child), "reg", &id); in dpaa2_mac_get_node()
386 serdes_phy = of_phy_get(to_of_node(dpmac_node), NULL); in dpaa2_mac_connect()
401 if (of_phy_is_fixed_link(to_of_node(dpmac_node)) && in dpaa2_mac_connect()
505 net_dev->dev.of_node = to_of_node(mac->fw_node); in dpaa2_mac_open()
/linux-6.15/drivers/staging/media/tegra-video/
H A Dvi.c1502 to_of_node(ep), ret); in tegra_vi_graph_build()
1508 link.local_port, to_of_node(link.local_node)); in tegra_vi_graph_build()
1530 to_of_node(link.local_node), link.local_port); in tegra_vi_graph_build()
1540 to_of_node(link.remote_node)); in tegra_vi_graph_build()
1550 to_of_node(link.remote_node)); in tegra_vi_graph_build()
1678 to_of_node(entity->asd.match.fwnode)); in tegra_vi_graph_notify_bound()
1704 dev_dbg(vi->dev, "parsing node %pOF\n", to_of_node(fwnode)); in tegra_vi_graph_parse_one()
1707 for_each_endpoint_of_node(to_of_node(fwnode), node) { in tegra_vi_graph_parse_one()
/linux-6.15/drivers/usb/typec/tcpm/qcom/
H A Dqcom_pmic_typec.c95 bridge_dev = devm_drm_dp_hpd_bridge_alloc(tcpm->dev, to_of_node(tcpm->tcpc.fwnode)); in qcom_pmic_typec_probe()
/linux-6.15/drivers/media/platform/renesas/rcar-vin/
H A Drcar-core.c324 vin_err(vin, "Failed to parse %pOF\n", to_of_node(fwnode)); in rvin_group_parse_of()
339 to_of_node(fwnode), vep.base.id); in rvin_group_parse_of()
669 vin_err(vin, "Failed to parse %pOF\n", to_of_node(fwnode)); in rvin_parallel_parse_of()
698 vin_dbg(vin, "Add parallel OF device %pOF\n", to_of_node(fwnode)); in rvin_parallel_parse_of()
725 to_of_node(vin->parallel.asc->match.fwnode)); in rvin_parallel_init()
/linux-6.15/drivers/pinctrl/nuvoton/
H A Dpinctrl-ma35.c570 bank->clk = of_clk_get(to_of_node(bank->fwnode), 0); in ma35_get_bank_data()
981 struct device_node *np = to_of_node(fwnode); in ma35_pinctrl_parse_groups()
1033 struct device_node *np = to_of_node(fwnode); in ma35_pinctrl_parse_functions()
1055 struct device_node *node = to_of_node(child); in ma35_pinctrl_parse_functions()
1079 npctl->ngroups += of_get_child_count(to_of_node(child)); in ma35_pinctrl_probe_dt()
/linux-6.15/drivers/pci/controller/
H A Dpcie-apple.c378 irq = irq_of_parse_and_map(to_of_node(dev_fwnode(port->pcie->dev)), in apple_pcie_port_setup_irq()
605 ret = of_parse_phandle_with_args(to_of_node(fwnode), "msi-ranges", in apple_msi_init()
610 ret = of_property_read_u32_index(to_of_node(fwnode), "msi-ranges", in apple_msi_init()
/linux-6.15/kernel/irq/
H A Dirqdomain.c236 GFP_KERNEL, of_node_to_nid(to_of_node(info->fwnode))); in __irq_domain_create()
302 of_node_to_nid(to_of_node(info->fwnode))) < 0) { in irq_domain_instantiate_descs()
559 rc = h->ops->match(h, to_of_node(fwnode), bus_token); in irq_find_matching_fwspec()
874 return d->ops->xlate(d, to_of_node(fwspec->fwnode), in irq_domain_translate()
914 of_node_full_name(to_of_node(fwspec->fwnode))); in irq_create_fwspec_mapping()
960 hwirq, of_node_full_name(to_of_node(fwspec->fwnode))); in irq_create_fwspec_mapping()
/linux-6.15/drivers/cpuidle/
H A Ddt_idle_genpd.c32 ret = parse_state(to_of_node(states[i].fwnode), &state); in pd_parse_state_nodes()
/linux-6.15/drivers/iommu/riscv/
H A Diommu-platform.c80 of_msi_configure(dev, to_of_node(dev->fwnode)); in riscv_iommu_platform_probe()
/linux-6.15/drivers/leds/
H A Dleds-pwm.c165 led.name = to_of_node(fwnode)->name; in led_pwm_create_fwnode()
/linux-6.15/drivers/phy/intel/
H A Dphy-intel-lgm-combo.c459 cbphy->syscfg = device_node_to_regmap(to_of_node(ref.fwnode)); in intel_cbphy_fwnode_parse()
468 cbphy->hsiocfg = device_node_to_regmap(to_of_node(ref.fwnode)); in intel_cbphy_fwnode_parse()
/linux-6.15/drivers/media/platform/xilinx/
H A Dxilinx-vipp.c235 to_of_node(link.remote_node)); in xvip_graph_build_dma()
244 to_of_node(link.remote_node)); in xvip_graph_build_dma()
/linux-6.15/drivers/input/keyboard/
H A Dgpio_keys.c780 irq = of_irq_get_byname(to_of_node(child), "irq"); in gpio_keys_get_devtree_pdata()
784 irq = of_irq_get_byname(to_of_node(child), "wakeup"); in gpio_keys_get_devtree_pdata()
790 irq_of_parse_and_map(to_of_node(child), 0); in gpio_keys_get_devtree_pdata()

123