Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
mgag200_ttm.c File Reference
#include <drm/drmP.h>
#include "mgag200_drv.h"
#include <ttm/ttm_page_alloc.h>

Go to the source code of this file.

Functions

void mgag200_ttm_global_release (struct mga_device *ast)
 
bool mgag200_ttm_bo_is_mgag200_bo (struct ttm_buffer_object *bo)
 
struct ttm_ttmgag200_ttm_tt_create (struct ttm_bo_device *bdev, unsigned long size, uint32_t page_flags, struct page *dummy_read_page)
 
int mgag200_mm_init (struct mga_device *mdev)
 
void mgag200_mm_fini (struct mga_device *mdev)
 
void mgag200_ttm_placement (struct mgag200_bo *bo, int domain)
 
int mgag200_bo_reserve (struct mgag200_bo *bo, bool no_wait)
 
void mgag200_bo_unreserve (struct mgag200_bo *bo)
 
int mgag200_bo_create (struct drm_device *dev, int size, int align, uint32_t flags, struct mgag200_bo **pmgabo)
 
int mgag200_bo_pin (struct mgag200_bo *bo, u32 pl_flag, u64 *gpu_addr)
 
int mgag200_bo_unpin (struct mgag200_bo *bo)
 
int mgag200_bo_push_sysram (struct mgag200_bo *bo)
 
int mgag200_mmap (struct file *filp, struct vm_area_struct *vma)
 

Variables

struct ttm_bo_driver mgag200_bo_driver
 

Function Documentation

int mgag200_bo_create ( struct drm_device dev,
int  size,
int  align,
uint32_t  flags,
struct mgag200_bo **  pmgabo 
)

Definition at line 330 of file mgag200_ttm.c.

int mgag200_bo_pin ( struct mgag200_bo bo,
u32  pl_flag,
u64 gpu_addr 
)

Definition at line 372 of file mgag200_ttm.c.

int mgag200_bo_push_sysram ( struct mgag200_bo bo)

Definition at line 415 of file mgag200_ttm.c.

int mgag200_bo_reserve ( struct mgag200_bo bo,
bool  no_wait 
)

Definition at line 312 of file mgag200_ttm.c.

int mgag200_bo_unpin ( struct mgag200_bo bo)

Definition at line 395 of file mgag200_ttm.c.

void mgag200_bo_unreserve ( struct mgag200_bo bo)

Definition at line 325 of file mgag200_ttm.c.

void mgag200_mm_fini ( struct mga_device mdev)

Definition at line 280 of file mgag200_ttm.c.

int mgag200_mm_init ( struct mga_device mdev)

Definition at line 248 of file mgag200_ttm.c.

int mgag200_mmap ( struct file filp,
struct vm_area_struct vma 
)

Definition at line 441 of file mgag200_ttm.c.

bool mgag200_ttm_bo_is_mgag200_bo ( struct ttm_buffer_object bo)

Definition at line 105 of file mgag200_ttm.c.

void mgag200_ttm_global_release ( struct mga_device ast)

Definition at line 84 of file mgag200_ttm.c.

void mgag200_ttm_placement ( struct mgag200_bo bo,
int  domain 
)

Definition at line 295 of file mgag200_ttm.c.

struct ttm_tt* mgag200_ttm_tt_create ( struct ttm_bo_device bdev,
unsigned long  size,
uint32_t  page_flags,
struct page dummy_read_page 
)
read

Definition at line 209 of file mgag200_ttm.c.

Variable Documentation

struct ttm_bo_driver mgag200_bo_driver
Initial value:
= {
.ttm_tt_create = mgag200_ttm_tt_create,
.ttm_tt_populate = mgag200_ttm_tt_populate,
.ttm_tt_unpopulate = mgag200_ttm_tt_unpopulate,
.init_mem_type = mgag200_bo_init_mem_type,
.evict_flags = mgag200_bo_evict_flags,
.move = mgag200_bo_move,
.verify_access = mgag200_bo_verify_access,
.io_mem_reserve = &mgag200_ttm_io_mem_reserve,
.io_mem_free = &mgag200_ttm_io_mem_free,
}

Definition at line 236 of file mgag200_ttm.c.