aes               127 arch/mips/include/asm/txx9/tx4939.h 		} aes;
aes                69 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	if (!ctx->u.aes.key_len)
aes               153 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 		cmac_key_sg = (need_pad) ? &ctx->u.aes.k2_sg
aes               154 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 					 : &ctx->u.aes.k1_sg;
aes               159 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	rctx->cmd.u.aes.type = ctx->u.aes.type;
aes               160 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	rctx->cmd.u.aes.mode = ctx->u.aes.mode;
aes               161 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	rctx->cmd.u.aes.action = CCP_AES_ACTION_ENCRYPT;
aes               162 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	rctx->cmd.u.aes.key = &ctx->u.aes.key_sg;
aes               163 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	rctx->cmd.u.aes.key_len = ctx->u.aes.key_len;
aes               164 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	rctx->cmd.u.aes.iv = &rctx->iv_sg;
aes               165 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	rctx->cmd.u.aes.iv_len = AES_BLOCK_SIZE;
aes               166 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	rctx->cmd.u.aes.src = sg;
aes               167 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	rctx->cmd.u.aes.src_len = rctx->hash_cnt;
aes               168 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	rctx->cmd.u.aes.dst = NULL;
aes               169 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	rctx->cmd.u.aes.cmac_key = cmac_key_sg;
aes               170 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	rctx->cmd.u.aes.cmac_key_len = ctx->u.aes.kn_len;
aes               171 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	rctx->cmd.u.aes.cmac_final = final;
aes               264 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	struct crypto_aes_ctx aes;
aes               270 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 		ctx->u.aes.type = CCP_AES_TYPE_128;
aes               273 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 		ctx->u.aes.type = CCP_AES_TYPE_192;
aes               276 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 		ctx->u.aes.type = CCP_AES_TYPE_256;
aes               282 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	ctx->u.aes.mode = alg->mode;
aes               285 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	ctx->u.aes.key_len = 0;
aes               288 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	ret = aes_expandkey(&aes, key, key_len);
aes               293 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	memset(ctx->u.aes.key, 0, sizeof(ctx->u.aes.key));
aes               294 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	aes_encrypt(&aes, ctx->u.aes.key, ctx->u.aes.key);
aes               295 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	memzero_explicit(&aes, sizeof(aes));
aes               298 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	k0_hi = be64_to_cpu(*((__be64 *)ctx->u.aes.key));
aes               299 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	k0_lo = be64_to_cpu(*((__be64 *)ctx->u.aes.key + 1));
aes               303 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	if (ctx->u.aes.key[0] & 0x80) {
aes               307 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	gk = (__be64 *)ctx->u.aes.k1;
aes               314 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	if (ctx->u.aes.k1[0] & 0x80) {
aes               318 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	gk = (__be64 *)ctx->u.aes.k2;
aes               323 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	ctx->u.aes.kn_len = sizeof(ctx->u.aes.k1);
aes               324 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	sg_init_one(&ctx->u.aes.k1_sg, ctx->u.aes.k1, sizeof(ctx->u.aes.k1));
aes               325 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	sg_init_one(&ctx->u.aes.k2_sg, ctx->u.aes.k2, sizeof(ctx->u.aes.k2));
aes               328 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	memset(ctx->u.aes.key, 0, sizeof(ctx->u.aes.key));
aes               329 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	memcpy(ctx->u.aes.key, key, key_len);
aes               330 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	ctx->u.aes.key_len = key_len;
aes               331 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len);
aes               342 drivers/crypto/ccp/ccp-crypto-aes-cmac.c 	ctx->u.aes.key_len = 0;
aes                36 drivers/crypto/ccp/ccp-crypto-aes-galois.c 		ctx->u.aes.type = CCP_AES_TYPE_128;
aes                39 drivers/crypto/ccp/ccp-crypto-aes-galois.c 		ctx->u.aes.type = CCP_AES_TYPE_192;
aes                42 drivers/crypto/ccp/ccp-crypto-aes-galois.c 		ctx->u.aes.type = CCP_AES_TYPE_256;
aes                49 drivers/crypto/ccp/ccp-crypto-aes-galois.c 	ctx->u.aes.mode = CCP_AES_MODE_GCM;
aes                50 drivers/crypto/ccp/ccp-crypto-aes-galois.c 	ctx->u.aes.key_len = key_len;
aes                52 drivers/crypto/ccp/ccp-crypto-aes-galois.c 	memcpy(ctx->u.aes.key, key, key_len);
aes                53 drivers/crypto/ccp/ccp-crypto-aes-galois.c 	sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len);
aes                87 drivers/crypto/ccp/ccp-crypto-aes-galois.c 	if (!ctx->u.aes.key_len)
aes                90 drivers/crypto/ccp/ccp-crypto-aes-galois.c 	if (ctx->u.aes.mode != CCP_AES_MODE_GCM)
aes               120 drivers/crypto/ccp/ccp-crypto-aes-galois.c 	rctx->cmd.u.aes.authsize = crypto_aead_authsize(tfm);
aes               121 drivers/crypto/ccp/ccp-crypto-aes-galois.c 	rctx->cmd.u.aes.type = ctx->u.aes.type;
aes               122 drivers/crypto/ccp/ccp-crypto-aes-galois.c 	rctx->cmd.u.aes.mode = ctx->u.aes.mode;
aes               123 drivers/crypto/ccp/ccp-crypto-aes-galois.c 	rctx->cmd.u.aes.action = encrypt;
aes               124 drivers/crypto/ccp/ccp-crypto-aes-galois.c 	rctx->cmd.u.aes.key = &ctx->u.aes.key_sg;
aes               125 drivers/crypto/ccp/ccp-crypto-aes-galois.c 	rctx->cmd.u.aes.key_len = ctx->u.aes.key_len;
aes               126 drivers/crypto/ccp/ccp-crypto-aes-galois.c 	rctx->cmd.u.aes.iv = iv_sg;
aes               127 drivers/crypto/ccp/ccp-crypto-aes-galois.c 	rctx->cmd.u.aes.iv_len = iv_len;
aes               128 drivers/crypto/ccp/ccp-crypto-aes-galois.c 	rctx->cmd.u.aes.src = req->src;
aes               129 drivers/crypto/ccp/ccp-crypto-aes-galois.c 	rctx->cmd.u.aes.src_len = req->cryptlen;
aes               130 drivers/crypto/ccp/ccp-crypto-aes-galois.c 	rctx->cmd.u.aes.aad_len = req->assoclen;
aes               133 drivers/crypto/ccp/ccp-crypto-aes-galois.c 	rctx->cmd.u.aes.dst = req->dst;
aes               155 drivers/crypto/ccp/ccp-crypto-aes-galois.c 	ctx->u.aes.key_len = 0;
aes                92 drivers/crypto/ccp/ccp-crypto-aes-xts.c 		memcpy(ctx->u.aes.key, key, key_len);
aes                96 drivers/crypto/ccp/ccp-crypto-aes-xts.c 			memcpy(ctx->u.aes.key, key, key_len);
aes                99 drivers/crypto/ccp/ccp-crypto-aes-xts.c 	ctx->u.aes.key_len = key_len / 2;
aes               100 drivers/crypto/ccp/ccp-crypto-aes-xts.c 	sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len);
aes               102 drivers/crypto/ccp/ccp-crypto-aes-xts.c 	return crypto_sync_skcipher_setkey(ctx->u.aes.tfm_skcipher, key, key_len);
aes               116 drivers/crypto/ccp/ccp-crypto-aes-xts.c 	if (!ctx->u.aes.key_len)
aes               142 drivers/crypto/ccp/ccp-crypto-aes-xts.c 	    (ctx->u.aes.key_len != AES_KEYSIZE_128))
aes               144 drivers/crypto/ccp/ccp-crypto-aes-xts.c 	if ((ctx->u.aes.key_len != AES_KEYSIZE_128) &&
aes               145 drivers/crypto/ccp/ccp-crypto-aes-xts.c 	    (ctx->u.aes.key_len != AES_KEYSIZE_256))
aes               149 drivers/crypto/ccp/ccp-crypto-aes-xts.c 					       ctx->u.aes.tfm_skcipher);
aes               154 drivers/crypto/ccp/ccp-crypto-aes-xts.c 		skcipher_request_set_sync_tfm(subreq, ctx->u.aes.tfm_skcipher);
aes               175 drivers/crypto/ccp/ccp-crypto-aes-xts.c 	rctx->cmd.u.xts.key = &ctx->u.aes.key_sg;
aes               176 drivers/crypto/ccp/ccp-crypto-aes-xts.c 	rctx->cmd.u.xts.key_len = ctx->u.aes.key_len;
aes               204 drivers/crypto/ccp/ccp-crypto-aes-xts.c 	ctx->u.aes.key_len = 0;
aes               213 drivers/crypto/ccp/ccp-crypto-aes-xts.c 	ctx->u.aes.tfm_skcipher = fallback_tfm;
aes               224 drivers/crypto/ccp/ccp-crypto-aes-xts.c 	crypto_free_sync_skcipher(ctx->u.aes.tfm_skcipher);
aes                31 drivers/crypto/ccp/ccp-crypto-aes.c 	if (ctx->u.aes.mode != CCP_AES_MODE_ECB)
aes                46 drivers/crypto/ccp/ccp-crypto-aes.c 		ctx->u.aes.type = CCP_AES_TYPE_128;
aes                49 drivers/crypto/ccp/ccp-crypto-aes.c 		ctx->u.aes.type = CCP_AES_TYPE_192;
aes                52 drivers/crypto/ccp/ccp-crypto-aes.c 		ctx->u.aes.type = CCP_AES_TYPE_256;
aes                58 drivers/crypto/ccp/ccp-crypto-aes.c 	ctx->u.aes.mode = alg->mode;
aes                59 drivers/crypto/ccp/ccp-crypto-aes.c 	ctx->u.aes.key_len = key_len;
aes                61 drivers/crypto/ccp/ccp-crypto-aes.c 	memcpy(ctx->u.aes.key, key, key_len);
aes                62 drivers/crypto/ccp/ccp-crypto-aes.c 	sg_init_one(&ctx->u.aes.key_sg, ctx->u.aes.key, key_len);
aes                75 drivers/crypto/ccp/ccp-crypto-aes.c 	if (!ctx->u.aes.key_len)
aes                78 drivers/crypto/ccp/ccp-crypto-aes.c 	if (((ctx->u.aes.mode == CCP_AES_MODE_ECB) ||
aes                79 drivers/crypto/ccp/ccp-crypto-aes.c 	     (ctx->u.aes.mode == CCP_AES_MODE_CBC)) &&
aes                83 drivers/crypto/ccp/ccp-crypto-aes.c 	if (ctx->u.aes.mode != CCP_AES_MODE_ECB) {
aes                96 drivers/crypto/ccp/ccp-crypto-aes.c 	rctx->cmd.u.aes.type = ctx->u.aes.type;
aes                97 drivers/crypto/ccp/ccp-crypto-aes.c 	rctx->cmd.u.aes.mode = ctx->u.aes.mode;
aes                98 drivers/crypto/ccp/ccp-crypto-aes.c 	rctx->cmd.u.aes.action =
aes               100 drivers/crypto/ccp/ccp-crypto-aes.c 	rctx->cmd.u.aes.key = &ctx->u.aes.key_sg;
aes               101 drivers/crypto/ccp/ccp-crypto-aes.c 	rctx->cmd.u.aes.key_len = ctx->u.aes.key_len;
aes               102 drivers/crypto/ccp/ccp-crypto-aes.c 	rctx->cmd.u.aes.iv = iv_sg;
aes               103 drivers/crypto/ccp/ccp-crypto-aes.c 	rctx->cmd.u.aes.iv_len = iv_len;
aes               104 drivers/crypto/ccp/ccp-crypto-aes.c 	rctx->cmd.u.aes.src = req->src;
aes               105 drivers/crypto/ccp/ccp-crypto-aes.c 	rctx->cmd.u.aes.src_len = req->nbytes;
aes               106 drivers/crypto/ccp/ccp-crypto-aes.c 	rctx->cmd.u.aes.dst = req->dst;
aes               128 drivers/crypto/ccp/ccp-crypto-aes.c 	ctx->u.aes.key_len = 0;
aes               160 drivers/crypto/ccp/ccp-crypto-aes.c 	memcpy(ctx->u.aes.nonce, key + key_len, CTR_RFC3686_NONCE_SIZE);
aes               173 drivers/crypto/ccp/ccp-crypto-aes.c 	memcpy(iv, ctx->u.aes.nonce, CTR_RFC3686_NONCE_SIZE);
aes               203 drivers/crypto/ccp/ccp-crypto-aes.c 	ctx->u.aes.key_len = 0;
aes               262 drivers/crypto/ccp/ccp-crypto.h 		struct ccp_aes_ctx aes;
aes               154 drivers/crypto/ccp/ccp-dev-v3.c 		| (op->u.aes.type << REQ1_AES_TYPE_SHIFT)
aes               155 drivers/crypto/ccp/ccp-dev-v3.c 		| (op->u.aes.mode << REQ1_AES_MODE_SHIFT)
aes               156 drivers/crypto/ccp/ccp-dev-v3.c 		| (op->u.aes.action << REQ1_AES_ACTION_SHIFT)
aes               167 drivers/crypto/ccp/ccp-dev-v3.c 	if (op->u.aes.mode == CCP_AES_MODE_CFB)
aes               569 drivers/crypto/ccp/ccp-dev-v3.c 	.aes = ccp_perform_aes,
aes                98 drivers/crypto/ccp/ccp-dev-v5.c 	} aes;
aes               137 drivers/crypto/ccp/ccp-dev-v5.c #define	CCP_AES_SIZE(p)		((p)->aes.size)
aes               138 drivers/crypto/ccp/ccp-dev-v5.c #define	CCP_AES_ENCRYPT(p)	((p)->aes.encrypt)
aes               139 drivers/crypto/ccp/ccp-dev-v5.c #define	CCP_AES_MODE(p)		((p)->aes.mode)
aes               140 drivers/crypto/ccp/ccp-dev-v5.c #define	CCP_AES_TYPE(p)		((p)->aes.type)
aes               297 drivers/crypto/ccp/ccp-dev-v5.c 	CCP_AES_ENCRYPT(&function) = op->u.aes.action;
aes               298 drivers/crypto/ccp/ccp-dev-v5.c 	CCP_AES_MODE(&function) = op->u.aes.mode;
aes               299 drivers/crypto/ccp/ccp-dev-v5.c 	CCP_AES_TYPE(&function) = op->u.aes.type;
aes               300 drivers/crypto/ccp/ccp-dev-v5.c 	CCP_AES_SIZE(&function) = op->u.aes.size;
aes              1088 drivers/crypto/ccp/ccp-dev-v5.c 	.aes = ccp5_perform_aes,
aes               546 drivers/crypto/ccp/ccp-dev.h 		struct ccp_aes_op aes;
aes               652 drivers/crypto/ccp/ccp-dev.h 	int (*aes)(struct ccp_op *);
aes               459 drivers/crypto/ccp/ccp-ops.c 	struct ccp_aes_engine *aes = &cmd->u.aes;
aes               466 drivers/crypto/ccp/ccp-ops.c 	if (!((aes->key_len == AES_KEYSIZE_128) ||
aes               467 drivers/crypto/ccp/ccp-ops.c 	      (aes->key_len == AES_KEYSIZE_192) ||
aes               468 drivers/crypto/ccp/ccp-ops.c 	      (aes->key_len == AES_KEYSIZE_256)))
aes               471 drivers/crypto/ccp/ccp-ops.c 	if (aes->src_len & (AES_BLOCK_SIZE - 1))
aes               474 drivers/crypto/ccp/ccp-ops.c 	if (aes->iv_len != AES_BLOCK_SIZE)
aes               477 drivers/crypto/ccp/ccp-ops.c 	if (!aes->key || !aes->iv || !aes->src)
aes               480 drivers/crypto/ccp/ccp-ops.c 	if (aes->cmac_final) {
aes               481 drivers/crypto/ccp/ccp-ops.c 		if (aes->cmac_key_len != AES_BLOCK_SIZE)
aes               484 drivers/crypto/ccp/ccp-ops.c 		if (!aes->cmac_key)
aes               498 drivers/crypto/ccp/ccp-ops.c 	op.u.aes.type = aes->type;
aes               499 drivers/crypto/ccp/ccp-ops.c 	op.u.aes.mode = aes->mode;
aes               500 drivers/crypto/ccp/ccp-ops.c 	op.u.aes.action = aes->action;
aes               513 drivers/crypto/ccp/ccp-ops.c 	dm_offset = CCP_SB_BYTES - aes->key_len;
aes               514 drivers/crypto/ccp/ccp-ops.c 	ret = ccp_set_dm_area(&key, dm_offset, aes->key, 0, aes->key_len);
aes               535 drivers/crypto/ccp/ccp-ops.c 	ret = ccp_set_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len);
aes               546 drivers/crypto/ccp/ccp-ops.c 	ret = ccp_init_data(&src, cmd_q, aes->src, aes->src_len,
aes               553 drivers/crypto/ccp/ccp-ops.c 		if (aes->cmac_final && !src.sg_wa.bytes_left) {
aes               565 drivers/crypto/ccp/ccp-ops.c 			ret = ccp_set_dm_area(&ctx, 0, aes->cmac_key, 0,
aes               566 drivers/crypto/ccp/ccp-ops.c 					      aes->cmac_key_len);
aes               577 drivers/crypto/ccp/ccp-ops.c 		ret = cmd_q->ccp->vdata->perform->aes(&op);
aes               598 drivers/crypto/ccp/ccp-ops.c 	ccp_get_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len);
aes               615 drivers/crypto/ccp/ccp-ops.c 	struct ccp_aes_engine *aes = &cmd->u.aes;
aes               634 drivers/crypto/ccp/ccp-ops.c 	if (!aes->iv)
aes               637 drivers/crypto/ccp/ccp-ops.c 	if (!((aes->key_len == AES_KEYSIZE_128) ||
aes               638 drivers/crypto/ccp/ccp-ops.c 		(aes->key_len == AES_KEYSIZE_192) ||
aes               639 drivers/crypto/ccp/ccp-ops.c 		(aes->key_len == AES_KEYSIZE_256)))
aes               642 drivers/crypto/ccp/ccp-ops.c 	if (!aes->key) /* Gotta have a key SGL */
aes               646 drivers/crypto/ccp/ccp-ops.c 	authsize = aes->authsize ? aes->authsize : AES_BLOCK_SIZE;
aes               666 drivers/crypto/ccp/ccp-ops.c 	p_aad = aes->src;
aes               667 drivers/crypto/ccp/ccp-ops.c 	p_inp = scatterwalk_ffwd(sg_inp, aes->src, aes->aad_len);
aes               668 drivers/crypto/ccp/ccp-ops.c 	p_outp = scatterwalk_ffwd(sg_outp, aes->dst, aes->aad_len);
aes               669 drivers/crypto/ccp/ccp-ops.c 	if (aes->action == CCP_AES_ACTION_ENCRYPT) {
aes               670 drivers/crypto/ccp/ccp-ops.c 		ilen = aes->src_len;
aes               674 drivers/crypto/ccp/ccp-ops.c 		ilen = aes->src_len - authsize;
aes               686 drivers/crypto/ccp/ccp-ops.c 	op.u.aes.type = aes->type;
aes               695 drivers/crypto/ccp/ccp-ops.c 	dm_offset = CCP_SB_BYTES - aes->key_len;
aes               696 drivers/crypto/ccp/ccp-ops.c 	ret = ccp_set_dm_area(&key, dm_offset, aes->key, 0, aes->key_len);
aes               716 drivers/crypto/ccp/ccp-ops.c 	dm_offset = CCP_AES_CTX_SB_COUNT * CCP_SB_BYTES - aes->iv_len;
aes               717 drivers/crypto/ccp/ccp-ops.c 	ret = ccp_set_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len);
aes               729 drivers/crypto/ccp/ccp-ops.c 	if (aes->aad_len > 0) {
aes               731 drivers/crypto/ccp/ccp-ops.c 		ret = ccp_init_data(&aad, cmd_q, p_aad, aes->aad_len,
aes               737 drivers/crypto/ccp/ccp-ops.c 		op.u.aes.mode = CCP_AES_MODE_GHASH;
aes               738 drivers/crypto/ccp/ccp-ops.c 		op.u.aes.action = CCP_AES_GHASHAAD;
aes               743 drivers/crypto/ccp/ccp-ops.c 			ret = cmd_q->ccp->vdata->perform->aes(&op);
aes               754 drivers/crypto/ccp/ccp-ops.c 	op.u.aes.mode = CCP_AES_MODE_GCTR;
aes               755 drivers/crypto/ccp/ccp-ops.c 	op.u.aes.action = aes->action;
aes               787 drivers/crypto/ccp/ccp-ops.c 					op.u.aes.size = (nbytes * 8) - 1;
aes               791 drivers/crypto/ccp/ccp-ops.c 			ret = cmd_q->ccp->vdata->perform->aes(&op);
aes               810 drivers/crypto/ccp/ccp-ops.c 	ret = ccp_set_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len);
aes               829 drivers/crypto/ccp/ccp-ops.c 	final[0] = cpu_to_be64(aes->aad_len * 8);
aes               838 drivers/crypto/ccp/ccp-ops.c 	op.u.aes.type = aes->type;
aes               839 drivers/crypto/ccp/ccp-ops.c 	op.u.aes.mode = CCP_AES_MODE_GHASH;
aes               840 drivers/crypto/ccp/ccp-ops.c 	op.u.aes.action = CCP_AES_GHASHFINAL;
aes               848 drivers/crypto/ccp/ccp-ops.c 	op.u.aes.size = 0;
aes               849 drivers/crypto/ccp/ccp-ops.c 	ret = cmd_q->ccp->vdata->perform->aes(&op);
aes               853 drivers/crypto/ccp/ccp-ops.c 	if (aes->action == CCP_AES_ACTION_ENCRYPT) {
aes               883 drivers/crypto/ccp/ccp-ops.c 	if (aes->aad_len)
aes               898 drivers/crypto/ccp/ccp-ops.c 	struct ccp_aes_engine *aes = &cmd->u.aes;
aes               906 drivers/crypto/ccp/ccp-ops.c 	if (!((aes->key_len == AES_KEYSIZE_128) ||
aes               907 drivers/crypto/ccp/ccp-ops.c 	      (aes->key_len == AES_KEYSIZE_192) ||
aes               908 drivers/crypto/ccp/ccp-ops.c 	      (aes->key_len == AES_KEYSIZE_256)))
aes               911 drivers/crypto/ccp/ccp-ops.c 	if (((aes->mode == CCP_AES_MODE_ECB) ||
aes               912 drivers/crypto/ccp/ccp-ops.c 	     (aes->mode == CCP_AES_MODE_CBC)) &&
aes               913 drivers/crypto/ccp/ccp-ops.c 	    (aes->src_len & (AES_BLOCK_SIZE - 1)))
aes               916 drivers/crypto/ccp/ccp-ops.c 	if (!aes->key || !aes->src || !aes->dst)
aes               919 drivers/crypto/ccp/ccp-ops.c 	if (aes->mode != CCP_AES_MODE_ECB) {
aes               920 drivers/crypto/ccp/ccp-ops.c 		if (aes->iv_len != AES_BLOCK_SIZE)
aes               923 drivers/crypto/ccp/ccp-ops.c 		if (!aes->iv)
aes               936 drivers/crypto/ccp/ccp-ops.c 	op.init = (aes->mode == CCP_AES_MODE_ECB) ? 0 : 1;
aes               937 drivers/crypto/ccp/ccp-ops.c 	op.u.aes.type = aes->type;
aes               938 drivers/crypto/ccp/ccp-ops.c 	op.u.aes.mode = aes->mode;
aes               939 drivers/crypto/ccp/ccp-ops.c 	op.u.aes.action = aes->action;
aes               952 drivers/crypto/ccp/ccp-ops.c 	dm_offset = CCP_SB_BYTES - aes->key_len;
aes               953 drivers/crypto/ccp/ccp-ops.c 	ret = ccp_set_dm_area(&key, dm_offset, aes->key, 0, aes->key_len);
aes               973 drivers/crypto/ccp/ccp-ops.c 	if (aes->mode != CCP_AES_MODE_ECB) {
aes               976 drivers/crypto/ccp/ccp-ops.c 		ret = ccp_set_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len);
aes               986 drivers/crypto/ccp/ccp-ops.c 	switch (aes->mode) {
aes               989 drivers/crypto/ccp/ccp-ops.c 		op.u.aes.size = AES_BLOCK_SIZE * BITS_PER_BYTE - 1;
aes               992 drivers/crypto/ccp/ccp-ops.c 		op.u.aes.size = 0;
aes               999 drivers/crypto/ccp/ccp-ops.c 	if (sg_virt(aes->src) == sg_virt(aes->dst))
aes              1002 drivers/crypto/ccp/ccp-ops.c 	ret = ccp_init_data(&src, cmd_q, aes->src, aes->src_len,
aes              1011 drivers/crypto/ccp/ccp-ops.c 		ret = ccp_init_data(&dst, cmd_q, aes->dst, aes->src_len,
aes              1027 drivers/crypto/ccp/ccp-ops.c 			if (aes->mode == CCP_AES_MODE_ECB)
aes              1031 drivers/crypto/ccp/ccp-ops.c 		ret = cmd_q->ccp->vdata->perform->aes(&op);
aes              1040 drivers/crypto/ccp/ccp-ops.c 	if (aes->mode != CCP_AES_MODE_ECB) {
aes              1053 drivers/crypto/ccp/ccp-ops.c 		ccp_get_dm_area(&ctx, dm_offset, aes->iv, 0, aes->iv_len);
aes              2458 drivers/crypto/ccp/ccp-ops.c 		switch (cmd->u.aes.mode) {
aes              1026 drivers/crypto/chelsio/chcr_algo.c 	struct crypto_aes_ctx aes;
aes              1037 drivers/crypto/chelsio/chcr_algo.c 	ret = aes_expandkey(&aes, key, keylen);
aes              1040 drivers/crypto/chelsio/chcr_algo.c 	aes_encrypt(&aes, iv, iv);
aes              1048 drivers/crypto/chelsio/chcr_algo.c 		aes_decrypt(&aes, iv, iv);
aes              1050 drivers/crypto/chelsio/chcr_algo.c 	memzero_explicit(&aes, sizeof(aes));
aes              3348 drivers/crypto/chelsio/chcr_algo.c 	struct crypto_aes_ctx aes;
aes              3390 drivers/crypto/chelsio/chcr_algo.c 	ret = aes_expandkey(&aes, key, keylen);
aes              3396 drivers/crypto/chelsio/chcr_algo.c 	aes_encrypt(&aes, gctx->ghash_h, gctx->ghash_h);
aes              3397 drivers/crypto/chelsio/chcr_algo.c 	memzero_explicit(&aes, sizeof(aes));
aes               139 drivers/crypto/chelsio/chcr_ipsec.c 	struct crypto_aes_ctx aes;
aes               173 drivers/crypto/chelsio/chcr_ipsec.c 	ret = aes_expandkey(&aes, key, keylen);
aes               179 drivers/crypto/chelsio/chcr_ipsec.c 	aes_encrypt(&aes, ghash_h, ghash_h);
aes               180 drivers/crypto/chelsio/chcr_ipsec.c 	memzero_explicit(&aes, sizeof(aes));
aes               217 drivers/crypto/chelsio/chtls/chtls_hw.c 	struct crypto_aes_ctx aes;
aes               237 drivers/crypto/chelsio/chtls/chtls_hw.c 	ret = aes_expandkey(&aes, key, keylen);
aes               242 drivers/crypto/chelsio/chtls/chtls_hw.c 	aes_encrypt(&aes, ghash_h, ghash_h);
aes               243 drivers/crypto/chelsio/chtls/chtls_hw.c 	memzero_explicit(&aes, sizeof(aes));
aes               276 drivers/crypto/inside-secure/safexcel_cipher.c 	struct crypto_aes_ctx aes;
aes               279 drivers/crypto/inside-secure/safexcel_cipher.c 	ret = aes_expandkey(&aes, key, len);
aes               287 drivers/crypto/inside-secure/safexcel_cipher.c 			if (ctx->key[i] != cpu_to_le32(aes.key_enc[i])) {
aes               295 drivers/crypto/inside-secure/safexcel_cipher.c 		ctx->key[i] = cpu_to_le32(aes.key_enc[i]);
aes               299 drivers/crypto/inside-secure/safexcel_cipher.c 	memzero_explicit(&aes, sizeof(aes));
aes               311 drivers/crypto/inside-secure/safexcel_cipher.c 	struct crypto_aes_ctx aes;
aes               337 drivers/crypto/inside-secure/safexcel_cipher.c 		err = aes_expandkey(&aes, keys.enckey, keys.enckeylen);
aes              1282 drivers/crypto/inside-secure/safexcel_cipher.c 	struct crypto_aes_ctx aes;
aes              1290 drivers/crypto/inside-secure/safexcel_cipher.c 	ret = aes_expandkey(&aes, key, keylen);
aes              1298 drivers/crypto/inside-secure/safexcel_cipher.c 			if (ctx->key[i] != cpu_to_le32(aes.key_enc[i])) {
aes              1306 drivers/crypto/inside-secure/safexcel_cipher.c 		ctx->key[i] = cpu_to_le32(aes.key_enc[i]);
aes              1310 drivers/crypto/inside-secure/safexcel_cipher.c 	memzero_explicit(&aes, sizeof(aes));
aes              1956 drivers/crypto/inside-secure/safexcel_cipher.c 	struct crypto_aes_ctx aes;
aes              1967 drivers/crypto/inside-secure/safexcel_cipher.c 	ret = aes_expandkey(&aes, key, keylen);
aes              1975 drivers/crypto/inside-secure/safexcel_cipher.c 			if (ctx->key[i] != cpu_to_le32(aes.key_enc[i])) {
aes              1983 drivers/crypto/inside-secure/safexcel_cipher.c 		ctx->key[i] = cpu_to_le32(aes.key_enc[i]);
aes              1986 drivers/crypto/inside-secure/safexcel_cipher.c 	ret = aes_expandkey(&aes, (u8 *)(key + keylen), keylen);
aes              1995 drivers/crypto/inside-secure/safexcel_cipher.c 			    cpu_to_le32(aes.key_enc[i])) {
aes              2004 drivers/crypto/inside-secure/safexcel_cipher.c 			cpu_to_le32(aes.key_enc[i]);
aes              2008 drivers/crypto/inside-secure/safexcel_cipher.c 	memzero_explicit(&aes, sizeof(aes));
aes              2072 drivers/crypto/inside-secure/safexcel_cipher.c 	struct crypto_aes_ctx aes;
aes              2076 drivers/crypto/inside-secure/safexcel_cipher.c 	ret = aes_expandkey(&aes, key, len);
aes              2079 drivers/crypto/inside-secure/safexcel_cipher.c 		memzero_explicit(&aes, sizeof(aes));
aes              2085 drivers/crypto/inside-secure/safexcel_cipher.c 			if (ctx->key[i] != cpu_to_le32(aes.key_enc[i])) {
aes              2093 drivers/crypto/inside-secure/safexcel_cipher.c 		ctx->key[i] = cpu_to_le32(aes.key_enc[i]);
aes              2123 drivers/crypto/inside-secure/safexcel_cipher.c 	memzero_explicit(&aes, sizeof(aes));
aes              2190 drivers/crypto/inside-secure/safexcel_cipher.c 	struct crypto_aes_ctx aes;
aes              2193 drivers/crypto/inside-secure/safexcel_cipher.c 	ret = aes_expandkey(&aes, key, len);
aes              2196 drivers/crypto/inside-secure/safexcel_cipher.c 		memzero_explicit(&aes, sizeof(aes));
aes              2202 drivers/crypto/inside-secure/safexcel_cipher.c 			if (ctx->key[i] != cpu_to_le32(aes.key_enc[i])) {
aes              2210 drivers/crypto/inside-secure/safexcel_cipher.c 		ctx->key[i] = cpu_to_le32(aes.key_enc[i]);
aes              2212 drivers/crypto/inside-secure/safexcel_cipher.c 			cpu_to_be32(aes.key_enc[i]);
aes              2225 drivers/crypto/inside-secure/safexcel_cipher.c 	memzero_explicit(&aes, sizeof(aes));
aes                29 drivers/crypto/marvell/cipher.c 	struct crypto_aes_ctx aes;
aes               257 drivers/crypto/marvell/cipher.c 	ret = aes_expandkey(&ctx->aes, key, len);
aes               263 drivers/crypto/marvell/cipher.c 	remaining = (ctx->aes.key_length - 16) / 4;
aes               264 drivers/crypto/marvell/cipher.c 	offset = ctx->aes.key_length + 24 - remaining;
aes               266 drivers/crypto/marvell/cipher.c 		ctx->aes.key_dec[4 + i] =
aes               267 drivers/crypto/marvell/cipher.c 			cpu_to_le32(ctx->aes.key_enc[offset + i]);
aes               692 drivers/crypto/marvell/cipher.c 		key = ctx->aes.key_dec;
aes               694 drivers/crypto/marvell/cipher.c 		key = ctx->aes.key_enc;
aes               696 drivers/crypto/marvell/cipher.c 	for (i = 0; i < ctx->aes.key_length / sizeof(u32); i++)
aes               699 drivers/crypto/marvell/cipher.c 	if (ctx->aes.key_length == 24)
aes               701 drivers/crypto/marvell/cipher.c 	else if (ctx->aes.key_length == 32)
aes               222 drivers/crypto/mediatek/mtk-aes.c static inline void mtk_aes_set_mode(struct mtk_aes_rec *aes,
aes               226 drivers/crypto/mediatek/mtk-aes.c 	aes->flags = (aes->flags & AES_FLAGS_BUSY) | rctx->mode;
aes               263 drivers/crypto/mediatek/mtk-aes.c 				   struct mtk_aes_rec *aes,
aes               266 drivers/crypto/mediatek/mtk-aes.c 	aes->flags &= ~AES_FLAGS_BUSY;
aes               267 drivers/crypto/mediatek/mtk-aes.c 	aes->areq->complete(aes->areq, err);
aes               269 drivers/crypto/mediatek/mtk-aes.c 	tasklet_schedule(&aes->queue_task);
aes               277 drivers/crypto/mediatek/mtk-aes.c static int mtk_aes_xmit(struct mtk_cryp *cryp, struct mtk_aes_rec *aes)
aes               279 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_ring *ring = cryp->ring[aes->id];
aes               281 drivers/crypto/mediatek/mtk-aes.c 	struct scatterlist *ssg = aes->src.sg, *dsg = aes->dst.sg;
aes               282 drivers/crypto/mediatek/mtk-aes.c 	u32 slen = aes->src.sg_len, dlen = aes->dst.sg_len;
aes               293 drivers/crypto/mediatek/mtk-aes.c 				    MTK_DESC_CT_LEN(aes->ctx->ct_size);
aes               294 drivers/crypto/mediatek/mtk-aes.c 			cmd->ct = cpu_to_le32(aes->ctx->ct_dma);
aes               295 drivers/crypto/mediatek/mtk-aes.c 			cmd->ct_hdr = aes->ctx->ct_hdr;
aes               296 drivers/crypto/mediatek/mtk-aes.c 			cmd->tfm = cpu_to_le32(aes->ctx->tfm_dma);
aes               324 drivers/crypto/mediatek/mtk-aes.c 	if (aes->flags & AES_FLAGS_GCM)
aes               333 drivers/crypto/mediatek/mtk-aes.c 	mtk_aes_write(cryp, RDR_PREP_COUNT(aes->id), MTK_DESC_CNT(dlen));
aes               334 drivers/crypto/mediatek/mtk-aes.c 	mtk_aes_write(cryp, CDR_PREP_COUNT(aes->id), MTK_DESC_CNT(slen));
aes               339 drivers/crypto/mediatek/mtk-aes.c static void mtk_aes_unmap(struct mtk_cryp *cryp, struct mtk_aes_rec *aes)
aes               341 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_aes_base_ctx *ctx = aes->ctx;
aes               346 drivers/crypto/mediatek/mtk-aes.c 	if (aes->src.sg == aes->dst.sg) {
aes               347 drivers/crypto/mediatek/mtk-aes.c 		dma_unmap_sg(cryp->dev, aes->src.sg, aes->src.nents,
aes               350 drivers/crypto/mediatek/mtk-aes.c 		if (aes->src.sg != &aes->aligned_sg)
aes               351 drivers/crypto/mediatek/mtk-aes.c 			mtk_aes_restore_sg(&aes->src);
aes               353 drivers/crypto/mediatek/mtk-aes.c 		dma_unmap_sg(cryp->dev, aes->dst.sg, aes->dst.nents,
aes               356 drivers/crypto/mediatek/mtk-aes.c 		if (aes->dst.sg != &aes->aligned_sg)
aes               357 drivers/crypto/mediatek/mtk-aes.c 			mtk_aes_restore_sg(&aes->dst);
aes               359 drivers/crypto/mediatek/mtk-aes.c 		dma_unmap_sg(cryp->dev, aes->src.sg, aes->src.nents,
aes               362 drivers/crypto/mediatek/mtk-aes.c 		if (aes->src.sg != &aes->aligned_sg)
aes               363 drivers/crypto/mediatek/mtk-aes.c 			mtk_aes_restore_sg(&aes->src);
aes               366 drivers/crypto/mediatek/mtk-aes.c 	if (aes->dst.sg == &aes->aligned_sg)
aes               367 drivers/crypto/mediatek/mtk-aes.c 		sg_copy_from_buffer(aes->real_dst, sg_nents(aes->real_dst),
aes               368 drivers/crypto/mediatek/mtk-aes.c 				    aes->buf, aes->total);
aes               371 drivers/crypto/mediatek/mtk-aes.c static int mtk_aes_map(struct mtk_cryp *cryp, struct mtk_aes_rec *aes)
aes               373 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_aes_base_ctx *ctx = aes->ctx;
aes               383 drivers/crypto/mediatek/mtk-aes.c 	if (aes->src.sg == aes->dst.sg) {
aes               384 drivers/crypto/mediatek/mtk-aes.c 		aes->src.sg_len = dma_map_sg(cryp->dev, aes->src.sg,
aes               385 drivers/crypto/mediatek/mtk-aes.c 					     aes->src.nents,
aes               387 drivers/crypto/mediatek/mtk-aes.c 		aes->dst.sg_len = aes->src.sg_len;
aes               388 drivers/crypto/mediatek/mtk-aes.c 		if (unlikely(!aes->src.sg_len))
aes               391 drivers/crypto/mediatek/mtk-aes.c 		aes->src.sg_len = dma_map_sg(cryp->dev, aes->src.sg,
aes               392 drivers/crypto/mediatek/mtk-aes.c 					     aes->src.nents, DMA_TO_DEVICE);
aes               393 drivers/crypto/mediatek/mtk-aes.c 		if (unlikely(!aes->src.sg_len))
aes               396 drivers/crypto/mediatek/mtk-aes.c 		aes->dst.sg_len = dma_map_sg(cryp->dev, aes->dst.sg,
aes               397 drivers/crypto/mediatek/mtk-aes.c 					     aes->dst.nents, DMA_FROM_DEVICE);
aes               398 drivers/crypto/mediatek/mtk-aes.c 		if (unlikely(!aes->dst.sg_len)) {
aes               399 drivers/crypto/mediatek/mtk-aes.c 			dma_unmap_sg(cryp->dev, aes->src.sg, aes->src.nents,
aes               405 drivers/crypto/mediatek/mtk-aes.c 	return mtk_aes_xmit(cryp, aes);
aes               410 drivers/crypto/mediatek/mtk-aes.c 	return mtk_aes_complete(cryp, aes, -EINVAL);
aes               414 drivers/crypto/mediatek/mtk-aes.c static void mtk_aes_info_init(struct mtk_cryp *cryp, struct mtk_aes_rec *aes,
aes               417 drivers/crypto/mediatek/mtk-aes.c 	struct ablkcipher_request *req = ablkcipher_request_cast(aes->areq);
aes               418 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_aes_base_ctx *ctx = aes->ctx;
aes               427 drivers/crypto/mediatek/mtk-aes.c 	if (aes->flags & AES_FLAGS_ENCRYPT)
aes               432 drivers/crypto/mediatek/mtk-aes.c 	switch (aes->flags & AES_FLAGS_CIPHER_MSK) {
aes               463 drivers/crypto/mediatek/mtk-aes.c static int mtk_aes_dma(struct mtk_cryp *cryp, struct mtk_aes_rec *aes,
aes               470 drivers/crypto/mediatek/mtk-aes.c 	aes->total = len;
aes               471 drivers/crypto/mediatek/mtk-aes.c 	aes->src.sg = src;
aes               472 drivers/crypto/mediatek/mtk-aes.c 	aes->dst.sg = dst;
aes               473 drivers/crypto/mediatek/mtk-aes.c 	aes->real_dst = dst;
aes               475 drivers/crypto/mediatek/mtk-aes.c 	src_aligned = mtk_aes_check_aligned(src, len, &aes->src);
aes               479 drivers/crypto/mediatek/mtk-aes.c 		dst_aligned = mtk_aes_check_aligned(dst, len, &aes->dst);
aes               485 drivers/crypto/mediatek/mtk-aes.c 			return mtk_aes_complete(cryp, aes, -ENOMEM);
aes               488 drivers/crypto/mediatek/mtk-aes.c 			sg_copy_to_buffer(src, sg_nents(src), aes->buf, len);
aes               489 drivers/crypto/mediatek/mtk-aes.c 			aes->src.sg = &aes->aligned_sg;
aes               490 drivers/crypto/mediatek/mtk-aes.c 			aes->src.nents = 1;
aes               491 drivers/crypto/mediatek/mtk-aes.c 			aes->src.remainder = 0;
aes               495 drivers/crypto/mediatek/mtk-aes.c 			aes->dst.sg = &aes->aligned_sg;
aes               496 drivers/crypto/mediatek/mtk-aes.c 			aes->dst.nents = 1;
aes               497 drivers/crypto/mediatek/mtk-aes.c 			aes->dst.remainder = 0;
aes               500 drivers/crypto/mediatek/mtk-aes.c 		sg_init_table(&aes->aligned_sg, 1);
aes               501 drivers/crypto/mediatek/mtk-aes.c 		sg_set_buf(&aes->aligned_sg, aes->buf, len + padlen);
aes               504 drivers/crypto/mediatek/mtk-aes.c 	mtk_aes_info_init(cryp, aes, len + padlen);
aes               506 drivers/crypto/mediatek/mtk-aes.c 	return mtk_aes_map(cryp, aes);
aes               512 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_aes_rec *aes = cryp->aes[id];
aes               518 drivers/crypto/mediatek/mtk-aes.c 	spin_lock_irqsave(&aes->lock, flags);
aes               520 drivers/crypto/mediatek/mtk-aes.c 		ret = crypto_enqueue_request(&aes->queue, new_areq);
aes               521 drivers/crypto/mediatek/mtk-aes.c 	if (aes->flags & AES_FLAGS_BUSY) {
aes               522 drivers/crypto/mediatek/mtk-aes.c 		spin_unlock_irqrestore(&aes->lock, flags);
aes               525 drivers/crypto/mediatek/mtk-aes.c 	backlog = crypto_get_backlog(&aes->queue);
aes               526 drivers/crypto/mediatek/mtk-aes.c 	areq = crypto_dequeue_request(&aes->queue);
aes               528 drivers/crypto/mediatek/mtk-aes.c 		aes->flags |= AES_FLAGS_BUSY;
aes               529 drivers/crypto/mediatek/mtk-aes.c 	spin_unlock_irqrestore(&aes->lock, flags);
aes               541 drivers/crypto/mediatek/mtk-aes.c 	aes->areq = areq;
aes               542 drivers/crypto/mediatek/mtk-aes.c 	aes->ctx = ctx;
aes               544 drivers/crypto/mediatek/mtk-aes.c 	return ctx->start(cryp, aes);
aes               548 drivers/crypto/mediatek/mtk-aes.c 				     struct mtk_aes_rec *aes)
aes               550 drivers/crypto/mediatek/mtk-aes.c 	return mtk_aes_complete(cryp, aes, 0);
aes               553 drivers/crypto/mediatek/mtk-aes.c static int mtk_aes_start(struct mtk_cryp *cryp, struct mtk_aes_rec *aes)
aes               555 drivers/crypto/mediatek/mtk-aes.c 	struct ablkcipher_request *req = ablkcipher_request_cast(aes->areq);
aes               558 drivers/crypto/mediatek/mtk-aes.c 	mtk_aes_set_mode(aes, rctx);
aes               559 drivers/crypto/mediatek/mtk-aes.c 	aes->resume = mtk_aes_transfer_complete;
aes               561 drivers/crypto/mediatek/mtk-aes.c 	return mtk_aes_dma(cryp, aes, req->src, req->dst, req->nbytes);
aes               570 drivers/crypto/mediatek/mtk-aes.c static int mtk_aes_ctr_transfer(struct mtk_cryp *cryp, struct mtk_aes_rec *aes)
aes               572 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_aes_base_ctx *ctx = aes->ctx;
aes               574 drivers/crypto/mediatek/mtk-aes.c 	struct ablkcipher_request *req = ablkcipher_request_cast(aes->areq);
aes               581 drivers/crypto/mediatek/mtk-aes.c 	cctx->offset += aes->total;
aes               583 drivers/crypto/mediatek/mtk-aes.c 		return mtk_aes_transfer_complete(cryp, aes);
aes               617 drivers/crypto/mediatek/mtk-aes.c 	return mtk_aes_dma(cryp, aes, src, dst, datalen);
aes               620 drivers/crypto/mediatek/mtk-aes.c static int mtk_aes_ctr_start(struct mtk_cryp *cryp, struct mtk_aes_rec *aes)
aes               622 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_aes_ctr_ctx *cctx = mtk_aes_ctr_ctx_cast(aes->ctx);
aes               623 drivers/crypto/mediatek/mtk-aes.c 	struct ablkcipher_request *req = ablkcipher_request_cast(aes->areq);
aes               626 drivers/crypto/mediatek/mtk-aes.c 	mtk_aes_set_mode(aes, rctx);
aes               630 drivers/crypto/mediatek/mtk-aes.c 	aes->total = 0;
aes               631 drivers/crypto/mediatek/mtk-aes.c 	aes->resume = mtk_aes_ctr_transfer;
aes               633 drivers/crypto/mediatek/mtk-aes.c 	return mtk_aes_ctr_transfer(cryp, aes);
aes               868 drivers/crypto/mediatek/mtk-aes.c 				  struct mtk_aes_rec *aes)
aes               870 drivers/crypto/mediatek/mtk-aes.c 	u32 status = cryp->ring[aes->id]->res_prev->ct;
aes               872 drivers/crypto/mediatek/mtk-aes.c 	return mtk_aes_complete(cryp, aes, (status & AES_AUTH_TAG_ERR) ?
aes               878 drivers/crypto/mediatek/mtk-aes.c 				  struct mtk_aes_rec *aes,
aes               881 drivers/crypto/mediatek/mtk-aes.c 	struct aead_request *req = aead_request_cast(aes->areq);
aes               882 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_aes_base_ctx *ctx = aes->ctx;
aes               895 drivers/crypto/mediatek/mtk-aes.c 	if (aes->flags & AES_FLAGS_ENCRYPT) {
aes               915 drivers/crypto/mediatek/mtk-aes.c static int mtk_aes_gcm_dma(struct mtk_cryp *cryp, struct mtk_aes_rec *aes,
aes               921 drivers/crypto/mediatek/mtk-aes.c 	aes->src.sg = src;
aes               922 drivers/crypto/mediatek/mtk-aes.c 	aes->dst.sg = dst;
aes               923 drivers/crypto/mediatek/mtk-aes.c 	aes->real_dst = dst;
aes               925 drivers/crypto/mediatek/mtk-aes.c 	src_aligned = mtk_aes_check_aligned(src, len, &aes->src);
aes               929 drivers/crypto/mediatek/mtk-aes.c 		dst_aligned = mtk_aes_check_aligned(dst, len, &aes->dst);
aes               932 drivers/crypto/mediatek/mtk-aes.c 		if (aes->total > AES_BUF_SIZE)
aes               933 drivers/crypto/mediatek/mtk-aes.c 			return mtk_aes_complete(cryp, aes, -ENOMEM);
aes               936 drivers/crypto/mediatek/mtk-aes.c 			sg_copy_to_buffer(src, sg_nents(src), aes->buf, len);
aes               937 drivers/crypto/mediatek/mtk-aes.c 			aes->src.sg = &aes->aligned_sg;
aes               938 drivers/crypto/mediatek/mtk-aes.c 			aes->src.nents = 1;
aes               939 drivers/crypto/mediatek/mtk-aes.c 			aes->src.remainder = 0;
aes               943 drivers/crypto/mediatek/mtk-aes.c 			aes->dst.sg = &aes->aligned_sg;
aes               944 drivers/crypto/mediatek/mtk-aes.c 			aes->dst.nents = 1;
aes               945 drivers/crypto/mediatek/mtk-aes.c 			aes->dst.remainder = 0;
aes               948 drivers/crypto/mediatek/mtk-aes.c 		sg_init_table(&aes->aligned_sg, 1);
aes               949 drivers/crypto/mediatek/mtk-aes.c 		sg_set_buf(&aes->aligned_sg, aes->buf, aes->total);
aes               952 drivers/crypto/mediatek/mtk-aes.c 	mtk_aes_gcm_info_init(cryp, aes, len);
aes               954 drivers/crypto/mediatek/mtk-aes.c 	return mtk_aes_map(cryp, aes);
aes               958 drivers/crypto/mediatek/mtk-aes.c static int mtk_aes_gcm_start(struct mtk_cryp *cryp, struct mtk_aes_rec *aes)
aes               960 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_aes_gcm_ctx *gctx = mtk_aes_gcm_ctx_cast(aes->ctx);
aes               961 drivers/crypto/mediatek/mtk-aes.c 	struct aead_request *req = aead_request_cast(aes->areq);
aes               965 drivers/crypto/mediatek/mtk-aes.c 	mtk_aes_set_mode(aes, rctx);
aes               967 drivers/crypto/mediatek/mtk-aes.c 	if (aes->flags & AES_FLAGS_ENCRYPT) {
aes               970 drivers/crypto/mediatek/mtk-aes.c 		aes->resume = mtk_aes_transfer_complete;
aes               972 drivers/crypto/mediatek/mtk-aes.c 		aes->total = len + gctx->authsize;
aes               976 drivers/crypto/mediatek/mtk-aes.c 		aes->resume = mtk_aes_gcm_tag_verify;
aes               977 drivers/crypto/mediatek/mtk-aes.c 		aes->total = len;
aes               980 drivers/crypto/mediatek/mtk-aes.c 	return mtk_aes_gcm_dma(cryp, aes, req->src, req->dst, len);
aes              1161 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_aes_rec *aes = (struct mtk_aes_rec *)data;
aes              1163 drivers/crypto/mediatek/mtk-aes.c 	mtk_aes_handle_queue(aes->cryp, aes->id, NULL);
aes              1168 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_aes_rec *aes = (struct mtk_aes_rec *)data;
aes              1169 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_cryp *cryp = aes->cryp;
aes              1171 drivers/crypto/mediatek/mtk-aes.c 	mtk_aes_unmap(cryp, aes);
aes              1172 drivers/crypto/mediatek/mtk-aes.c 	aes->resume(cryp, aes);
aes              1177 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_aes_rec *aes  = (struct mtk_aes_rec *)dev_id;
aes              1178 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_cryp *cryp = aes->cryp;
aes              1179 drivers/crypto/mediatek/mtk-aes.c 	u32 val = mtk_aes_read(cryp, RDR_STAT(aes->id));
aes              1181 drivers/crypto/mediatek/mtk-aes.c 	mtk_aes_write(cryp, RDR_STAT(aes->id), val);
aes              1183 drivers/crypto/mediatek/mtk-aes.c 	if (likely(AES_FLAGS_BUSY & aes->flags)) {
aes              1184 drivers/crypto/mediatek/mtk-aes.c 		mtk_aes_write(cryp, RDR_PROC_COUNT(aes->id), MTK_CNT_RST);
aes              1185 drivers/crypto/mediatek/mtk-aes.c 		mtk_aes_write(cryp, RDR_THRESH(aes->id),
aes              1188 drivers/crypto/mediatek/mtk-aes.c 		tasklet_schedule(&aes->done_task);
aes              1203 drivers/crypto/mediatek/mtk-aes.c 	struct mtk_aes_rec **aes = cryp->aes;
aes              1207 drivers/crypto/mediatek/mtk-aes.c 		aes[i] = kzalloc(sizeof(**aes), GFP_KERNEL);
aes              1208 drivers/crypto/mediatek/mtk-aes.c 		if (!aes[i])
aes              1211 drivers/crypto/mediatek/mtk-aes.c 		aes[i]->buf = (void *)__get_free_pages(GFP_KERNEL,
aes              1213 drivers/crypto/mediatek/mtk-aes.c 		if (!aes[i]->buf)
aes              1216 drivers/crypto/mediatek/mtk-aes.c 		aes[i]->cryp = cryp;
aes              1218 drivers/crypto/mediatek/mtk-aes.c 		spin_lock_init(&aes[i]->lock);
aes              1219 drivers/crypto/mediatek/mtk-aes.c 		crypto_init_queue(&aes[i]->queue, AES_QUEUE_SIZE);
aes              1221 drivers/crypto/mediatek/mtk-aes.c 		tasklet_init(&aes[i]->queue_task, mtk_aes_queue_task,
aes              1222 drivers/crypto/mediatek/mtk-aes.c 			     (unsigned long)aes[i]);
aes              1223 drivers/crypto/mediatek/mtk-aes.c 		tasklet_init(&aes[i]->done_task, mtk_aes_done_task,
aes              1224 drivers/crypto/mediatek/mtk-aes.c 			     (unsigned long)aes[i]);
aes              1228 drivers/crypto/mediatek/mtk-aes.c 	aes[0]->id = MTK_RING0;
aes              1229 drivers/crypto/mediatek/mtk-aes.c 	aes[1]->id = MTK_RING1;
aes              1235 drivers/crypto/mediatek/mtk-aes.c 		free_page((unsigned long)aes[i]->buf);
aes              1236 drivers/crypto/mediatek/mtk-aes.c 		kfree(aes[i]);
aes              1247 drivers/crypto/mediatek/mtk-aes.c 		tasklet_kill(&cryp->aes[i]->done_task);
aes              1248 drivers/crypto/mediatek/mtk-aes.c 		tasklet_kill(&cryp->aes[i]->queue_task);
aes              1250 drivers/crypto/mediatek/mtk-aes.c 		free_page((unsigned long)cryp->aes[i]->buf);
aes              1251 drivers/crypto/mediatek/mtk-aes.c 		kfree(cryp->aes[i]);
aes              1300 drivers/crypto/mediatek/mtk-aes.c 			       0, "mtk-aes", cryp->aes[0]);
aes              1307 drivers/crypto/mediatek/mtk-aes.c 			       0, "mtk-aes", cryp->aes[1]);
aes               122 drivers/crypto/mediatek/mtk-platform.h typedef int (*mtk_aes_fn)(struct mtk_cryp *cryp, struct mtk_aes_rec *aes);
aes               217 drivers/crypto/mediatek/mtk-platform.h 	struct mtk_aes_rec *aes[MTK_REC_NUM];
aes               664 drivers/crypto/n2_core.c 		u8		aes[AES_MAX_KEY_SIZE];
aes               753 drivers/crypto/n2_core.c 	memcpy(ctx->key.aes, key, keylen);
aes               120 drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c 	int aes = get_num_aes(self);
aes               122 drivers/crypto/qat/qat_c3xxx/adf_c3xxx_hw_data.c 	if (aes == 6)
aes               125 drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.c 	int aes = get_num_aes(self);
aes               127 drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.c 	if (aes == 8)
aes               129 drivers/crypto/qat/qat_c62x/adf_c62x_hw_data.c 	else if (aes == 10)
aes                60 drivers/crypto/qat/qat_common/icp_qat_fw_loader_handle.h 	struct icp_qat_fw_loader_ae_data aes[ICP_QAT_UCLO_MAX_AE];
aes               303 drivers/crypto/qat/qat_common/icp_qat_hw.h 	struct icp_qat_hw_cipher_aes256_f8 aes;
aes               313 drivers/crypto/qat/qat_common/qat_algs.c 	cipher->aes.cipher_config.val = QAT_AES_HW_CONFIG_ENC(alg, mode);
aes               314 drivers/crypto/qat/qat_common/qat_algs.c 	memcpy(cipher->aes.key, keys->enckey, keys->enckeylen);
aes               399 drivers/crypto/qat/qat_common/qat_algs.c 	cipher->aes.cipher_config.val = QAT_AES_HW_CONFIG_DEC(alg, mode);
aes               400 drivers/crypto/qat/qat_common/qat_algs.c 	memcpy(cipher->aes.key, keys->enckey, keys->enckeylen);
aes               475 drivers/crypto/qat/qat_common/qat_algs.c 	memcpy(cd->aes.key, key, keylen);
aes               498 drivers/crypto/qat/qat_common/qat_algs.c 	enc_cd->aes.cipher_config.val = QAT_AES_HW_CONFIG_ENC(alg, mode);
aes               513 drivers/crypto/qat/qat_common/qat_algs.c 		dec_cd->aes.cipher_config.val =
aes               516 drivers/crypto/qat/qat_common/qat_algs.c 		dec_cd->aes.cipher_config.val =
aes                79 drivers/crypto/qat/qat_common/qat_hal.c #define AE(handle, ae) handle->hal_handle->aes[ae]
aes               738 drivers/crypto/qat/qat_common/qat_hal.c 		handle->hal_handle->aes[ae].free_addr = 0;
aes               739 drivers/crypto/qat/qat_common/qat_hal.c 		handle->hal_handle->aes[ae].free_size =
aes               741 drivers/crypto/qat/qat_common/qat_hal.c 		handle->hal_handle->aes[ae].ustore_size =
aes               743 drivers/crypto/qat/qat_common/qat_hal.c 		handle->hal_handle->aes[ae].live_ctx_mask =
aes              3822 drivers/net/wireless/intel/iwlwifi/dvm/commands.h 	struct iwlagn_aes_rsc_tsc aes;
aes               968 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 			aes_sc = data->rsc_tsc->all_tsc_rsc.aes.unicast_rsc;
aes               969 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 			aes_tx_sc = &data->rsc_tsc->all_tsc_rsc.aes.tsc;
aes               974 drivers/net/wireless/intel/iwlwifi/dvm/lib.c 			aes_sc = data->rsc_tsc->all_tsc_rsc.aes.multicast_rsc;
aes               443 drivers/net/wireless/intel/iwlwifi/fw/api/d3.h 	struct iwl_aes_rsc_tsc aes;
aes               310 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 			aes_sc = data->rsc_tsc->all_tsc_rsc.aes.unicast_rsc;
aes               311 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 			aes_tx_sc = &data->rsc_tsc->all_tsc_rsc.aes.tsc;
aes               316 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 			aes_sc = data->rsc_tsc->all_tsc_rsc.aes.multicast_rsc;
aes              1337 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 		iwl_mvm_set_aes_rx_seq(mvm, rsc->aes.multicast_rsc, NULL, key);
aes              1398 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 			iwl_mvm_set_aes_rx_seq(data->mvm, sc->aes.unicast_rsc,
aes              1400 drivers/net/wireless/intel/iwlwifi/mvm/d3.c 			atomic64_set(&key->tx_pn, le64_to_cpu(sc->aes.tsc.pn));
aes               981 drivers/net/wireless/marvell/mwifiex/fw.h 		struct mwifiex_aes_param aes;
aes               623 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 			memcpy(km->key_param_set.key_params.aes.pn,
aes               626 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		km->key_param_set.key_params.aes.key_len =
aes               628 drivers/net/wireless/marvell/mwifiex/sta_cmd.c 		memcpy(km->key_param_set.key_params.aes.key,
aes               628 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 	memset(priv->aes_key_v2.key_param_set.key_params.aes.key, 0,
aes               630 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 	priv->aes_key_v2.key_param_set.key_params.aes.key_len =
aes               631 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 				key_v2->key_param_set.key_params.aes.key_len;
aes               632 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 	len = priv->aes_key_v2.key_param_set.key_params.aes.key_len;
aes               633 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 	memcpy(priv->aes_key_v2.key_param_set.key_params.aes.key,
aes               634 drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c 	       key_v2->key_param_set.key_params.aes.key, le16_to_cpu(len));
aes              1069 drivers/net/wireless/ti/wl1251/acx.h 	struct acx_aes_statistics aes;
aes               162 drivers/net/wireless/ti/wl1251/debugfs.c DEBUGFS_FWSTATS_FILE(aes, encrypt_fail, 20, "%u");
aes               163 drivers/net/wireless/ti/wl1251/debugfs.c DEBUGFS_FWSTATS_FILE(aes, decrypt_fail, 20, "%u");
aes               164 drivers/net/wireless/ti/wl1251/debugfs.c DEBUGFS_FWSTATS_FILE(aes, encrypt_packets, 20, "%u");
aes               165 drivers/net/wireless/ti/wl1251/debugfs.c DEBUGFS_FWSTATS_FILE(aes, decrypt_packets, 20, "%u");
aes               166 drivers/net/wireless/ti/wl1251/debugfs.c DEBUGFS_FWSTATS_FILE(aes, encrypt_interrupt, 20, "%u");
aes               167 drivers/net/wireless/ti/wl1251/debugfs.c DEBUGFS_FWSTATS_FILE(aes, decrypt_interrupt, 20, "%u");
aes               302 drivers/net/wireless/ti/wl1251/debugfs.c 	DEBUGFS_FWSTATS_DEL(aes, encrypt_fail);
aes               303 drivers/net/wireless/ti/wl1251/debugfs.c 	DEBUGFS_FWSTATS_DEL(aes, decrypt_fail);
aes               304 drivers/net/wireless/ti/wl1251/debugfs.c 	DEBUGFS_FWSTATS_DEL(aes, encrypt_packets);
aes               305 drivers/net/wireless/ti/wl1251/debugfs.c 	DEBUGFS_FWSTATS_DEL(aes, decrypt_packets);
aes               306 drivers/net/wireless/ti/wl1251/debugfs.c 	DEBUGFS_FWSTATS_DEL(aes, encrypt_interrupt);
aes               307 drivers/net/wireless/ti/wl1251/debugfs.c 	DEBUGFS_FWSTATS_DEL(aes, decrypt_interrupt);
aes               401 drivers/net/wireless/ti/wl1251/debugfs.c 	DEBUGFS_FWSTATS_ADD(aes, encrypt_fail);
aes               402 drivers/net/wireless/ti/wl1251/debugfs.c 	DEBUGFS_FWSTATS_ADD(aes, decrypt_fail);
aes               403 drivers/net/wireless/ti/wl1251/debugfs.c 	DEBUGFS_FWSTATS_ADD(aes, encrypt_packets);
aes               404 drivers/net/wireless/ti/wl1251/debugfs.c 	DEBUGFS_FWSTATS_ADD(aes, decrypt_packets);
aes               405 drivers/net/wireless/ti/wl1251/debugfs.c 	DEBUGFS_FWSTATS_ADD(aes, encrypt_interrupt);
aes               406 drivers/net/wireless/ti/wl1251/debugfs.c 	DEBUGFS_FWSTATS_ADD(aes, decrypt_interrupt);
aes               250 drivers/net/wireless/ti/wl12xx/acx.h 	struct wl12xx_acx_aes_statistics aes;
aes                80 drivers/net/wireless/ti/wl12xx/debugfs.c WL12XX_DEBUGFS_FWSTATS_FILE(aes, encrypt_fail, "%u");
aes                81 drivers/net/wireless/ti/wl12xx/debugfs.c WL12XX_DEBUGFS_FWSTATS_FILE(aes, decrypt_fail, "%u");
aes                82 drivers/net/wireless/ti/wl12xx/debugfs.c WL12XX_DEBUGFS_FWSTATS_FILE(aes, encrypt_packets, "%u");
aes                83 drivers/net/wireless/ti/wl12xx/debugfs.c WL12XX_DEBUGFS_FWSTATS_FILE(aes, decrypt_packets, "%u");
aes                84 drivers/net/wireless/ti/wl12xx/debugfs.c WL12XX_DEBUGFS_FWSTATS_FILE(aes, encrypt_interrupt, "%u");
aes                85 drivers/net/wireless/ti/wl12xx/debugfs.c WL12XX_DEBUGFS_FWSTATS_FILE(aes, decrypt_interrupt, "%u");
aes               180 drivers/net/wireless/ti/wl12xx/debugfs.c 	DEBUGFS_FWSTATS_ADD(aes, encrypt_fail);
aes               181 drivers/net/wireless/ti/wl12xx/debugfs.c 	DEBUGFS_FWSTATS_ADD(aes, decrypt_fail);
aes               182 drivers/net/wireless/ti/wl12xx/debugfs.c 	DEBUGFS_FWSTATS_ADD(aes, encrypt_packets);
aes               183 drivers/net/wireless/ti/wl12xx/debugfs.c 	DEBUGFS_FWSTATS_ADD(aes, decrypt_packets);
aes               184 drivers/net/wireless/ti/wl12xx/debugfs.c 	DEBUGFS_FWSTATS_ADD(aes, encrypt_interrupt);
aes               185 drivers/net/wireless/ti/wl12xx/debugfs.c 	DEBUGFS_FWSTATS_ADD(aes, decrypt_interrupt);
aes               651 include/linux/ccp.h 		struct ccp_aes_engine aes;
aes              1720 sound/pci/rme32.c static u32 snd_rme32_convert_from_aes(struct snd_aes_iec958 * aes)
aes              1723 sound/pci/rme32.c 	val |= (aes->status[0] & IEC958_AES0_PROFESSIONAL) ? RME32_WCR_PRO : 0;
aes              1725 sound/pci/rme32.c 		val |= (aes->status[0] & IEC958_AES0_PRO_EMPHASIS_5015) ? RME32_WCR_EMP : 0;
aes              1727 sound/pci/rme32.c 		val |= (aes->status[0] & IEC958_AES0_CON_EMPHASIS_5015) ? RME32_WCR_EMP : 0;
aes              1731 sound/pci/rme32.c static void snd_rme32_convert_to_aes(struct snd_aes_iec958 * aes, u32 val)
aes              1733 sound/pci/rme32.c 	aes->status[0] = ((val & RME32_WCR_PRO) ? IEC958_AES0_PROFESSIONAL : 0);
aes              1735 sound/pci/rme32.c 		aes->status[0] |= (val & RME32_WCR_EMP) ? IEC958_AES0_PRO_EMPHASIS_5015 : 0;
aes              1737 sound/pci/rme32.c 		aes->status[0] |= (val & RME32_WCR_EMP) ? IEC958_AES0_CON_EMPHASIS_5015 : 0;
aes              2109 sound/pci/rme96.c static u32 snd_rme96_convert_from_aes(struct snd_aes_iec958 *aes)
aes              2112 sound/pci/rme96.c 	val |= (aes->status[0] & IEC958_AES0_PROFESSIONAL) ? RME96_WCR_PRO : 0;
aes              2113 sound/pci/rme96.c 	val |= (aes->status[0] & IEC958_AES0_NONAUDIO) ? RME96_WCR_DOLBY : 0;
aes              2115 sound/pci/rme96.c 		val |= (aes->status[0] & IEC958_AES0_PRO_EMPHASIS_5015) ? RME96_WCR_EMP : 0;
aes              2117 sound/pci/rme96.c 		val |= (aes->status[0] & IEC958_AES0_CON_EMPHASIS_5015) ? RME96_WCR_EMP : 0;
aes              2121 sound/pci/rme96.c static void snd_rme96_convert_to_aes(struct snd_aes_iec958 *aes, u32 val)
aes              2123 sound/pci/rme96.c 	aes->status[0] = ((val & RME96_WCR_PRO) ? IEC958_AES0_PROFESSIONAL : 0) |
aes              2126 sound/pci/rme96.c 		aes->status[0] |= (val & RME96_WCR_EMP) ? IEC958_AES0_PRO_EMPHASIS_5015 : 0;
aes              2128 sound/pci/rme96.c 		aes->status[0] |= (val & RME96_WCR_EMP) ? IEC958_AES0_CON_EMPHASIS_5015 : 0;
aes              1544 sound/pci/rme9652/hdsp.c static u32 snd_hdsp_convert_from_aes(struct snd_aes_iec958 *aes)
aes              1547 sound/pci/rme9652/hdsp.c 	val |= (aes->status[0] & IEC958_AES0_PROFESSIONAL) ? HDSP_SPDIFProfessional : 0;
aes              1548 sound/pci/rme9652/hdsp.c 	val |= (aes->status[0] & IEC958_AES0_NONAUDIO) ? HDSP_SPDIFNonAudio : 0;
aes              1550 sound/pci/rme9652/hdsp.c 		val |= (aes->status[0] & IEC958_AES0_PRO_EMPHASIS_5015) ? HDSP_SPDIFEmphasis : 0;
aes              1552 sound/pci/rme9652/hdsp.c 		val |= (aes->status[0] & IEC958_AES0_CON_EMPHASIS_5015) ? HDSP_SPDIFEmphasis : 0;
aes              1556 sound/pci/rme9652/hdsp.c static void snd_hdsp_convert_to_aes(struct snd_aes_iec958 *aes, u32 val)
aes              1558 sound/pci/rme9652/hdsp.c 	aes->status[0] = ((val & HDSP_SPDIFProfessional) ? IEC958_AES0_PROFESSIONAL : 0) |
aes              1561 sound/pci/rme9652/hdsp.c 		aes->status[0] |= (val & HDSP_SPDIFEmphasis) ? IEC958_AES0_PRO_EMPHASIS_5015 : 0;
aes              1563 sound/pci/rme9652/hdsp.c 		aes->status[0] |= (val & HDSP_SPDIFEmphasis) ? IEC958_AES0_CON_EMPHASIS_5015 : 0;
aes               775 sound/pci/rme9652/rme9652.c static u32 snd_rme9652_convert_from_aes(struct snd_aes_iec958 *aes)
aes               778 sound/pci/rme9652/rme9652.c 	val |= (aes->status[0] & IEC958_AES0_PROFESSIONAL) ? RME9652_PRO : 0;
aes               779 sound/pci/rme9652/rme9652.c 	val |= (aes->status[0] & IEC958_AES0_NONAUDIO) ? RME9652_Dolby : 0;
aes               781 sound/pci/rme9652/rme9652.c 		val |= (aes->status[0] & IEC958_AES0_PRO_EMPHASIS_5015) ? RME9652_EMP : 0;
aes               783 sound/pci/rme9652/rme9652.c 		val |= (aes->status[0] & IEC958_AES0_CON_EMPHASIS_5015) ? RME9652_EMP : 0;
aes               787 sound/pci/rme9652/rme9652.c static void snd_rme9652_convert_to_aes(struct snd_aes_iec958 *aes, u32 val)
aes               789 sound/pci/rme9652/rme9652.c 	aes->status[0] = ((val & RME9652_PRO) ? IEC958_AES0_PROFESSIONAL : 0) |
aes               792 sound/pci/rme9652/rme9652.c 		aes->status[0] |= (val & RME9652_EMP) ? IEC958_AES0_PRO_EMPHASIS_5015 : 0;
aes               794 sound/pci/rme9652/rme9652.c 		aes->status[0] |= (val & RME9652_EMP) ? IEC958_AES0_CON_EMPHASIS_5015 : 0;