Lines Matching refs:mctx
74 struct stm32_crc_ctx *mctx = crypto_tfm_ctx(tfm); in stm32_crc32_cra_init() local
76 mctx->key = 0; in stm32_crc32_cra_init()
77 mctx->poly = CRC32_POLY_LE; in stm32_crc32_cra_init()
83 struct stm32_crc_ctx *mctx = crypto_tfm_ctx(tfm); in stm32_crc32c_cra_init() local
85 mctx->key = CRC32C_INIT_DEFAULT; in stm32_crc32c_cra_init()
86 mctx->poly = CRC32C_POLY_LE; in stm32_crc32c_cra_init()
93 struct stm32_crc_ctx *mctx = crypto_shash_ctx(tfm); in stm32_crc_setkey() local
98 mctx->key = get_unaligned_le32(key); in stm32_crc_setkey()
118 struct stm32_crc_ctx *mctx = crypto_shash_ctx(desc->tfm); in stm32_crc_init() local
131 writel_relaxed(bitrev32(mctx->key), crc->regs + CRC_INIT); in stm32_crc_init()
132 writel_relaxed(bitrev32(mctx->poly), crc->regs + CRC_POL); in stm32_crc_init()
151 struct stm32_crc_ctx *mctx = crypto_shash_ctx(desc->tfm); in burst_update() local
162 if (mctx->poly == CRC32_POLY_LE) in burst_update()
177 writel_relaxed(bitrev32(mctx->poly), crc->regs + CRC_POL); in burst_update()
245 struct stm32_crc_ctx *mctx = crypto_shash_ctx(desc->tfm); in stm32_crc_final() local
248 put_unaligned_le32(mctx->poly == CRC32C_POLY_LE ? in stm32_crc_final()