DMA: make dma-coherent.c documentation kdoc-friendly
Spotted by Randy. Acked-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
bba8116586
commit
cb3952bf78
1 changed files with 5 additions and 5 deletions
|
@ -92,7 +92,7 @@ void *dma_mark_declared_memory_occupied(struct device *dev,
|
||||||
EXPORT_SYMBOL(dma_mark_declared_memory_occupied);
|
EXPORT_SYMBOL(dma_mark_declared_memory_occupied);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Try to allocate memory from the per-device coherent area.
|
* dma_alloc_from_coherent() - try to allocate memory from the per-device coherent area
|
||||||
*
|
*
|
||||||
* @dev: device from which we allocate memory
|
* @dev: device from which we allocate memory
|
||||||
* @size: size of requested memory area
|
* @size: size of requested memory area
|
||||||
|
@ -100,11 +100,11 @@ EXPORT_SYMBOL(dma_mark_declared_memory_occupied);
|
||||||
* @ret: This pointer will be filled with the virtual address
|
* @ret: This pointer will be filled with the virtual address
|
||||||
* to allocated area.
|
* to allocated area.
|
||||||
*
|
*
|
||||||
* This function should be only called from per-arch %dma_alloc_coherent()
|
* This function should be only called from per-arch dma_alloc_coherent()
|
||||||
* to support allocation from per-device coherent memory pools.
|
* to support allocation from per-device coherent memory pools.
|
||||||
*
|
*
|
||||||
* Returns 0 if dma_alloc_coherent should continue with allocating from
|
* Returns 0 if dma_alloc_coherent should continue with allocating from
|
||||||
* generic memory areas, or !0 if dma_alloc_coherent should return %ret.
|
* generic memory areas, or !0 if dma_alloc_coherent should return @ret.
|
||||||
*/
|
*/
|
||||||
int dma_alloc_from_coherent(struct device *dev, ssize_t size,
|
int dma_alloc_from_coherent(struct device *dev, ssize_t size,
|
||||||
dma_addr_t *dma_handle, void **ret)
|
dma_addr_t *dma_handle, void **ret)
|
||||||
|
@ -126,7 +126,7 @@ int dma_alloc_from_coherent(struct device *dev, ssize_t size,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Try to free the memory allocated from per-device coherent memory pool.
|
* dma_release_from_coherent() - try to free the memory allocated from per-device coherent memory pool
|
||||||
* @dev: device from which the memory was allocated
|
* @dev: device from which the memory was allocated
|
||||||
* @order: the order of pages allocated
|
* @order: the order of pages allocated
|
||||||
* @vaddr: virtual address of allocated pages
|
* @vaddr: virtual address of allocated pages
|
||||||
|
@ -135,7 +135,7 @@ int dma_alloc_from_coherent(struct device *dev, ssize_t size,
|
||||||
* coherent memory pool and if so, releases that memory.
|
* coherent memory pool and if so, releases that memory.
|
||||||
*
|
*
|
||||||
* Returns 1 if we correctly released the memory, or 0 if
|
* Returns 1 if we correctly released the memory, or 0 if
|
||||||
* %dma_release_coherent() should proceed with releasing memory from
|
* dma_release_coherent() should proceed with releasing memory from
|
||||||
* generic pools.
|
* generic pools.
|
||||||
*/
|
*/
|
||||||
int dma_release_from_coherent(struct device *dev, int order, void *vaddr)
|
int dma_release_from_coherent(struct device *dev, int order, void *vaddr)
|
||||||
|
|
Loading…
Reference in a new issue