Home
last modified time | relevance | path

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

123

/openbmc/linux/drivers/of/
H A Dproperty.c873 of_node_put(to_of_node(fwnode)); in of_fwnode_put()
878 return of_device_is_available(to_of_node(fwnode)); in of_fwnode_device_is_available()
889 if (of_dma_is_coherent(to_of_node(fwnode))) in of_fwnode_device_get_dma_attr()
940 return kbasename(to_of_node(fwnode)->full_name); in of_fwnode_get_name()
946 if (!to_of_node(fwnode)->parent) in of_fwnode_get_name_prefix()
963 to_of_node(child))); in of_fwnode_get_next_child_node()
1017 to_of_node(prev))); in of_fwnode_graph_get_next_endpoint()
1033 np = of_get_parent(to_of_node(fwnode)); in of_fwnode_graph_get_port_parent()
1405 return of_iomap(to_of_node(fwnode), index); in of_fwnode_iomap()
1414 return of_irq_get(to_of_node(fwnode), index); in of_fwnode_irq_get()
[all …]
/openbmc/linux/drivers/media/platform/renesas/rzg2l-cru/
H A Drzg2l-core.c152 dev_err(cru->dev, "Failed to parse %pOF\n", to_of_node(fwnode)); in rzg2l_cru_mc_parse_of()
157 if (!of_device_is_available(to_of_node(fwnode))) { in rzg2l_cru_mc_parse_of()
159 to_of_node(fwnode)); in rzg2l_cru_mc_parse_of()
174 to_of_node(fwnode), vep.base.id); in rzg2l_cru_mc_parse_of()
/openbmc/linux/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()
/openbmc/linux/drivers/net/mdio/
H A Dfwnode_mdio.c27 np = to_of_node(fwnode); in fwnode_find_pse_control()
47 err = of_parse_phandle_with_fixed_args(to_of_node(fwnode), in fwnode_find_mii_timestamper()
H A Dmdio-thunder.c66 node = to_of_node(fwn); in thunder_mdiobus_pci_probe()
/openbmc/linux/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()
/openbmc/linux/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()
/openbmc/linux/kernel/irq/
H A Dirqdomain.c147 GFP_KERNEL, of_node_to_nid(to_of_node(fwnode))); in __irq_domain_create()
369 of_node_to_nid(to_of_node(fwnode))); in irq_domain_create_simple()
451 rc = h->ops->match(h, to_of_node(fwnode), bus_token); in irq_find_matching_fwspec()
766 return d->ops->xlate(d, to_of_node(fwspec->fwnode), in irq_domain_translate()
806 of_node_full_name(to_of_node(fwspec->fwnode))); in irq_create_fwspec_mapping()
852 hwirq, of_node_full_name(to_of_node(fwspec->fwnode))); in irq_create_fwspec_mapping()
/openbmc/linux/drivers/cpuidle/
H A Ddt_idle_genpd.c32 ret = parse_state(to_of_node(states[i].fwnode), &state); in pd_parse_state_nodes()
/openbmc/linux/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()
/openbmc/linux/drivers/irqchip/
H A Dirq-gic-v2m.c274 of_node_put(to_of_node(v2m->fwnode)); in gicv2m_teardown()
416 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()
H A Dirq-gic-v3-mbi.c267 np = to_of_node(fwnode); in mbi_init()
H A Dirq-loongson-pch-pic.c161 struct device_node *of_node = to_of_node(fwspec->fwnode); in pch_pic_domain_translate()
/openbmc/linux/drivers/pci/controller/
H A Dpcie-apple.c379 irq = irq_of_parse_and_map(to_of_node(dev_fwnode(port->pcie->dev)), in apple_pcie_port_setup_irq()
606 ret = of_parse_phandle_with_args(to_of_node(fwnode), "msi-ranges", in apple_msi_init()
611 ret = of_property_read_u32_index(to_of_node(fwnode), "msi-ranges", in apple_msi_init()
/openbmc/linux/drivers/leds/
H A Dleds-pwm.c152 led.name = to_of_node(fwnode)->name; in led_pwm_create_fwnode()
H A Dleds-gpio.c133 to_of_node(fwnode), ret); in create_gpio_led()
/openbmc/linux/drivers/media/platform/xilinx/
H A Dxilinx-vipp.c240 to_of_node(link.remote_node)); in xvip_graph_build_dma()
249 to_of_node(link.remote_node)); in xvip_graph_build_dma()
/openbmc/linux/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()
/openbmc/linux/drivers/soundwire/
H A Dslave.c54 slave->dev.of_node = of_node_get(to_of_node(fwnode)); in sdw_slave_add()
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/
H A Dhns_dsaf_mac.c886 np = of_parse_phandle(to_of_node(mac_cb->fw_port), in hns_mac_get_info()
899 np = of_parse_phandle(to_of_node(mac_cb->fw_port), in hns_mac_get_info()
928 to_of_node(mac_cb->fw_port), "cpld-syscon", 1, 0, in hns_mac_get_info()
/openbmc/linux/arch/powerpc/sysdev/xics/
H A Dxics-common.c418 return xics_host_xlate(d, to_of_node(fwspec->fwnode), fwspec->param, in xics_host_domain_translate()
/openbmc/linux/drivers/pwm/
H A Dcore.c863 return of_pwm_get(dev, to_of_node(fwnode), con_id); in pwm_get()
1041 pwm = of_pwm_get(dev, to_of_node(fwnode), con_id); in devm_fwnode_pwm_get()
/openbmc/linux/drivers/net/ethernet/freescale/
H A Dxgmac_mdio.c427 ret = of_mdiobus_register(bus, to_of_node(fwnode)); in xgmac_mdio_probe()
/openbmc/linux/include/linux/
H A Dirqdomain.h221 return to_of_node(d->fwnode); in irq_domain_get_of_node()

123