Lines Matching refs:pd

212 static struct bfq_group *pd_to_bfqg(struct blkg_policy_data *pd)  in pd_to_bfqg()  argument
214 return pd ? container_of(pd, struct bfq_group, pd) : NULL; in pd_to_bfqg()
219 return pd_to_blkg(&bfqg->pd); in bfqg_to_blkg()
406 return cpd ? container_of(cpd, struct bfq_group_data, pd) : NULL; in cpd_to_bfqgd()
421 return &bgd->pd; in bfq_cpd_alloc()
452 return &bfqg->pd; in bfq_pd_alloc()
455 static void bfq_pd_init(struct blkg_policy_data *pd) in bfq_pd_init() argument
457 struct blkcg_gq *blkg = pd_to_blkg(pd); in bfq_pd_init()
474 static void bfq_pd_free(struct blkg_policy_data *pd) in bfq_pd_free() argument
476 struct bfq_group *bfqg = pd_to_bfqg(pd); in bfq_pd_free()
482 static void bfq_pd_reset_stats(struct blkg_policy_data *pd) in bfq_pd_reset_stats() argument
484 struct bfq_group *bfqg = pd_to_bfqg(pd); in bfq_pd_reset_stats()
770 static void bfq_pd_offline(struct blkg_policy_data *pd) in bfq_pd_offline() argument
773 struct bfq_group *bfqg = pd_to_bfqg(pd); in bfq_pd_offline()
937 struct blkg_policy_data *pd, int off) in bfqg_prfill_stat_recursive() argument
939 u64 sum = blkg_stat_recursive_sum(pd_to_blkg(pd), in bfqg_prfill_stat_recursive()
941 return __blkg_prfill_u64(sf, pd, sum); in bfqg_prfill_stat_recursive()
945 struct blkg_policy_data *pd, int off) in bfqg_prfill_rwstat_recursive() argument
947 struct blkg_rwstat sum = blkg_rwstat_recursive_sum(pd_to_blkg(pd), in bfqg_prfill_rwstat_recursive()
950 return __blkg_prfill_rwstat(sf, pd, &sum); in bfqg_prfill_rwstat_recursive()
969 static u64 bfqg_prfill_sectors(struct seq_file *sf, struct blkg_policy_data *pd, in bfqg_prfill_sectors() argument
972 u64 sum = blkg_rwstat_total(&pd->blkg->stat_bytes); in bfqg_prfill_sectors()
974 return __blkg_prfill_u64(sf, pd, sum >> 9); in bfqg_prfill_sectors()
985 struct blkg_policy_data *pd, int off) in bfqg_prfill_sectors_recursive() argument
987 struct blkg_rwstat tmp = blkg_rwstat_recursive_sum(pd->blkg, NULL, in bfqg_prfill_sectors_recursive()
992 return __blkg_prfill_u64(sf, pd, sum >> 9); in bfqg_prfill_sectors_recursive()
1004 struct blkg_policy_data *pd, int off) in bfqg_prfill_avg_queue_size() argument
1006 struct bfq_group *bfqg = pd_to_bfqg(pd); in bfqg_prfill_avg_queue_size()
1014 __blkg_prfill_u64(sf, pd, v); in bfqg_prfill_avg_queue_size()