Home
last modified time | relevance | path

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

/drivers/crypto/
Datmel-sha.c87 size_t bufcnt; member
162 while ((ctx->bufcnt < ctx->buflen) && ctx->total) { in atmel_sha_append_sg()
164 count = min(count, ctx->buflen - ctx->bufcnt); in atmel_sha_append_sg()
181 scatterwalk_map_and_copy(ctx->buffer + ctx->bufcnt, ctx->sg, in atmel_sha_append_sg()
184 ctx->bufcnt += count; in atmel_sha_append_sg()
225 size[0] += ctx->bufcnt; in atmel_sha_fill_padding()
226 if (size[0] < ctx->bufcnt) in atmel_sha_fill_padding()
237 index = ctx->bufcnt & 0x7f; in atmel_sha_fill_padding()
239 *(ctx->buffer + ctx->bufcnt) = 0x80; in atmel_sha_fill_padding()
240 memset(ctx->buffer + ctx->bufcnt + 1, 0, padlen-1); in atmel_sha_fill_padding()
[all …]
Domap-sham.c147 size_t bufcnt; member
634 size_t count = min(length, ctx->buflen - ctx->bufcnt); in omap_sham_append_buffer()
639 memcpy(ctx->buffer + ctx->bufcnt, data, count); in omap_sham_append_buffer()
640 ctx->bufcnt += count; in omap_sham_append_buffer()
710 ctx->bufcnt, ctx->digcnt, final); in omap_sham_update_dma_slow()
712 if (final || (ctx->bufcnt == ctx->buflen && ctx->total)) { in omap_sham_update_dma_slow()
713 count = ctx->bufcnt; in omap_sham_update_dma_slow()
714 ctx->bufcnt = 0; in omap_sham_update_dma_slow()
736 if (ctx->bufcnt || ctx->offset) in omap_sham_update_dma_start()
749 ctx->digcnt, ctx->bufcnt, ctx->total); in omap_sham_update_dma_start()
[all …]
Dimg-hash.c104 size_t bufcnt; member
213 if (ctx->bufcnt) { in img_hash_dma_callback()
214 img_hash_xmit_cpu(hdev, ctx->buffer, ctx->bufcnt, 0); in img_hash_dma_callback()
215 ctx->bufcnt = 0; in img_hash_dma_callback()
256 ctx->bufcnt = sg_copy_to_buffer(hdev->req->src, sg_nents(ctx->sg), in img_hash_write_via_cpu()
260 ctx->bufcnt = 0; in img_hash_write_via_cpu()
399 ctx->bufcnt = sg_pcopy_to_buffer(ctx->sgfirst, ctx->nents, in img_hash_dma_task()
403 while (ctx->sg && (ctx->bufcnt < 4)) { in img_hash_dma_task()
405 if (likely(len > (4 - ctx->bufcnt))) in img_hash_dma_task()
406 len = 4 - ctx->bufcnt; in img_hash_dma_task()
[all …]
Datmel-aes.c129 size_t bufcnt; member
412 dd->bufcnt = sg_copy_to_buffer(dd->in_sg, dd->nb_in_sg, in atmel_aes_crypt_cpu_start()
415 if (!dd->bufcnt) in atmel_aes_crypt_cpu_start()
418 dd->total -= dd->bufcnt; in atmel_aes_crypt_cpu_start()
422 dd->bufcnt >> 2); in atmel_aes_crypt_cpu_start()
1165 dd->bufcnt >> 2); in atmel_aes_done_task()
1168 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()