Lines Matching refs:bufnext_len
86 size_t bufnext_len; member
150 ctx->bufnext_len = 0; in bfin_crypto_crc_init()
182 dma_count = sg_dma_len(sg) - ctx->bufnext_len; in bfin_crypto_crc_config_dma()
252 if (ctx->bufnext_len && (ctx->flag == CRC_CRYPTO_STATE_FINALUPDATE || in bfin_crypto_crc_config_dma()
321 if (ctx->bufnext_len == 0) { in bfin_crypto_crc_handle_queue()
327 memset(ctx->bufnext + ctx->bufnext_len, 0, in bfin_crypto_crc_handle_queue()
328 CHKSUM_DIGEST_SIZE - ctx->bufnext_len); in bfin_crypto_crc_handle_queue()
331 if (ctx->bufnext_len + req->nbytes < CHKSUM_DIGEST_SIZE) { in bfin_crypto_crc_handle_queue()
332 memcpy(ctx->bufnext + ctx->bufnext_len, in bfin_crypto_crc_handle_queue()
334 ctx->bufnext_len += req->nbytes; in bfin_crypto_crc_handle_queue()
336 ctx->bufnext_len) { in bfin_crypto_crc_handle_queue()
344 if (ctx->bufnext_len) { in bfin_crypto_crc_handle_queue()
346 ctx->buflast_len = ctx->bufnext_len; in bfin_crypto_crc_handle_queue()
362 ctx->bufnext_len = ctx->sg_buflen % 4; in bfin_crypto_crc_handle_queue()
365 if (ctx->bufnext_len) { in bfin_crypto_crc_handle_queue()
368 nextlen = ctx->bufnext_len; in bfin_crypto_crc_handle_queue()
384 if (ctx->bufnext_len && (ctx->flag == CRC_CRYPTO_STATE_FINALUPDATE || in bfin_crypto_crc_handle_queue()