/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()
|
/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()
|
/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()
|
/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()
|
/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()
|
/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()
|
/drivers/i2c/busses/ |
D | i2c-aspeed.c | 1001 struct clk *parent_clk; in aspeed_i2c_probe_bus() local 1014 parent_clk = devm_clk_get(&pdev->dev, NULL); in aspeed_i2c_probe_bus() 1015 if (IS_ERR(parent_clk)) in aspeed_i2c_probe_bus() 1016 return PTR_ERR(parent_clk); in aspeed_i2c_probe_bus() 1017 bus->parent_clk_frequency = clk_get_rate(parent_clk); in aspeed_i2c_probe_bus() 1019 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()
|
/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
|
/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()
|
/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()
|
/drivers/spi/ |
D | spi-mt65xx.c | 161 struct clk *parent_clk, *sel_clk, *spi_clk, *spi_hclk; member 1195 mdata->parent_clk = devm_clk_get(dev, "parent-clk"); in mtk_spi_probe() 1196 if (IS_ERR(mdata->parent_clk)) in mtk_spi_probe() 1197 return dev_err_probe(dev, PTR_ERR(mdata->parent_clk), in mtk_spi_probe() 1212 ret = clk_set_parent(mdata->sel_clk, mdata->parent_clk); in mtk_spi_probe()
|
/drivers/tty/serial/ |
D | serial-tegra.c | 1292 struct clk *parent_clk = clk_get_parent(tup->uart_clk); in tegra_uart_set_termios() local 1293 unsigned long parent_clk_rate = clk_get_rate(parent_clk); in tegra_uart_set_termios()
|
/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()
|