Searched refs:pd (Results 1 – 9 of 9) sorted by relevance
/block/ |
D | blk-ioprio.c | 54 struct blkg_policy_data pd; member 67 static inline struct ioprio_blkg *pd_to_ioprio(struct blkg_policy_data *pd) in pd_to_ioprio() argument 69 return pd ? container_of(pd, struct ioprio_blkg, pd) : NULL; in pd_to_ioprio() 86 struct blkg_policy_data *pd = blkg_to_pd(bio->bi_blkg, &ioprio_policy); in ioprio_blkcg_from_bio() local 88 if (!pd) in ioprio_blkcg_from_bio() 91 return blkcg_to_ioprio_blkcg(pd->blkg->blkcg); in ioprio_blkcg_from_bio() 128 return &ioprio_blkg->pd; in ioprio_alloc_pd() 131 static void ioprio_free_pd(struct blkg_policy_data *pd) in ioprio_free_pd() argument 133 struct ioprio_blkg *ioprio_blkg = pd_to_ioprio(pd); in ioprio_free_pd()
|
D | bfq-cgroup.c | 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() [all …]
|
D | blk-cgroup.c | 81 if (blkg->pd[i]) in blkg_free() 82 blkcg_policy[i]->pd_free_fn(blkg->pd[i]); in blkg_free() 182 struct blkg_policy_data *pd; in blkg_alloc() local 188 pd = pol->pd_alloc_fn(gfp_mask, q, blkcg); in blkg_alloc() 189 if (!pd) in blkg_alloc() 192 blkg->pd[i] = pd; in blkg_alloc() 193 pd->blkg = blkg; in blkg_alloc() 194 pd->plid = i; in blkg_alloc() 278 if (blkg->pd[i] && pol->pd_init_fn) in blkg_create() 279 pol->pd_init_fn(blkg->pd[i]); in blkg_create() [all …]
|
D | blk-cgroup-rwstat.c | 42 u64 __blkg_prfill_rwstat(struct seq_file *sf, struct blkg_policy_data *pd, in __blkg_prfill_rwstat() argument 52 const char *dname = blkg_dev_name(pd->blkg); in __blkg_prfill_rwstat() 79 u64 blkg_prfill_rwstat(struct seq_file *sf, struct blkg_policy_data *pd, in blkg_prfill_rwstat() argument 84 blkg_rwstat_read((void *)pd + off, &rwstat); in blkg_prfill_rwstat() 85 return __blkg_prfill_rwstat(sf, pd, &rwstat); in blkg_prfill_rwstat()
|
D | blk-iolatency.c | 139 struct blkg_policy_data pd; member 182 static inline struct iolatency_grp *pd_to_lat(struct blkg_policy_data *pd) in pd_to_lat() argument 184 return pd ? container_of(pd, struct iolatency_grp, pd) : NULL; in pd_to_lat() 194 return pd_to_blkg(&iolat->pd); in lat_to_blkg() 889 struct blkg_policy_data *pd, int off) in iolatency_prfill_limit() argument 891 struct iolatency_grp *iolat = pd_to_lat(pd); in iolatency_prfill_limit() 892 const char *dname = blkg_dev_name(pd->blkg); in iolatency_prfill_limit() 935 static bool iolatency_pd_stat(struct blkg_policy_data *pd, struct seq_file *s) in iolatency_pd_stat() argument 937 struct iolatency_grp *iolat = pd_to_lat(pd); in iolatency_pd_stat() 973 return &iolat->pd; in iolatency_pd_alloc() [all …]
|
D | blk-throttle.c | 109 struct blkg_policy_data pd; member 234 static inline struct throtl_grp *pd_to_tg(struct blkg_policy_data *pd) in pd_to_tg() argument 236 return pd ? container_of(pd, struct throtl_grp, pd) : NULL; in pd_to_tg() 246 return pd_to_blkg(&tg->pd); in tg_to_blkg() 530 return &tg->pd; in throtl_pd_alloc() 539 static void throtl_pd_init(struct blkg_policy_data *pd) in throtl_pd_init() argument 541 struct throtl_grp *tg = pd_to_tg(pd); in throtl_pd_init() 583 static void throtl_pd_online(struct blkg_policy_data *pd) in throtl_pd_online() argument 585 struct throtl_grp *tg = pd_to_tg(pd); in throtl_pd_online() 621 static void throtl_pd_offline(struct blkg_policy_data *pd) in throtl_pd_offline() argument [all …]
|
D | blk-iocost.c | 463 struct blkg_policy_data pd; member 685 static struct ioc_gq *pd_to_iocg(struct blkg_policy_data *pd) in pd_to_iocg() argument 687 return pd ? container_of(pd, struct ioc_gq, pd) : NULL; in pd_to_iocg() 697 return pd_to_blkg(&iocg->pd); in iocg_to_blkg() 2963 return &iocg->pd; in ioc_pd_alloc() 2966 static void ioc_pd_init(struct blkg_policy_data *pd) in ioc_pd_init() argument 2968 struct ioc_gq *iocg = pd_to_iocg(pd); in ioc_pd_init() 2969 struct blkcg_gq *blkg = pd_to_blkg(&iocg->pd); in ioc_pd_init() 3003 static void ioc_pd_free(struct blkg_policy_data *pd) in ioc_pd_free() argument 3005 struct ioc_gq *iocg = pd_to_iocg(pd); in ioc_pd_free() [all …]
|
D | blk-cgroup-rwstat.h | 44 u64 __blkg_prfill_rwstat(struct seq_file *sf, struct blkg_policy_data *pd, 46 u64 blkg_prfill_rwstat(struct seq_file *sf, struct blkg_policy_data *pd,
|
D | bfq-iosched.h | 883 struct blkcg_policy_data pd; member 922 struct blkg_policy_data pd; member
|