Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/clk/at91/
Ddt-compat.c36 struct device_node *parent_np; in of_sama5d2_clk_audio_pll_frac_setup() local
38 parent_np = of_get_parent(np); in of_sama5d2_clk_audio_pll_frac_setup()
39 regmap = syscon_node_to_regmap(parent_np); in of_sama5d2_clk_audio_pll_frac_setup()
40 of_node_put(parent_np); in of_sama5d2_clk_audio_pll_frac_setup()
62 struct device_node *parent_np; in of_sama5d2_clk_audio_pll_pad_setup() local
64 parent_np = of_get_parent(np); in of_sama5d2_clk_audio_pll_pad_setup()
65 regmap = syscon_node_to_regmap(parent_np); in of_sama5d2_clk_audio_pll_pad_setup()
66 of_node_put(parent_np); in of_sama5d2_clk_audio_pll_pad_setup()
88 struct device_node *parent_np; in of_sama5d2_clk_audio_pll_pmc_setup() local
90 parent_np = of_get_parent(np); in of_sama5d2_clk_audio_pll_pmc_setup()
[all …]
/linux-6.6.21/arch/powerpc/platforms/cell/
Dcbe_regs.c202 struct device_node *be, *np, *parent_np; in cbe_fill_regs_map() local
207 parent_np = of_get_parent(np); in cbe_fill_regs_map()
208 if (parent_np == be) in cbe_fill_regs_map()
210 of_node_put(parent_np); in cbe_fill_regs_map()
214 parent_np = of_get_parent(np); in cbe_fill_regs_map()
215 if (parent_np == be) in cbe_fill_regs_map()
217 of_node_put(parent_np); in cbe_fill_regs_map()
221 parent_np = of_get_parent(np); in cbe_fill_regs_map()
222 if (parent_np == be) in cbe_fill_regs_map()
224 of_node_put(parent_np); in cbe_fill_regs_map()
/linux-6.6.21/drivers/i2c/muxes/
Di2c-mux-gpmux.c47 struct device_node *parent_np; in mux_parent_adapter() local
50 parent_np = of_parse_phandle(np, "i2c-parent", 0); in mux_parent_adapter()
51 if (!parent_np) { in mux_parent_adapter()
55 parent = of_get_i2c_adapter_by_node(parent_np); in mux_parent_adapter()
56 of_node_put(parent_np); in mux_parent_adapter()
Di2c-arb-gpio-challenge.c100 struct device_node *parent_np; in i2c_arbitrator_probe() local
157 parent_np = of_parse_phandle(np, "i2c-parent", 0); in i2c_arbitrator_probe()
158 if (!parent_np) { in i2c_arbitrator_probe()
162 muxc->parent = of_get_i2c_adapter_by_node(parent_np); in i2c_arbitrator_probe()
163 of_node_put(parent_np); in i2c_arbitrator_probe()
Di2c-mux-pinctrl.c57 struct device_node *parent_np; in i2c_mux_pinctrl_parent_adapter() local
60 parent_np = of_parse_phandle(np, "i2c-parent", 0); in i2c_mux_pinctrl_parent_adapter()
61 if (!parent_np) { in i2c_mux_pinctrl_parent_adapter()
65 parent = of_get_i2c_adapter_by_node(parent_np); in i2c_mux_pinctrl_parent_adapter()
66 of_node_put(parent_np); in i2c_mux_pinctrl_parent_adapter()
Di2c-demux-pinctrl.c23 struct device_node *parent_np; member
64 adap = of_get_i2c_adapter_by_node(priv->chan[new_chan].parent_np); in i2c_demux_activate_master()
171 i, priv->chan[i].parent_np, in available_masters_show()
242 priv->chan[i].parent_np = adap_np; in i2c_demux_pinctrl_probe()
282 of_node_put(priv->chan[j].parent_np); in i2c_demux_pinctrl_probe()
300 of_node_put(priv->chan[i].parent_np); in i2c_demux_pinctrl_remove()
/linux-6.6.21/drivers/clk/st/
Dclkgen-mux.c59 struct device_node *parent_np; in st_of_clkgen_mux_setup() local
67 parent_np = of_get_parent(np); in st_of_clkgen_mux_setup()
68 reg = of_iomap(parent_np, 0); in st_of_clkgen_mux_setup()
69 of_node_put(parent_np); in st_of_clkgen_mux_setup()
Dclkgen-fsyn.c990 struct device_node *parent_np; in st_of_quadfs_setup() local
998 parent_np = of_get_parent(np); in st_of_quadfs_setup()
999 reg = of_iomap(parent_np, 0); in st_of_quadfs_setup()
1000 of_node_put(parent_np); in st_of_quadfs_setup()
/linux-6.6.21/drivers/irqchip/
Dirq-uniphier-aidet.c165 struct device_node *parent_np; in uniphier_aidet_probe() local
169 parent_np = of_irq_find_parent(dev->of_node); in uniphier_aidet_probe()
170 if (!parent_np) in uniphier_aidet_probe()
173 parent_domain = irq_find_host(parent_np); in uniphier_aidet_probe()
174 of_node_put(parent_np); in uniphier_aidet_probe()
/linux-6.6.21/drivers/phy/amlogic/
Dphy-meson-g12a-mipi-dphy-analog.c125 struct device_node *np = dev->of_node, *parent_np; in phy_g12a_mipi_dphy_analog_probe() local
133 parent_np = of_get_parent(np); in phy_g12a_mipi_dphy_analog_probe()
134 map = syscon_node_to_regmap(parent_np); in phy_g12a_mipi_dphy_analog_probe()
135 of_node_put(parent_np); in phy_g12a_mipi_dphy_analog_probe()
Dphy-meson-axg-mipi-pcie-analog.c201 struct device_node *np = dev->of_node, *parent_np; in phy_axg_mipi_pcie_analog_probe() local
210 parent_np = of_get_parent(dev->of_node); in phy_axg_mipi_pcie_analog_probe()
211 map = syscon_node_to_regmap(parent_np); in phy_axg_mipi_pcie_analog_probe()
212 of_node_put(parent_np); in phy_axg_mipi_pcie_analog_probe()
/linux-6.6.21/drivers/reset/
Dreset-berlin.c71 struct device_node *parent_np = of_get_parent(pdev->dev.of_node); in berlin2_reset_probe() local
78 priv->regmap = syscon_node_to_regmap(parent_np); in berlin2_reset_probe()
79 of_node_put(parent_np); in berlin2_reset_probe()
Dreset-k210.c93 struct device_node *parent_np = of_get_parent(dev->of_node); in k210_rst_probe() local
102 ksr->map = syscon_node_to_regmap(parent_np); in k210_rst_probe()
103 of_node_put(parent_np); in k210_rst_probe()
/linux-6.6.21/drivers/clk/berlin/
Dbg2q.c282 struct device_node *parent_np = of_get_parent(np); in berlin2q_clock_setup() local
290 of_node_put(parent_np); in berlin2q_clock_setup()
296 gbase = of_iomap(parent_np, 0); in berlin2q_clock_setup()
298 of_node_put(parent_np); in berlin2q_clock_setup()
304 cpupll_base = of_iomap(parent_np, 1); in berlin2q_clock_setup()
305 of_node_put(parent_np); in berlin2q_clock_setup()
Dbg2.c494 struct device_node *parent_np = of_get_parent(np); in berlin2_clock_setup() local
504 of_node_put(parent_np); in berlin2_clock_setup()
510 gbase = of_iomap(parent_np, 0); in berlin2_clock_setup()
511 of_node_put(parent_np); in berlin2_clock_setup()
/linux-6.6.21/drivers/iio/adc/
Dberlin2-adc.c296 struct device_node *parent_np = of_get_parent(pdev->dev.of_node); in berlin2_adc_probe() local
302 of_node_put(parent_np); in berlin2_adc_probe()
308 priv->regmap = syscon_node_to_regmap(parent_np); in berlin2_adc_probe()
309 of_node_put(parent_np); in berlin2_adc_probe()
/linux-6.6.21/drivers/pmdomain/amlogic/
Dmeson-gx-pwrc-vpu.c275 struct device_node *parent_np; in meson_gx_pwrc_vpu_probe() local
294 parent_np = of_get_parent(pdev->dev.of_node); in meson_gx_pwrc_vpu_probe()
295 regmap_ao = syscon_node_to_regmap(parent_np); in meson_gx_pwrc_vpu_probe()
296 of_node_put(parent_np); in meson_gx_pwrc_vpu_probe()
Dmeson-ee-pwrc.c488 struct device_node *parent_np; in meson_ee_pwrc_probe() local
515 parent_np = of_get_parent(pdev->dev.of_node); in meson_ee_pwrc_probe()
516 regmap_hhi = syscon_node_to_regmap(parent_np); in meson_ee_pwrc_probe()
517 of_node_put(parent_np); in meson_ee_pwrc_probe()
/linux-6.6.21/drivers/gpio/
Dgpio-uniphier.c341 struct device_node *parent_np; in uniphier_gpio_probe() local
350 parent_np = of_irq_find_parent(dev->of_node); in uniphier_gpio_probe()
351 if (!parent_np) in uniphier_gpio_probe()
354 parent_domain = irq_find_host(parent_np); in uniphier_gpio_probe()
355 of_node_put(parent_np); in uniphier_gpio_probe()
/linux-6.6.21/drivers/pinctrl/berlin/
Dberlin.c334 struct device_node *parent_np = of_get_parent(dev->of_node); in berlin_pinctrl_probe() local
335 struct regmap *regmap = syscon_node_to_regmap(parent_np); in berlin_pinctrl_probe()
337 of_node_put(parent_np); in berlin_pinctrl_probe()
/linux-6.6.21/sound/soc/generic/
Daudio-graph-card2.c244 struct device_node *np, *parent_np; in __graph_get_type() local
257 parent_np = of_get_parent(np); in __graph_get_type()
259 np = parent_np; in __graph_get_type()
/linux-6.6.21/drivers/pinctrl/renesas/
Dpinctrl-rzg2l.c1351 struct device_node *parent_np; in rzg2l_gpio_register() local
1355 parent_np = of_irq_find_parent(np); in rzg2l_gpio_register()
1356 if (!parent_np) in rzg2l_gpio_register()
1359 parent_domain = irq_find_host(parent_np); in rzg2l_gpio_register()
1360 of_node_put(parent_np); in rzg2l_gpio_register()
/linux-6.6.21/drivers/clk/
Dclk-qoriq.c1068 struct device_node *parent_np; in legacy_init_clockgen() local
1070 parent_np = of_get_parent(np); in legacy_init_clockgen()
1071 _clockgen_init(parent_np, true); in legacy_init_clockgen()
1072 of_node_put(parent_np); in legacy_init_clockgen()
Dclk.c4930 struct device_node *np, *parent_np; in get_clk_provider_node() local
4933 parent_np = dev->parent ? dev->parent->of_node : NULL; in get_clk_provider_node()
4936 if (of_property_present(parent_np, "#clock-cells")) in get_clk_provider_node()
4937 np = parent_np; in get_clk_provider_node()
/linux-6.6.21/drivers/clk/meson/
Dmeson8b.c3802 struct device_node *parent_np; in meson8b_clkc_init_common() local
3808 parent_np = of_get_parent(np); in meson8b_clkc_init_common()
3809 map = syscon_node_to_regmap(parent_np); in meson8b_clkc_init_common()
3810 of_node_put(parent_np); in meson8b_clkc_init_common()