Lines Matching refs:nents
163 int nents; /* Used in scatterlist */
368 WARN_ON_ONCE(!iod->nents);
370 dma_unmap_sg(anv->dev, iod->sg, iod->nents, rq_dma_dir(req));
379 static void apple_nvme_print_sgl(struct scatterlist *sgl, int nents)
384 for_each_sg(sgl, sg, nents, i) {
481 WARN(DO_ONCE(apple_nvme_print_sgl, iod->sg, iod->nents),
482 "Invalid SGL for payload:%d nents:%d\n", blk_rq_payload_bytes(req),
483 iod->nents);
528 iod->nents = blk_rq_map_sg(req->q, req, iod->sg);
529 if (!iod->nents)
532 nr_mapped = dma_map_sg_attrs(anv->dev, iod->sg, iod->nents,
543 dma_unmap_sg(anv->dev, iod->sg, iod->nents, rq_dma_dir(req));
744 iod->nents = 0;