Home
last modified time | relevance | path

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

12

/linux/drivers/of/
H A Dproperty.c1047 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 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/drivers/irqchip/
H A Dirq-sifive-plic.c569 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 Dirq-riscv-aplic-main.c317 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 Dirq-gic-v2m.c241 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 Dirq-mips-cpu.c225 return (!node || (to_of_node(d->fwnode) == node)) && is_ipi; in mips_cpu_ipi_match()
H A Dirq-riscv-aplic-msi.c262 of_msi_configure(dev, to_of_node(dev->fwnode)); in aplic_msi_setup()
H A Dirq-gic-v3-mbi.c224 np = to_of_node(fwnode); in mbi_init()
H A Dirq-loongson-pch-pic.c174 struct device_node *of_node = to_of_node(fwspec->fwnode); in pch_pic_domain_translate()
/linux/drivers/base/test/
H A Dproperty-entry-test.c545 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 Dqcom_pmic_typec.c89 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 Ddt_idle_genpd.c32 ret = parse_state(to_of_node(states[i].fwnode), &state); in pd_parse_state_nodes()
/linux/drivers/media/platform/renesas/rcar-vin/
H A Drcar-core.c339 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 Dtechnologic-nand-controller.c161 nand_set_flash_node(&data->chip, to_of_node(child)); in ts72xx_nand_probe()
/linux/drivers/gpio/
H A Dgpiolib-of.c105 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 Dgpiolib-shared.c554 gpiospec.np = to_of_node(entry->fwnode); in gpiochip_setup_shared()
/linux/drivers/net/ethernet/hisilicon/hns/
H A Dhns_dsaf_mac.c889 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 Ducsi_yoga_c630.c244 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 Dbus.c445 sdev->dev.of_node = to_of_node(node); in ssam_add_client_device()
/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()
/linux/arch/x86/kernel/apic/
H A Dvector.c674 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 Dxgmac_mdio.c427 ret = of_mdiobus_register(bus, to_of_node(fwnode)); in xgmac_mdio_probe()
/linux/drivers/usb/typec/
H A Dhd3ss3220.c408 to_of_node(connector), in hd3ss3220_probe()
/linux/include/linux/
H A Dirqdomain.h249 return to_of_node(d->fwnode); in irq_domain_get_of_node()
H A Dof.h167 #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

12