Searched refs:bufcnt (Results 1 – 9 of 9) sorted by relevance
/drivers/crypto/ |
D | atmel-sha.c | 94 size_t bufcnt; member 170 while ((ctx->bufcnt < ctx->buflen) && ctx->total) { in atmel_sha_append_sg() 172 count = min(count, ctx->buflen - ctx->bufcnt); in atmel_sha_append_sg() 189 scatterwalk_map_and_copy(ctx->buffer + ctx->bufcnt, ctx->sg, in atmel_sha_append_sg() 192 ctx->bufcnt += count; in atmel_sha_append_sg() 233 size[0] += ctx->bufcnt; in atmel_sha_fill_padding() 234 if (size[0] < ctx->bufcnt) in atmel_sha_fill_padding() 245 index = ctx->bufcnt & 0x7f; in atmel_sha_fill_padding() 247 *(ctx->buffer + ctx->bufcnt) = 0x80; in atmel_sha_fill_padding() 248 memset(ctx->buffer + ctx->bufcnt + 1, 0, padlen-1); in atmel_sha_fill_padding() [all …]
|
D | omap-sham.c | 150 size_t bufcnt; member 648 if (ctx->bufcnt) in omap_sham_copy_sg_lists() 661 if (ctx->bufcnt) { in omap_sham_copy_sg_lists() 662 sg_set_buf(tmp, ctx->dd->xmit_buf, ctx->bufcnt); in omap_sham_copy_sg_lists() 693 ctx->bufcnt = 0; in omap_sham_copy_sg_lists() 705 len = new_len + ctx->bufcnt; in omap_sham_copy_sgs() 715 if (ctx->bufcnt) in omap_sham_copy_sgs() 716 memcpy(buf, ctx->dd->xmit_buf, ctx->bufcnt); in omap_sham_copy_sgs() 718 scatterwalk_map_and_copy(buf + ctx->bufcnt, sg, ctx->offset, in omap_sham_copy_sgs() 719 ctx->total - ctx->bufcnt, 0); in omap_sham_copy_sgs() [all …]
|
D | img-hash.c | 105 size_t bufcnt; member 216 if (ctx->bufcnt) { in img_hash_dma_callback() 217 img_hash_xmit_cpu(hdev, ctx->buffer, ctx->bufcnt, 0); in img_hash_dma_callback() 218 ctx->bufcnt = 0; in img_hash_dma_callback() 259 ctx->bufcnt = sg_copy_to_buffer(hdev->req->src, sg_nents(ctx->sg), in img_hash_write_via_cpu() 263 ctx->bufcnt = 0; in img_hash_write_via_cpu() 402 ctx->bufcnt = sg_pcopy_to_buffer(ctx->sgfirst, ctx->nents, in img_hash_dma_task() 406 while (ctx->sg && (ctx->bufcnt < 4)) { in img_hash_dma_task() 408 if (likely(len > (4 - ctx->bufcnt))) in img_hash_dma_task() 409 len = 4 - ctx->bufcnt; in img_hash_dma_task() [all …]
|
/drivers/net/hamradio/ |
D | baycom_epp.c | 193 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/mailbox/ |
D | bcm-pdc-mailbox.c | 695 u32 bufcnt; /* Number of bytes of buffer pointed to by descriptor */ in pdc_tx_list_sg_add() local 726 bufcnt = sg_dma_len(sg); in pdc_tx_list_sg_add() 728 while (bufcnt > PDC_DMA_BUF_MAX) { in pdc_tx_list_sg_add() 732 bufcnt -= PDC_DMA_BUF_MAX; in pdc_tx_list_sg_add() 743 pdc_build_txd(pdcs, databufptr, bufcnt, flags | eot); in pdc_tx_list_sg_add() 860 u32 bufcnt; /* Number of bytes of buffer pointed to by descriptor */ in pdc_rx_list_sg_add() local 882 bufcnt = sg_dma_len(sg); in pdc_rx_list_sg_add() 884 while (bufcnt > PDC_DMA_BUF_MAX) { in pdc_rx_list_sg_add() 887 bufcnt -= PDC_DMA_BUF_MAX; in pdc_rx_list_sg_add() 894 pdc_build_rxd(pdcs, databufptr, bufcnt, flags); in pdc_rx_list_sg_add()
|
/drivers/block/aoe/ |
D | aoe.h | 64 __be16 bufcnt; member
|
D | aoecmd.c | 1583 n = be16_to_cpu(ch->bufcnt); in aoecmd_cfg_rsp()
|
/drivers/net/ethernet/sgi/ |
D | ioc3-eth.c | 1475 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/ |
D | qeth_core_main.c | 290 int qeth_realloc_buffer_pool(struct qeth_card *card, int bufcnt) in qeth_realloc_buffer_pool() argument 301 card->qdio.in_buf_pool.buf_count = bufcnt; in qeth_realloc_buffer_pool() 302 card->qdio.init_pool.buf_count = bufcnt; in qeth_realloc_buffer_pool()
|