Lines Matching refs:state
2436 struct artpec6_hash_export_state *state = out;
2440 BUILD_BUG_ON(sizeof(state->partial_buffer) !=
2442 BUILD_BUG_ON(sizeof(state->digeststate) != sizeof(ctx->digeststate));
2444 state->digcnt = ctx->digcnt;
2445 state->partial_bytes = ctx->partial_bytes;
2446 state->hash_flags = ctx->hash_flags;
2449 state->oper = FIELD_GET(A6_CRY_MD_OPER, ctx->hash_md);
2451 state->oper = FIELD_GET(A7_CRY_MD_OPER, ctx->hash_md);
2453 memcpy(state->partial_buffer, ctx->partial_buffer,
2454 sizeof(state->partial_buffer));
2455 memcpy(state->digeststate, ctx->digeststate,
2456 sizeof(state->digeststate));
2464 const struct artpec6_hash_export_state *state = in;
2470 ctx->digcnt = state->digcnt;
2471 ctx->partial_bytes = state->partial_bytes;
2472 ctx->hash_flags = state->hash_flags;
2475 ctx->hash_md = FIELD_PREP(A6_CRY_MD_OPER, state->oper);
2477 ctx->hash_md = FIELD_PREP(A7_CRY_MD_OPER, state->oper);
2479 memcpy(ctx->partial_buffer, state->partial_buffer,
2480 sizeof(state->partial_buffer));
2481 memcpy(ctx->digeststate, state->digeststate,
2482 sizeof(state->digeststate));