Lines Matching defs:ops
48 * Return: true if the ops is set, false otherwise.
64 * @ops: monitoring operations set to register.
71 int damon_register_ops(struct damon_operations *ops)
75 if (ops->id >= NR_DAMON_OPS)
78 /* Fail for already registered ops */
79 if (__damon_is_registered_ops(ops->id)) {
83 damon_registered_ops[ops->id] = *ops;
110 ctx->ops = damon_registered_ops[id];
452 if (ctx->ops.cleanup) {
453 ctx->ops.cleanup(ctx);
781 if (!ret || !s->quota.esz || !c->ops.get_scheme_score)
784 return c->ops.get_scheme_score(c, t, r, s) >= s->quota.min_score;
927 if (c->ops.apply_scheme) {
941 sz_applied = c->ops.apply_scheme(c, t, r, s);
1029 if (!c->ops.get_scheme_score)
1038 score = c->ops.get_scheme_score(c, t, r, s);
1235 if (!ctx->ops.target_valid)
1239 if (ctx->ops.target_valid(t))
1358 if (ctx->ops.init)
1359 ctx->ops.init(ctx);
1380 if (ctx->ops.prepare_access_checks)
1381 ctx->ops.prepare_access_checks(ctx);
1389 if (ctx->ops.check_accesses)
1390 max_nr_accesses = ctx->ops.check_accesses(ctx);
1407 if (ctx->ops.reset_aggregated)
1408 ctx->ops.reset_aggregated(ctx);
1415 if (ctx->ops.update)
1416 ctx->ops.update(ctx);
1428 if (ctx->ops.cleanup)
1429 ctx->ops.cleanup(ctx);