Lines Matching defs:scale_up
236 static int ufshcd_scale_clks(struct ufs_hba *hba, bool scale_up);
913 * @scale_up: If True, set max possible frequency othewise set low frequency
918 static int ufshcd_set_clk_freq(struct ufs_hba *hba, bool scale_up)
929 if (scale_up && clki->max_freq) {
947 } else if (!scale_up && clki->min_freq) {
976 * @scale_up: True if scaling up and false if scaling down
981 static int ufshcd_scale_clks(struct ufs_hba *hba, bool scale_up)
986 ret = ufshcd_vops_clk_scale_notify(hba, scale_up, PRE_CHANGE);
990 ret = ufshcd_set_clk_freq(hba, scale_up);
994 ret = ufshcd_vops_clk_scale_notify(hba, scale_up, POST_CHANGE);
996 ufshcd_set_clk_freq(hba, !scale_up);
1000 (scale_up ? "up" : "down"),
1008 * @scale_up: True if scaling up and false if scaling down
1013 bool scale_up)
1023 if (scale_up && clki->max_freq) {
1027 } else if (!scale_up && clki->min_freq) {
1100 * @scale_up: True for scaling up gear and false for scaling down
1106 static int ufshcd_scale_gear(struct ufs_hba *hba, bool scale_up)
1112 if (scale_up) {
1171 * @scale_up: True for scaling up and false for scalin down
1177 static int ufshcd_devfreq_scale(struct ufs_hba *hba, bool scale_up)
1189 if (!scale_up) {
1195 ret = ufshcd_scale_clks(hba, scale_up);
1197 if (!scale_up)
1203 if (scale_up) {
1213 ufshcd_wb_ctrl(hba, scale_up);
1263 bool scale_up, sched_clk_scaling_suspend_work = false;
1289 scale_up = (*freq == clki->max_freq) ? true : false;
1290 if (!scale_up)
1293 if (!ufshcd_is_devfreq_scaling_required(hba, scale_up)) {
1307 ret = ufshcd_devfreq_scale(hba, scale_up);
1311 (scale_up ? "up" : "down"),