Lines Matching refs:blkg
289 static struct bfq_group *blkg_to_bfqg(struct blkcg_gq *blkg) in blkg_to_bfqg() argument
291 return pd_to_bfqg(blkg_to_pd(blkg, &blkcg_policy_bfq)); in blkg_to_bfqg()
525 struct blkcg_gq *blkg = pd_to_blkg(pd); in bfq_pd_init() local
526 struct bfq_group *bfqg = blkg_to_bfqg(blkg); in bfq_pd_init()
527 struct bfq_data *bfqd = blkg->q->elevator->elevator_data; in bfq_pd_init()
529 struct bfq_group_data *d = blkcg_to_bfqgd(blkg->blkcg); in bfq_pd_init()
570 struct blkcg_gq *blkg; in bfq_lookup_bfqg() local
572 blkg = blkg_lookup(blkcg, bfqd->queue); in bfq_lookup_bfqg()
573 if (likely(blkg)) in bfq_lookup_bfqg()
574 return blkg_to_bfqg(blkg); in bfq_lookup_bfqg()
898 struct blkcg_gq *blkg; in bfq_end_wr_async() local
900 list_for_each_entry(blkg, &bfqd->queue->blkg_list, q_node) { in bfq_end_wr_async()
901 struct bfq_group *bfqg = blkg_to_bfqg(blkg); in bfq_end_wr_async()
982 struct blkcg_gq *blkg; in bfq_io_set_weight_legacy() local
991 hlist_for_each_entry(blkg, &blkcg->blkg_list, blkcg_node) { in bfq_io_set_weight_legacy()
992 struct bfq_group *bfqg = blkg_to_bfqg(blkg); in bfq_io_set_weight_legacy()
1028 bfqg = blkg_to_bfqg(ctx.blkg); in bfq_io_set_device_weight()
1078 struct blkcg_gq *blkg = pd_to_blkg(pd); in bfqg_prfill_stat_recursive() local
1083 lockdep_assert_held(&blkg->q->queue_lock); in bfqg_prfill_stat_recursive()
1086 blkg_for_each_descendant_pre(pos_blkg, pos_css, blkg) { in bfqg_prfill_stat_recursive()
1128 u64 sum = blkg_rwstat_total(&pd->blkg->stat_bytes); in bfqg_prfill_sectors()
1145 blkg_rwstat_recursive_sum(pd->blkg, NULL, in bfqg_prfill_sectors_recursive()