Lines Matching refs:sgl_cnt
292 int sgl_cnt; member
787 unsigned int sgl_cnt; in prepare_bam_async_desc() local
799 sgl_cnt = bam_txn->cmd_sgl_pos - bam_txn->cmd_sgl_start; in prepare_bam_async_desc()
805 sgl_cnt = bam_txn->tx_sgl_pos - bam_txn->tx_sgl_start; in prepare_bam_async_desc()
811 sgl_cnt = bam_txn->rx_sgl_pos - bam_txn->rx_sgl_start; in prepare_bam_async_desc()
817 sg_mark_end(sgl + sgl_cnt - 1); in prepare_bam_async_desc()
818 ret = dma_map_sg(nandc->dev, sgl, sgl_cnt, desc->dir); in prepare_bam_async_desc()
825 desc->sgl_cnt = sgl_cnt; in prepare_bam_async_desc()
828 dma_desc = dmaengine_prep_slave_sg(chan, sgl, sgl_cnt, dir_eng, in prepare_bam_async_desc()
833 dma_unmap_sg(nandc->dev, sgl, sgl_cnt, desc->dir); in prepare_bam_async_desc()
1433 desc->sgl_cnt, desc->dir); in free_descs()