/linux-4.1.27/drivers/crypto/vmx/ |
D | ghash.c | 100 struct p8_ghash_desc_ctx *dctx = shash_desc_ctx(desc); in p8_ghash_init() local 102 dctx->bytes = 0; in p8_ghash_init() 103 memset(dctx->shash, 0, GHASH_DIGEST_SIZE); in p8_ghash_init() 104 dctx->fallback_desc.tfm = ctx->fallback; in p8_ghash_init() 105 dctx->fallback_desc.flags = desc->flags; in p8_ghash_init() 106 return crypto_shash_init(&dctx->fallback_desc); in p8_ghash_init() 131 struct p8_ghash_desc_ctx *dctx = shash_desc_ctx(desc); in p8_ghash_update() local 134 return crypto_shash_update(&dctx->fallback_desc, src, srclen); in p8_ghash_update() 136 if (dctx->bytes) { in p8_ghash_update() 137 if (dctx->bytes + srclen < GHASH_DIGEST_SIZE) { in p8_ghash_update() [all …]
|
/linux-4.1.27/arch/s390/crypto/ |
D | ghash_s390.c | 31 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_init() local 34 memset(dctx, 0, sizeof(*dctx)); in ghash_init() 35 memcpy(dctx->key, ctx->key, GHASH_BLOCK_SIZE); in ghash_init() 58 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_update() local 60 u8 *buf = dctx->buffer; in ghash_update() 63 if (dctx->bytes) { in ghash_update() 64 u8 *pos = buf + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update() 66 n = min(srclen, dctx->bytes); in ghash_update() 67 dctx->bytes -= n; in ghash_update() 73 if (!dctx->bytes) { in ghash_update() [all …]
|
/linux-4.1.27/crypto/ |
D | ghash-generic.c | 37 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_init() local 39 memset(dctx, 0, sizeof(*dctx)); in ghash_init() 66 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_update() local 68 u8 *dst = dctx->buffer; in ghash_update() 73 if (dctx->bytes) { in ghash_update() 74 int n = min(srclen, dctx->bytes); in ghash_update() 75 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update() 77 dctx->bytes -= n; in ghash_update() 83 if (!dctx->bytes) in ghash_update() 95 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update() [all …]
|
D | zlib.c | 133 struct zlib_ctx *dctx = crypto_tfm_ctx(crypto_pcomp_tfm(tfm)); in zlib_compress_init() local 134 struct z_stream_s *stream = &dctx->comp_stream; in zlib_compress_init() 147 struct zlib_ctx *dctx = crypto_tfm_ctx(crypto_pcomp_tfm(tfm)); in zlib_compress_update() local 148 struct z_stream_s *stream = &dctx->comp_stream; in zlib_compress_update() 185 struct zlib_ctx *dctx = crypto_tfm_ctx(crypto_pcomp_tfm(tfm)); in zlib_compress_final() local 186 struct z_stream_s *stream = &dctx->comp_stream; in zlib_compress_final() 247 struct zlib_ctx *dctx = crypto_tfm_ctx(crypto_pcomp_tfm(tfm)); in zlib_decompress_init() local 248 struct z_stream_s *stream = &dctx->decomp_stream; in zlib_decompress_init() 261 struct zlib_ctx *dctx = crypto_tfm_ctx(crypto_pcomp_tfm(tfm)); in zlib_decompress_update() local 262 struct z_stream_s *stream = &dctx->decomp_stream; in zlib_decompress_update() [all …]
|
D | deflate.c | 131 struct deflate_ctx *dctx = crypto_tfm_ctx(tfm); in deflate_compress() local 132 struct z_stream_s *stream = &dctx->comp_stream; in deflate_compress() 161 struct deflate_ctx *dctx = crypto_tfm_ctx(tfm); in deflate_decompress() local 162 struct z_stream_s *stream = &dctx->decomp_stream; in deflate_decompress()
|
D | des_generic.c | 784 struct des_ctx *dctx = crypto_tfm_ctx(tfm); in des_setkey() local 798 memcpy(dctx->expkey, tmp, sizeof(dctx->expkey)); in des_setkey() 885 struct des3_ede_ctx *dctx = crypto_tfm_ctx(tfm); in des3_ede_setkey() local 887 u32 *expkey = dctx->expkey; in des3_ede_setkey() 894 struct des3_ede_ctx *dctx = crypto_tfm_ctx(tfm); in des3_ede_encrypt() local 895 const u32 *K = dctx->expkey; in des3_ede_encrypt() 925 struct des3_ede_ctx *dctx = crypto_tfm_ctx(tfm); in des3_ede_decrypt() local 926 const u32 *K = dctx->expkey + DES3_EDE_EXPKEY_WORDS - 2; in des3_ede_decrypt()
|
/linux-4.1.27/arch/x86/crypto/ |
D | ghash-clmulni-intel_glue.c | 48 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_init() local 50 memset(dctx, 0, sizeof(*dctx)); in ghash_init() 83 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_update() local 85 u8 *dst = dctx->buffer; in ghash_update() 88 if (dctx->bytes) { in ghash_update() 89 int n = min(srclen, dctx->bytes); in ghash_update() 90 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update() 92 dctx->bytes -= n; in ghash_update() 98 if (!dctx->bytes) in ghash_update() 108 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update() [all …]
|
/linux-4.1.27/drivers/crypto/ |
D | padlock-sha.c | 38 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha_init() local 41 dctx->fallback.tfm = ctx->fallback; in padlock_sha_init() 42 dctx->fallback.flags = desc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in padlock_sha_init() 43 return crypto_shash_init(&dctx->fallback); in padlock_sha_init() 49 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha_update() local 51 dctx->fallback.flags = desc->flags & CRYPTO_TFM_REQ_MAY_SLEEP; in padlock_sha_update() 52 return crypto_shash_update(&dctx->fallback, data, length); in padlock_sha_update() 57 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha_export() local 59 return crypto_shash_export(&dctx->fallback, out); in padlock_sha_export() 64 struct padlock_sha_desc *dctx = shash_desc_ctx(desc); in padlock_sha_import() local [all …]
|
/linux-4.1.27/arch/sparc/crypto/ |
D | des_glue.c | 46 struct des_sparc64_ctx *dctx = crypto_tfm_ctx(tfm); in des_set_key() local 61 des_sparc64_key_expand((const u32 *) key, &dctx->encrypt_expkey[0]); in des_set_key() 62 encrypt_to_decrypt(&dctx->decrypt_expkey[0], &dctx->encrypt_expkey[0]); in des_set_key() 203 struct des3_ede_sparc64_ctx *dctx = crypto_tfm_ctx(tfm); in des3_ede_set_key() local 223 memcpy(&dctx->encrypt_expkey[0], &k1[0], sizeof(k1)); in des3_ede_set_key() 224 encrypt_to_decrypt(&dctx->encrypt_expkey[DES_EXPKEY_WORDS / 2], &k2[0]); in des3_ede_set_key() 225 memcpy(&dctx->encrypt_expkey[(DES_EXPKEY_WORDS / 2) * 2], in des3_ede_set_key() 228 encrypt_to_decrypt(&dctx->decrypt_expkey[0], &k3[0]); in des3_ede_set_key() 229 memcpy(&dctx->decrypt_expkey[DES_EXPKEY_WORDS / 2], in des3_ede_set_key() 231 encrypt_to_decrypt(&dctx->decrypt_expkey[(DES_EXPKEY_WORDS / 2) * 2], in des3_ede_set_key()
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
D | i915_gem_context.c | 374 struct intel_context *dctx = dev_priv->ring[RCS].default_context; in i915_gem_context_fini() local 377 if (dctx->legacy_hw_ctx.rcs_state) { in i915_gem_context_fini() 390 if (dev_priv->ring[RCS].last_context == dctx) { in i915_gem_context_fini() 392 WARN_ON(dctx->legacy_hw_ctx.rcs_state->active); in i915_gem_context_fini() 393 i915_gem_object_ggtt_unpin(dctx->legacy_hw_ctx.rcs_state); in i915_gem_context_fini() 394 i915_gem_context_unreference(dctx); in i915_gem_context_fini() 398 i915_gem_object_ggtt_unpin(dctx->legacy_hw_ctx.rcs_state); in i915_gem_context_fini() 411 i915_gem_context_unreference(dctx); in i915_gem_context_fini()
|
D | intel_ringbuffer.c | 45 struct intel_context *dctx = ring->default_context; in intel_ring_initialized() local 46 struct intel_ringbuffer *ringbuf = dctx->engine[ring->id].ringbuf; in intel_ring_initialized()
|