Lines Matching refs:blkg
171 static struct bfq_group *blkg_to_bfqg(struct blkcg_gq *blkg) in blkg_to_bfqg() argument
173 return pd_to_bfqg(blkg_to_pd(blkg, &blkcg_policy_bfq)); in blkg_to_bfqg()
431 struct blkcg_gq *blkg = pd_to_blkg(pd); in bfq_pd_init() local
432 struct bfq_group *bfqg = blkg_to_bfqg(blkg); in bfq_pd_init()
433 struct bfq_data *bfqd = blkg->q->elevator->elevator_data; in bfq_pd_init()
435 struct bfq_group_data *d = blkcg_to_bfqgd(blkg->blkcg); in bfq_pd_init()
476 struct blkcg_gq *blkg; in bfq_lookup_bfqg() local
478 blkg = blkg_lookup(blkcg, bfqd->queue); in bfq_lookup_bfqg()
479 if (likely(blkg)) in bfq_lookup_bfqg()
480 return blkg_to_bfqg(blkg); in bfq_lookup_bfqg()
804 struct blkcg_gq *blkg; in bfq_end_wr_async() local
806 list_for_each_entry(blkg, &bfqd->queue->blkg_list, q_node) { in bfq_end_wr_async()
807 struct bfq_group *bfqg = blkg_to_bfqg(blkg); in bfq_end_wr_async()
834 struct blkcg_gq *blkg; in bfq_io_set_weight_legacy() local
843 hlist_for_each_entry(blkg, &blkcg->blkg_list, blkcg_node) { in bfq_io_set_weight_legacy()
844 struct bfq_group *bfqg = blkg_to_bfqg(blkg); in bfq_io_set_weight_legacy()
945 u64 sum = blkg_rwstat_total(&pd->blkg->stat_bytes); in bfqg_prfill_sectors()
960 struct blkg_rwstat tmp = blkg_rwstat_recursive_sum(pd->blkg, NULL, in bfqg_prfill_sectors_recursive()