Lines Matching refs:ctx
1450 struct iocg_wake_ctx *ctx = (struct iocg_wake_ctx *)key; in iocg_wake_fn() local
1451 u64 cost = abs_cost_to_cost(wait->abs_cost, ctx->hw_inuse); in iocg_wake_fn()
1453 ctx->vbudget -= cost; in iocg_wake_fn()
1455 if (ctx->vbudget < 0) in iocg_wake_fn()
1458 iocg_commit_bio(ctx->iocg, wait->bio, wait->abs_cost, cost); in iocg_wake_fn()
1482 struct iocg_wake_ctx ctx = { .iocg = iocg }; in iocg_kick_waitq() local
1525 ctx.vbudget = vbudget; in iocg_kick_waitq()
1526 current_hweight(iocg, NULL, &ctx.hw_inuse); in iocg_kick_waitq()
1528 __wake_up_locked_key(&iocg->waitq, TASK_NORMAL, &ctx); in iocg_kick_waitq()
1541 if (WARN_ON_ONCE(ctx.vbudget >= 0)) in iocg_kick_waitq()
1545 vshortage = -ctx.vbudget; in iocg_kick_waitq()
3084 struct blkg_conf_ctx ctx; in ioc_weight_write() local
3116 ret = blkg_conf_prep(blkcg, &blkcg_policy_iocost, buf, &ctx); in ioc_weight_write()
3120 iocg = blkg_to_iocg(ctx.blkg); in ioc_weight_write()
3122 if (!strncmp(ctx.body, "default", 7)) { in ioc_weight_write()
3125 if (!sscanf(ctx.body, "%u", &v)) in ioc_weight_write()
3137 blkg_conf_finish(&ctx); in ioc_weight_write()
3141 blkg_conf_finish(&ctx); in ioc_weight_write()