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

Go to the source code of this file.

Data Structures

struct  drm_prime_member
 

Functions

int drm_gem_prime_handle_to_fd (struct drm_device *dev, struct drm_file *file_priv, uint32_t handle, uint32_t flags, int *prime_fd)
 
 EXPORT_SYMBOL (drm_gem_prime_handle_to_fd)
 
int drm_gem_prime_fd_to_handle (struct drm_device *dev, struct drm_file *file_priv, int prime_fd, uint32_t *handle)
 
 EXPORT_SYMBOL (drm_gem_prime_fd_to_handle)
 
int drm_prime_handle_to_fd_ioctl (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
int drm_prime_fd_to_handle_ioctl (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
struct sg_tabledrm_prime_pages_to_sg (struct page **pages, int nr_pages)
 
 EXPORT_SYMBOL (drm_prime_pages_to_sg)
 
int drm_prime_sg_to_page_addr_arrays (struct sg_table *sgt, struct page **pages, dma_addr_t *addrs, int max_pages)
 
 EXPORT_SYMBOL (drm_prime_sg_to_page_addr_arrays)
 
void drm_prime_gem_destroy (struct drm_gem_object *obj, struct sg_table *sg)
 
 EXPORT_SYMBOL (drm_prime_gem_destroy)
 
void drm_prime_init_file_private (struct drm_prime_file_private *prime_fpriv)
 
 EXPORT_SYMBOL (drm_prime_init_file_private)
 
void drm_prime_destroy_file_private (struct drm_prime_file_private *prime_fpriv)
 
 EXPORT_SYMBOL (drm_prime_destroy_file_private)
 
int drm_prime_add_imported_buf_handle (struct drm_prime_file_private *prime_fpriv, struct dma_buf *dma_buf, uint32_t handle)
 
 EXPORT_SYMBOL (drm_prime_add_imported_buf_handle)
 
int drm_prime_lookup_imported_buf_handle (struct drm_prime_file_private *prime_fpriv, struct dma_buf *dma_buf, uint32_t *handle)
 
 EXPORT_SYMBOL (drm_prime_lookup_imported_buf_handle)
 
void drm_prime_remove_imported_buf_handle (struct drm_prime_file_private *prime_fpriv, struct dma_buf *dma_buf)
 
 EXPORT_SYMBOL (drm_prime_remove_imported_buf_handle)
 

Function Documentation

int drm_gem_prime_fd_to_handle ( struct drm_device dev,
struct drm_file *  file_priv,
int  prime_fd,
uint32_t handle 
)

Definition at line 120 of file drm_prime.c.

int drm_gem_prime_handle_to_fd ( struct drm_device dev,
struct drm_file *  file_priv,
uint32_t  handle,
uint32_t  flags,
int prime_fd 
)

Definition at line 65 of file drm_prime.c.

int drm_prime_add_imported_buf_handle ( struct drm_prime_file_private *  prime_fpriv,
struct dma_buf dma_buf,
uint32_t  handle 
)

Definition at line 310 of file drm_prime.c.

void drm_prime_destroy_file_private ( struct drm_prime_file_private *  prime_fpriv)

Definition at line 300 of file drm_prime.c.

int drm_prime_fd_to_handle_ioctl ( struct drm_device dev,
void data,
struct drm_file *  file_priv 
)

Definition at line 195 of file drm_prime.c.

void drm_prime_gem_destroy ( struct drm_gem_object *  obj,
struct sg_table sg 
)

Definition at line 279 of file drm_prime.c.

int drm_prime_handle_to_fd_ioctl ( struct drm_device dev,
void data,
struct drm_file *  file_priv 
)

Definition at line 172 of file drm_prime.c.

void drm_prime_init_file_private ( struct drm_prime_file_private *  prime_fpriv)

Definition at line 293 of file drm_prime.c.

int drm_prime_lookup_imported_buf_handle ( struct drm_prime_file_private *  prime_fpriv,
struct dma_buf dma_buf,
uint32_t handle 
)

Definition at line 325 of file drm_prime.c.

struct sg_table* drm_prime_pages_to_sg ( struct page **  pages,
int  nr_pages 
)
read

Definition at line 217 of file drm_prime.c.

void drm_prime_remove_imported_buf_handle ( struct drm_prime_file_private *  prime_fpriv,
struct dma_buf dma_buf 
)

Definition at line 339 of file drm_prime.c.

int drm_prime_sg_to_page_addr_arrays ( struct sg_table sgt,
struct page **  pages,
dma_addr_t addrs,
int  max_pages 
)

Definition at line 245 of file drm_prime.c.

EXPORT_SYMBOL ( drm_gem_prime_handle_to_fd  )
EXPORT_SYMBOL ( drm_gem_prime_fd_to_handle  )
EXPORT_SYMBOL ( drm_prime_pages_to_sg  )
EXPORT_SYMBOL ( drm_prime_sg_to_page_addr_arrays  )
EXPORT_SYMBOL ( drm_prime_gem_destroy  )
EXPORT_SYMBOL ( drm_prime_init_file_private  )
EXPORT_SYMBOL ( drm_prime_destroy_file_private  )
EXPORT_SYMBOL ( drm_prime_add_imported_buf_handle  )