Lines Matching defs:scaling

976  * @scale_up: True if scaling up and false if scaling down
1006 * ufshcd_is_devfreq_scaling_required - check if scaling is required or not
1008 * @scale_up: True if scaling up and false if scaling down
1010 * Returns true if scaling is required, false otherwise.
1100 * @scale_up: True for scaling up gear and false for scaling down
1103 * Returns -EBUSY if scaling can't happen at this time
1149 * clock scaling is in progress
1171 * @scale_up: True for scaling up and false for scalin down
1174 * Returns -EBUSY if scaling can't happen at this time
1181 /* let's not get into low power until clock scaling is completed */
1188 /* scale down the gear before scaling down clocks */
1202 /* scale up the gear after scaling up clocks */
1345 struct ufs_clk_scaling *scaling = &hba->clk_scaling;
1358 if (!scaling->window_start_t)
1368 if (scaling->is_busy_started)
1369 scaling->tot_busy_t += ktime_us_delta(curr_t,
1370 scaling->busy_start_t);
1372 stat->total_time = ktime_us_delta(curr_t, scaling->window_start_t);
1373 stat->busy_time = scaling->tot_busy_t;
1375 scaling->window_start_t = curr_t;
1376 scaling->tot_busy_t = 0;
1379 scaling->busy_start_t = curr_t;
1380 scaling->is_busy_started = true;
1382 scaling->busy_start_t = 0;
1383 scaling->is_busy_started = false;
1942 struct ufs_clk_scaling *scaling = &hba->clk_scaling;
1947 if (!hba->outstanding_reqs && scaling->is_busy_started) {
1948 scaling->tot_busy_t += ktime_to_us(ktime_sub(ktime_get(),
1949 scaling->busy_start_t));
1950 scaling->busy_start_t = 0;
1951 scaling->is_busy_started = false;
5869 * Hold the scaling lock just in case dev cmds
9095 * that use dev_get_drvdata() (frequency scaling, clock scaling, hwmon,