Lines Matching refs:state_sz
38 u8 state_sz; /* expected sate size, only set once */ member
140 cdesc->control_data.control0 |= CONTEXT_CONTROL_SIZE(2 * req->state_sz / sizeof(u32)); in safexcel_context_control()
142 memcpy(ctx->base.ctxr->data, ctx->ipad, req->state_sz); in safexcel_context_control()
143 memcpy(ctx->base.ctxr->data + req->state_sz / sizeof(u32), in safexcel_context_control()
144 ctx->opad, req->state_sz); in safexcel_context_control()
177 dma_unmap_single(priv->dev, sreq->result_dma, sreq->state_sz, in safexcel_handle_req_result()
306 safexcel_context_control(ctx, req, first_cdesc, req->state_sz); in safexcel_ahash_send_req()
309 safexcel_hash_token(first_cdesc, len, req->state_sz); in safexcel_ahash_send_req()
311 req->result_dma = dma_map_single(priv->dev, req->state, req->state_sz, in safexcel_ahash_send_req()
320 req->state_sz); in safexcel_ahash_send_req()
337 dma_unmap_single(priv->dev, req->result_dma, req->state_sz, in safexcel_ahash_send_req()
358 unsigned int state_w_sz = req->state_sz / sizeof(u32); in safexcel_ahash_needs_inv_get()
689 memcpy(export->state, req->state, req->state_sz); in safexcel_ahash_export()
714 memcpy(req->state, export->state, req->state_sz); in safexcel_ahash_import()
750 req->state_sz = SHA1_DIGEST_SIZE; in safexcel_sha1_init()
984 unsigned int state_sz) in safexcel_hmac_alg_setkey() argument
996 for (i = 0; i < state_sz / sizeof(u32); i++) { in safexcel_hmac_alg_setkey()
1005 memcpy(ctx->ipad, &istate.state, state_sz); in safexcel_hmac_alg_setkey()
1006 memcpy(ctx->opad, &ostate.state, state_sz); in safexcel_hmac_alg_setkey()
1067 req->state_sz = SHA256_DIGEST_SIZE; in safexcel_sha256_init()
1130 req->state_sz = SHA256_DIGEST_SIZE; in safexcel_sha224_init()
1315 req->state_sz = SHA512_DIGEST_SIZE; in safexcel_sha512_init()
1386 req->state_sz = SHA512_DIGEST_SIZE; in safexcel_sha384_init()
1559 req->state_sz = MD5_DIGEST_SIZE; in safexcel_md5_init()