Lines Matching refs:nents
161 int i, nents, ret = 0; in dma_map_inbufs() local
163 nents = dma_map_sg(dev, req->src, sg_nents(req->src), in dma_map_inbufs()
165 if (!nents) in dma_map_inbufs()
168 for_each_sg(req->src, sg, nents, i) in dma_map_inbufs()
172 sr->in.sgmap_cnt = nents; in dma_map_inbufs()
180 dma_unmap_sg(dev, req->src, nents, DMA_BIDIRECTIONAL); in dma_map_inbufs()
189 int nents, ret = 0; in dma_map_outbufs() local
191 nents = dma_map_sg(dev, req->dst, sg_nents(req->dst), in dma_map_outbufs()
193 if (!nents) in dma_map_outbufs()
197 sr->out.sgmap_cnt = nents; in dma_map_outbufs()
205 dma_unmap_sg(dev, req->dst, nents, DMA_BIDIRECTIONAL); in dma_map_outbufs()