Lines Matching refs:sgl_cnt
283 int sgl_cnt; member
735 unsigned int sgl_cnt; in prepare_bam_async_desc() local
747 sgl_cnt = bam_txn->cmd_sgl_pos - bam_txn->cmd_sgl_start; in prepare_bam_async_desc()
753 sgl_cnt = bam_txn->tx_sgl_pos - bam_txn->tx_sgl_start; in prepare_bam_async_desc()
759 sgl_cnt = bam_txn->rx_sgl_pos - bam_txn->rx_sgl_start; in prepare_bam_async_desc()
765 sg_mark_end(sgl + sgl_cnt - 1); in prepare_bam_async_desc()
766 ret = dma_map_sg(nandc->dev, sgl, sgl_cnt, desc->dir); in prepare_bam_async_desc()
773 desc->sgl_cnt = sgl_cnt; in prepare_bam_async_desc()
776 dma_desc = dmaengine_prep_slave_sg(chan, sgl, sgl_cnt, dir_eng, in prepare_bam_async_desc()
781 dma_unmap_sg(nandc->dev, sgl, sgl_cnt, desc->dir); in prepare_bam_async_desc()
1350 desc->sgl_cnt, desc->dir); in free_descs()