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

Go to the source code of this file.

Functions

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

Author
Rickard E. (Rik) Faith faith.nosp@m.@val.nosp@m.inux..nosp@m.com
Gareth Hughes garet.nosp@m.h@va.nosp@m.linux.nosp@m..com

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.

Parameters
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.

Parameters
devDRM device.
Returns
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.

Parameters
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.

Parameters
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  )