Lines Matching refs:ctx
30 asmlinkage void camellia_ecb_enc_32way(struct camellia_ctx *ctx, u8 *dst,
32 asmlinkage void camellia_ecb_dec_32way(struct camellia_ctx *ctx, u8 *dst,
35 asmlinkage void camellia_cbc_dec_32way(struct camellia_ctx *ctx, u8 *dst,
37 asmlinkage void camellia_ctr_32way(struct camellia_ctx *ctx, u8 *dst,
40 asmlinkage void camellia_xts_enc_32way(struct camellia_ctx *ctx, u8 *dst,
42 asmlinkage void camellia_xts_dec_32way(struct camellia_ctx *ctx, u8 *dst,
205 struct camellia_ctx *ctx; member
212 struct crypt_priv *ctx = priv; in encrypt_callback() local
215 ctx->fpu_enabled = camellia_fpu_begin(ctx->fpu_enabled, nbytes); in encrypt_callback()
218 camellia_ecb_enc_32way(ctx->ctx, srcdst, srcdst); in encrypt_callback()
224 camellia_ecb_enc_16way(ctx->ctx, srcdst, srcdst); in encrypt_callback()
230 camellia_enc_blk_2way(ctx->ctx, srcdst, srcdst); in encrypt_callback()
236 camellia_enc_blk(ctx->ctx, srcdst, srcdst); in encrypt_callback()
242 struct crypt_priv *ctx = priv; in decrypt_callback() local
245 ctx->fpu_enabled = camellia_fpu_begin(ctx->fpu_enabled, nbytes); in decrypt_callback()
248 camellia_ecb_dec_32way(ctx->ctx, srcdst, srcdst); in decrypt_callback()
254 camellia_ecb_dec_16way(ctx->ctx, srcdst, srcdst); in decrypt_callback()
260 camellia_dec_blk_2way(ctx->ctx, srcdst, srcdst); in decrypt_callback()
266 camellia_dec_blk(ctx->ctx, srcdst, srcdst); in decrypt_callback()
272 struct camellia_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_encrypt() local
275 .ctx = &ctx->camellia_ctx, in lrw_encrypt()
282 .table_ctx = &ctx->lrw_table, in lrw_encrypt()
298 struct camellia_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_decrypt() local
301 .ctx = &ctx->camellia_ctx, in lrw_decrypt()
308 .table_ctx = &ctx->lrw_table, in lrw_decrypt()
324 struct camellia_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_encrypt() local
328 &ctx->tweak_ctx, &ctx->crypt_ctx); in xts_encrypt()
334 struct camellia_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_decrypt() local
338 &ctx->tweak_ctx, &ctx->crypt_ctx); in xts_decrypt()