Lines Matching refs:nbytes
159 struct scatterlist *src, unsigned int nbytes) in ecb_encrypt() argument
161 return glue_ecb_crypt_128bit(&camellia_enc, desc, dst, src, nbytes); in ecb_encrypt()
165 struct scatterlist *src, unsigned int nbytes) in ecb_decrypt() argument
167 return glue_ecb_crypt_128bit(&camellia_dec, desc, dst, src, nbytes); in ecb_decrypt()
171 struct scatterlist *src, unsigned int nbytes) in cbc_encrypt() argument
174 dst, src, nbytes); in cbc_encrypt()
178 struct scatterlist *src, unsigned int nbytes) in cbc_decrypt() argument
181 nbytes); in cbc_decrypt()
185 struct scatterlist *src, unsigned int nbytes) in ctr_crypt() argument
187 return glue_ctr_crypt_128bit(&camellia_ctr, desc, dst, src, nbytes); in ctr_crypt()
190 static inline bool camellia_fpu_begin(bool fpu_enabled, unsigned int nbytes) in camellia_fpu_begin() argument
194 nbytes); in camellia_fpu_begin()
214 static void encrypt_callback(void *priv, u8 *srcdst, unsigned int nbytes) in encrypt_callback() argument
220 ctx->fpu_enabled = camellia_fpu_begin(ctx->fpu_enabled, nbytes); in encrypt_callback()
222 if (nbytes >= CAMELLIA_AESNI_PARALLEL_BLOCKS * bsize) { in encrypt_callback()
225 nbytes -= bsize * CAMELLIA_AESNI_PARALLEL_BLOCKS; in encrypt_callback()
228 while (nbytes >= CAMELLIA_PARALLEL_BLOCKS * bsize) { in encrypt_callback()
231 nbytes -= bsize * CAMELLIA_PARALLEL_BLOCKS; in encrypt_callback()
234 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in encrypt_callback()
238 static void decrypt_callback(void *priv, u8 *srcdst, unsigned int nbytes) in decrypt_callback() argument
244 ctx->fpu_enabled = camellia_fpu_begin(ctx->fpu_enabled, nbytes); in decrypt_callback()
246 if (nbytes >= CAMELLIA_AESNI_PARALLEL_BLOCKS * bsize) { in decrypt_callback()
249 nbytes -= bsize * CAMELLIA_AESNI_PARALLEL_BLOCKS; in decrypt_callback()
252 while (nbytes >= CAMELLIA_PARALLEL_BLOCKS * bsize) { in decrypt_callback()
255 nbytes -= bsize * CAMELLIA_PARALLEL_BLOCKS; in decrypt_callback()
258 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in decrypt_callback()
263 struct scatterlist *src, unsigned int nbytes) in lrw_encrypt() argument
282 ret = lrw_crypt(desc, dst, src, nbytes, &req); in lrw_encrypt()
289 struct scatterlist *src, unsigned int nbytes) in lrw_decrypt() argument
308 ret = lrw_crypt(desc, dst, src, nbytes, &req); in lrw_decrypt()
315 struct scatterlist *src, unsigned int nbytes) in xts_encrypt() argument
319 return glue_xts_crypt_128bit(&camellia_enc_xts, desc, dst, src, nbytes, in xts_encrypt()
325 struct scatterlist *src, unsigned int nbytes) in xts_decrypt() argument
329 return glue_xts_crypt_128bit(&camellia_dec_xts, desc, dst, src, nbytes, in xts_decrypt()