|
@@ -668,7 +668,7 @@ sba_mark_invalid(struct ioc *ioc, dma_addr_t iova, size_t byte_cnt)
|
|
* @dev: instance of PCI owned by the driver that's asking
|
|
* @dev: instance of PCI owned by the driver that's asking
|
|
* @mask: number of address bits this PCI device can handle
|
|
* @mask: number of address bits this PCI device can handle
|
|
*
|
|
*
|
|
- * See Documentation/DMA-mapping.txt
|
|
|
|
|
|
+ * See Documentation/PCI/PCI-DMA-mapping.txt
|
|
*/
|
|
*/
|
|
static int sba_dma_supported( struct device *dev, u64 mask)
|
|
static int sba_dma_supported( struct device *dev, u64 mask)
|
|
{
|
|
{
|
|
@@ -680,8 +680,8 @@ static int sba_dma_supported( struct device *dev, u64 mask)
|
|
return(0);
|
|
return(0);
|
|
}
|
|
}
|
|
|
|
|
|
- /* Documentation/DMA-mapping.txt tells drivers to try 64-bit first,
|
|
|
|
- * then fall back to 32-bit if that fails.
|
|
|
|
|
|
+ /* Documentation/PCI/PCI-DMA-mapping.txt tells drivers to try 64-bit
|
|
|
|
+ * first, then fall back to 32-bit if that fails.
|
|
* We are just "encouraging" 32-bit DMA masks here since we can
|
|
* We are just "encouraging" 32-bit DMA masks here since we can
|
|
* never allow IOMMU bypass unless we add special support for ZX1.
|
|
* never allow IOMMU bypass unless we add special support for ZX1.
|
|
*/
|
|
*/
|
|
@@ -706,7 +706,7 @@ static int sba_dma_supported( struct device *dev, u64 mask)
|
|
* @size: number of bytes to map in driver buffer.
|
|
* @size: number of bytes to map in driver buffer.
|
|
* @direction: R/W or both.
|
|
* @direction: R/W or both.
|
|
*
|
|
*
|
|
- * See Documentation/DMA-mapping.txt
|
|
|
|
|
|
+ * See Documentation/PCI/PCI-DMA-mapping.txt
|
|
*/
|
|
*/
|
|
static dma_addr_t
|
|
static dma_addr_t
|
|
sba_map_single(struct device *dev, void *addr, size_t size,
|
|
sba_map_single(struct device *dev, void *addr, size_t size,
|
|
@@ -785,7 +785,7 @@ sba_map_single(struct device *dev, void *addr, size_t size,
|
|
* @size: number of bytes mapped in driver buffer.
|
|
* @size: number of bytes mapped in driver buffer.
|
|
* @direction: R/W or both.
|
|
* @direction: R/W or both.
|
|
*
|
|
*
|
|
- * See Documentation/DMA-mapping.txt
|
|
|
|
|
|
+ * See Documentation/PCI/PCI-DMA-mapping.txt
|
|
*/
|
|
*/
|
|
static void
|
|
static void
|
|
sba_unmap_single(struct device *dev, dma_addr_t iova, size_t size,
|
|
sba_unmap_single(struct device *dev, dma_addr_t iova, size_t size,
|
|
@@ -861,7 +861,7 @@ sba_unmap_single(struct device *dev, dma_addr_t iova, size_t size,
|
|
* @size: number of bytes mapped in driver buffer.
|
|
* @size: number of bytes mapped in driver buffer.
|
|
* @dma_handle: IOVA of new buffer.
|
|
* @dma_handle: IOVA of new buffer.
|
|
*
|
|
*
|
|
- * See Documentation/DMA-mapping.txt
|
|
|
|
|
|
+ * See Documentation/PCI/PCI-DMA-mapping.txt
|
|
*/
|
|
*/
|
|
static void *sba_alloc_consistent(struct device *hwdev, size_t size,
|
|
static void *sba_alloc_consistent(struct device *hwdev, size_t size,
|
|
dma_addr_t *dma_handle, gfp_t gfp)
|
|
dma_addr_t *dma_handle, gfp_t gfp)
|
|
@@ -892,7 +892,7 @@ static void *sba_alloc_consistent(struct device *hwdev, size_t size,
|
|
* @vaddr: virtual address IOVA of "consistent" buffer.
|
|
* @vaddr: virtual address IOVA of "consistent" buffer.
|
|
* @dma_handler: IO virtual address of "consistent" buffer.
|
|
* @dma_handler: IO virtual address of "consistent" buffer.
|
|
*
|
|
*
|
|
- * See Documentation/DMA-mapping.txt
|
|
|
|
|
|
+ * See Documentation/PCI/PCI-DMA-mapping.txt
|
|
*/
|
|
*/
|
|
static void
|
|
static void
|
|
sba_free_consistent(struct device *hwdev, size_t size, void *vaddr,
|
|
sba_free_consistent(struct device *hwdev, size_t size, void *vaddr,
|
|
@@ -927,7 +927,7 @@ int dump_run_sg = 0;
|
|
* @nents: number of entries in list
|
|
* @nents: number of entries in list
|
|
* @direction: R/W or both.
|
|
* @direction: R/W or both.
|
|
*
|
|
*
|
|
- * See Documentation/DMA-mapping.txt
|
|
|
|
|
|
+ * See Documentation/PCI/PCI-DMA-mapping.txt
|
|
*/
|
|
*/
|
|
static int
|
|
static int
|
|
sba_map_sg(struct device *dev, struct scatterlist *sglist, int nents,
|
|
sba_map_sg(struct device *dev, struct scatterlist *sglist, int nents,
|
|
@@ -1011,7 +1011,7 @@ sba_map_sg(struct device *dev, struct scatterlist *sglist, int nents,
|
|
* @nents: number of entries in list
|
|
* @nents: number of entries in list
|
|
* @direction: R/W or both.
|
|
* @direction: R/W or both.
|
|
*
|
|
*
|
|
- * See Documentation/DMA-mapping.txt
|
|
|
|
|
|
+ * See Documentation/PCI/PCI-DMA-mapping.txt
|
|
*/
|
|
*/
|
|
static void
|
|
static void
|
|
sba_unmap_sg(struct device *dev, struct scatterlist *sglist, int nents,
|
|
sba_unmap_sg(struct device *dev, struct scatterlist *sglist, int nents,
|