Lines Matching refs:ctx
50 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_init() local
52 ctx->crc = 0; in chksum_init()
60 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_update() local
64 ctx->crc = crc_t10dif_pcl(ctx->crc, data, length); in chksum_update()
67 ctx->crc = crc_t10dif_generic(ctx->crc, data, length); in chksum_update()
73 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_final() local
75 *(__u16 *)out = ctx->crc; in chksum_final()
94 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_finup() local
96 return __chksum_finup(&ctx->crc, data, len, out); in chksum_finup()
102 struct chksum_desc_ctx *ctx = shash_desc_ctx(desc); in chksum_digest() local
104 return __chksum_finup(&ctx->crc, data, length, out); in chksum_digest()