Lines Matching defs:nelems
389 int nelems, enum dma_data_direction dir,
397 for_each_sg(sgl, sg, nelems, i) {
421 return nelems;
426 xen_swiotlb_map_sg(struct device *hwdev, struct scatterlist *sgl, int nelems,
429 return xen_swiotlb_map_sg_attrs(hwdev, sgl, nelems, dir, NULL);
439 int nelems, enum dma_data_direction dir,
447 for_each_sg(sgl, sg, nelems, i)
454 xen_swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sgl, int nelems,
457 return xen_swiotlb_unmap_sg_attrs(hwdev, sgl, nelems, dir, NULL);
470 int nelems, enum dma_data_direction dir,
476 for_each_sg(sgl, sg, nelems, i)
483 int nelems, enum dma_data_direction dir)
485 xen_swiotlb_sync_sg(hwdev, sg, nelems, dir, SYNC_FOR_CPU);
491 int nelems, enum dma_data_direction dir)
493 xen_swiotlb_sync_sg(hwdev, sg, nelems, dir, SYNC_FOR_DEVICE);