Lines Matching refs:ctr_ctx
207 ctr_init_ctx(ctr_ctx_t *ctr_ctx, ulong_t count, uint8_t *cb,
225 ctr_ctx->ctr_lower_mask = htonll(lower_mask);
226 ctr_ctx->ctr_upper_mask = htonll(upper_mask);
228 copy_block(cb, (uchar_t *)ctr_ctx->ctr_cb);
229 ctr_ctx->ctr_lastp = (uint8_t *)&ctr_ctx->ctr_cb[0];
230 ctr_ctx->ctr_flags |= CTR_MODE;
238 ctr_ctx_t *ctr_ctx;
241 if ((ctr_ctx = kmem_zalloc(sizeof (ctr_ctx_t), kmflag)) == NULL)
243 if ((ctr_ctx = calloc(1, sizeof (ctr_ctx_t))) == NULL)
247 ctr_ctx->ctr_flags = CTR_MODE;
248 return (ctr_ctx);