Lines Matching refs:clki

33 	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()
225 struct ufs_clk_info *clki; in ufshcd_parse_clock_min_max_freq() local
230 list_for_each_entry(clki, head, list) { in ufshcd_parse_clock_min_max_freq()
231 if (!clki->name) in ufshcd_parse_clock_min_max_freq()
234 clki->clk = devm_clk_get(hba->dev, clki->name); in ufshcd_parse_clock_min_max_freq()
235 if (IS_ERR(clki->clk)) in ufshcd_parse_clock_min_max_freq()
245 clki->max_freq = dev_pm_opp_get_freq_indexed(opp, idx); in ufshcd_parse_clock_min_max_freq()
255 clki->min_freq = dev_pm_opp_get_freq_indexed(opp, idx++); in ufshcd_parse_clock_min_max_freq()
267 struct ufs_clk_info *clki; in ufshcd_parse_operating_points() local
301 clki = devm_kzalloc(dev, sizeof(*clki), GFP_KERNEL); in ufshcd_parse_operating_points()
302 if (!clki) in ufshcd_parse_operating_points()
305 clki->name = devm_kstrdup(dev, clk_names[i], GFP_KERNEL); in ufshcd_parse_operating_points()
306 if (!clki->name) in ufshcd_parse_operating_points()
310 clki->keep_link_active = true; in ufshcd_parse_operating_points()
312 list_add_tail(&clki->list, &hba->clk_list_head); in ufshcd_parse_operating_points()