/Linux-v5.4/drivers/crypto/mediatek/ |
D | mtk-sha.c | 80 size_t bufcnt; member 185 while ((ctx->bufcnt < SHA_BUF_SIZE) && ctx->total) { in mtk_sha_append_sg() 187 count = min(count, SHA_BUF_SIZE - ctx->bufcnt); in mtk_sha_append_sg() 204 scatterwalk_map_and_copy(ctx->buffer + ctx->bufcnt, ctx->sg, in mtk_sha_append_sg() 207 ctx->bufcnt += count; in mtk_sha_append_sg() 245 size += ctx->bufcnt; in mtk_sha_fill_padding() 254 index = ctx->bufcnt & 0x7f; in mtk_sha_fill_padding() 256 *(ctx->buffer + ctx->bufcnt) = 0x80; in mtk_sha_fill_padding() 257 memset(ctx->buffer + ctx->bufcnt + 1, 0, padlen - 1); in mtk_sha_fill_padding() 258 memcpy(ctx->buffer + ctx->bufcnt + padlen, bits, 16); in mtk_sha_fill_padding() [all …]
|
/Linux-v5.4/drivers/crypto/ |
D | atmel-sha.c | 94 size_t bufcnt; member 306 while ((ctx->bufcnt < ctx->buflen) && ctx->total) { in atmel_sha_append_sg() 308 count = min(count, ctx->buflen - ctx->bufcnt); in atmel_sha_append_sg() 325 scatterwalk_map_and_copy(ctx->buffer + ctx->bufcnt, ctx->sg, in atmel_sha_append_sg() 328 ctx->bufcnt += count; in atmel_sha_append_sg() 369 size[0] += ctx->bufcnt; in atmel_sha_fill_padding() 370 if (size[0] < ctx->bufcnt) in atmel_sha_fill_padding() 383 index = ctx->bufcnt & 0x7f; in atmel_sha_fill_padding() 385 *(ctx->buffer + ctx->bufcnt) = 0x80; in atmel_sha_fill_padding() 386 memset(ctx->buffer + ctx->bufcnt + 1, 0, padlen-1); in atmel_sha_fill_padding() [all …]
|
D | omap-sham.c | 148 size_t bufcnt; member 647 if (ctx->bufcnt) in omap_sham_copy_sg_lists() 660 if (ctx->bufcnt) { in omap_sham_copy_sg_lists() 661 sg_set_buf(tmp, ctx->dd->xmit_buf, ctx->bufcnt); in omap_sham_copy_sg_lists() 692 ctx->bufcnt = 0; in omap_sham_copy_sg_lists() 704 len = new_len + ctx->bufcnt; in omap_sham_copy_sgs() 714 if (ctx->bufcnt) in omap_sham_copy_sgs() 715 memcpy(buf, ctx->dd->xmit_buf, ctx->bufcnt); in omap_sham_copy_sgs() 717 scatterwalk_map_and_copy(buf + ctx->bufcnt, sg, ctx->offset, in omap_sham_copy_sgs() 718 ctx->total - ctx->bufcnt, 0); in omap_sham_copy_sgs() [all …]
|
D | s5p-sss.c | 371 u32 bufcnt; member 1030 len = new_len + ctx->bufcnt; in s5p_hash_copy_sgs() 1040 if (ctx->bufcnt) in s5p_hash_copy_sgs() 1041 memcpy(buf, ctx->dd->xmit_buf, ctx->bufcnt); in s5p_hash_copy_sgs() 1043 scatterwalk_map_and_copy(buf + ctx->bufcnt, sg, ctx->skip, in s5p_hash_copy_sgs() 1049 ctx->bufcnt = 0; in s5p_hash_copy_sgs() 1077 if (ctx->bufcnt) in s5p_hash_copy_sg_lists() 1092 if (ctx->bufcnt) { in s5p_hash_copy_sg_lists() 1093 sg_set_buf(tmp, ctx->dd->xmit_buf, ctx->bufcnt); in s5p_hash_copy_sg_lists() 1189 if (ctx->bufcnt) { in s5p_hash_prepare_sgs() [all …]
|
D | img-hash.c | 102 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 …]
|
/Linux-v5.4/drivers/net/hamradio/ |
D | baycom_epp.c | 178 int bufcnt; member 188 int bufcnt; member 367 if (bc->hdlctx.bufcnt > 0) in encode_hdlc() 413 bc->hdlctx.bufcnt = wp - bc->hdlctx.buf; in encode_hdlc() 429 if (bc->hdlctx.bufcnt <= 0) in transmit() 431 if (bc->hdlctx.bufcnt <= 0) in transmit() 445 if (bc->hdlctx.state == tx_idle && bc->hdlctx.bufcnt > 0) { in transmit() 468 if (bc->hdlctx.bufcnt <= 0) { in transmit() 470 if (bc->hdlctx.bufcnt <= 0) { in transmit() 476 i = min_t(int, cnt, bc->hdlctx.bufcnt); in transmit() [all …]
|
/Linux-v5.4/drivers/crypto/stm32/ |
D | stm32-hash.c | 129 size_t bufcnt; member 299 while ((rctx->bufcnt < rctx->buflen) && rctx->total) { in stm32_hash_append_sg() 301 count = min(count, rctx->buflen - rctx->bufcnt); in stm32_hash_append_sg() 312 scatterwalk_map_and_copy(rctx->buffer + rctx->bufcnt, rctx->sg, in stm32_hash_append_sg() 315 rctx->bufcnt += count; in stm32_hash_append_sg() 381 int bufcnt, err = 0, final; in stm32_hash_update_cpu() local 388 (rctx->bufcnt + rctx->total >= rctx->buflen)) { in stm32_hash_update_cpu() 390 bufcnt = rctx->bufcnt; in stm32_hash_update_cpu() 391 rctx->bufcnt = 0; in stm32_hash_update_cpu() 392 err = stm32_hash_xmit_cpu(hdev, rctx->buffer, bufcnt, 0); in stm32_hash_update_cpu() [all …]
|
/Linux-v5.4/drivers/mailbox/ |
D | bcm-pdc-mailbox.c | 718 u32 bufcnt; /* Number of bytes of buffer pointed to by descriptor */ in pdc_tx_list_sg_add() local 749 bufcnt = sg_dma_len(sg); in pdc_tx_list_sg_add() 751 while (bufcnt > PDC_DMA_BUF_MAX) { in pdc_tx_list_sg_add() 755 bufcnt -= PDC_DMA_BUF_MAX; in pdc_tx_list_sg_add() 766 pdc_build_txd(pdcs, databufptr, bufcnt, flags | eot); in pdc_tx_list_sg_add() 885 u32 bufcnt; /* Number of bytes of buffer pointed to by descriptor */ in pdc_rx_list_sg_add() local 907 bufcnt = sg_dma_len(sg); in pdc_rx_list_sg_add() 909 while (bufcnt > PDC_DMA_BUF_MAX) { in pdc_rx_list_sg_add() 912 bufcnt -= PDC_DMA_BUF_MAX; in pdc_rx_list_sg_add() 919 pdc_build_rxd(pdcs, databufptr, bufcnt, flags); in pdc_rx_list_sg_add()
|
/Linux-v5.4/sound/soc/qcom/qdsp6/ |
D | q6asm.h | 67 size_t bufsz, unsigned int bufcnt);
|
/Linux-v5.4/drivers/net/ethernet/sgi/ |
D | ioc3-eth.c | 805 u32 cmd, bufcnt, len; in ioc3_tx_unmap() local 809 bufcnt = be32_to_cpu(desc->bufcnt); in ioc3_tx_unmap() 811 len = (bufcnt & ETXD_B1CNT_MASK) >> ETXD_B1CNT_SHIFT; in ioc3_tx_unmap() 816 len = (bufcnt & ETXD_B2CNT_MASK) >> ETXD_B2CNT_SHIFT; in ioc3_tx_unmap() 1438 desc->bufcnt = cpu_to_be32(len); in ioc3_start_xmit() 1447 desc->bufcnt = cpu_to_be32((s1 << ETXD_B1CNT_SHIFT) | in ioc3_start_xmit() 1464 desc->bufcnt = cpu_to_be32(len << ETXD_B1CNT_SHIFT); in ioc3_start_xmit()
|
/Linux-v5.4/drivers/block/aoe/ |
D | aoe.h | 66 __be16 bufcnt; member
|
D | aoecmd.c | 1561 n = be16_to_cpu(ch->bufcnt); in aoecmd_cfg_rsp()
|
/Linux-v5.4/arch/mips/include/asm/sn/ |
D | ioc3.h | 221 u32 bufcnt; /* buffer counts field */ member
|
/Linux-v5.4/drivers/s390/net/ |
D | qeth_core_main.c | 246 int qeth_realloc_buffer_pool(struct qeth_card *card, int bufcnt) in qeth_realloc_buffer_pool() argument 256 card->qdio.in_buf_pool.buf_count = bufcnt; in qeth_realloc_buffer_pool() 257 card->qdio.init_pool.buf_count = bufcnt; in qeth_realloc_buffer_pool()
|