Home
last modified time | relevance | path

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

/drivers/scsi/ufs/
Dufshcd-pltfrm.c30 struct ufs_clk_info *clki; in ufshcd_parse_clock_info() local
86 clki = devm_kzalloc(dev, sizeof(*clki), GFP_KERNEL); in ufshcd_parse_clock_info()
87 if (!clki) { in ufshcd_parse_clock_info()
92 clki->min_freq = clkfreq[i]; in ufshcd_parse_clock_info()
93 clki->max_freq = clkfreq[i+1]; in ufshcd_parse_clock_info()
94 clki->name = devm_kstrdup(dev, name, GFP_KERNEL); in ufshcd_parse_clock_info()
95 if (!clki->name) { in ufshcd_parse_clock_info()
101 clki->keep_link_active = true; in ufshcd_parse_clock_info()
103 clki->min_freq, clki->max_freq, clki->name); in ufshcd_parse_clock_info()
104 list_add_tail(&clki->list, &hba->clk_list_head); in ufshcd_parse_clock_info()
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()
Dufshcd.c434 struct ufs_clk_info *clki; in ufshcd_print_clk_freqs() local
440 list_for_each_entry(clki, head, list) { in ufshcd_print_clk_freqs()
441 if (!IS_ERR_OR_NULL(clki->clk) && clki->min_freq && in ufshcd_print_clk_freqs()
442 clki->max_freq) in ufshcd_print_clk_freqs()
444 clki->name, clki->curr_freq); in ufshcd_print_clk_freqs()
983 struct ufs_clk_info *clki; in ufshcd_set_clk_freq() local
989 list_for_each_entry(clki, head, list) { in ufshcd_set_clk_freq()
990 if (!IS_ERR_OR_NULL(clki->clk)) { in ufshcd_set_clk_freq()
991 if (scale_up && clki->max_freq) { in ufshcd_set_clk_freq()
992 if (clki->curr_freq == clki->max_freq) in ufshcd_set_clk_freq()
[all …]
Dufs-qcom.c396 struct ufs_clk_info *clki; in ufs_qcom_cfg_timers() local
436 list_for_each_entry(clki, &hba->clk_list_head, list) { in ufs_qcom_cfg_timers()
437 if (!strcmp(clki->name, "core_clk")) in ufs_qcom_cfg_timers()
438 core_clk_rate = clk_get_rate(clki->clk); in ufs_qcom_cfg_timers()
988 struct ufs_clk_info *clki; in ufs_qcom_init() local
1082 list_for_each_entry(clki, &hba->clk_list_head, list) { in ufs_qcom_init()
1083 if (!strcmp(clki->name, "core_clk_unipro")) in ufs_qcom_init()
1084 clki->keep_link_active = true; in ufs_qcom_init()
Dufs-exynos.c262 struct ufs_clk_info *clki; in exynos_ufs_get_clk_info() local
271 list_for_each_entry(clki, head, list) { in exynos_ufs_get_clk_info()
272 if (!IS_ERR(clki->clk)) { in exynos_ufs_get_clk_info()
273 if (!strcmp(clki->name, "core_clk")) in exynos_ufs_get_clk_info()
274 ufs->clk_hci_core = clki->clk; in exynos_ufs_get_clk_info()
275 else if (!strcmp(clki->name, "sclk_unipro_main")) in exynos_ufs_get_clk_info()
276 ufs->clk_unipro_main = clki->clk; in exynos_ufs_get_clk_info()
/drivers/iio/adc/
Dmcp3911.c53 struct clk *clki; member
239 if (adc->clki) { in mcp3911_config()
281 adc->clki = devm_clk_get(&adc->spi->dev, NULL); in mcp3911_probe()
282 if (IS_ERR(adc->clki)) { in mcp3911_probe()
283 if (PTR_ERR(adc->clki) == -ENOENT) { in mcp3911_probe()
284 adc->clki = NULL; in mcp3911_probe()
288 PTR_ERR(adc->clki)); in mcp3911_probe()
289 ret = PTR_ERR(adc->clki); in mcp3911_probe()
293 ret = clk_prepare_enable(adc->clki); in mcp3911_probe()
322 clk_disable_unprepare(adc->clki); in mcp3911_probe()
[all …]