Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27183ebd authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds
Browse files

[PATCH] x86-64: Add dma_sync_single_range_for_{cpu,device}



Currently just defined to their non range parts.

Pointed out by John Linville

Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 05d1fa4b
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -85,6 +85,11 @@ static inline void dma_sync_single_for_device(struct device *hwdev,
	flush_write_buffers();
	flush_write_buffers();
}
}


#define dma_sync_single_range_for_cpu(dev, dma_handle, offset, size, dir)       \
        dma_sync_single_for_cpu(dev, dma_handle, size, dir)
#define dma_sync_single_range_for_device(dev, dma_handle, offset, size, dir)    \
        dma_sync_single_for_device(dev, dma_handle, size, dir)

static inline void dma_sync_sg_for_cpu(struct device *hwdev,
static inline void dma_sync_sg_for_cpu(struct device *hwdev,
				       struct scatterlist *sg,
				       struct scatterlist *sg,
				       int nelems, int direction)
				       int nelems, int direction)