Lines Matching refs:sctx
172 struct xcbc_state *sctx = shash_desc_ctx(desc); in nx_xcbc_init() local
174 memset(sctx, 0, sizeof *sctx); in nx_xcbc_init()
183 struct xcbc_state *sctx = shash_desc_ctx(desc); in nx_xcbc_update() local
197 total = sctx->count + len; in nx_xcbc_update()
204 memcpy(sctx->buffer + sctx->count, data, len); in nx_xcbc_update()
205 sctx->count += len; in nx_xcbc_update()
216 out_sg = nx_build_sg_list(nx_ctx->out_sg, (u8 *)sctx->state, in nx_xcbc_update()
242 if (sctx->count) { in nx_xcbc_update()
243 data_len = sctx->count; in nx_xcbc_update()
245 (u8 *) sctx->buffer, in nx_xcbc_update()
248 if (data_len != sctx->count) { in nx_xcbc_update()
254 data_len = to_process - sctx->count; in nx_xcbc_update()
260 if (data_len != to_process - sctx->count) { in nx_xcbc_update()
293 data += to_process - sctx->count; in nx_xcbc_update()
294 sctx->count = 0; in nx_xcbc_update()
299 memcpy(sctx->buffer, data, leftover); in nx_xcbc_update()
300 sctx->count = leftover; in nx_xcbc_update()
309 struct xcbc_state *sctx = shash_desc_ctx(desc); in nx_xcbc_final() local
324 } else if (sctx->count == 0) { in nx_xcbc_final()
338 len = sctx->count; in nx_xcbc_final()
339 in_sg = nx_build_sg_list(nx_ctx->in_sg, (u8 *)sctx->buffer, in nx_xcbc_final()
342 if (len != sctx->count) { in nx_xcbc_final()