/linux/drivers/of/ |
H A D | property.c | 939 return of_fwnode_handle(of_node_get(to_of_node(fwnode))); in of_fwnode_get() 944 of_node_put(to_of_node(fwnode)); in of_fwnode_put() 949 return of_device_is_available(to_of_node(fwnode)); in of_fwnode_device_is_available() 960 if (of_dma_is_coherent(to_of_node(fwnode))) in of_fwnode_device_get_dma_attr() 969 return of_property_read_bool(to_of_node(fwnode), propname); in of_fwnode_property_present() 977 const struct device_node *node = to_of_node(fwnode); in of_fwnode_property_read_int_array() 1002 const struct device_node *node = to_of_node(fwnode); in of_fwnode_property_read_string_array() 1011 return kbasename(to_of_node(fwnode)->full_name); in of_fwnode_get_name() 1017 if (!to_of_node(fwnode)->parent) in of_fwnode_get_name_prefix() 1026 return of_fwnode_handle(of_get_parent(to_of_node(fwnode))); in of_fwnode_get_parent() [all …]
|
/linux/drivers/irqchip/ |
H A D | irq-riscv-imsic-state.c | 521 rc = of_property_read_u32(to_of_node(fwnode), "riscv,guest-index-bits", in imsic_populate_global_dt() 527 rc = of_property_read_u32(to_of_node(fwnode), "riscv,hart-index-bits", in imsic_populate_global_dt() 537 rc = of_property_read_u32(to_of_node(fwnode), "riscv,group-index-bits", in imsic_populate_global_dt() 546 rc = of_property_read_u32(to_of_node(fwnode), "riscv,group-index-shift", in imsic_populate_global_dt() 552 rc = of_property_read_u32(to_of_node(fwnode), "riscv,num-ids", in imsic_populate_global_dt() 560 rc = of_property_read_u32(to_of_node(fwnode), "riscv,num-guest-ids", in imsic_populate_global_dt() 599 rc = of_irq_parse_one(to_of_node(fwnode), index, &parent); in imsic_get_parent_hartid() 619 return of_address_to_resource(to_of_node(fwnode), index, res); in imsic_get_mmio_resource()
|
H A D | irq-sifive-plic.c | 467 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 D | irq-riscv-aplic-main.c | 141 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 D | irq-gic-v2m.c | 239 of_node_put(to_of_node(v2m->fwnode)); in gicv2m_teardown() 385 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 | 231 np = to_of_node(fwnode); in mbi_init()
|
H A D | irq-riscv-aplic-direct.c | 210 rc = of_irq_parse_one(to_of_node(dev->fwnode), index, &parent); in aplic_direct_parse_parent_hwirq()
|
/linux/drivers/hwtracing/coresight/ |
H A D | coresight-cti-platform.c | 77 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/drivers/net/mdio/ |
H A D | fwnode_mdio.c | 29 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()
|
/linux/drivers/media/platform/renesas/rcar-vin/ |
H A D | rcar-core.c | 324 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/kernel/irq/ |
H A D | irqdomain.c | 236 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/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/pci/controller/ |
H A D | pcie-apple.c | 379 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()
|
/linux/drivers/media/platform/xilinx/ |
H A D | xilinx-vipp.c | 235 to_of_node(link.remote_node)); in xvip_graph_build_dma() 244 to_of_node(link.remote_node)); in xvip_graph_build_dma()
|
/linux/drivers/input/keyboard/ |
H A D | gpio_keys.c | 782 irq = of_irq_get_byname(to_of_node(child), "irq"); in gpio_keys_get_devtree_pdata() 786 irq = of_irq_get_byname(to_of_node(child), "wakeup"); in gpio_keys_get_devtree_pdata() 792 irq_of_parse_and_map(to_of_node(child), 0); in gpio_keys_get_devtree_pdata()
|
/linux/drivers/leds/ |
H A D | leds-pwm.c | 165 led.name = to_of_node(fwnode)->name; in led_pwm_create_fwnode()
|
/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/base/ |
H A D | platform.c | 185 ret = of_irq_get(to_of_node(fwnode), num); in platform_get_irq_optional() 818 pdev->dev.of_node = of_node_get(to_of_node(pdev->dev.fwnode)); in platform_device_register_full() 1449 ret = of_dma_configure(dev, to_of_node(fwnode), true); in platform_dma_configure()
|
/linux/drivers/soundwire/ |
H A D | slave.c | 55 slave->dev.of_node = of_node_get(to_of_node(fwnode)); in sdw_slave_add()
|
/linux/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_dsaf_mac.c | 886 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()
|
/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/drivers/pinctrl/nuvoton/ |
H A D | pinctrl-ma35.c | 581 bank->clk = of_clk_get(to_of_node(bank->fwnode), 0); in ma35_get_bank_data() 1084 npctl->ngroups += of_get_child_count(to_of_node(child)); in ma35_pinctrl_probe_dt() 1104 ret = ma35_pinctrl_parse_functions(to_of_node(child), npctl, idx++); in ma35_pinctrl_probe_dt()
|
/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()
|