/linux/drivers/crypto/amlogic/ |
A D | amlogic-gxl-cipher.c | 33 if (sg_nents(src_sg) != sg_nents(dst_sg)) in meson_cipher_need_fallback() 37 if (sg_nents(src_sg) > MAXDESC - 3 || sg_nents(dst_sg) > MAXDESC - 3) in meson_cipher_need_fallback() 178 nr_sgs = dma_map_sg(mc->dev, areq->src, sg_nents(areq->src), in meson_cipher() 187 nr_sgs = dma_map_sg(mc->dev, areq->src, sg_nents(areq->src), in meson_cipher() 194 nr_sgd = dma_map_sg(mc->dev, areq->dst, sg_nents(areq->dst), in meson_cipher() 239 dma_unmap_sg(mc->dev, areq->src, sg_nents(areq->src), DMA_BIDIRECTIONAL); in meson_cipher() 241 dma_unmap_sg(mc->dev, areq->src, sg_nents(areq->src), DMA_TO_DEVICE); in meson_cipher() 242 dma_unmap_sg(mc->dev, areq->dst, sg_nents(areq->dst), DMA_FROM_DEVICE); in meson_cipher()
|
/linux/drivers/infiniband/sw/rdmavt/ |
A D | trace_mr.h | 144 TP_PROTO(struct ib_mr *ibmr, int sg_nents, unsigned int *sg_offset), 145 TP_ARGS(ibmr, sg_nents, sg_offset), 152 __field(int, sg_nents) 161 __entry->sg_nents = sg_nents; 171 __entry->sg_nents,
|
A D | mr.h | 34 int sg_nents, unsigned int *sg_offset);
|
A D | mr.c | 589 int sg_nents, unsigned int *sg_offset) in rvt_map_mr_sg() argument 596 ret = ib_sg_to_pages(ibmr, sg, sg_nents, sg_offset, rvt_set_page); in rvt_map_mr_sg() 601 trace_rvt_map_mr_sg(ibmr, sg_nents, sg_offset); in rvt_map_mr_sg()
|
/linux/drivers/crypto/gemini/ |
A D | sl3516-ce-cipher.c | 39 if (sg_nents(areq->src) > MAXDESC / 2) { in sl3516_ce_need_fallback() 44 if (sg_nents(areq->dst) > MAXDESC) { in sl3516_ce_need_fallback() 150 nr_sgs = dma_map_sg(ce->dev, areq->src, sg_nents(areq->src), in sl3516_ce_cipher() 159 nr_sgs = dma_map_sg(ce->dev, areq->src, sg_nents(areq->src), in sl3516_ce_cipher() 166 nr_sgd = dma_map_sg(ce->dev, areq->dst, sg_nents(areq->dst), in sl3516_ce_cipher() 247 dma_unmap_sg(ce->dev, areq->src, sg_nents(areq->src), in sl3516_ce_cipher() 250 dma_unmap_sg(ce->dev, areq->src, sg_nents(areq->src), in sl3516_ce_cipher() 252 dma_unmap_sg(ce->dev, areq->dst, sg_nents(areq->dst), in sl3516_ce_cipher()
|
/linux/drivers/crypto/allwinner/sun8i-ss/ |
A D | sun8i-ss-cipher.c | 31 if (sg_nents(areq->src) > 8 || sg_nents(areq->dst) > 8) in sun8i_ss_need_fallback() 162 nr_sgs = dma_map_sg(ss->dev, areq->src, sg_nents(areq->src), in sun8i_ss_cipher() 171 nr_sgs = dma_map_sg(ss->dev, areq->src, sg_nents(areq->src), in sun8i_ss_cipher() 178 nr_sgd = dma_map_sg(ss->dev, areq->dst, sg_nents(areq->dst), in sun8i_ss_cipher() 235 dma_unmap_sg(ss->dev, areq->src, sg_nents(areq->src), in sun8i_ss_cipher() 238 dma_unmap_sg(ss->dev, areq->src, sg_nents(areq->src), in sun8i_ss_cipher() 240 dma_unmap_sg(ss->dev, areq->dst, sg_nents(areq->dst), in sun8i_ss_cipher()
|
A D | sun8i-ss-hash.c | 265 if (sg_nents(areq->src) > MAX_SG - 1) in sun8i_ss_hash_need_fallback() 296 nr_sgs = sg_nents(areq->src); in sun8i_ss_hash_digest() 367 nr_sgs = dma_map_sg(ss->dev, areq->src, sg_nents(areq->src), DMA_TO_DEVICE); in sun8i_ss_hash_run() 437 dma_unmap_sg(ss->dev, areq->src, sg_nents(areq->src), in sun8i_ss_hash_run()
|
/linux/drivers/crypto/allwinner/sun8i-ce/ |
A D | sun8i-ce-cipher.c | 28 if (sg_nents(areq->src) > MAX_SG || sg_nents(areq->dst) > MAX_SG) in sun8i_ce_cipher_need_fallback() 181 nr_sgs = dma_map_sg(ce->dev, areq->src, sg_nents(areq->src), in sun8i_ce_cipher_prepare() 190 nr_sgs = dma_map_sg(ce->dev, areq->src, sg_nents(areq->src), in sun8i_ce_cipher_prepare() 197 nr_sgd = dma_map_sg(ce->dev, areq->dst, sg_nents(areq->dst), in sun8i_ce_cipher_prepare() 243 dma_unmap_sg(ce->dev, areq->src, sg_nents(areq->src), in sun8i_ce_cipher_prepare() 247 dma_unmap_sg(ce->dev, areq->src, sg_nents(areq->src), in sun8i_ce_cipher_prepare() 249 dma_unmap_sg(ce->dev, areq->dst, sg_nents(areq->dst), in sun8i_ce_cipher_prepare()
|
A D | sun8i-ce-hash.c | 206 if (sg_nents(areq->src) > MAX_SG - 1) in sun8i_ce_hash_need_fallback() 231 nr_sgs = sg_nents(areq->src); in sun8i_ce_hash_digest() 320 nr_sgs = dma_map_sg(ce->dev, areq->src, sg_nents(areq->src), DMA_TO_DEVICE); in sun8i_ce_hash_run() 408 dma_unmap_sg(ce->dev, areq->src, sg_nents(areq->src), in sun8i_ce_hash_run()
|
/linux/drivers/crypto/cavium/nitrox/ |
A D | nitrox_reqmgr.c | 61 dma_unmap_sg(dev, sr->in.sg, sg_nents(sr->in.sg), in softreq_unmap_sgbufs() 69 dma_unmap_sg(dev, sr->out.sg, sg_nents(sr->out.sg), in softreq_unmap_sgbufs() 165 nents = dma_map_sg(dev, req->src, sg_nents(req->src), in dma_map_inbufs() 182 dma_unmap_sg(dev, req->src, sg_nents(req->src), DMA_BIDIRECTIONAL); in dma_map_inbufs() 193 nents = dma_map_sg(dev, req->dst, sg_nents(req->dst), in dma_map_outbufs() 207 dma_unmap_sg(dev, req->dst, sg_nents(req->dst), DMA_BIDIRECTIONAL); in dma_map_outbufs()
|
A D | nitrox_skcipher.c | 211 int nents = sg_nents(skreq->src) + 1; in alloc_src_sglist() 229 int nents = sg_nents(skreq->dst) + 3; in alloc_dst_sglist()
|
/linux/drivers/crypto/bcm/ |
A D | util.c | 54 unsigned int nents = sg_nents(src); in sg_copy_part_to_buf() 73 unsigned int nents = sg_nents(dest); in sg_copy_part_from_buf() 96 int sg_nents = 0; in spu_sg_count() local 106 sg_nents++; in spu_sg_count() 111 return sg_nents; in spu_sg_count()
|
/linux/drivers/crypto/hisilicon/ |
A D | sgl.c | 233 sg_n = sg_nents(sgl); in hisi_acc_sg_buf_map_to_hw_sgl() 283 dma_unmap_sg(dev, sgl, sg_nents(sgl), DMA_BIDIRECTIONAL); in hisi_acc_sg_buf_unmap()
|
/linux/drivers/mailbox/ |
A D | bcm-pdc-mailbox.c | 612 sg_nents(pdcs->src_sg[pdcs->txin]), DMA_TO_DEVICE); in pdc_receive_one() 627 dma_unmap_sg(dev, rx_ctx->dst_sg, sg_nents(rx_ctx->dst_sg), in pdc_receive_one() 721 num_desc = (u32)sg_nents(sg); in pdc_tx_list_sg_add() 888 num_desc = (u32)sg_nents(sg); in pdc_rx_list_sg_add() 1209 src_nent = sg_nents(mssg->spu.src); in pdc_send_data() 1216 dst_nent = sg_nents(mssg->spu.dst); in pdc_send_data()
|
A D | bcm-flexrm-mailbox.c | 633 rc = dma_map_sg(dev, msg->spu.src, sg_nents(msg->spu.src), in flexrm_spu_dma_map() 638 rc = dma_map_sg(dev, msg->spu.dst, sg_nents(msg->spu.dst), in flexrm_spu_dma_map() 641 dma_unmap_sg(dev, msg->spu.src, sg_nents(msg->spu.src), in flexrm_spu_dma_map() 651 dma_unmap_sg(dev, msg->spu.dst, sg_nents(msg->spu.dst), in flexrm_spu_dma_unmap() 653 dma_unmap_sg(dev, msg->spu.src, sg_nents(msg->spu.src), in flexrm_spu_dma_unmap()
|
/linux/drivers/infiniband/hw/vmw_pvrdma/ |
A D | pvrdma_mr.c | 313 int pvrdma_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents, in pvrdma_map_mr_sg() argument 322 ret = ib_sg_to_pages(ibmr, sg, sg_nents, sg_offset, pvrdma_set_page); in pvrdma_map_mr_sg()
|
/linux/drivers/crypto/allwinner/sun4i-ss/ |
A D | sun4i-ss-cipher.c | 83 sg_miter_start(&mi, areq->src, sg_nents(areq->src), in sun4i_ss_opti_poll() 111 sg_miter_start(&mo, areq->dst, sg_nents(areq->dst), in sun4i_ss_opti_poll() 278 sg_miter_start(&mi, areq->src, sg_nents(areq->src), in sun4i_ss_cipher_poll() 332 sg_miter_start(&mo, areq->dst, sg_nents(areq->dst), in sun4i_ss_cipher_poll()
|
/linux/include/linux/ |
A D | devcoredump.h | 31 for_each_sg(table, iter, sg_nents(table), i) { in _devcd_free_sgtable()
|
/linux/drivers/usb/storage/ |
A D | protocol.c | 131 nents = sg_nents(sg); in usb_stor_access_xfer_buf()
|
/linux/drivers/infiniband/hw/ocrdma/ |
A D | ocrdma_verbs.h | 105 int ocrdma_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents,
|
/linux/drivers/infiniband/hw/qedr/ |
A D | verbs.h | 85 int sg_nents, unsigned int *sg_offset);
|
/linux/drivers/crypto/hisilicon/sec/ |
A D | sec_algs.c | 460 sg_nents(sec_req_el->sgl_out), in sec_skcipher_alg_callback() 467 sg_nents(sec_req_el->sgl_in), in sec_skcipher_alg_callback() 730 sec_req->len_in = sg_nents(skreq->src); in sec_alg_skcipher_crypto() 744 sec_req->len_out = sg_nents(skreq->dst); in sec_alg_skcipher_crypto()
|
/linux/drivers/crypto/chelsio/ |
A D | chcr_algo.c | 185 sg_pcopy_to_buffer(req->src, sg_nents(req->src), temp, in chcr_verify_tag() 890 sg_nents(wrparam->req->src), wrparam->req->iv, 16, in create_cipher_wr() 1732 sg_pcopy_to_buffer(req->src, sg_nents(req->src), in chcr_ahash_update() 2690 sg_pcopy_to_buffer(req->src, sg_nents(req->src), in chcr_add_aead_src_ent() 2736 sg_pcopy_to_buffer(req->src, sg_nents(req->src), in chcr_add_cipher_src_ent() 2785 sg_nents(reqctx->hctx_wr.srcsg), buf, in chcr_add_hash_src_ent() 2824 dma_unmap_sg(dev, req->src, sg_nents(req->src), in chcr_hash_dma_unmap() 2848 dma_unmap_sg(dev, req->src, sg_nents(req->src), in chcr_cipher_dma_map() 2863 dma_unmap_sg(dev, req->src, sg_nents(req->src), in chcr_cipher_dma_unmap() 2866 dma_unmap_sg(dev, req->src, sg_nents(req->src), in chcr_cipher_dma_unmap() [all …]
|
/linux/drivers/infiniband/ulp/isert/ |
A D | ib_isert.c | 1050 int imm_data, imm_data_len, unsol_data, sg_nents, rc; in isert_handle_scsi_cmd() local 1077 sg_nents = max(1UL, DIV_ROUND_UP(imm_data_len, PAGE_SIZE)); in isert_handle_scsi_cmd() 1078 sg_copy_from_buffer(cmd->se_cmd.t_data_sg, sg_nents, in isert_handle_scsi_cmd() 1081 sg_nents, imm_data_len); in isert_handle_scsi_cmd() 1121 int rc, sg_nents, sg_off, page_off; in isert_handle_iscsi_dataout() local 1144 sg_nents = max(1UL, DIV_ROUND_UP(unsol_data_len, PAGE_SIZE)); in isert_handle_iscsi_dataout() 1156 sg_nents, isert_get_data(rx_desc), unsol_data_len); in isert_handle_iscsi_dataout() 1158 sg_copy_from_buffer(sg_start, sg_nents, isert_get_data(rx_desc), in isert_handle_iscsi_dataout()
|
/linux/drivers/crypto/ |
A D | omap-crypto.c | 20 int n = sg_nents(*sg); in omap_crypto_copy_sg_lists()
|