| /linux/drivers/clk/bcm/ |
| H A 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/sound/soc/ti/ |
| H A 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()
|
| H A D | davinci-mcasp.c | 2097 struct clk *gfclk, *parent_clk; in davinci_mcasp_rxdma_offset() 2116 parent_clk = clk_get(NULL, parent_name); in davinci_mcasp_gpio_request() 2117 if (IS_ERR(parent_clk)) { in davinci_mcasp_gpio_request() 2119 ret = PTR_ERR(parent_clk); in davinci_mcasp_gpio_request() 2123 ret = clk_set_parent(gfclk, parent_clk); 2130 clk_put(parent_clk); in davinci_mcasp_gpio_free() 1837 struct clk *gfclk, *parent_clk; mcasp_reparent_fck() local
|
| /linux/drivers/iio/adc/ |
| H A 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/drivers/video/fbdev/omap2/omapfb/dss/ |
| H A D | dss.c | 77 struct clk *parent_clk; member 523 if (dss.parent_clk == NULL) { in dss_div_calc() 538 prate = clk_get_rate(dss.parent_clk); in dss_div_calc() 588 if (dss.parent_clk == NULL) { in dss_setup_default_clock() 591 prate = clk_get_rate(dss.parent_clk); in dss_setup_default_clock() 754 dss.parent_clk = clk; in dss_get_clocks() 761 if (dss.parent_clk) in dss_put_clocks() 762 clk_put(dss.parent_clk); in dss_put_clocks()
|
| /linux/sound/soc/renesas/ |
| H A 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/drivers/i2c/busses/ |
| H A D | i2c-aspeed.c | 1002 struct clk *parent_clk; in aspeed_i2c_probe_bus() local 1013 parent_clk = devm_clk_get(&pdev->dev, NULL); in aspeed_i2c_probe_bus() 1014 if (IS_ERR(parent_clk)) in aspeed_i2c_probe_bus() 1015 return PTR_ERR(parent_clk); in aspeed_i2c_probe_bus() 1016 bus->parent_clk_frequency = clk_get_rate(parent_clk); in aspeed_i2c_probe_bus() 1018 devm_clk_put(&pdev->dev, parent_clk); in aspeed_i2c_probe_bus()
|
| /linux/drivers/gpu/drm/omapdrm/dss/ |
| H A D | dss.c | 611 if (dss->parent_clk == NULL) { in dss_div_calc() 626 prate = clk_get_rate(dss->parent_clk); in dss_div_calc() 680 if (dss->parent_clk == NULL) { in dss_setup_default_clock() 683 prate = clk_get_rate(dss->parent_clk); in dss_setup_default_clock() 844 dss->parent_clk = clk; in dss_get_clocks() 851 if (dss->parent_clk) in dss_put_clocks() 852 clk_put(dss->parent_clk); in dss_put_clocks()
|
| /linux/sound/soc/stm/ |
| H A D | stm32_i2s.c | 367 struct clk *parent_clk; in stm32_i2s_set_parent_clock() local 371 parent_clk = i2s->x11kclk; in stm32_i2s_set_parent_clock() 373 parent_clk = i2s->x8kclk; in stm32_i2s_set_parent_clock() 375 ret = clk_set_parent(i2s->i2sclk, parent_clk); in stm32_i2s_set_parent_clock()
|
| H A D | stm32_sai_sub.c | 385 struct clk *parent_clk = sai->pdata->clk_x8k; in stm32_sai_set_parent_clk() local 389 parent_clk = sai->pdata->clk_x11k; in stm32_sai_set_parent_clk() 391 ret = clk_set_parent(sai->sai_ck, parent_clk); in stm32_sai_set_parent_clk()
|
| /linux/drivers/tty/serial/ |
| H A D | serial-tegra.c | 1294 struct clk *parent_clk = clk_get_parent(tup->uart_clk); in tegra_uart_set_termios() local 1295 unsigned long parent_clk_rate = clk_get_rate(parent_clk); in tegra_uart_set_termios()
|
| /linux/sound/soc/codecs/ |
| H A D | rt5682s.c | 2644 struct clk *parent_clk; in rt5682s_wclk_set_rate() 2658 parent_clk = clk_get_parent(hw->clk); in rt5682s_wclk_set_rate() 2659 if (!parent_clk) in rt5682s_wclk_set_rate() 2643 struct clk *parent_clk; rt5682s_wclk_set_rate() local
|
| /linux/drivers/clk/meson/ |
| H A D | meson8b.c | 3585 struct clk_hw *parent_clk; in meson8b_cpu_clk_notifier_cb() local 3591 parent_clk = clk_hw_get_parent_by_index(nb_data->cpu_clk, 0); in meson8b_cpu_clk_notifier_cb() 3596 parent_clk = clk_hw_get_parent_by_index(nb_data->cpu_clk, 1); in meson8b_cpu_clk_notifier_cb() 3603 ret = clk_hw_set_parent(nb_data->cpu_clk, parent_clk); in meson8b_cpu_clk_notifier_cb()
|