]> git.baikalelectronics.ru Git - kernel.git/commit
swiotlb: Do not export swiotlb_bounce since there are no external consumers
authorAlexander Duyck <alexander.h.duyck@intel.com>
Mon, 15 Oct 2012 17:19:55 +0000 (10:19 -0700)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 30 Oct 2012 13:32:07 +0000 (09:32 -0400)
commitb4b5c84ed1dbed16d2b26c807814120ed22f3911
treec20814b1488a23a9f861f2f91bb74abcd30977bc
parent1e2b0c1632c5281f8497296b8f2f9c6497fcde6d
swiotlb: Do not export swiotlb_bounce since there are no external consumers

Currently swiotlb is the only consumer for swiotlb_bounce.  Since that is the
case it doesn't make much sense to be exporting it so make it a static
function only.

In addition we can save a few more lines of code by making it so that it
accepts the DMA address as a physical address instead of a virtual one.  This
is the last piece in essentially pushing all of the DMA address values to use
physical addresses in swiotlb.

In order to clarify things since we now have 2 physical addresses in use
inside of swiotlb_bounce I am renaming phys to orig_addr, and dma_addr to
tlb_addr.  This way is should be clear that orig_addr is contained within
io_orig_addr and tlb_addr is an address within the io_tlb_addr buffer.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
include/linux/swiotlb.h
lib/swiotlb.c