Lines Matching refs:ctx
22 static struct key *check_cached_key(struct keyring_search_context *ctx)
28 ctx->match_data.cmp(key, &ctx->match_data) &&
369 static int construct_alloc_key(struct keyring_search_context *ctx,
382 ctx->index_key.type->name, ctx->index_key.description);
389 if (ctx->index_key.type->read)
391 if (ctx->index_key.type == &key_type_keyring ||
392 ctx->index_key.type->update)
395 key = key_alloc(ctx->index_key.type, ctx->index_key.description,
396 ctx->cred->fsuid, ctx->cred->fsgid, ctx->cred,
422 key_ref = search_process_keyrings_rcu(ctx);
489 static struct key *construct_key_and_link(struct keyring_search_context *ctx,
502 if (ctx->index_key.type == &key_type_keyring)
515 ret = construct_alloc_key(ctx, dest_keyring, flags, user, &key);
583 struct keyring_search_context ctx = {
601 ctx.index_key.type->name, ctx.index_key.description,
605 ret = type->match_preparse(&ctx.match_data);
612 key = check_cached_key(&ctx);
618 key_ref = search_process_keyrings_rcu(&ctx);
653 key = construct_key_and_link(&ctx, callout_info, callout_len,
659 type->match_free(&ctx.match_data);
786 struct keyring_search_context ctx = {
803 key = check_cached_key(&ctx);
808 key_ref = search_process_keyrings_rcu(&ctx);