Home
last modified time | relevance | path

Searched refs:last_sg (Results 1 – 14 of 14) sorted by relevance

/linux/drivers/infiniband/core/
A Dumem_dmabuf.c53 umem_dmabuf->last_sg = sg; in ib_umem_dmabuf_map_pages()
95 if (umem_dmabuf->last_sg) { in ib_umem_dmabuf_unmap_pages()
96 sg_dma_len(umem_dmabuf->last_sg) += in ib_umem_dmabuf_unmap_pages()
98 umem_dmabuf->last_sg = NULL; in ib_umem_dmabuf_unmap_pages()
/linux/arch/alpha/kernel/
A Dpci_iommu.c599 struct scatterlist *last_sg = sg; in sg_fill() local
618 last_sg - leader, SG_ENT_VIRT_ADDRESS(last_sg), in sg_fill()
619 last_sg->length, npages); in sg_fill()
620 while (++last_sg <= sg) { in sg_fill()
622 last_sg - leader, SG_ENT_VIRT_ADDRESS(last_sg), in sg_fill()
623 last_sg->length); in sg_fill()
/linux/drivers/dma/
A Dfsl-edma-common.c465 u32 src_addr, dst_addr, last_sg, nbytes; in fsl_edma_prep_dma_cyclic() local
501 last_sg = fsl_desc->tcd[(i + 1) % sg_len].ptcd; in fsl_edma_prep_dma_cyclic()
517 iter, doff, last_sg, true, false, true); in fsl_edma_prep_dma_cyclic()
533 u32 src_addr, dst_addr, last_sg, nbytes; in fsl_edma_prep_slave_sg() local
563 last_sg = fsl_desc->tcd[(i + 1) % sg_len].ptcd; in fsl_edma_prep_slave_sg()
579 last_sg = fsl_desc->tcd[(i + 1)].ptcd; in fsl_edma_prep_slave_sg()
582 nbytes, 0, iter, iter, doff, last_sg, in fsl_edma_prep_slave_sg()
585 last_sg = 0; in fsl_edma_prep_slave_sg()
588 nbytes, 0, iter, iter, doff, last_sg, in fsl_edma_prep_slave_sg()
A Dtegra20-apb-dma.c153 bool last_sg; member
541 if (sgreq->last_sg) { in tegra_dma_abort_all()
594 if (sgreq->last_sg) { in handle_once_dma_done()
1144 sg_req->last_sg = false; in tegra_dma_prep_slave_sg()
1150 sg_req->last_sg = true; in tegra_dma_prep_slave_sg()
1279 sg_req->last_sg = false; in tegra_dma_prep_dma_cyclic()
1287 sg_req->last_sg = true; in tegra_dma_prep_dma_cyclic()
/linux/block/
A Dblk-merge.c550 struct scatterlist *sglist, struct scatterlist **last_sg) in __blk_rq_map_sg() argument
555 nsegs = __blk_bvec_map_sg(rq->special_vec, sglist, last_sg); in __blk_rq_map_sg()
557 nsegs = __blk_bvec_map_sg(bio_iovec(rq->bio), sglist, last_sg); in __blk_rq_map_sg()
559 nsegs = __blk_bios_map_sg(q, rq->bio, sglist, last_sg); in __blk_rq_map_sg()
561 if (*last_sg) in __blk_rq_map_sg()
562 sg_mark_end(*last_sg); in __blk_rq_map_sg()
/linux/drivers/crypto/chelsio/
A Dchcr_crypto.h201 struct scatterlist *last_sg; member
209 struct scatterlist *last_sg; member
A Dchcr_algo.c459 walk->last_sg = sg; in dsgl_walk_add_sg()
476 walk->last_sg = NULL; in ulptx_walk_init()
536 walk->last_sg = sg; in ulptx_walk_add_sg()
557 walk->last_sg = sg; in ulptx_walk_add_sg()
2742 reqctx->srcsg = ulp_walk.last_sg; in chcr_add_cipher_src_ent()
2764 reqctx->dstsg = dsgl_walk.last_sg; in chcr_add_cipher_dst_ent()
2794 reqctx->hctx_wr.srcsg = ulp_walk.last_sg; in chcr_add_hash_src_ent()
/linux/include/linux/
A Dblk-mq.h1064 struct scatterlist *sglist, struct scatterlist **last_sg);
1068 struct scatterlist *last_sg = NULL; in blk_rq_map_sg() local
1070 return __blk_rq_map_sg(q, rq, sglist, &last_sg); in blk_rq_map_sg()
/linux/drivers/scsi/
A Dscsi_lib.c986 struct scatterlist *last_sg = NULL; in scsi_alloc_sgtables() local
1012 count = __blk_rq_map_sg(rq->q, rq, cmd->sdb.table.sgl, &last_sg); in scsi_alloc_sgtables()
1018 last_sg->length += pad_len; in scsi_alloc_sgtables()
1023 sg_unmark_end(last_sg); in scsi_alloc_sgtables()
1024 last_sg = sg_next(last_sg); in scsi_alloc_sgtables()
1025 sg_set_buf(last_sg, sdev->dma_drain_buf, sdev->dma_drain_len); in scsi_alloc_sgtables()
1026 sg_mark_end(last_sg); in scsi_alloc_sgtables()
/linux/include/rdma/
A Dib_umem.h37 struct scatterlist *last_sg; member
/linux/drivers/spi/
A Dspi-imx.c1354 struct scatterlist *last_sg = sg_last(rx->sgl, rx->nents); in spi_imx_dma_transfer() local
1361 if (!(sg_dma_len(last_sg) % (i * bytes_per_word))) in spi_imx_dma_transfer()
/linux/drivers/usb/dwc3/
A Dgadget.c1400 bool last_sg = false; in dwc3_prepare_trbs_sg() local
1414 last_sg = true; in dwc3_prepare_trbs_sg()
1419 if (last_sg) { in dwc3_prepare_trbs_sg()
1445 if (!last_sg) in dwc3_prepare_trbs_sg()
/linux/drivers/ata/
A Dsata_mv.c1792 struct mv_sg *mv_sg, *last_sg = NULL; in mv_fill_sg() local
1815 last_sg = mv_sg; in mv_fill_sg()
1820 if (likely(last_sg)) in mv_fill_sg()
1821 last_sg->flags_size |= cpu_to_le32(EPRD_FLAG_END_OF_TBL); in mv_fill_sg()
/linux/drivers/nvme/host/
A Dpci.c572 const int last_sg = SGES_PER_PAGE - 1; in nvme_free_sgls() local
579 dma_addr_t next_dma_addr = le64_to_cpu((sg_list[last_sg]).addr); in nvme_free_sgls()

Completed in 65 milliseconds