Lines Matching refs:pd
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()
292 if (blkg->pd[i] && pol->pd_online_fn) in blkg_create()
293 pol->pd_online_fn(blkg->pd[i]); in blkg_create()
393 if (blkg->pd[i] && pol->pd_offline_fn) in blkg_destroy()
394 pol->pd_offline_fn(blkg->pd[i]); in blkg_destroy()
493 if (blkg->pd[i] && pol->pd_reset_stats_fn) in blkcg_reset_stats()
494 pol->pd_reset_stats_fn(blkg->pd[i]); in blkcg_reset_stats()
541 total += prfill(sf, blkg->pd[pol->plid], data); in blkcg_print_blkgs()
559 u64 __blkg_prfill_u64(struct seq_file *sf, struct blkg_policy_data *pd, u64 v) in __blkg_prfill_u64() argument
561 const char *dname = blkg_dev_name(pd->blkg); in __blkg_prfill_u64()
945 if (!blkg->pd[i] || !pol->pd_stat_fn) in blkcg_print_one_stat()
948 if (pol->pd_stat_fn(blkg->pd[i], s)) in blkcg_print_one_stat()
1330 struct blkg_policy_data *pd; in blkcg_activate_policy() local
1332 if (blkg->pd[pol->plid]) in blkcg_activate_policy()
1337 pd = pd_prealloc; in blkcg_activate_policy()
1340 pd = pol->pd_alloc_fn(GFP_NOWAIT | __GFP_NOWARN, q, in blkcg_activate_policy()
1344 if (!pd) { in blkcg_activate_policy()
1366 blkg->pd[pol->plid] = pd; in blkcg_activate_policy()
1367 pd->blkg = blkg; in blkcg_activate_policy()
1368 pd->plid = pol->plid; in blkcg_activate_policy()
1374 pol->pd_init_fn(blkg->pd[pol->plid]); in blkcg_activate_policy()
1378 pol->pd_online_fn(blkg->pd[pol->plid]); in blkcg_activate_policy()
1400 if (blkg->pd[pol->plid]) { in blkcg_activate_policy()
1401 pol->pd_free_fn(blkg->pd[pol->plid]); in blkcg_activate_policy()
1402 blkg->pd[pol->plid] = NULL; in blkcg_activate_policy()
1439 if (blkg->pd[pol->plid]) { in blkcg_deactivate_policy()
1441 pol->pd_offline_fn(blkg->pd[pol->plid]); in blkcg_deactivate_policy()
1442 pol->pd_free_fn(blkg->pd[pol->plid]); in blkcg_deactivate_policy()
1443 blkg->pd[pol->plid] = NULL; in blkcg_deactivate_policy()