Lines Matching refs:ctx

31 asmlinkage void camellia_ecb_enc_32way(struct camellia_ctx *ctx, u8 *dst,
33 asmlinkage void camellia_ecb_dec_32way(struct camellia_ctx *ctx, u8 *dst,
36 asmlinkage void camellia_cbc_dec_32way(struct camellia_ctx *ctx, u8 *dst,
38 asmlinkage void camellia_ctr_32way(struct camellia_ctx *ctx, u8 *dst,
41 asmlinkage void camellia_xts_enc_32way(struct camellia_ctx *ctx, u8 *dst,
43 asmlinkage void camellia_xts_dec_32way(struct camellia_ctx *ctx, u8 *dst,
206 struct camellia_ctx *ctx; member
213 struct crypt_priv *ctx = priv; in encrypt_callback() local
216 ctx->fpu_enabled = camellia_fpu_begin(ctx->fpu_enabled, nbytes); in encrypt_callback()
219 camellia_ecb_enc_32way(ctx->ctx, srcdst, srcdst); in encrypt_callback()
225 camellia_ecb_enc_16way(ctx->ctx, srcdst, srcdst); in encrypt_callback()
231 camellia_enc_blk_2way(ctx->ctx, srcdst, srcdst); in encrypt_callback()
237 camellia_enc_blk(ctx->ctx, srcdst, srcdst); in encrypt_callback()
243 struct crypt_priv *ctx = priv; in decrypt_callback() local
246 ctx->fpu_enabled = camellia_fpu_begin(ctx->fpu_enabled, nbytes); in decrypt_callback()
249 camellia_ecb_dec_32way(ctx->ctx, srcdst, srcdst); in decrypt_callback()
255 camellia_ecb_dec_16way(ctx->ctx, srcdst, srcdst); in decrypt_callback()
261 camellia_dec_blk_2way(ctx->ctx, srcdst, srcdst); in decrypt_callback()
267 camellia_dec_blk(ctx->ctx, srcdst, srcdst); in decrypt_callback()
273 struct camellia_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_encrypt() local
276 .ctx = &ctx->camellia_ctx, in lrw_encrypt()
283 .table_ctx = &ctx->lrw_table, in lrw_encrypt()
299 struct camellia_lrw_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in lrw_decrypt() local
302 .ctx = &ctx->camellia_ctx, in lrw_decrypt()
309 .table_ctx = &ctx->lrw_table, in lrw_decrypt()
325 struct camellia_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_encrypt() local
329 &ctx->tweak_ctx, &ctx->crypt_ctx); in xts_encrypt()
335 struct camellia_xts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_decrypt() local
339 &ctx->tweak_ctx, &ctx->crypt_ctx); in xts_decrypt()