/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/clk/ |
D | clk-bd718x7.c | 83 const char *parent_clk; in bd71837_clk_probe() local 97 parent_clk = of_clk_get_parent_name(parent->of_node, 0); in bd71837_clk_probe() 99 init.parent_names = &parent_clk; in bd71837_clk_probe() 100 if (!parent_clk) { in bd71837_clk_probe()
|
/kernel/linux/linux-5.10/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 | 1712 struct clk *gfclk, *parent_clk; in mcasp_reparent_fck() local 1731 parent_clk = clk_get(NULL, parent_name); in mcasp_reparent_fck() 1732 if (IS_ERR(parent_clk)) { in mcasp_reparent_fck() 1734 ret = PTR_ERR(parent_clk); in mcasp_reparent_fck() 1738 ret = clk_set_parent(gfclk, parent_clk); in mcasp_reparent_fck() 1745 clk_put(parent_clk); in mcasp_reparent_fck()
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
D | ingenic-adc.c | 308 struct clk *parent_clk; in jz4725b_adc_init_clk_div() local 312 parent_clk = clk_get_parent(adc->clk); in jz4725b_adc_init_clk_div() 313 if (!parent_clk) { in jz4725b_adc_init_clk_div() 317 parent_rate = clk_get_rate(parent_clk); in jz4725b_adc_init_clk_div() 344 struct clk *parent_clk; in jz4770_adc_init_clk_div() local 348 parent_clk = clk_get_parent(adc->clk); in jz4770_adc_init_clk_div() 349 if (!parent_clk) { in jz4770_adc_init_clk_div() 353 parent_rate = clk_get_rate(parent_clk); in jz4770_adc_init_clk_div()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/mmc/host/ |
D | meson-mx-sdio.c | 104 struct clk *parent_clk; member 565 clk_get_rate(host->parent_clk)); in meson_mx_mmc_add_host() 586 clk_fixed_factor_parent = __clk_get_name(host->parent_clk); in meson_mx_mmc_register_clks() 684 host->parent_clk = devm_clk_get(host->controller_dev, "clkin"); in meson_mx_mmc_probe() 685 if (IS_ERR(host->parent_clk)) { in meson_mx_mmc_probe() 686 ret = PTR_ERR(host->parent_clk); in meson_mx_mmc_probe()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ingenic/ |
D | ingenic-drm-drv.c | 738 struct clk *parent_clk; in ingenic_drm_bind() local 955 parent_clk = clk_get_parent(priv->lcd_clk); in ingenic_drm_bind() 956 parent_rate = clk_get_rate(parent_clk); in ingenic_drm_bind() 987 parent_clk = clk_get_parent(priv->pix_clk); in ingenic_drm_bind() 988 ret = clk_notifier_register(parent_clk, &priv->clock_nb); in ingenic_drm_bind() 1005 clk_notifier_unregister(parent_clk, &priv->clock_nb); in ingenic_drm_bind() 1027 struct clk *parent_clk = clk_get_parent(priv->pix_clk); in ingenic_drm_unbind() local 1029 clk_notifier_unregister(parent_clk, &priv->clock_nb); in ingenic_drm_unbind()
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
D | i2c-aspeed.c | 972 struct clk *parent_clk; in aspeed_i2c_probe_bus() local 985 parent_clk = devm_clk_get(&pdev->dev, NULL); in aspeed_i2c_probe_bus() 986 if (IS_ERR(parent_clk)) in aspeed_i2c_probe_bus() 987 return PTR_ERR(parent_clk); in aspeed_i2c_probe_bus() 988 bus->parent_clk_frequency = clk_get_rate(parent_clk); in aspeed_i2c_probe_bus() 990 devm_clk_put(&pdev->dev, parent_clk); in aspeed_i2c_probe_bus()
|
D | i2c-mt65xx.c | 770 static int mtk_i2c_set_speed(struct mtk_i2c *i2c, unsigned int parent_clk) in mtk_i2c_set_speed() argument 783 parent_clk /= i2c->clk_src_div; in mtk_i2c_set_speed() 791 clk_src = parent_clk / clk_div; in mtk_i2c_set_speed()
|
/kernel/linux/linux-5.10/drivers/clk/sirf/ |
D | clk-common.c | 169 struct clk_hw *parent_clk = clk_hw_get_parent(hw); in cpu_clk_round_rate() local 170 struct clk_hw *pll_parent_clk = clk_hw_get_parent(parent_clk); in cpu_clk_round_rate() 172 return pll_clk_round_rate(parent_clk, rate, &pll_parent_rate); in cpu_clk_round_rate() 182 struct clk_hw *parent_clk = clk_hw_get_parent(hw); in cpu_clk_recalc_rate() local 183 return clk_hw_get_rate(parent_clk); in cpu_clk_recalc_rate()
|
/kernel/linux/linux-5.10/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
|
/kernel/linux/linux-5.10/drivers/spi/ |
D | spi-mt65xx.c | 100 struct clk *parent_clk, *sel_clk, *spi_clk; member 719 mdata->parent_clk = devm_clk_get(&pdev->dev, "parent-clk"); in mtk_spi_probe() 720 if (IS_ERR(mdata->parent_clk)) { in mtk_spi_probe() 721 ret = PTR_ERR(mdata->parent_clk); in mtk_spi_probe() 746 ret = clk_set_parent(mdata->sel_clk, mdata->parent_clk); in mtk_spi_probe()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/sound/soc/stm/ |
D | stm32_sai_sub.c | 360 struct clk *parent_clk = sai->pdata->clk_x8k; in stm32_sai_set_parent_clock() local 364 parent_clk = sai->pdata->clk_x11k; in stm32_sai_set_parent_clock() 366 ret = clk_set_parent(sai->sai_ck, parent_clk); in stm32_sai_set_parent_clock()
|
/kernel/linux/linux-5.10/sound/soc/codecs/ |
D | rt5682.c | 2642 struct clk *parent_clk; in rt5682_wclk_set_rate() local 2657 parent_clk = clk_get_parent(hw->clk); in rt5682_wclk_set_rate() 2658 if (!parent_clk) in rt5682_wclk_set_rate()
|
/kernel/linux/linux-5.10/drivers/tty/serial/ |
D | serial-tegra.c | 1277 struct clk *parent_clk = clk_get_parent(tup->uart_clk); in tegra_uart_set_termios() local 1278 unsigned long parent_clk_rate = clk_get_rate(parent_clk); in tegra_uart_set_termios()
|
/kernel/linux/linux-5.10/drivers/clk/meson/ |
D | meson8b.c | 3697 struct clk_hw *parent_clk; in meson8b_cpu_clk_notifier_cb() local 3703 parent_clk = clk_hw_get_parent_by_index(nb_data->cpu_clk, 0); in meson8b_cpu_clk_notifier_cb() 3708 parent_clk = clk_hw_get_parent_by_index(nb_data->cpu_clk, 1); in meson8b_cpu_clk_notifier_cb() 3715 ret = clk_hw_set_parent(nb_data->cpu_clk, parent_clk); in meson8b_cpu_clk_notifier_cb()
|