Lines Matching refs:pd
90 static u64 blkg_prfill_stat(struct seq_file *sf, struct blkg_policy_data *pd, in blkg_prfill_stat() argument
93 return __blkg_prfill_u64(sf, pd, bfq_stat_read((void *)pd + off)); in blkg_prfill_stat()
279 static struct bfq_group *pd_to_bfqg(struct blkg_policy_data *pd) in pd_to_bfqg() argument
281 return pd ? container_of(pd, struct bfq_group, pd) : NULL; in pd_to_bfqg()
286 return pd_to_blkg(&bfqg->pd); in bfqg_to_blkg()
492 return cpd ? container_of(cpd, struct bfq_group_data, pd) : NULL; in cpd_to_bfqgd()
507 return &bgd->pd; in bfq_cpd_alloc()
539 return &bfqg->pd; in bfq_pd_alloc()
542 static void bfq_pd_init(struct blkg_policy_data *pd) in bfq_pd_init() argument
544 struct blkcg_gq *blkg = pd_to_blkg(pd); in bfq_pd_init()
564 static void bfq_pd_free(struct blkg_policy_data *pd) in bfq_pd_free() argument
566 struct bfq_group *bfqg = pd_to_bfqg(pd); in bfq_pd_free()
572 static void bfq_pd_reset_stats(struct blkg_policy_data *pd) in bfq_pd_reset_stats() argument
574 struct bfq_group *bfqg = pd_to_bfqg(pd); in bfq_pd_reset_stats()
917 static void bfq_pd_offline(struct blkg_policy_data *pd) in bfq_pd_offline() argument
920 struct bfq_group *bfqg = pd_to_bfqg(pd); in bfq_pd_offline()
1009 struct blkg_policy_data *pd, int off) in bfqg_prfill_weight_device() argument
1011 struct bfq_group *bfqg = pd_to_bfqg(pd); in bfqg_prfill_weight_device()
1015 return __blkg_prfill_u64(sf, pd, bfqg->entity.dev_weight); in bfqg_prfill_weight_device()
1154 struct blkg_policy_data *pd, int off) in bfqg_prfill_rwstat_recursive() argument
1158 blkg_rwstat_recursive_sum(pd_to_blkg(pd), &blkcg_policy_bfq, off, &sum); in bfqg_prfill_rwstat_recursive()
1159 return __blkg_prfill_rwstat(sf, pd, &sum); in bfqg_prfill_rwstat_recursive()
1179 struct blkg_policy_data *pd, int off) in bfqg_prfill_stat_recursive() argument
1181 struct blkcg_gq *blkg = pd_to_blkg(pd); in bfqg_prfill_stat_recursive()
1200 return __blkg_prfill_u64(sf, pd, sum); in bfqg_prfill_stat_recursive()
1211 static u64 bfqg_prfill_sectors(struct seq_file *sf, struct blkg_policy_data *pd, in bfqg_prfill_sectors() argument
1214 struct bfq_group *bfqg = blkg_to_bfqg(pd->blkg); in bfqg_prfill_sectors()
1217 return __blkg_prfill_u64(sf, pd, sum >> 9); in bfqg_prfill_sectors()
1228 struct blkg_policy_data *pd, int off) in bfqg_prfill_sectors_recursive() argument
1232 blkg_rwstat_recursive_sum(pd->blkg, &blkcg_policy_bfq, in bfqg_prfill_sectors_recursive()
1235 return __blkg_prfill_u64(sf, pd, in bfqg_prfill_sectors_recursive()
1248 struct blkg_policy_data *pd, int off) in bfqg_prfill_avg_queue_size() argument
1250 struct bfq_group *bfqg = pd_to_bfqg(pd); in bfqg_prfill_avg_queue_size()
1258 __blkg_prfill_u64(sf, pd, v); in bfqg_prfill_avg_queue_size()