Lines Matching refs:crypt_config
54 struct crypt_config *cc;
74 struct crypt_config;
77 int (*ctr)(struct crypt_config *cc, struct dm_target *ti,
79 void (*dtr)(struct crypt_config *cc);
80 int (*init)(struct crypt_config *cc);
81 int (*wipe)(struct crypt_config *cc);
82 int (*generator)(struct crypt_config *cc, u8 *iv,
84 int (*post)(struct crypt_config *cc, u8 *iv,
121 struct crypt_config { struct
187 static u8 *iv_of_dmreq(struct crypt_config *cc, struct dm_crypt_request *dmreq); argument
192 static struct crypto_ablkcipher *any_tfm(struct crypt_config *cc) in any_tfm()
244 static int crypt_iv_plain_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_plain_gen()
253 static int crypt_iv_plain64_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_plain64_gen()
263 static int crypt_iv_essiv_init(struct crypt_config *cc) in crypt_iv_essiv_init()
290 static int crypt_iv_essiv_wipe(struct crypt_config *cc) in crypt_iv_essiv_wipe()
308 static struct crypto_cipher *setup_essiv_cpu(struct crypt_config *cc, in setup_essiv_cpu()
340 static void crypt_iv_essiv_dtr(struct crypt_config *cc) in crypt_iv_essiv_dtr()
359 static int crypt_iv_essiv_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_essiv_ctr()
407 static int crypt_iv_essiv_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_essiv_gen()
419 static int crypt_iv_benbi_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_benbi_ctr()
443 static void crypt_iv_benbi_dtr(struct crypt_config *cc) in crypt_iv_benbi_dtr()
447 static int crypt_iv_benbi_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_benbi_gen()
460 static int crypt_iv_null_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_null_gen()
468 static void crypt_iv_lmk_dtr(struct crypt_config *cc) in crypt_iv_lmk_dtr()
480 static int crypt_iv_lmk_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_lmk_ctr()
507 static int crypt_iv_lmk_init(struct crypt_config *cc) in crypt_iv_lmk_init()
520 static int crypt_iv_lmk_wipe(struct crypt_config *cc) in crypt_iv_lmk_wipe()
530 static int crypt_iv_lmk_one(struct crypt_config *cc, u8 *iv, in crypt_iv_lmk_one()
579 static int crypt_iv_lmk_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_lmk_gen()
595 static int crypt_iv_lmk_post(struct crypt_config *cc, u8 *iv, in crypt_iv_lmk_post()
615 static void crypt_iv_tcw_dtr(struct crypt_config *cc) in crypt_iv_tcw_dtr()
629 static int crypt_iv_tcw_ctr(struct crypt_config *cc, struct dm_target *ti, in crypt_iv_tcw_ctr()
656 static int crypt_iv_tcw_init(struct crypt_config *cc) in crypt_iv_tcw_init()
668 static int crypt_iv_tcw_wipe(struct crypt_config *cc) in crypt_iv_tcw_wipe()
678 static int crypt_iv_tcw_whitening(struct crypt_config *cc, in crypt_iv_tcw_whitening()
718 static int crypt_iv_tcw_gen(struct crypt_config *cc, u8 *iv, in crypt_iv_tcw_gen()
742 static int crypt_iv_tcw_post(struct crypt_config *cc, u8 *iv, in crypt_iv_tcw_post()
803 static void crypt_convert_init(struct crypt_config *cc, in crypt_convert_init()
818 static struct dm_crypt_request *dmreq_of_req(struct crypt_config *cc, in dmreq_of_req()
824 static struct ablkcipher_request *req_of_dmreq(struct crypt_config *cc, in req_of_dmreq()
830 static u8 *iv_of_dmreq(struct crypt_config *cc, in iv_of_dmreq()
837 static int crypt_convert_block(struct crypt_config *cc, in crypt_convert_block()
886 static void crypt_alloc_req(struct crypt_config *cc, in crypt_alloc_req()
905 static void crypt_free_req(struct crypt_config *cc, in crypt_free_req()
917 static int crypt_convert(struct crypt_config *cc, in crypt_convert()
968 static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone);
989 struct crypt_config *cc = io->cc; in crypt_alloc_buffer()
1037 static void crypt_free_buffer_pages(struct crypt_config *cc, struct bio *clone) in crypt_free_buffer_pages()
1049 static void crypt_io_init(struct dm_crypt_io *io, struct crypt_config *cc, in crypt_io_init()
1071 struct crypt_config *cc = io->cc; in crypt_dec_pending()
1105 struct crypt_config *cc = io->cc; in crypt_endio()
1131 struct crypt_config *cc = io->cc; in clone_init()
1141 struct crypt_config *cc = io->cc; in kcryptd_io_read()
1175 struct crypt_config *cc = io->cc; in kcryptd_queue_read()
1192 struct crypt_config *cc = data; in dmcrypt_write()
1248 struct crypt_config *cc = io->cc; in kcryptd_crypt_write_io_submit()
1290 struct crypt_config *cc = io->cc; in kcryptd_crypt_write_convert()
1336 struct crypt_config *cc = io->cc; in kcryptd_crypt_read_convert()
1360 struct crypt_config *cc = io->cc; in kcryptd_async_done()
1401 struct crypt_config *cc = io->cc; in kcryptd_queue_crypt()
1431 static void crypt_free_tfms(struct crypt_config *cc) in crypt_free_tfms()
1448 static int crypt_alloc_tfms(struct crypt_config *cc, char *ciphermode) in crypt_alloc_tfms()
1470 static int crypt_setkey_allcpus(struct crypt_config *cc) in crypt_setkey_allcpus()
1489 static int crypt_set_key(struct crypt_config *cc, char *key) in crypt_set_key()
1516 static int crypt_wipe_key(struct crypt_config *cc) in crypt_wipe_key()
1526 struct crypt_config *cc = ti->private; in crypt_dtr()
1570 struct crypt_config *cc = ti->private; in crypt_ctr_cipher()
1734 struct crypt_config *cc; in crypt_ctr()
1908 struct crypt_config *cc = ti->private; in crypt_map()
1939 struct crypt_config *cc = ti->private; in crypt_status()
1979 struct crypt_config *cc = ti->private; in crypt_postsuspend()
1986 struct crypt_config *cc = ti->private; in crypt_preresume()
1998 struct crypt_config *cc = ti->private; in crypt_resume()
2009 struct crypt_config *cc = ti->private; in crypt_message()
2046 struct crypt_config *cc = ti->private; in crypt_iterate_devices()