Lines Matching refs:npcx_ctx
87 struct npcx_sha_context *npcx_ctx = &npcx_session->npcx_sha_ctx; in npcx_sha_compute() local
106 ret = NPCX_NCL_SHA->start(npcx_ctx->handle, sha_type); in npcx_sha_compute()
115 ret = NPCX_NCL_SHA->update(npcx_ctx->handle, pkt->in_buf, pkt->in_len); in npcx_sha_compute()
125 ret = NPCX_NCL_SHA->finish(npcx_ctx->handle, pkt->out_buf); in npcx_sha_compute()
139 struct npcx_sha_context *npcx_ctx; in npcx_hash_session_setup() local
164 npcx_ctx = &npcx_sessions[ctx_idx].npcx_sha_ctx; in npcx_hash_session_setup()
165 NPCX_NCL_SHA->init_context(npcx_ctx->handle); in npcx_hash_session_setup()
166 NPCX_NCL_SHA->power(npcx_ctx->handle, 1); in npcx_hash_session_setup()
167 NPCX_NCL_SHA->init(npcx_ctx->handle); in npcx_hash_session_setup()
168 NPCX_NCL_SHA->reset(npcx_ctx->handle); in npcx_hash_session_setup()
176 struct npcx_sha_context *npcx_ctx = &npcx_session->npcx_sha_ctx; in npcx_hash_session_free() local
178 NPCX_NCL_SHA->reset(npcx_ctx->handle); in npcx_hash_session_free()
179 NPCX_NCL_SHA->power(npcx_ctx->handle, 0); in npcx_hash_session_free()
180 NPCX_NCL_SHA->finalize_context(npcx_ctx->handle); in npcx_hash_session_free()