Lines Matching defs:state
198 if (dev->state == CHCR_DETACH)
318 memcpy(result_hash, sha1_st.state, SHA1_DIGEST_SIZE);
323 memcpy(result_hash, sha256_st.state, SHA256_DIGEST_SIZE);
329 memcpy(result_hash, sha256_st.state, SHA256_DIGEST_SIZE);
335 memcpy(result_hash, sha512_st.state, SHA512_DIGEST_SIZE);
341 memcpy(result_hash, sha512_st.state, SHA512_DIGEST_SIZE);
1689 /* Detach state for CHCR means lldi or padap is freed. Increasing
2167 struct chcr_ahash_req_ctx *state = out;
2169 state->reqlen = req_ctx->reqlen;
2170 state->data_len = req_ctx->data_len;
2171 memcpy(state->bfr1, req_ctx->reqbfr, req_ctx->reqlen);
2172 memcpy(state->partial_hash, req_ctx->partial_hash,
2174 chcr_init_hctx_per_wr(state);
2181 struct chcr_ahash_req_ctx *state = (struct chcr_ahash_req_ctx *)in;
2183 req_ctx->reqlen = state->reqlen;
2184 req_ctx->data_len = state->data_len;
2187 memcpy(req_ctx->bfr1, state->bfr1, CHCR_HASH_MAX_BLOCK_SIZE_128);
2188 memcpy(req_ctx->partial_hash, state->partial_hash,
3753 /* Detach state for CHCR means lldi or padap is freed.