/kernel/linux/linux-5.10/arch/s390/crypto/ |
H A D | sha1_s390.c | 48 struct sha1_state *octx = out; in s390_sha1_export() local 50 octx->count = sctx->count; in s390_sha1_export() 51 memcpy(octx->state, sctx->state, sizeof(octx->state)); in s390_sha1_export() 52 memcpy(octx->buffer, sctx->buf, sizeof(octx->buffer)); in s390_sha1_export()
|
H A D | sha3_512_s390.c | 34 struct sha3_state *octx = out; in sha3_512_export() local 36 octx->rsiz = sctx->count; in sha3_512_export() 37 octx->rsizw = sctx->count >> 32; in sha3_512_export() 39 memcpy(octx->st, sctx->state, sizeof(octx->st)); in sha3_512_export() 40 memcpy(octx->buf, sctx->buf, sizeof(octx->buf)); in sha3_512_export()
|
H A D | sha512_s390.c | 42 struct sha512_state *octx = out; in sha512_export() local 44 octx->count[0] = sctx->count; in sha512_export() 45 octx->count[1] = 0; in sha512_export() 46 memcpy(octx->state, sctx->state, sizeof(octx->state)); in sha512_export() 47 memcpy(octx->buf, sctx->buf, sizeof(octx->buf)); in sha512_export()
|
H A D | sha3_256_s390.c | 35 struct sha3_state *octx = out; in sha3_256_export() local 37 octx->rsiz = sctx->count; in sha3_256_export() 38 memcpy(octx->st, sctx->state, sizeof(octx->st)); in sha3_256_export() 39 memcpy(octx->buf, sctx->buf, sizeof(octx->buf)); in sha3_256_export()
|
H A D | sha256_s390.c | 41 struct sha256_state *octx = out; in sha256_export() local 43 octx->count = sctx->count; in sha256_export() 44 memcpy(octx->state, sctx->state, sizeof(octx->state)); in sha256_export() 45 memcpy(octx->buf, sctx->buf, sizeof(octx->buf)); in sha256_export()
|
/kernel/linux/linux-6.6/arch/s390/crypto/ |
H A D | sha1_s390.c | 48 struct sha1_state *octx = out; in s390_sha1_export() local 50 octx->count = sctx->count; in s390_sha1_export() 51 memcpy(octx->state, sctx->state, sizeof(octx->state)); in s390_sha1_export() 52 memcpy(octx->buffer, sctx->buf, sizeof(octx->buffer)); in s390_sha1_export()
|
H A D | sha3_512_s390.c | 33 struct sha3_state *octx = out; in sha3_512_export() local 35 octx->rsiz = sctx->count; in sha3_512_export() 36 octx->rsizw = sctx->count >> 32; in sha3_512_export() 38 memcpy(octx->st, sctx->state, sizeof(octx->st)); in sha3_512_export() 39 memcpy(octx->buf, sctx->buf, sizeof(octx->buf)); in sha3_512_export()
|
H A D | sha512_s390.c | 42 struct sha512_state *octx = out; in sha512_export() local 44 octx->count[0] = sctx->count; in sha512_export() 45 octx->count[1] = 0; in sha512_export() 46 memcpy(octx->state, sctx->state, sizeof(octx->state)); in sha512_export() 47 memcpy(octx->buf, sctx->buf, sizeof(octx->buf)); in sha512_export()
|
H A D | sha256_s390.c | 41 struct sha256_state *octx = out; in sha256_export() local 43 octx->count = sctx->count; in sha256_export() 44 memcpy(octx->state, sctx->state, sizeof(octx->state)); in sha256_export() 45 memcpy(octx->buf, sctx->buf, sizeof(octx->buf)); in sha256_export()
|
H A D | sha3_256_s390.c | 34 struct sha3_state *octx = out; in sha3_256_export() local 36 octx->rsiz = sctx->count; in sha3_256_export() 37 memcpy(octx->st, sctx->state, sizeof(octx->st)); in sha3_256_export() 38 memcpy(octx->buf, sctx->buf, sizeof(octx->buf)); in sha3_256_export()
|
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun4i-ss/ |
H A D | sun4i-ss-hash.c | 65 struct md5_state *octx = out; in sun4i_hash_export_md5() local 68 octx->byte_count = op->byte_count + op->len; in sun4i_hash_export_md5() 70 memcpy(octx->block, op->buf, op->len); in sun4i_hash_export_md5() 74 octx->hash[i] = op->hash[i]; in sun4i_hash_export_md5() 76 octx->hash[0] = SHA1_H0; in sun4i_hash_export_md5() 77 octx->hash[1] = SHA1_H1; in sun4i_hash_export_md5() 78 octx->hash[2] = SHA1_H2; in sun4i_hash_export_md5() 79 octx->hash[3] = SHA1_H3; in sun4i_hash_export_md5() 107 struct sha1_state *octx = out; in sun4i_hash_export_sha1() local 110 octx in sun4i_hash_export_sha1() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/allwinner/sun4i-ss/ |
H A D | sun4i-ss-hash.c | 65 struct md5_state *octx = out; in sun4i_hash_export_md5() local 68 octx->byte_count = op->byte_count + op->len; in sun4i_hash_export_md5() 70 memcpy(octx->block, op->buf, op->len); in sun4i_hash_export_md5() 74 octx->hash[i] = op->hash[i]; in sun4i_hash_export_md5() 76 octx->hash[0] = SHA1_H0; in sun4i_hash_export_md5() 77 octx->hash[1] = SHA1_H1; in sun4i_hash_export_md5() 78 octx->hash[2] = SHA1_H2; in sun4i_hash_export_md5() 79 octx->hash[3] = SHA1_H3; in sun4i_hash_export_md5() 107 struct sha1_state *octx = out; in sun4i_hash_export_sha1() local 110 octx in sun4i_hash_export_sha1() [all...] |
/kernel/linux/linux-5.10/drivers/crypto/ |
H A D | omap-aes-gcm.c | 233 dd->ctx = &ctx->octx; in omap_aes_gcm_prepare_req() 293 memcpy(rctx->iv, ctx->octx.nonce, 4); in omap_aes_4106gcm_encrypt() 305 memcpy(rctx->iv, ctx->octx.nonce, 4); in omap_aes_4106gcm_decrypt() 321 memcpy(ctx->octx.key, key, keylen); in omap_aes_gcm_setkey() 322 ctx->octx.keylen = keylen; in omap_aes_gcm_setkey() 341 memcpy(ctx->octx.key, key, keylen); in omap_aes_4106gcm_setkey() 342 memcpy(ctx->octx.nonce, key + keylen, 4); in omap_aes_4106gcm_setkey() 343 ctx->octx.keylen = keylen; in omap_aes_4106gcm_setkey()
|
H A D | omap-aes.h | 104 struct omap_aes_ctx octx; member
|
/kernel/linux/linux-6.6/drivers/crypto/ |
H A D | omap-aes-gcm.c | 234 dd->ctx = &ctx->octx; in omap_aes_gcm_prepare_req() 294 memcpy(rctx->iv, ctx->octx.nonce, 4); in omap_aes_4106gcm_encrypt() 306 memcpy(rctx->iv, ctx->octx.nonce, 4); in omap_aes_4106gcm_decrypt() 322 memcpy(ctx->octx.key, key, keylen); in omap_aes_gcm_setkey() 323 ctx->octx.keylen = keylen; in omap_aes_gcm_setkey() 342 memcpy(ctx->octx.key, key, keylen); in omap_aes_4106gcm_setkey() 343 memcpy(ctx->octx.nonce, key + keylen, 4); in omap_aes_4106gcm_setkey() 344 ctx->octx.keylen = keylen; in omap_aes_4106gcm_setkey()
|
H A D | omap-aes.h | 102 struct omap_aes_ctx octx; member
|
/kernel/linux/linux-6.6/io_uring/ |
H A D | msg_ring.c | 36 static void io_double_unlock_ctx(struct io_ring_ctx *octx) in io_double_unlock_ctx() argument 38 mutex_unlock(&octx->uring_lock); in io_double_unlock_ctx() 41 static int io_double_lock_ctx(struct io_ring_ctx *octx, in io_double_lock_ctx() argument 50 if (!mutex_trylock(&octx->uring_lock)) in io_double_lock_ctx() 54 mutex_lock(&octx->uring_lock); in io_double_lock_ctx()
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | tcp_fastopen.c | 72 struct tcp_fastopen_context *ctx, *octx; in tcp_fastopen_reset_cipher() local 95 octx = rcu_dereference_protected(q->ctx, in tcp_fastopen_reset_cipher() 99 octx = rcu_dereference_protected(net->ipv4.tcp_fastopen_ctx, in tcp_fastopen_reset_cipher() 105 if (octx) in tcp_fastopen_reset_cipher() 106 call_rcu(&octx->rcu, tcp_fastopen_ctx_free); in tcp_fastopen_reset_cipher()
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | tcp_fastopen.c | 61 struct tcp_fastopen_context *ctx, *octx; in tcp_fastopen_reset_cipher() local 83 octx = xchg((__force struct tcp_fastopen_context **)&q->ctx, ctx); in tcp_fastopen_reset_cipher() 85 octx = xchg((__force struct tcp_fastopen_context **)&net->ipv4.tcp_fastopen_ctx, ctx); in tcp_fastopen_reset_cipher() 88 if (octx) in tcp_fastopen_reset_cipher() 89 call_rcu(&octx->rcu, tcp_fastopen_ctx_free); in tcp_fastopen_reset_cipher()
|
/kernel/linux/linux-6.6/fs/ |
H A D | libfs.c | 256 * @octx: directory offset map to be initialized 259 void simple_offset_init(struct offset_ctx *octx) in simple_offset_init() argument 261 xa_init_flags(&octx->xa, XA_FLAGS_ALLOC1); in simple_offset_init() 262 lockdep_set_class(&octx->xa.xa_lock, &simple_offset_xa_lock); in simple_offset_init() 265 octx->next_offset = 2; in simple_offset_init() 270 * @octx: directory offset ctx to be updated 276 int simple_offset_add(struct offset_ctx *octx, struct dentry *dentry) in simple_offset_add() argument 285 ret = xa_alloc_cyclic(&octx->xa, &offset, dentry, limit, in simple_offset_add() 286 &octx->next_offset, GFP_KERNEL); in simple_offset_add() 296 * @octx 300 simple_offset_remove(struct offset_ctx *octx, struct dentry *dentry) simple_offset_remove() argument 369 simple_offset_destroy(struct offset_ctx *octx) simple_offset_destroy() argument [all...] |
H A D | userfaultfd.c | 691 struct userfaultfd_ctx *ctx = NULL, *octx; in dup_userfaultfd() local 694 octx = vma->vm_userfaultfd_ctx.ctx; in dup_userfaultfd() 695 if (!octx || !(octx->features & UFFD_FEATURE_EVENT_FORK)) { in dup_userfaultfd() 703 if (fctx->orig == octx) { in dup_userfaultfd() 720 ctx->flags = octx->flags; in dup_userfaultfd() 721 ctx->features = octx->features; in dup_userfaultfd() 727 userfaultfd_ctx_get(octx); in dup_userfaultfd() 728 atomic_inc(&octx->mmap_changing); in dup_userfaultfd() 729 fctx->orig = octx; in dup_userfaultfd() [all...] |
/kernel/linux/linux-5.10/fs/ |
H A D | userfaultfd.c | 635 struct userfaultfd_ctx *ctx = NULL, *octx; in dup_userfaultfd() local 638 octx = vma->vm_userfaultfd_ctx.ctx; in dup_userfaultfd() 639 if (!octx || !(octx->features & UFFD_FEATURE_EVENT_FORK)) { in dup_userfaultfd() 646 if (fctx->orig == octx) { in dup_userfaultfd() 663 ctx->flags = octx->flags; in dup_userfaultfd() 664 ctx->features = octx->features; in dup_userfaultfd() 670 userfaultfd_ctx_get(octx); in dup_userfaultfd() 671 WRITE_ONCE(octx->mmap_changing, true); in dup_userfaultfd() 672 fctx->orig = octx; in dup_userfaultfd() [all...] |
/kernel/linux/linux-6.6/crypto/ |
H A D | cmac.c | 220 struct cmac_tfm_ctx *octx = crypto_shash_ctx(otfm); in cmac_clone_tfm() local 224 cipher = crypto_clone_cipher(octx->child); in cmac_clone_tfm()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/ibm/emac/ |
H A D | emac.h | 69 u32 octx; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/ibm/emac/ |
H A D | emac.h | 69 u32 octx; member
|