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()
490 return cpd ? container_of(cpd, struct bfq_group_data, pd) : NULL; in cpd_to_bfqgd()
505 return &bgd->pd; in bfq_cpd_alloc()
537 return &bfqg->pd; in bfq_pd_alloc()
540 static void bfq_pd_init(struct blkg_policy_data *pd) in bfq_pd_init() argument
542 struct blkcg_gq *blkg = pd_to_blkg(pd); in bfq_pd_init()
560 static void bfq_pd_free(struct blkg_policy_data *pd) in bfq_pd_free() argument
562 struct bfq_group *bfqg = pd_to_bfqg(pd); in bfq_pd_free()
568 static void bfq_pd_reset_stats(struct blkg_policy_data *pd) in bfq_pd_reset_stats() argument
570 struct bfq_group *bfqg = pd_to_bfqg(pd); in bfq_pd_reset_stats()
907 static void bfq_pd_offline(struct blkg_policy_data *pd) in bfq_pd_offline() argument
910 struct bfq_group *bfqg = pd_to_bfqg(pd); in bfq_pd_offline()
999 struct blkg_policy_data *pd, int off) in bfqg_prfill_weight_device() argument
1001 struct bfq_group *bfqg = pd_to_bfqg(pd); in bfqg_prfill_weight_device()
1005 return __blkg_prfill_u64(sf, pd, bfqg->entity.dev_weight); in bfqg_prfill_weight_device()
1144 struct blkg_policy_data *pd, int off) in bfqg_prfill_rwstat_recursive() argument
1148 blkg_rwstat_recursive_sum(pd_to_blkg(pd), &blkcg_policy_bfq, off, &sum); in bfqg_prfill_rwstat_recursive()
1149 return __blkg_prfill_rwstat(sf, pd, &sum); in bfqg_prfill_rwstat_recursive()
1169 struct blkg_policy_data *pd, int off) in bfqg_prfill_stat_recursive() argument
1171 struct blkcg_gq *blkg = pd_to_blkg(pd); in bfqg_prfill_stat_recursive()
1190 return __blkg_prfill_u64(sf, pd, sum); in bfqg_prfill_stat_recursive()
1201 static u64 bfqg_prfill_sectors(struct seq_file *sf, struct blkg_policy_data *pd, in bfqg_prfill_sectors() argument
1204 struct bfq_group *bfqg = blkg_to_bfqg(pd->blkg); in bfqg_prfill_sectors()
1207 return __blkg_prfill_u64(sf, pd, sum >> 9); in bfqg_prfill_sectors()
1218 struct blkg_policy_data *pd, int off) in bfqg_prfill_sectors_recursive() argument
1222 blkg_rwstat_recursive_sum(pd->blkg, &blkcg_policy_bfq, in bfqg_prfill_sectors_recursive()
1225 return __blkg_prfill_u64(sf, pd, in bfqg_prfill_sectors_recursive()
1238 struct blkg_policy_data *pd, int off) in bfqg_prfill_avg_queue_size() argument
1240 struct bfq_group *bfqg = pd_to_bfqg(pd); in bfqg_prfill_avg_queue_size()
1248 __blkg_prfill_u64(sf, pd, v); in bfqg_prfill_avg_queue_size()