Lines Matching refs:blkg
605 static inline struct cfq_group *blkg_to_cfqg(struct blkcg_gq *blkg) in blkg_to_cfqg() argument
607 return pd_to_cfqg(blkg_to_pd(blkg, &blkcg_policy_cfq)); in blkg_to_cfqg()
1547 static void cfq_pd_init(struct blkcg_gq *blkg) in cfq_pd_init() argument
1549 struct cfq_group *cfqg = blkg_to_cfqg(blkg); in cfq_pd_init()
1552 cfqg->weight = blkg->blkcg->cfq_weight; in cfq_pd_init()
1553 cfqg->leaf_weight = blkg->blkcg->cfq_leaf_weight; in cfq_pd_init()
1558 static void cfq_pd_offline(struct blkcg_gq *blkg) in cfq_pd_offline() argument
1566 cfqg_stats_xfer_dead(blkg_to_cfqg(blkg)); in cfq_pd_offline()
1595 static void cfq_pd_reset_stats(struct blkcg_gq *blkg) in cfq_pd_reset_stats() argument
1597 struct cfq_group *cfqg = blkg_to_cfqg(blkg); in cfq_pd_reset_stats()
1617 struct blkcg_gq *blkg; in cfq_lookup_create_cfqg() local
1619 blkg = blkg_lookup_create(blkcg, q); in cfq_lookup_create_cfqg()
1620 if (!IS_ERR(blkg)) in cfq_lookup_create_cfqg()
1621 cfqg = blkg_to_cfqg(blkg); in cfq_lookup_create_cfqg()
1700 cfqg = blkg_to_cfqg(ctx.blkg); in __cfqg_set_weight_device()
1732 struct blkcg_gq *blkg; in __cfq_set_weight() local
1744 hlist_for_each_entry(blkg, &blkcg->blkg_list, blkcg_node) { in __cfq_set_weight()
1745 struct cfq_group *cfqg = blkg_to_cfqg(blkg); in __cfq_set_weight()
4383 struct blkcg_gq *blkg __maybe_unused; in cfq_init_queue()