| /linux/drivers/of/ |
| H A D | property.c | 1047 return of_fwnode_handle(of_node_get(to_of_node(fwnode))); in of_fwnode_get() 1052 of_node_put(to_of_node(fwnode)); in of_fwnode_put() 1057 return of_device_is_available(to_of_node(fwnode)); in of_fwnode_device_is_available() 1068 if (of_dma_is_coherent(to_of_node(fwnode))) in of_fwnode_device_get_dma_attr() 1077 return of_property_present(to_of_node(fwnode), propname); in of_fwnode_property_present() 1083 return of_property_read_bool(to_of_node(fwnode), propname); in of_fwnode_property_read_bool() 1091 const struct device_node *node = to_of_node(fwnode); in of_fwnode_property_read_int_array() 1116 const struct device_node *node = to_of_node(fwnode); in of_fwnode_property_read_string_array() 1125 return kbasename(to_of_node(fwnode)->full_name); in of_fwnode_get_name() 1131 if (!to_of_node(fwnode)->parent) in of_fwnode_get_name_prefix() [all …]
|
| /linux/drivers/media/platform/renesas/rzg2l-cru/ |
| H A D | rzg2l-core.c | 151 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/drivers/irqchip/ |
| H A D | irq-sifive-plic.c | 569 rc = of_property_read_u32(to_of_node(fwnode), "riscv,ndev", nr_irqs); in plic_parse_nr_irqs_and_contexts() 575 *nr_contexts = of_irq_count(to_of_node(fwnode)); in plic_parse_nr_irqs_and_contexts() 604 rc = of_irq_parse_one(to_of_node(fwnode), context, &parent); in plic_parse_context_parent() 631 id = of_match_node(plic_match, to_of_node(fwnode)); in plic_probe() 635 regs = of_iomap(to_of_node(fwnode), 0); in plic_probe()
|
| H A D | irq-riscv-aplic-main.c | 317 struct device_node *np = to_of_node(dev->fwnode); in aplic_setup_priv() 377 msi_mode = of_property_present(to_of_node(dev->fwnode), "msi-parent"); in aplic_probe()
|
| H A D | irq-gic-v2m.c | 241 of_node_put(to_of_node(v2m->fwnode)); in gicv2m_teardown() 388 struct device_node *node = to_of_node(parent_handle); in gicv2m_of_init()
|
| H A D | irq-mips-cpu.c | 225 return (!node || (to_of_node(d->fwnode) == node)) && is_ipi; in mips_cpu_ipi_match()
|
| H A D | irq-riscv-aplic-msi.c | 262 of_msi_configure(dev, to_of_node(dev->fwnode)); in aplic_msi_setup()
|
| H A D | irq-gic-v3-mbi.c | 224 np = to_of_node(fwnode); in mbi_init()
|
| H A D | irq-loongson-pch-pic.c | 174 struct device_node *of_node = to_of_node(fwspec->fwnode); in pch_pic_domain_translate()
|
| /linux/drivers/base/test/ |
| H A D | property-entry-test.c | 545 create_device_node(test, "of", "of-3", to_of_node(of_node)); in pe_test_child_iteration() 546 create_device_node(test, "of", "of-2", to_of_node(of_node)); in pe_test_child_iteration() 547 of_node1 = create_device_node(test, "of", "of-1", to_of_node(of_node)); in pe_test_child_iteration()
|
| /linux/drivers/usb/typec/tcpm/qcom/ |
| H A D | qcom_pmic_typec.c | 89 bridge_dev = devm_drm_dp_hpd_bridge_alloc(tcpm->dev, to_of_node(tcpm->tcpc.fwnode)); in qcom_pmic_typec_probe()
|
| /linux/drivers/cpuidle/ |
| H A D | dt_idle_genpd.c | 32 ret = parse_state(to_of_node(states[i].fwnode), &state); in pd_parse_state_nodes()
|
| /linux/drivers/media/platform/renesas/rcar-vin/ |
| H A D | rcar-core.c | 339 vin_err(vin, "Failed to parse %pOF\n", to_of_node(fwnode)); in rvin_group_parse_of() 354 to_of_node(fwnode), vep.base.id); in rvin_group_parse_of() 375 vin_err(vin, "Failed to parse %pOF\n", to_of_node(ep)); in rvin_parallel_parse_of() 401 vin_dbg(vin, "Add parallel OF device %pOF\n", to_of_node(fwnode)); in rvin_parallel_parse_of()
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | technologic-nand-controller.c | 161 nand_set_flash_node(&data->chip, to_of_node(child)); in ts72xx_nand_probe()
|
| /linux/drivers/gpio/ |
| H A D | gpiolib-of.c | 105 const struct device_node *np = to_of_node(fwnode); in of_gpio_count() 732 args.np = to_of_node(gpiospec->fwnode); in of_gpiochip_get_lflags()
|
| H A D | gpiolib-shared.c | 554 gpiospec.np = to_of_node(entry->fwnode); in gpiochip_setup_shared()
|
| /linux/drivers/net/ethernet/hisilicon/hns/ |
| H A D | hns_dsaf_mac.c | 889 np = of_parse_phandle(to_of_node(mac_cb->fw_port), in hns_mac_get_info() 902 np = of_parse_phandle(to_of_node(mac_cb->fw_port), in hns_mac_get_info() 931 to_of_node(mac_cb->fw_port), "cpld-syscon", 1, 0, in hns_mac_get_info()
|
| /linux/drivers/usb/typec/ucsi/ |
| H A D | ucsi_yoga_c630.c | 244 uec->bridge = devm_drm_dp_hpd_bridge_alloc(&adev->dev, to_of_node(fwnode)); in yoga_c630_ucsi_probe()
|
| /linux/drivers/platform/surface/aggregator/ |
| H A D | bus.c | 445 sdev->dev.of_node = to_of_node(node); in ssam_add_client_device()
|
| /linux/arch/powerpc/sysdev/xics/ |
| H A D | xics-common.c | 418 return xics_host_xlate(d, to_of_node(fwspec->fwnode), fwspec->param, in xics_host_domain_translate()
|
| /linux/arch/x86/kernel/apic/ |
| H A D | vector.c | 674 return to_of_node(fwspec->fwnode) && in x86_fwspec_is_ioapic() 675 of_device_is_compatible(to_of_node(fwspec->fwnode), in x86_fwspec_is_ioapic()
|
| /linux/drivers/net/ethernet/freescale/ |
| H A D | xgmac_mdio.c | 427 ret = of_mdiobus_register(bus, to_of_node(fwnode)); in xgmac_mdio_probe()
|
| /linux/drivers/usb/typec/ |
| H A D | hd3ss3220.c | 408 to_of_node(connector), in hd3ss3220_probe()
|
| /linux/include/linux/ |
| H A D | irqdomain.h | 249 return to_of_node(d->fwnode); in irq_domain_get_of_node()
|
| H A D | of.h | 167 #define to_of_node(__fwnode) \ macro 498 static inline struct device_node *to_of_node(const struct fwnode_handle *fwnode) in to_of_node() function
|