/linux-6.1.9/drivers/clk/samsung/ |
D | clk-exynos-arm64.c | 77 struct clk *parent_clk; in exynos_arm64_register_cmu() local 80 parent_clk = clk_get(dev, cmu->clk_name); in exynos_arm64_register_cmu() 82 parent_clk = of_clk_get_by_name(np, cmu->clk_name); in exynos_arm64_register_cmu() 84 if (IS_ERR(parent_clk)) { in exynos_arm64_register_cmu() 86 __func__, cmu->clk_name, PTR_ERR(parent_clk)); in exynos_arm64_register_cmu() 88 clk_prepare_enable(parent_clk); in exynos_arm64_register_cmu()
|
/linux-6.1.9/drivers/clk/bcm/ |
D | clk-bcm2835-aux.c | 21 struct clk *parent_clk; in bcm2835_aux_clk_probe() local 24 parent_clk = devm_clk_get(dev, NULL); in bcm2835_aux_clk_probe() 25 if (IS_ERR(parent_clk)) in bcm2835_aux_clk_probe() 26 return PTR_ERR(parent_clk); in bcm2835_aux_clk_probe() 27 parent = __clk_get_name(parent_clk); in bcm2835_aux_clk_probe()
|
/linux-6.1.9/drivers/clk/ |
D | clk-bd718x7.c | 83 const char *parent_clk; in bd71837_clk_probe() local 100 parent_clk = of_clk_get_parent_name(parent->of_node, 0); in bd71837_clk_probe() 102 init.parent_names = &parent_clk; in bd71837_clk_probe() 103 if (!parent_clk) { in bd71837_clk_probe()
|
/linux-6.1.9/sound/soc/ti/ |
D | omap-dmic.c | 282 struct clk *parent_clk, *mux; in omap_dmic_select_fclk() local 324 parent_clk = clk_get(dmic->dev, parent_clk_name); in omap_dmic_select_fclk() 325 if (IS_ERR(parent_clk)) { in omap_dmic_select_fclk() 333 clk_put(parent_clk); in omap_dmic_select_fclk() 341 ret = clk_set_parent(mux, parent_clk); in omap_dmic_select_fclk() 344 ret = clk_set_parent(mux, parent_clk); in omap_dmic_select_fclk() 358 clk_put(parent_clk); in omap_dmic_select_fclk()
|
D | davinci-mcasp.c | 1832 struct clk *gfclk, *parent_clk; in mcasp_reparent_fck() local 1851 parent_clk = clk_get(NULL, parent_name); in mcasp_reparent_fck() 1852 if (IS_ERR(parent_clk)) { in mcasp_reparent_fck() 1854 ret = PTR_ERR(parent_clk); in mcasp_reparent_fck() 1858 ret = clk_set_parent(gfclk, parent_clk); in mcasp_reparent_fck() 1865 clk_put(parent_clk); in mcasp_reparent_fck()
|
/linux-6.1.9/drivers/iio/adc/ |
D | ingenic-adc.c | 316 struct clk *parent_clk; in jz4725b_adc_init_clk_div() local 320 parent_clk = clk_get_parent(adc->clk); in jz4725b_adc_init_clk_div() 321 if (!parent_clk) { in jz4725b_adc_init_clk_div() 325 parent_rate = clk_get_rate(parent_clk); in jz4725b_adc_init_clk_div() 352 struct clk *parent_clk; in jz4770_adc_init_clk_div() local 356 parent_clk = clk_get_parent(adc->clk); in jz4770_adc_init_clk_div() 357 if (!parent_clk) { in jz4770_adc_init_clk_div() 361 parent_rate = clk_get_rate(parent_clk); in jz4770_adc_init_clk_div()
|
/linux-6.1.9/drivers/video/fbdev/omap2/omapfb/dss/ |
D | dss.c | 76 struct clk *parent_clk; member 522 if (dss.parent_clk == NULL) { in dss_div_calc() 537 prate = clk_get_rate(dss.parent_clk); in dss_div_calc() 587 if (dss.parent_clk == NULL) { in dss_setup_default_clock() 590 prate = clk_get_rate(dss.parent_clk); in dss_setup_default_clock() 753 dss.parent_clk = clk; in dss_get_clocks() 760 if (dss.parent_clk) in dss_put_clocks() 761 clk_put(dss.parent_clk); in dss_put_clocks()
|
/linux-6.1.9/sound/soc/sh/ |
D | siu_dai.c | 628 struct clk *siu_clk, *parent_clk; in siu_dai_set_sysclk() local 665 parent_clk = clk_get(dai->dev, parent_name); in siu_dai_set_sysclk() 666 if (IS_ERR(parent_clk)) { in siu_dai_set_sysclk() 667 ret = PTR_ERR(parent_clk); in siu_dai_set_sysclk() 672 ret = clk_set_parent(siu_clk, parent_clk); in siu_dai_set_sysclk() 684 clk_put(parent_clk); in siu_dai_set_sysclk()
|
/linux-6.1.9/drivers/mmc/host/ |
D | meson-mx-sdio.c | 104 struct clk *parent_clk; member 564 clk_get_rate(host->parent_clk)); in meson_mx_mmc_add_host() 585 clk_fixed_factor_parent = __clk_get_name(host->parent_clk); in meson_mx_mmc_register_clks() 683 host->parent_clk = devm_clk_get(host->controller_dev, "clkin"); in meson_mx_mmc_probe() 684 if (IS_ERR(host->parent_clk)) { in meson_mx_mmc_probe() 685 ret = PTR_ERR(host->parent_clk); in meson_mx_mmc_probe()
|
/linux-6.1.9/drivers/i2c/busses/ |
D | i2c-aspeed.c | 981 struct clk *parent_clk; in aspeed_i2c_probe_bus() local 994 parent_clk = devm_clk_get(&pdev->dev, NULL); in aspeed_i2c_probe_bus() 995 if (IS_ERR(parent_clk)) in aspeed_i2c_probe_bus() 996 return PTR_ERR(parent_clk); in aspeed_i2c_probe_bus() 997 bus->parent_clk_frequency = clk_get_rate(parent_clk); in aspeed_i2c_probe_bus() 999 devm_clk_put(&pdev->dev, parent_clk); in aspeed_i2c_probe_bus()
|
D | i2c-mt65xx.c | 846 static int mtk_i2c_set_speed(struct mtk_i2c *i2c, unsigned int parent_clk) in mtk_i2c_set_speed() argument 859 parent_clk /= i2c->clk_src_div; in mtk_i2c_set_speed() 869 clk_src = parent_clk / clk_div; in mtk_i2c_set_speed()
|
/linux-6.1.9/drivers/gpu/drm/omapdrm/dss/ |
D | dss.c | 610 if (dss->parent_clk == NULL) { in dss_div_calc() 625 prate = clk_get_rate(dss->parent_clk); in dss_div_calc() 679 if (dss->parent_clk == NULL) { in dss_setup_default_clock() 682 prate = clk_get_rate(dss->parent_clk); in dss_setup_default_clock() 843 dss->parent_clk = clk; in dss_get_clocks() 850 if (dss->parent_clk) in dss_put_clocks() 851 clk_put(dss->parent_clk); in dss_put_clocks()
|
D | dss.h | 232 struct clk *parent_clk; member
|
/linux-6.1.9/drivers/gpu/drm/ingenic/ |
D | ingenic-drm-drv.c | 1087 struct clk *parent_clk; in ingenic_drm_bind() local 1336 parent_clk = clk_get_parent(priv->lcd_clk); in ingenic_drm_bind() 1337 parent_rate = clk_get_rate(parent_clk); in ingenic_drm_bind() 1367 parent_clk = clk_get_parent(priv->pix_clk); in ingenic_drm_bind() 1368 ret = clk_notifier_register(parent_clk, &priv->clock_nb); in ingenic_drm_bind() 1401 clk_notifier_unregister(parent_clk, &priv->clock_nb); in ingenic_drm_bind() 1418 struct clk *parent_clk = clk_get_parent(priv->pix_clk); in ingenic_drm_unbind() local 1420 clk_notifier_unregister(parent_clk, &priv->clock_nb); in ingenic_drm_unbind()
|
/linux-6.1.9/drivers/clk/microchip/ |
D | clk-core.c | 390 struct clk_hw *parent_clk, *best_parent_clk = NULL; in roclk_determine_rate() local 398 parent_clk = clk_hw_get_parent_by_index(hw, i); in roclk_determine_rate() 399 if (!parent_clk) in roclk_determine_rate() 403 parent_rate = clk_hw_get_rate(parent_clk); in roclk_determine_rate() 410 best_parent_clk = parent_clk; in roclk_determine_rate()
|
/linux-6.1.9/sound/soc/stm/ |
D | stm32_i2s.c | 319 struct clk *parent_clk; in stm32_i2s_set_parent_clock() local 323 parent_clk = i2s->x11kclk; in stm32_i2s_set_parent_clock() 325 parent_clk = i2s->x8kclk; in stm32_i2s_set_parent_clock() 327 ret = clk_set_parent(i2s->i2sclk, parent_clk); in stm32_i2s_set_parent_clock()
|
D | stm32_sai_sub.c | 358 struct clk *parent_clk = sai->pdata->clk_x8k; in stm32_sai_set_parent_clock() local 362 parent_clk = sai->pdata->clk_x11k; in stm32_sai_set_parent_clock() 364 ret = clk_set_parent(sai->sai_ck, parent_clk); in stm32_sai_set_parent_clock()
|
/linux-6.1.9/drivers/spi/ |
D | spi-mt65xx.c | 161 struct clk *parent_clk, *sel_clk, *spi_clk, *spi_hclk; member 1200 mdata->parent_clk = devm_clk_get(dev, "parent-clk"); in mtk_spi_probe() 1201 if (IS_ERR(mdata->parent_clk)) in mtk_spi_probe() 1202 return dev_err_probe(dev, PTR_ERR(mdata->parent_clk), in mtk_spi_probe() 1217 ret = clk_set_parent(mdata->sel_clk, mdata->parent_clk); in mtk_spi_probe()
|
/linux-6.1.9/drivers/tty/serial/ |
D | serial-tegra.c | 1283 struct clk *parent_clk = clk_get_parent(tup->uart_clk); in tegra_uart_set_termios() local 1284 unsigned long parent_clk_rate = clk_get_rate(parent_clk); in tegra_uart_set_termios()
|
/linux-6.1.9/sound/soc/codecs/ |
D | rt5682s.c | 2642 struct clk *parent_clk; in rt5682s_wclk_set_rate() local 2656 parent_clk = clk_get_parent(hw->clk); in rt5682s_wclk_set_rate() 2657 if (!parent_clk) in rt5682s_wclk_set_rate()
|
/linux-6.1.9/drivers/clk/meson/ |
D | meson8b.c | 3760 struct clk_hw *parent_clk; in meson8b_cpu_clk_notifier_cb() local 3766 parent_clk = clk_hw_get_parent_by_index(nb_data->cpu_clk, 0); in meson8b_cpu_clk_notifier_cb() 3771 parent_clk = clk_hw_get_parent_by_index(nb_data->cpu_clk, 1); in meson8b_cpu_clk_notifier_cb() 3778 ret = clk_hw_set_parent(nb_data->cpu_clk, parent_clk); in meson8b_cpu_clk_notifier_cb()
|