Lines Matching refs:state
2435 struct artpec6_hash_export_state *state = out;
2439 BUILD_BUG_ON(sizeof(state->partial_buffer) !=
2441 BUILD_BUG_ON(sizeof(state->digeststate) != sizeof(ctx->digeststate));
2443 state->digcnt = ctx->digcnt;
2444 state->partial_bytes = ctx->partial_bytes;
2445 state->hash_flags = ctx->hash_flags;
2448 state->oper = FIELD_GET(A6_CRY_MD_OPER, ctx->hash_md);
2450 state->oper = FIELD_GET(A7_CRY_MD_OPER, ctx->hash_md);
2452 memcpy(state->partial_buffer, ctx->partial_buffer,
2453 sizeof(state->partial_buffer));
2454 memcpy(state->digeststate, ctx->digeststate,
2455 sizeof(state->digeststate));
2463 const struct artpec6_hash_export_state *state = in;
2469 ctx->digcnt = state->digcnt;
2470 ctx->partial_bytes = state->partial_bytes;
2471 ctx->hash_flags = state->hash_flags;
2474 ctx->hash_md = FIELD_PREP(A6_CRY_MD_OPER, state->oper);
2476 ctx->hash_md = FIELD_PREP(A7_CRY_MD_OPER, state->oper);
2478 memcpy(ctx->partial_buffer, state->partial_buffer,
2479 sizeof(state->partial_buffer));
2480 memcpy(ctx->digeststate, state->digeststate,
2481 sizeof(state->digeststate));