Lines Matching refs:nbytes

154 		       struct scatterlist *src, unsigned int nbytes)  in ecb_encrypt()  argument
156 return glue_ecb_crypt_128bit(&camellia_enc, desc, dst, src, nbytes); in ecb_encrypt()
160 struct scatterlist *src, unsigned int nbytes) in ecb_decrypt() argument
162 return glue_ecb_crypt_128bit(&camellia_dec, desc, dst, src, nbytes); in ecb_decrypt()
166 struct scatterlist *src, unsigned int nbytes) in cbc_encrypt() argument
169 dst, src, nbytes); in cbc_encrypt()
173 struct scatterlist *src, unsigned int nbytes) in cbc_decrypt() argument
176 nbytes); in cbc_decrypt()
180 struct scatterlist *src, unsigned int nbytes) in ctr_crypt() argument
182 return glue_ctr_crypt_128bit(&camellia_ctr, desc, dst, src, nbytes); in ctr_crypt()
185 static inline bool camellia_fpu_begin(bool fpu_enabled, unsigned int nbytes) in camellia_fpu_begin() argument
189 nbytes); in camellia_fpu_begin()
209 static void encrypt_callback(void *priv, u8 *srcdst, unsigned int nbytes) in encrypt_callback() argument
215 ctx->fpu_enabled = camellia_fpu_begin(ctx->fpu_enabled, nbytes); in encrypt_callback()
217 if (nbytes >= CAMELLIA_AESNI_AVX2_PARALLEL_BLOCKS * bsize) { in encrypt_callback()
220 nbytes -= bsize * CAMELLIA_AESNI_AVX2_PARALLEL_BLOCKS; in encrypt_callback()
223 if (nbytes >= CAMELLIA_AESNI_PARALLEL_BLOCKS * bsize) { in encrypt_callback()
226 nbytes -= bsize * CAMELLIA_AESNI_PARALLEL_BLOCKS; in encrypt_callback()
229 while (nbytes >= CAMELLIA_PARALLEL_BLOCKS * bsize) { in encrypt_callback()
232 nbytes -= bsize * CAMELLIA_PARALLEL_BLOCKS; in encrypt_callback()
235 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in encrypt_callback()
239 static void decrypt_callback(void *priv, u8 *srcdst, unsigned int nbytes) in decrypt_callback() argument
245 ctx->fpu_enabled = camellia_fpu_begin(ctx->fpu_enabled, nbytes); in decrypt_callback()
247 if (nbytes >= CAMELLIA_AESNI_AVX2_PARALLEL_BLOCKS * bsize) { in decrypt_callback()
250 nbytes -= bsize * CAMELLIA_AESNI_AVX2_PARALLEL_BLOCKS; in decrypt_callback()
253 if (nbytes >= CAMELLIA_AESNI_PARALLEL_BLOCKS * bsize) { in decrypt_callback()
256 nbytes -= bsize * CAMELLIA_AESNI_PARALLEL_BLOCKS; in decrypt_callback()
259 while (nbytes >= CAMELLIA_PARALLEL_BLOCKS * bsize) { in decrypt_callback()
262 nbytes -= bsize * CAMELLIA_PARALLEL_BLOCKS; in decrypt_callback()
265 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in decrypt_callback()
270 struct scatterlist *src, unsigned int nbytes) in lrw_encrypt() argument
289 ret = lrw_crypt(desc, dst, src, nbytes, &req); in lrw_encrypt()
296 struct scatterlist *src, unsigned int nbytes) in lrw_decrypt() argument
315 ret = lrw_crypt(desc, dst, src, nbytes, &req); in lrw_decrypt()
322 struct scatterlist *src, unsigned int nbytes) in xts_encrypt() argument
326 return glue_xts_crypt_128bit(&camellia_enc_xts, desc, dst, src, nbytes, in xts_encrypt()
332 struct scatterlist *src, unsigned int nbytes) in xts_decrypt() argument
336 return glue_xts_crypt_128bit(&camellia_dec_xts, desc, dst, src, nbytes, in xts_decrypt()