Lines Matching refs:state
34 u64 *hash = (u64 *)sctx->state; in octeon_sha256_store_hash()
44 u64 *hash = (u64 *)sctx->state; in octeon_sha256_read_hash()
70 sctx->state[0] = SHA224_H0; in octeon_sha224_init()
71 sctx->state[1] = SHA224_H1; in octeon_sha224_init()
72 sctx->state[2] = SHA224_H2; in octeon_sha224_init()
73 sctx->state[3] = SHA224_H3; in octeon_sha224_init()
74 sctx->state[4] = SHA224_H4; in octeon_sha224_init()
75 sctx->state[5] = SHA224_H5; in octeon_sha224_init()
76 sctx->state[6] = SHA224_H6; in octeon_sha224_init()
77 sctx->state[7] = SHA224_H7; in octeon_sha224_init()
87 sctx->state[0] = SHA256_H0; in octeon_sha256_init()
88 sctx->state[1] = SHA256_H1; in octeon_sha256_init()
89 sctx->state[2] = SHA256_H2; in octeon_sha256_init()
90 sctx->state[3] = SHA256_H3; in octeon_sha256_init()
91 sctx->state[4] = SHA256_H4; in octeon_sha256_init()
92 sctx->state[5] = SHA256_H5; in octeon_sha256_init()
93 sctx->state[6] = SHA256_H6; in octeon_sha256_init()
94 sctx->state[7] = SHA256_H7; in octeon_sha256_init()
135 struct octeon_cop2_state state; in octeon_sha256_update() local
146 flags = octeon_crypto_enable(&state); in octeon_sha256_update()
152 octeon_crypto_disable(&state, flags); in octeon_sha256_update()
161 struct octeon_cop2_state state; in octeon_sha256_final() local
176 flags = octeon_crypto_enable(&state); in octeon_sha256_final()
185 octeon_crypto_disable(&state, flags); in octeon_sha256_final()
189 dst[i] = cpu_to_be32(sctx->state[i]); in octeon_sha256_final()