Home
last modified time | relevance | path

Searched refs:mctx (Results 1 – 12 of 12) sorted by relevance

/arch/mips/cavium-octeon/crypto/
Docteon-md5.c69 struct md5_state *mctx = shash_desc_ctx(desc); in octeon_md5_init() local
71 mctx->hash[0] = cpu_to_le32(MD5_H0); in octeon_md5_init()
72 mctx->hash[1] = cpu_to_le32(MD5_H1); in octeon_md5_init()
73 mctx->hash[2] = cpu_to_le32(MD5_H2); in octeon_md5_init()
74 mctx->hash[3] = cpu_to_le32(MD5_H3); in octeon_md5_init()
75 mctx->byte_count = 0; in octeon_md5_init()
83 struct md5_state *mctx = shash_desc_ctx(desc); in octeon_md5_update() local
84 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in octeon_md5_update()
88 mctx->byte_count += len; in octeon_md5_update()
91 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in octeon_md5_update()
[all …]
/arch/powerpc/perf/
Dcallchain_32.c44 struct mcontext32 mctx; member
60 if (nip == fp + offsetof(struct signal_frame_32, mctx.mc_pad)) in is_sigreturn_32_address()
87 return regs == (unsigned long) &sf->mctx; in sane_signal_32_frame()
104 struct mcontext32 __user *mctx = NULL; in signal_frame_32_regs() local
118 mctx = &sf->mctx; in signal_frame_32_regs()
121 if (!mctx && next_sp - sp >= sizeof(struct rt_signal_frame_32) && in signal_frame_32_regs()
125 mctx = &rt_sf->uc.uc_mcontext; in signal_frame_32_regs()
128 if (!mctx) in signal_frame_32_regs()
130 return mctx->mc_gregs; in signal_frame_32_regs()
/arch/s390/crypto/
Dcrc32-vx.c86 struct crc_ctx *mctx = crypto_tfm_ctx(tfm); in DEFINE_CRC32_VX() local
88 mctx->key = 0; in DEFINE_CRC32_VX()
94 struct crc_ctx *mctx = crypto_tfm_ctx(tfm); in crc32_vx_cra_init_invert() local
96 mctx->key = ~0; in crc32_vx_cra_init_invert()
102 struct crc_ctx *mctx = crypto_shash_ctx(desc->tfm); in crc32_vx_init() local
105 ctx->crc = mctx->key; in crc32_vx_init()
112 struct crc_ctx *mctx = crypto_shash_ctx(tfm); in crc32_vx_setkey() local
114 if (newkeylen != sizeof(mctx->key)) in crc32_vx_setkey()
116 mctx->key = le32_to_cpu(*(__le32 *)newkey); in crc32_vx_setkey()
123 struct crc_ctx *mctx = crypto_shash_ctx(tfm); in crc32be_vx_setkey() local
[all …]
/arch/mips/crypto/
Dcrc32-mips.c162 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); local
165 ctx->crc = mctx->key;
178 struct chksum_ctx *mctx = crypto_shash_ctx(tfm); local
180 if (keylen != sizeof(mctx->key))
182 mctx->key = get_unaligned_le32(key);
251 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); local
253 return __chksum_finup(mctx->key, data, length, out);
259 struct chksum_ctx *mctx = crypto_shash_ctx(desc->tfm); local
261 return __chksumc_finup(mctx->key, data, length, out);
266 struct chksum_ctx *mctx = crypto_tfm_ctx(tfm); local
[all …]
/arch/sparc/crypto/
Dmd5_glue.c34 struct md5_state *mctx = shash_desc_ctx(desc); in md5_sparc64_init() local
36 mctx->hash[0] = cpu_to_le32(MD5_H0); in md5_sparc64_init()
37 mctx->hash[1] = cpu_to_le32(MD5_H1); in md5_sparc64_init()
38 mctx->hash[2] = cpu_to_le32(MD5_H2); in md5_sparc64_init()
39 mctx->hash[3] = cpu_to_le32(MD5_H3); in md5_sparc64_init()
40 mctx->byte_count = 0; in md5_sparc64_init()
Dcrc32c_glue.c34 u32 *mctx = crypto_shash_ctx(hash); in crc32c_sparc64_setkey() local
38 *(__le32 *)mctx = le32_to_cpup((__le32 *)key); in crc32c_sparc64_setkey()
44 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32c_sparc64_init() local
47 *crcp = *mctx; in crc32c_sparc64_init()
/arch/x86/crypto/
Dcrc32-pclmul_glue.c95 u32 *mctx = crypto_shash_ctx(hash); in crc32_pclmul_setkey() local
99 *mctx = le32_to_cpup((__le32 *)key); in crc32_pclmul_setkey()
105 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32_pclmul_init() local
108 *crcp = *mctx; in crc32_pclmul_init()
Dcrc32c-intel_glue.c86 u32 *mctx = crypto_shash_ctx(hash); in crc32c_intel_setkey() local
90 *mctx = le32_to_cpup((__le32 *)key); in crc32c_intel_setkey()
96 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32c_intel_init() local
99 *crcp = *mctx; in crc32c_intel_init()
/arch/powerpc/crypto/
Dcrc32c-vpmsum_glue.c74 u32 *mctx = crypto_shash_ctx(hash); in crc32c_vpmsum_setkey() local
78 *mctx = le32_to_cpup((__le32 *)key); in crc32c_vpmsum_setkey()
84 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32c_vpmsum_init() local
87 *crcp = *mctx; in crc32c_vpmsum_init()
/arch/arm/crypto/
Dcrc32-ce-glue.c55 u32 *mctx = crypto_shash_ctx(hash); in crc32_setkey() local
59 *mctx = le32_to_cpup((__le32 *)key); in crc32_setkey()
65 u32 *mctx = crypto_shash_ctx(desc->tfm); in crc32_init() local
68 *crc = *mctx; in crc32_init()
/arch/powerpc/kernel/
Dsignal_32.c190 struct mcontext mctx; /* all the register values */ member
959 struct mcontext __user *mctx; in COMPAT_SYSCALL_DEFINE3() local
968 mctx = (struct mcontext __user *) in COMPAT_SYSCALL_DEFINE3()
971 || save_user_regs(regs, mctx, NULL, 0, ctx_has_vsx_region) in COMPAT_SYSCALL_DEFINE3()
973 || __put_user(to_user_ptr(mctx), &old_ctx->uc_regs)) in COMPAT_SYSCALL_DEFINE3()
1246 || __put_user(to_user_ptr(&frame->mctx), &sc->regs) in handle_signal32()
1255 tramp = (unsigned long) frame->mctx.tramp; in handle_signal32()
1261 if (save_tm_user_regs(regs, &frame->mctx, &frame->mctx_transact, in handle_signal32()
1268 if (save_user_regs(regs, &frame->mctx, tm_mctx, sigret, 1)) in handle_signal32()
1343 mcp = (struct mcontext __user *)&sf->mctx; in COMPAT_SYSCALL_DEFINE0()
/arch/arc/kernel/
Dsignal.c64 static int save_arcv2_regs(struct sigcontext __user *mctx, struct pt_regs *regs) in save_arcv2_regs() argument
77 err = __copy_to_user(&mctx->v2abi, (void const *)&v2abi, sizeof(v2abi)); in save_arcv2_regs()
82 static int restore_arcv2_regs(struct sigcontext __user *mctx, struct pt_regs *regs) in restore_arcv2_regs() argument
88 err = __copy_from_user(&v2abi, &mctx->v2abi, sizeof(v2abi)); in restore_arcv2_regs()