Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
drm_gem_cma_helper.c File Reference
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <linux/export.h>
#include <linux/dma-mapping.h>
#include <drm/drmP.h>
#include <drm/drm.h>
#include <drm/drm_gem_cma_helper.h>

Go to the source code of this file.

Functions

struct drm_gem_cma_objectdrm_gem_cma_create (struct drm_device *drm, unsigned int size)
 
 EXPORT_SYMBOL_GPL (drm_gem_cma_create)
 
void drm_gem_cma_free_object (struct drm_gem_object *gem_obj)
 
 EXPORT_SYMBOL_GPL (drm_gem_cma_free_object)
 
int drm_gem_cma_dumb_create (struct drm_file *file_priv, struct drm_device *dev, struct drm_mode_create_dumb *args)
 
 EXPORT_SYMBOL_GPL (drm_gem_cma_dumb_create)
 
int drm_gem_cma_dumb_map_offset (struct drm_file *file_priv, struct drm_device *drm, uint32_t handle, uint64_t *offset)
 
 EXPORT_SYMBOL_GPL (drm_gem_cma_dumb_map_offset)
 
 EXPORT_SYMBOL_GPL (drm_gem_cma_vm_ops)
 
int drm_gem_cma_mmap (struct file *filp, struct vm_area_struct *vma)
 
 EXPORT_SYMBOL_GPL (drm_gem_cma_mmap)
 
int drm_gem_cma_dumb_destroy (struct drm_file *file_priv, struct drm_device *drm, unsigned int handle)
 
 EXPORT_SYMBOL_GPL (drm_gem_cma_dumb_destroy)
 

Variables

struct vm_operations_struct drm_gem_cma_vm_ops
 

Function Documentation

struct drm_gem_cma_object* drm_gem_cma_create ( struct drm_device drm,
unsigned int  size 
)
read

Definition at line 48 of file drm_gem_cma_helper.c.

int drm_gem_cma_dumb_create ( struct drm_file *  file_priv,
struct drm_device dev,
struct drm_mode_create_dumb args 
)

Definition at line 163 of file drm_gem_cma_helper.c.

int drm_gem_cma_dumb_destroy ( struct drm_file *  file_priv,
struct drm_device drm,
unsigned int  handle 
)

Definition at line 246 of file drm_gem_cma_helper.c.

int drm_gem_cma_dumb_map_offset ( struct drm_file *  file_priv,
struct drm_device drm,
uint32_t  handle,
uint64_t offset 
)

Definition at line 188 of file drm_gem_cma_helper.c.

void drm_gem_cma_free_object ( struct drm_gem_object *  gem_obj)

Definition at line 139 of file drm_gem_cma_helper.c.

int drm_gem_cma_mmap ( struct file filp,
struct vm_area_struct vma 
)

Definition at line 221 of file drm_gem_cma_helper.c.

EXPORT_SYMBOL_GPL ( drm_gem_cma_create  )
EXPORT_SYMBOL_GPL ( drm_gem_cma_free_object  )
EXPORT_SYMBOL_GPL ( drm_gem_cma_dumb_create  )
EXPORT_SYMBOL_GPL ( drm_gem_cma_dumb_map_offset  )
EXPORT_SYMBOL_GPL ( drm_gem_cma_vm_ops  )
EXPORT_SYMBOL_GPL ( drm_gem_cma_mmap  )
EXPORT_SYMBOL_GPL ( drm_gem_cma_dumb_destroy  )

Variable Documentation

struct vm_operations_struct drm_gem_cma_vm_ops
Initial value:
= {
.open = drm_gem_vm_open,
.close = drm_gem_vm_close,
}

Definition at line 212 of file drm_gem_cma_helper.c.