Lines Matching refs:clki
467 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
1226 list_for_each_entry(clki, head, list) { in ufs_qcom_set_core_clk_ctrl()
1227 if (!IS_ERR_OR_NULL(clki->clk) && in ufs_qcom_set_core_clk_ctrl()
1228 !strcmp(clki->name, "core_clk_unipro")) { in ufs_qcom_set_core_clk_ctrl()
1229 if (!clki->max_freq) in ufs_qcom_set_core_clk_ctrl()
1232 cycles_in_1us = ceil(clki->max_freq, (1000 * 1000)); in ufs_qcom_set_core_clk_ctrl()
1234 cycles_in_1us = ceil(clk_get_rate(clki->clk), (1000 * 1000)); in ufs_qcom_set_core_clk_ctrl()