Lines Matching refs:LIMIT_LOW
103 LIMIT_LOW, enumerator
311 if (ret == 0 && td->limit_index == LIMIT_LOW) { in tg_bps_limit()
320 if (td->limit_index == LIMIT_MAX && tg->bps[rw][LIMIT_LOW] && in tg_bps_limit()
321 tg->bps[rw][LIMIT_LOW] != tg->bps[rw][LIMIT_MAX]) { in tg_bps_limit()
324 adjusted = throtl_adjusted_limit(tg->bps[rw][LIMIT_LOW], td); in tg_bps_limit()
341 if (ret == 0 && tg->td->limit_index == LIMIT_LOW) { in tg_iops_limit()
350 if (td->limit_index == LIMIT_MAX && tg->iops[rw][LIMIT_LOW] && in tg_iops_limit()
351 tg->iops[rw][LIMIT_LOW] != tg->iops[rw][LIMIT_MAX]) { in tg_iops_limit()
354 adjusted = throtl_adjusted_limit(tg->iops[rw][LIMIT_LOW], td); in tg_iops_limit()
604 if (tg->bps[READ][LIMIT_LOW] || tg->bps[WRITE][LIMIT_LOW] || in blk_throtl_update_limit_valid()
605 tg->iops[READ][LIMIT_LOW] || tg->iops[WRITE][LIMIT_LOW]) { in blk_throtl_update_limit_valid()
612 td->limit_valid[LIMIT_LOW] = low_valid; in blk_throtl_update_limit_valid()
620 tg->bps[READ][LIMIT_LOW] = 0; in throtl_pd_offline()
621 tg->bps[WRITE][LIMIT_LOW] = 0; in throtl_pd_offline()
622 tg->iops[READ][LIMIT_LOW] = 0; in throtl_pd_offline()
623 tg->iops[WRITE][LIMIT_LOW] = 0; in throtl_pd_offline()
1621 if (off == LIMIT_LOW) { in tg_prfill_limit()
1633 (off != LIMIT_LOW || in tg_prfill_limit()
1650 if (off == LIMIT_LOW) { in tg_prfill_limit()
1736 else if (off == LIMIT_LOW && !strcmp(tok, "idle")) in tg_set_limit()
1738 else if (off == LIMIT_LOW && !strcmp(tok, "latency")) in tg_set_limit()
1755 tg->bps[READ][LIMIT_LOW] = min(tg->bps_conf[READ][LIMIT_LOW], in tg_set_limit()
1757 tg->bps[WRITE][LIMIT_LOW] = min(tg->bps_conf[WRITE][LIMIT_LOW], in tg_set_limit()
1759 tg->iops[READ][LIMIT_LOW] = min(tg->iops_conf[READ][LIMIT_LOW], in tg_set_limit()
1761 tg->iops[WRITE][LIMIT_LOW] = min(tg->iops_conf[WRITE][LIMIT_LOW], in tg_set_limit()
1767 if (!(tg->bps[READ][LIMIT_LOW] || tg->iops[READ][LIMIT_LOW] || in tg_set_limit()
1768 tg->bps[WRITE][LIMIT_LOW] || tg->iops[WRITE][LIMIT_LOW]) || in tg_set_limit()
1771 tg->bps[READ][LIMIT_LOW] = 0; in tg_set_limit()
1772 tg->bps[WRITE][LIMIT_LOW] = 0; in tg_set_limit()
1773 tg->iops[READ][LIMIT_LOW] = 0; in tg_set_limit()
1774 tg->iops[WRITE][LIMIT_LOW] = 0; in tg_set_limit()
1777 } else if (index == LIMIT_LOW) { in tg_set_limit()
1783 if (tg->td->limit_valid[LIMIT_LOW]) { in tg_set_limit()
1784 if (index == LIMIT_LOW) in tg_set_limit()
1785 tg->td->limit_index = LIMIT_LOW; in tg_set_limit()
1788 tg_conf_updated(tg, index == LIMIT_LOW && in tg_set_limit()
1789 tg->td->limit_valid[LIMIT_LOW]); in tg_set_limit()
1804 .private = LIMIT_LOW,
1839 if (tg->bps[READ][LIMIT_LOW] || tg->iops[READ][LIMIT_LOW]) in __tg_last_low_overflow_time()
1841 if (tg->bps[WRITE][LIMIT_LOW] || tg->iops[WRITE][LIMIT_LOW]) in __tg_last_low_overflow_time()
1863 if (!parent->bps[READ][LIMIT_LOW] && in tg_last_low_overflow_time()
1864 !parent->iops[READ][LIMIT_LOW] && in tg_last_low_overflow_time()
1865 !parent->bps[WRITE][LIMIT_LOW] && in tg_last_low_overflow_time()
1866 !parent->iops[WRITE][LIMIT_LOW]) in tg_last_low_overflow_time()
1909 read_limit = tg->bps[READ][LIMIT_LOW] || tg->iops[READ][LIMIT_LOW]; in throtl_tg_can_upgrade()
1910 write_limit = tg->bps[WRITE][LIMIT_LOW] || tg->iops[WRITE][LIMIT_LOW]; in throtl_tg_can_upgrade()
1945 if (td->limit_index != LIMIT_LOW) in throtl_can_upgrade()
1972 if (tg->td->limit_index != LIMIT_LOW) in throtl_upgrade_check()
2022 td->limit_index = LIMIT_LOW; in throtl_downgrade_state()
2064 !tg->td->limit_valid[LIMIT_LOW]) in throtl_downgrade_check()
2078 if (tg->bps[READ][LIMIT_LOW]) { in throtl_downgrade_check()
2081 if (bps >= tg->bps[READ][LIMIT_LOW]) in throtl_downgrade_check()
2085 if (tg->bps[WRITE][LIMIT_LOW]) { in throtl_downgrade_check()
2088 if (bps >= tg->bps[WRITE][LIMIT_LOW]) in throtl_downgrade_check()
2092 if (tg->iops[READ][LIMIT_LOW]) { in throtl_downgrade_check()
2095 if (iops >= tg->iops[READ][LIMIT_LOW]) in throtl_downgrade_check()
2099 if (tg->iops[WRITE][LIMIT_LOW]) { in throtl_downgrade_check()
2102 if (iops >= tg->iops[WRITE][LIMIT_LOW]) in throtl_downgrade_check()
2144 if (!blk_queue_nonrot(td->queue) || !td->limit_valid[LIMIT_LOW]) in throtl_update_latency_buckets()
2365 if (!td || td->limit_index != LIMIT_LOW || in throtl_track_latency()
2401 if (!tg->td->limit_valid[LIMIT_LOW]) in blk_throtl_bio_endio()