Home
last modified time | relevance | path

Searched refs:clki (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/ufs/host/
H A Dufshcd-pltfrm.c33 struct ufs_clk_info *clki; in ufshcd_parse_clock_info() local
85 clki = devm_kzalloc(dev, sizeof(*clki), GFP_KERNEL); in ufshcd_parse_clock_info()
86 if (!clki) { in ufshcd_parse_clock_info()
91 clki->min_freq = clkfreq[i]; in ufshcd_parse_clock_info()
92 clki->max_freq = clkfreq[i+1]; in ufshcd_parse_clock_info()
93 clki->name = devm_kstrdup(dev, name, GFP_KERNEL); in ufshcd_parse_clock_info()
94 if (!clki->name) { in ufshcd_parse_clock_info()
100 clki->keep_link_active = true; in ufshcd_parse_clock_info()
102 clki->min_freq, clki->max_freq, clki->name); in ufshcd_parse_clock_info()
103 list_add_tail(&clki->list, &hba->clk_list_head); in ufshcd_parse_clock_info()
[all …]
H A Dcdns-pltfrm.c111 struct ufs_clk_info *clki; in cdns_ufs_set_hclkdiv() local
119 list_for_each_entry(clki, head, list) { in cdns_ufs_set_hclkdiv()
120 if (IS_ERR_OR_NULL(clki->clk)) in cdns_ufs_set_hclkdiv()
122 if (!strcmp(clki->name, "core_clk")) in cdns_ufs_set_hclkdiv()
123 core_clk_rate = clk_get_rate(clki->clk); in cdns_ufs_set_hclkdiv()
H A Dufs-mediatek.c822 struct ufs_clk_info *clki, *clki_tmp; in ufs_mtk_init_clocks() local
829 list_for_each_entry_safe(clki, clki_tmp, head, list) { in ufs_mtk_init_clocks()
830 if (!strcmp(clki->name, "ufs_sel")) { in ufs_mtk_init_clocks()
831 host->mclk.ufs_sel_clki = clki; in ufs_mtk_init_clocks()
832 } else if (!strcmp(clki->name, "ufs_sel_max_src")) { in ufs_mtk_init_clocks()
833 host->mclk.ufs_sel_max_clki = clki; in ufs_mtk_init_clocks()
834 clk_disable_unprepare(clki->clk); in ufs_mtk_init_clocks()
835 list_del(&clki->list); in ufs_mtk_init_clocks()
836 } else if (!strcmp(clki->name, "ufs_sel_min_src")) { in ufs_mtk_init_clocks()
837 host->mclk.ufs_sel_min_clki = clki; in ufs_mtk_init_clocks()
[all …]
H A Dufs-qcom.c467 struct ufs_clk_info *clki; in ufs_qcom_cfg_timers() local
485 list_for_each_entry(clki, &hba->clk_list_head, list) { in ufs_qcom_cfg_timers()
486 if (!strcmp(clki->name, "core_clk")) { in ufs_qcom_cfg_timers()
488 core_clk_rate = clki->max_freq; in ufs_qcom_cfg_timers()
490 core_clk_rate = clk_get_rate(clki->clk); in ufs_qcom_cfg_timers()
1049 struct ufs_clk_info *clki; in ufs_qcom_init() local
1102 list_for_each_entry(clki, &hba->clk_list_head, list) { in ufs_qcom_init()
1103 if (!strcmp(clki->name, "core_clk_unipro")) in ufs_qcom_init()
1104 clki->keep_link_active = true; in ufs_qcom_init()
1221 struct ufs_clk_info *clki; in ufs_qcom_set_core_clk_ctrl() local
[all …]
H A Dufs-exynos.c429 struct ufs_clk_info *clki; in exynos_ufs_get_clk_info() local
438 list_for_each_entry(clki, head, list) { in exynos_ufs_get_clk_info()
439 if (!IS_ERR(clki->clk)) { in exynos_ufs_get_clk_info()
440 if (!strcmp(clki->name, "core_clk")) in exynos_ufs_get_clk_info()
441 ufs->clk_hci_core = clki->clk; in exynos_ufs_get_clk_info()
442 else if (!strcmp(clki->name, "sclk_unipro_main")) in exynos_ufs_get_clk_info()
443 ufs->clk_unipro_main = clki->clk; in exynos_ufs_get_clk_info()
/linux/drivers/ufs/core/
H A Dufshcd.c488 struct ufs_clk_info *clki; in ufshcd_print_clk_freqs() local
494 list_for_each_entry(clki, head, list) { in ufshcd_print_clk_freqs()
495 if (!IS_ERR_OR_NULL(clki->clk) && clki->min_freq && in ufshcd_print_clk_freqs()
496 clki->max_freq) in ufshcd_print_clk_freqs()
498 clki->name, clki->curr_freq); in ufshcd_print_clk_freqs()
1063 struct ufs_clk_info *clki; in ufshcd_set_clk_freq() local
1069 list_for_each_entry(clki, head, list) { in ufshcd_set_clk_freq()
1070 if (!IS_ERR_OR_NULL(clki->clk)) { in ufshcd_set_clk_freq()
1071 if (scale_up && clki->max_freq) { in ufshcd_set_clk_freq()
1072 if (clki->curr_freq == clki->max_freq) in ufshcd_set_clk_freq()
[all …]
/linux/drivers/iio/adc/
H A Dmcp3911.c118 struct clk *clki; member
554 if (adc->clki) { in mcp3911_config()
620 if (adc->clki) { in mcp3910_config()
708 adc->clki = devm_clk_get_enabled(dev, NULL); in mcp3911_probe()
709 if (IS_ERR(adc->clki)) { in mcp3911_probe()
710 if (PTR_ERR(adc->clki) == -ENOENT) { in mcp3911_probe()
711 adc->clki = NULL; in mcp3911_probe()
713 return dev_err_probe(dev, PTR_ERR(adc->clki), "failed to get adc clk\n"); in mcp3911_probe()