| .. | .. |
|---|
| 1 | | -/** |
|---|
| 1 | +/* |
|---|
| 2 | 2 | * \file drm_dma.c |
|---|
| 3 | 3 | * DMA IOCTL and function support |
|---|
| 4 | 4 | * |
|---|
| .. | .. |
|---|
| 34 | 34 | */ |
|---|
| 35 | 35 | |
|---|
| 36 | 36 | #include <linux/export.h> |
|---|
| 37 | | -#include <drm/drmP.h> |
|---|
| 37 | +#include <linux/pci.h> |
|---|
| 38 | + |
|---|
| 39 | +#include <drm/drm_drv.h> |
|---|
| 40 | +#include <drm/drm_print.h> |
|---|
| 41 | + |
|---|
| 38 | 42 | #include "drm_legacy.h" |
|---|
| 39 | 43 | |
|---|
| 40 | 44 | /** |
|---|
| 41 | | - * Initialize the DMA data. |
|---|
| 45 | + * drm_legacy_dma_setup() - Initialize the DMA data. |
|---|
| 42 | 46 | * |
|---|
| 43 | | - * \param dev DRM device. |
|---|
| 44 | | - * \return zero on success or a negative value on failure. |
|---|
| 47 | + * @dev: DRM device. |
|---|
| 48 | + * Return: zero on success or a negative value on failure. |
|---|
| 45 | 49 | * |
|---|
| 46 | 50 | * Allocate and initialize a drm_device_dma structure. |
|---|
| 47 | 51 | */ |
|---|
| .. | .. |
|---|
| 67 | 71 | } |
|---|
| 68 | 72 | |
|---|
| 69 | 73 | /** |
|---|
| 70 | | - * Cleanup the DMA resources. |
|---|
| 74 | + * drm_legacy_dma_takedown() - Cleanup the DMA resources. |
|---|
| 71 | 75 | * |
|---|
| 72 | | - * \param dev DRM device. |
|---|
| 76 | + * @dev: DRM device. |
|---|
| 73 | 77 | * |
|---|
| 74 | 78 | * Free all pages associated with DMA buffers, the buffers and pages lists, and |
|---|
| 75 | 79 | * finally the drm_device::dma structure itself. |
|---|
| .. | .. |
|---|
| 116 | 120 | } |
|---|
| 117 | 121 | |
|---|
| 118 | 122 | /** |
|---|
| 119 | | - * Free a buffer. |
|---|
| 123 | + * drm_legacy_free_buffer() - Free a buffer. |
|---|
| 120 | 124 | * |
|---|
| 121 | | - * \param dev DRM device. |
|---|
| 122 | | - * \param buf buffer to free. |
|---|
| 125 | + * @dev: DRM device. |
|---|
| 126 | + * @buf: buffer to free. |
|---|
| 123 | 127 | * |
|---|
| 124 | 128 | * Resets the fields of \p buf. |
|---|
| 125 | 129 | */ |
|---|
| .. | .. |
|---|
| 135 | 139 | } |
|---|
| 136 | 140 | |
|---|
| 137 | 141 | /** |
|---|
| 138 | | - * Reclaim the buffers. |
|---|
| 142 | + * drm_legacy_reclaim_buffers() - Reclaim the buffers. |
|---|
| 139 | 143 | * |
|---|
| 140 | | - * \param file_priv DRM file private. |
|---|
| 144 | + * @dev: DRM device. |
|---|
| 145 | + * @file_priv: DRM file private. |
|---|
| 141 | 146 | * |
|---|
| 142 | 147 | * Frees each buffer associated with \p file_priv not already on the hardware. |
|---|
| 143 | 148 | */ |
|---|