Home
last modified time | relevance | path

Searched refs:sg_nents (Results 1 – 25 of 89) sorted by relevance

1234

/linux/drivers/crypto/amlogic/
A Damlogic-gxl-cipher.c33 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 Dtrace_mr.h144 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 Dmr.h34 int sg_nents, unsigned int *sg_offset);
A Dmr.c589 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 Dsl3516-ce-cipher.c39 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 Dsun8i-ss-cipher.c31 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 Dsun8i-ss-hash.c265 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 Dsun8i-ce-cipher.c28 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 Dsun8i-ce-hash.c206 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 Dnitrox_reqmgr.c61 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 Dnitrox_skcipher.c211 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 Dutil.c54 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 Dsgl.c233 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 Dbcm-pdc-mailbox.c612 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 Dbcm-flexrm-mailbox.c633 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 Dpvrdma_mr.c313 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 Dsun4i-ss-cipher.c83 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 Ddevcoredump.h31 for_each_sg(table, iter, sg_nents(table), i) { in _devcd_free_sgtable()
/linux/drivers/usb/storage/
A Dprotocol.c131 nents = sg_nents(sg); in usb_stor_access_xfer_buf()
/linux/drivers/infiniband/hw/ocrdma/
A Docrdma_verbs.h105 int ocrdma_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents,
/linux/drivers/infiniband/hw/qedr/
A Dverbs.h85 int sg_nents, unsigned int *sg_offset);
/linux/drivers/crypto/hisilicon/sec/
A Dsec_algs.c460 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 Dchcr_algo.c185 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 Dib_isert.c1050 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 Domap-crypto.c20 int n = sg_nents(*sg); in omap_crypto_copy_sg_lists()

Completed in 45 milliseconds

1234