Lines Matching refs:throtl_grp

44 #define rb_entry_tg(node)	rb_entry((node), struct throtl_grp, rb_node)
92 static inline struct blkcg_gq *tg_to_blkg(struct throtl_grp *tg) in tg_to_blkg()
104 static struct throtl_grp *sq_to_tg(struct throtl_service_queue *sq) in sq_to_tg()
107 return container_of(sq, struct throtl_grp, service_queue); in sq_to_tg()
121 struct throtl_grp *tg = sq_to_tg(sq); in sq_to_td()
147 static uint64_t tg_bps_limit(struct throtl_grp *tg, int rw) in tg_bps_limit()
177 static unsigned int tg_iops_limit(struct throtl_grp *tg, int rw) in tg_iops_limit()
222 struct throtl_grp *__tg = sq_to_tg((sq)); \
244 static void throtl_qnode_init(struct throtl_qnode *qn, struct throtl_grp *tg) in throtl_qnode_init()
304 struct throtl_grp **tg_to_put) in throtl_pop_queued()
341 struct throtl_grp *tg; in throtl_pd_alloc()
388 struct throtl_grp *tg = pd_to_tg(pd); in throtl_pd_init()
418 static void tg_update_has_rules(struct throtl_grp *tg) in tg_update_has_rules()
420 struct throtl_grp *parent_tg = sq_to_tg(tg->service_queue.parent_sq); in tg_update_has_rules()
438 struct throtl_grp *tg = pd_to_tg(pd); in throtl_pd_online()
455 struct throtl_grp *tg = blkg_to_tg(blkg); in blk_throtl_update_limit_valid()
476 struct throtl_grp *tg = pd_to_tg(pd); in throtl_pd_offline()
491 struct throtl_grp *tg = pd_to_tg(pd); in throtl_pd_free()
499 static struct throtl_grp *
520 struct throtl_grp *tg; in update_min_dispatch_time()
529 static void tg_service_queue_add(struct throtl_grp *tg) in tg_service_queue_add()
534 struct throtl_grp *__tg; in tg_service_queue_add()
555 static void throtl_enqueue_tg(struct throtl_grp *tg) in throtl_enqueue_tg()
564 static void throtl_dequeue_tg(struct throtl_grp *tg) in throtl_dequeue_tg()
633 static inline void throtl_start_new_slice_with_credit(struct throtl_grp *tg, in throtl_start_new_slice_with_credit()
657 static inline void throtl_start_new_slice(struct throtl_grp *tg, bool rw, in throtl_start_new_slice()
675 static inline void throtl_set_slice_end(struct throtl_grp *tg, bool rw, in throtl_set_slice_end()
681 static inline void throtl_extend_slice(struct throtl_grp *tg, bool rw, in throtl_extend_slice()
692 static bool throtl_slice_used(struct throtl_grp *tg, bool rw) in throtl_slice_used()
736 static inline void throtl_trim_slice(struct throtl_grp *tg, bool rw) in throtl_trim_slice()
796 static void __tg_update_carryover(struct throtl_grp *tg, bool rw) in __tg_update_carryover()
818 static void tg_update_carryover(struct throtl_grp *tg) in tg_update_carryover()
831 static unsigned long tg_within_iops_limit(struct throtl_grp *tg, struct bio *bio, in tg_within_iops_limit()
856 static unsigned long tg_within_bps_limit(struct throtl_grp *tg, struct bio *bio, in tg_within_bps_limit()
901 static bool tg_may_dispatch(struct throtl_grp *tg, struct bio *bio, in tg_may_dispatch()
961 static void throtl_charge_bio(struct throtl_grp *tg, struct bio *bio) in throtl_charge_bio()
986 struct throtl_grp *tg) in throtl_add_bio_tg()
1009 static void tg_update_disptime(struct throtl_grp *tg) in tg_update_disptime()
1035 static void start_parent_slice_with_credit(struct throtl_grp *child_tg, in start_parent_slice_with_credit()
1036 struct throtl_grp *parent_tg, bool rw) in start_parent_slice_with_credit()
1045 static void tg_dispatch_one_bio(struct throtl_grp *tg, bool rw) in tg_dispatch_one_bio()
1049 struct throtl_grp *parent_tg = sq_to_tg(parent_sq); in tg_dispatch_one_bio()
1050 struct throtl_grp *tg_to_put = NULL; in tg_dispatch_one_bio()
1088 static int throtl_dispatch_tg(struct throtl_grp *tg) in throtl_dispatch_tg()
1126 struct throtl_grp *tg; in throtl_select_dispatch()
1155 struct throtl_grp *this_tg);
1174 struct throtl_grp *tg = sq_to_tg(sq); in throtl_pending_timer_fn()
1279 struct throtl_grp *tg = pd_to_tg(pd); in tg_prfill_conf_u64()
1290 struct throtl_grp *tg = pd_to_tg(pd); in tg_prfill_conf_uint()
1312 static void tg_conf_updated(struct throtl_grp *tg, bool global) in tg_conf_updated()
1332 struct throtl_grp *this_tg = blkg_to_tg(blkg); in tg_conf_updated()
1333 struct throtl_grp *parent_tg; in tg_conf_updated()
1373 struct throtl_grp *tg; in tg_set_conf()
1445 .private = offsetof(struct throtl_grp, bps[READ][LIMIT_MAX]),
1451 .private = offsetof(struct throtl_grp, bps[WRITE][LIMIT_MAX]),
1457 .private = offsetof(struct throtl_grp, iops[READ][LIMIT_MAX]),
1463 .private = offsetof(struct throtl_grp, iops[WRITE][LIMIT_MAX]),
1469 .private = offsetof(struct throtl_grp, stat_bytes),
1474 .private = offsetof(struct throtl_grp, stat_bytes),
1479 .private = offsetof(struct throtl_grp, stat_ios),
1484 .private = offsetof(struct throtl_grp, stat_ios),
1493 struct throtl_grp *tg = pd_to_tg(pd); in tg_prfill_limit()
1565 struct throtl_grp *tg; in tg_set_limit()
1731 struct throtl_grp *tg = blkg_to_tg(blkg); in blk_throtl_cancel_bios()
1763 static unsigned long __tg_last_low_overflow_time(struct throtl_grp *tg) in __tg_last_low_overflow_time()
1774 static unsigned long tg_last_low_overflow_time(struct throtl_grp *tg) in tg_last_low_overflow_time()
1777 struct throtl_grp *parent = tg; in tg_last_low_overflow_time()
1801 static bool throtl_tg_is_idle(struct throtl_grp *tg) in throtl_tg_is_idle()
1827 static bool throtl_low_limit_reached(struct throtl_grp *tg, int rw) in throtl_low_limit_reached()
1841 static bool throtl_tg_can_upgrade(struct throtl_grp *tg) in throtl_tg_can_upgrade()
1859 static bool throtl_hierarchy_can_upgrade(struct throtl_grp *tg) in throtl_hierarchy_can_upgrade()
1872 struct throtl_grp *this_tg) in throtl_can_upgrade()
1885 struct throtl_grp *tg = blkg_to_tg(blkg); in throtl_can_upgrade()
1900 static void throtl_upgrade_check(struct throtl_grp *tg) in throtl_upgrade_check()
1931 struct throtl_grp *tg = blkg_to_tg(blkg); in throtl_upgrade_state()
1958 static bool throtl_tg_can_downgrade(struct throtl_grp *tg) in throtl_tg_can_downgrade()
1975 static bool throtl_hierarchy_can_downgrade(struct throtl_grp *tg) in throtl_hierarchy_can_downgrade()
1992 static void throtl_downgrade_check(struct throtl_grp *tg) in throtl_downgrade_check()
2053 static void blk_throtl_update_idletime(struct throtl_grp *tg) in blk_throtl_update_idletime()
2151 static void blk_throtl_update_idletime(struct throtl_grp *tg) in blk_throtl_update_idletime()
2155 static void throtl_downgrade_check(struct throtl_grp *tg) in throtl_downgrade_check()
2159 static void throtl_upgrade_check(struct throtl_grp *tg) in throtl_upgrade_check()
2164 struct throtl_grp *this_tg) in throtl_can_upgrade()
2179 struct throtl_grp *tg = blkg_to_tg(blkg); in __blk_throtl_bio()
2314 struct throtl_grp *tg; in blk_throtl_bio_endio()