Home
last modified time | relevance | path

Searched refs:bufcnt (Results 1 – 8 of 8) sorted by relevance

/drivers/crypto/
Datmel-sha.c87 size_t bufcnt; member
166 while ((ctx->bufcnt < ctx->buflen) && ctx->total) { in atmel_sha_append_sg()
168 count = min(count, ctx->buflen - ctx->bufcnt); in atmel_sha_append_sg()
173 scatterwalk_map_and_copy(ctx->buffer + ctx->bufcnt, ctx->sg, in atmel_sha_append_sg()
176 ctx->bufcnt += count; in atmel_sha_append_sg()
217 size[0] += ctx->bufcnt; in atmel_sha_fill_padding()
218 if (size[0] < ctx->bufcnt) in atmel_sha_fill_padding()
229 index = ctx->bufcnt & 0x7f; in atmel_sha_fill_padding()
231 *(ctx->buffer + ctx->bufcnt) = 0x80; in atmel_sha_fill_padding()
232 memset(ctx->buffer + ctx->bufcnt + 1, 0, padlen-1); in atmel_sha_fill_padding()
[all …]
Domap-sham.c147 size_t bufcnt; member
625 size_t count = min(length, ctx->buflen - ctx->bufcnt); in omap_sham_append_buffer()
630 memcpy(ctx->buffer + ctx->bufcnt, data, count); in omap_sham_append_buffer()
631 ctx->bufcnt += count; in omap_sham_append_buffer()
700 ctx->bufcnt, ctx->digcnt, final); in omap_sham_update_dma_slow()
702 if (final || (ctx->bufcnt == ctx->buflen && ctx->total)) { in omap_sham_update_dma_slow()
703 count = ctx->bufcnt; in omap_sham_update_dma_slow()
704 ctx->bufcnt = 0; in omap_sham_update_dma_slow()
726 if (ctx->bufcnt || ctx->offset) in omap_sham_update_dma_start()
739 ctx->digcnt, ctx->bufcnt, ctx->total); in omap_sham_update_dma_start()
[all …]
Datmel-aes.c129 size_t bufcnt; member
403 dd->bufcnt = sg_copy_to_buffer(dd->in_sg, dd->nb_in_sg, in atmel_aes_crypt_cpu_start()
406 if (!dd->bufcnt) in atmel_aes_crypt_cpu_start()
409 dd->total -= dd->bufcnt; in atmel_aes_crypt_cpu_start()
413 dd->bufcnt >> 2); in atmel_aes_crypt_cpu_start()
1153 dd->bufcnt >> 2); in atmel_aes_done_task()
1156 dd->buf_out, dd->bufcnt)) in atmel_aes_done_task()
/drivers/net/hamradio/
Dbaycom_epp.c193 int bufcnt; member
203 int bufcnt; member
378 if (bc->hdlctx.bufcnt > 0) in encode_hdlc()
424 bc->hdlctx.bufcnt = wp - bc->hdlctx.buf; in encode_hdlc()
440 if (bc->hdlctx.bufcnt <= 0) in transmit()
442 if (bc->hdlctx.bufcnt <= 0) in transmit()
456 if (bc->hdlctx.state == tx_idle && bc->hdlctx.bufcnt > 0) { in transmit()
479 if (bc->hdlctx.bufcnt <= 0) { in transmit()
481 if (bc->hdlctx.bufcnt <= 0) { in transmit()
487 i = min_t(int, cnt, bc->hdlctx.bufcnt); in transmit()
[all …]
/drivers/block/aoe/
Daoe.h64 __be16 bufcnt; member
Daoecmd.c1624 n = be16_to_cpu(ch->bufcnt); in aoecmd_cfg_rsp()
/drivers/net/ethernet/sgi/
Dioc3-eth.c1475 desc->bufcnt = cpu_to_be32(len); in ioc3_start_xmit()
1483 desc->bufcnt = cpu_to_be32((s1 << ETXD_B1CNT_SHIFT) | in ioc3_start_xmit()
1490 desc->bufcnt = cpu_to_be32(len << ETXD_B1CNT_SHIFT); in ioc3_start_xmit()
/drivers/s390/net/
Dqeth_core_main.c285 int qeth_realloc_buffer_pool(struct qeth_card *card, int bufcnt) in qeth_realloc_buffer_pool() argument
296 card->qdio.in_buf_pool.buf_count = bufcnt; in qeth_realloc_buffer_pool()
297 card->qdio.init_pool.buf_count = bufcnt; in qeth_realloc_buffer_pool()