Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
drm_dma.c File Reference
#include <linux/export.h>
#include <drm/drmP.h>

Go to the source code of this file.


int drm_dma_setup (struct drm_device *dev)
void drm_dma_takedown (struct drm_device *dev)
void drm_free_buffer (struct drm_device *dev, struct drm_buf *buf)
void drm_core_reclaim_buffers (struct drm_device *dev, struct drm_file *file_priv)
 EXPORT_SYMBOL (drm_core_reclaim_buffers)

Detailed Description

DMA IOCTL and function support

Rickard E. (Rik) Faith
Gareth Hughes

Definition in file drm_dma.c.

Function Documentation

void drm_core_reclaim_buffers ( struct drm_device dev,
struct drm_file *  file_priv 

Reclaim the buffers.

file_privDRM file private.

Frees each buffer associated with file_priv not already on the hardware.

Definition at line 132 of file drm_dma.c.

int drm_dma_setup ( struct drm_device dev)

Initialize the DMA data.

devDRM device.
zero on success or a negative value on failure.

Allocate and initialize a drm_device_dma structure.

Definition at line 47 of file drm_dma.c.

void drm_dma_takedown ( struct drm_device dev)

Cleanup the DMA resources.

devDRM device.

Free all pages associated with DMA buffers, the buffers and pages lists, and finally the drm_device::dma structure itself.

Definition at line 69 of file drm_dma.c.

void drm_free_buffer ( struct drm_device dev,
struct drm_buf *  buf 

Free a buffer.

devDRM device.
bufbuffer to free.

Resets the fields of buf.

Definition at line 114 of file drm_dma.c.

EXPORT_SYMBOL ( drm_core_reclaim_buffers  )