Lines Matching refs:nbytes

158 		       struct scatterlist *src, unsigned int nbytes)  in ecb_encrypt()  argument
160 return glue_ecb_crypt_128bit(&camellia_enc, desc, dst, src, nbytes); in ecb_encrypt()
164 struct scatterlist *src, unsigned int nbytes) in ecb_decrypt() argument
166 return glue_ecb_crypt_128bit(&camellia_dec, desc, dst, src, nbytes); in ecb_decrypt()
170 struct scatterlist *src, unsigned int nbytes) in cbc_encrypt() argument
173 dst, src, nbytes); in cbc_encrypt()
177 struct scatterlist *src, unsigned int nbytes) in cbc_decrypt() argument
180 nbytes); in cbc_decrypt()
184 struct scatterlist *src, unsigned int nbytes) in ctr_crypt() argument
186 return glue_ctr_crypt_128bit(&camellia_ctr, desc, dst, src, nbytes); in ctr_crypt()
189 static inline bool camellia_fpu_begin(bool fpu_enabled, unsigned int nbytes) in camellia_fpu_begin() argument
193 nbytes); in camellia_fpu_begin()
213 static void encrypt_callback(void *priv, u8 *srcdst, unsigned int nbytes) in encrypt_callback() argument
219 ctx->fpu_enabled = camellia_fpu_begin(ctx->fpu_enabled, nbytes); in encrypt_callback()
221 if (nbytes >= CAMELLIA_AESNI_PARALLEL_BLOCKS * bsize) { in encrypt_callback()
224 nbytes -= bsize * CAMELLIA_AESNI_PARALLEL_BLOCKS; in encrypt_callback()
227 while (nbytes >= CAMELLIA_PARALLEL_BLOCKS * bsize) { in encrypt_callback()
230 nbytes -= bsize * CAMELLIA_PARALLEL_BLOCKS; in encrypt_callback()
233 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in encrypt_callback()
237 static void decrypt_callback(void *priv, u8 *srcdst, unsigned int nbytes) in decrypt_callback() argument
243 ctx->fpu_enabled = camellia_fpu_begin(ctx->fpu_enabled, nbytes); in decrypt_callback()
245 if (nbytes >= CAMELLIA_AESNI_PARALLEL_BLOCKS * bsize) { in decrypt_callback()
248 nbytes -= bsize * CAMELLIA_AESNI_PARALLEL_BLOCKS; in decrypt_callback()
251 while (nbytes >= CAMELLIA_PARALLEL_BLOCKS * bsize) { in decrypt_callback()
254 nbytes -= bsize * CAMELLIA_PARALLEL_BLOCKS; in decrypt_callback()
257 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in decrypt_callback()
262 struct scatterlist *src, unsigned int nbytes) in lrw_encrypt() argument
281 ret = lrw_crypt(desc, dst, src, nbytes, &req); in lrw_encrypt()
288 struct scatterlist *src, unsigned int nbytes) in lrw_decrypt() argument
307 ret = lrw_crypt(desc, dst, src, nbytes, &req); in lrw_decrypt()
314 struct scatterlist *src, unsigned int nbytes) in xts_encrypt() argument
318 return glue_xts_crypt_128bit(&camellia_enc_xts, desc, dst, src, nbytes, in xts_encrypt()
324 struct scatterlist *src, unsigned int nbytes) in xts_decrypt() argument
328 return glue_xts_crypt_128bit(&camellia_dec_xts, desc, dst, src, nbytes, in xts_decrypt()