Searched refs:clki (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/drivers/ufs/host/ |
D | ufshcd-pltfrm.c | 31 struct ufs_clk_info *clki; in ufshcd_parse_clock_info() local 87 clki = devm_kzalloc(dev, sizeof(*clki), GFP_KERNEL); in ufshcd_parse_clock_info() 88 if (!clki) { in ufshcd_parse_clock_info() 93 clki->min_freq = clkfreq[i]; in ufshcd_parse_clock_info() 94 clki->max_freq = clkfreq[i+1]; in ufshcd_parse_clock_info() 95 clki->name = devm_kstrdup(dev, name, GFP_KERNEL); in ufshcd_parse_clock_info() 96 if (!clki->name) { in ufshcd_parse_clock_info() 102 clki->keep_link_active = true; in ufshcd_parse_clock_info() 104 clki->min_freq, clki->max_freq, clki->name); in ufshcd_parse_clock_info() 105 list_add_tail(&clki->list, &hba->clk_list_head); in ufshcd_parse_clock_info()
|
D | ufs-mediatek.c | 751 struct ufs_clk_info *clki, *clki_tmp; in ufs_mtk_init_clocks() local 758 list_for_each_entry_safe(clki, clki_tmp, head, list) { in ufs_mtk_init_clocks() 759 if (!strcmp(clki->name, "ufs_sel")) { in ufs_mtk_init_clocks() 760 host->mclk.ufs_sel_clki = clki; in ufs_mtk_init_clocks() 761 } else if (!strcmp(clki->name, "ufs_sel_max_src")) { in ufs_mtk_init_clocks() 762 host->mclk.ufs_sel_max_clki = clki; in ufs_mtk_init_clocks() 763 clk_disable_unprepare(clki->clk); in ufs_mtk_init_clocks() 764 list_del(&clki->list); in ufs_mtk_init_clocks() 765 } else if (!strcmp(clki->name, "ufs_sel_min_src")) { in ufs_mtk_init_clocks() 766 host->mclk.ufs_sel_min_clki = clki; in ufs_mtk_init_clocks() [all …]
|
D | cdns-pltfrm.c | 112 struct ufs_clk_info *clki; in cdns_ufs_set_hclkdiv() local 120 list_for_each_entry(clki, head, list) { in cdns_ufs_set_hclkdiv() 121 if (IS_ERR_OR_NULL(clki->clk)) in cdns_ufs_set_hclkdiv() 123 if (!strcmp(clki->name, "core_clk")) in cdns_ufs_set_hclkdiv() 124 core_clk_rate = clk_get_rate(clki->clk); in cdns_ufs_set_hclkdiv()
|
D | ufs-qcom.c | 379 struct ufs_clk_info *clki; in ufs_qcom_cfg_timers() local 419 list_for_each_entry(clki, &hba->clk_list_head, list) { in ufs_qcom_cfg_timers() 420 if (!strcmp(clki->name, "core_clk")) in ufs_qcom_cfg_timers() 421 core_clk_rate = clk_get_rate(clki->clk); in ufs_qcom_cfg_timers() 956 struct ufs_clk_info *clki; in ufs_qcom_init() local 1028 list_for_each_entry(clki, &hba->clk_list_head, list) { in ufs_qcom_init() 1029 if (!strcmp(clki->name, "core_clk_unipro")) in ufs_qcom_init() 1030 clki->keep_link_active = true; in ufs_qcom_init()
|
D | ufs-exynos.c | 417 struct ufs_clk_info *clki; in exynos_ufs_get_clk_info() local 426 list_for_each_entry(clki, head, list) { in exynos_ufs_get_clk_info() 427 if (!IS_ERR(clki->clk)) { in exynos_ufs_get_clk_info() 428 if (!strcmp(clki->name, "core_clk")) in exynos_ufs_get_clk_info() 429 ufs->clk_hci_core = clki->clk; in exynos_ufs_get_clk_info() 430 else if (!strcmp(clki->name, "sclk_unipro_main")) in exynos_ufs_get_clk_info() 431 ufs->clk_unipro_main = clki->clk; in exynos_ufs_get_clk_info()
|
/linux-6.1.9/drivers/iio/adc/ |
D | mcp3911.c | 70 struct clk *clki; member 379 if (adc->clki) { in mcp3911_config() 460 adc->clki = devm_clk_get_enabled(&adc->spi->dev, NULL); in mcp3911_probe() 461 if (IS_ERR(adc->clki)) { in mcp3911_probe() 462 if (PTR_ERR(adc->clki) == -ENOENT) { in mcp3911_probe() 463 adc->clki = NULL; in mcp3911_probe() 467 PTR_ERR(adc->clki)); in mcp3911_probe() 468 return PTR_ERR(adc->clki); in mcp3911_probe()
|
/linux-6.1.9/drivers/ufs/core/ |
D | ufshcd.c | 430 struct ufs_clk_info *clki; in ufshcd_print_clk_freqs() local 436 list_for_each_entry(clki, head, list) { in ufshcd_print_clk_freqs() 437 if (!IS_ERR_OR_NULL(clki->clk) && clki->min_freq && in ufshcd_print_clk_freqs() 438 clki->max_freq) in ufshcd_print_clk_freqs() 440 clki->name, clki->curr_freq); in ufshcd_print_clk_freqs() 985 struct ufs_clk_info *clki; in ufshcd_set_clk_freq() local 991 list_for_each_entry(clki, head, list) { in ufshcd_set_clk_freq() 992 if (!IS_ERR_OR_NULL(clki->clk)) { in ufshcd_set_clk_freq() 993 if (scale_up && clki->max_freq) { in ufshcd_set_clk_freq() 994 if (clki->curr_freq == clki->max_freq) in ufshcd_set_clk_freq() [all …]
|