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

Go to the source code of this file.

Data Structures

struct  vmw_ttm_tt
 

Functions

struct ttm_ttvmw_ttm_tt_create (struct ttm_bo_device *bdev, unsigned long size, uint32_t page_flags, struct page *dummy_read_page)
 
int vmw_invalidate_caches (struct ttm_bo_device *bdev, uint32_t flags)
 
int vmw_init_mem_type (struct ttm_bo_device *bdev, uint32_t type, struct ttm_mem_type_manager *man)
 
void vmw_evict_flags (struct ttm_buffer_object *bo, struct ttm_placement *placement)
 

Variables

struct ttm_placement vmw_vram_placement
 
struct ttm_placement vmw_vram_gmr_placement
 
struct ttm_placement vmw_vram_gmr_ne_placement
 
struct ttm_placement vmw_vram_sys_placement
 
struct ttm_placement vmw_vram_ne_placement
 
struct ttm_placement vmw_sys_placement
 
struct ttm_placement vmw_evictable_placement
 
struct ttm_placement vmw_srf_placement
 
struct ttm_bo_driver vmw_bo_driver
 

Function Documentation

void vmw_evict_flags ( struct ttm_buffer_object bo,
struct ttm_placement placement 
)

Definition at line 245 of file vmwgfx_buffer.c.

int vmw_init_mem_type ( struct ttm_bo_device bdev,
uint32_t  type,
struct ttm_mem_type_manager man 
)

Definition at line 207 of file vmwgfx_buffer.c.

int vmw_invalidate_caches ( struct ttm_bo_device bdev,
uint32_t  flags 
)

Definition at line 202 of file vmwgfx_buffer.c.

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

Definition at line 181 of file vmwgfx_buffer.c.

Variable Documentation

struct ttm_bo_driver vmw_bo_driver
Initial value:
= {
.ttm_tt_create = &vmw_ttm_tt_create,
.ttm_tt_populate = &ttm_pool_populate,
.ttm_tt_unpopulate = &ttm_pool_unpopulate,
.invalidate_caches = vmw_invalidate_caches,
.init_mem_type = vmw_init_mem_type,
.evict_flags = vmw_evict_flags,
.move = NULL,
.verify_access = vmw_verify_access,
.sync_obj_signaled = vmw_sync_obj_signaled,
.sync_obj_wait = vmw_sync_obj_wait,
.sync_obj_flush = vmw_sync_obj_flush,
.sync_obj_unref = vmw_sync_obj_unref,
.sync_obj_ref = vmw_sync_obj_ref,
.move_notify = NULL,
.swap_notify = NULL,
.fault_reserve_notify = &vmw_ttm_fault_reserve_notify,
.io_mem_reserve = &vmw_ttm_io_mem_reserve,
.io_mem_free = &vmw_ttm_io_mem_free,
}

Definition at line 338 of file vmwgfx_buffer.c.

struct ttm_placement vmw_evictable_placement
Initial value:
= {
.fpfn = 0,
.lpfn = 0,
.num_placement = 3,
.placement = evictable_placement_flags,
.num_busy_placement = 1,
.busy_placement = &sys_placement_flags
}

Definition at line 125 of file vmwgfx_buffer.c.

struct ttm_placement vmw_srf_placement
Initial value:
= {
.fpfn = 0,
.lpfn = 0,
.num_placement = 1,
.num_busy_placement = 2,
.placement = &gmr_placement_flags,
.busy_placement = gmr_vram_placement_flags
}

Definition at line 134 of file vmwgfx_buffer.c.

struct ttm_placement vmw_sys_placement
Initial value:
= {
.fpfn = 0,
.lpfn = 0,
.num_placement = 1,
.placement = &sys_placement_flags,
.num_busy_placement = 1,
.busy_placement = &sys_placement_flags
}

Definition at line 110 of file vmwgfx_buffer.c.

struct ttm_placement vmw_vram_gmr_ne_placement
Initial value:
= {
.fpfn = 0,
.lpfn = 0,
.num_placement = 2,
.placement = vram_gmr_ne_placement_flags,
.num_busy_placement = 1,
.busy_placement = &gmr_ne_placement_flags
}

Definition at line 83 of file vmwgfx_buffer.c.

struct ttm_placement vmw_vram_gmr_placement
Initial value:
= {
.fpfn = 0,
.lpfn = 0,
.num_placement = 2,
.placement = vram_gmr_placement_flags,
.num_busy_placement = 1,
.busy_placement = &gmr_placement_flags
}

Definition at line 69 of file vmwgfx_buffer.c.

struct ttm_placement vmw_vram_ne_placement
Initial value:
= {
.fpfn = 0,
.lpfn = 0,
.num_placement = 1,
.placement = &vram_ne_placement_flags,
.num_busy_placement = 1,
.busy_placement = &vram_ne_placement_flags
}

Definition at line 101 of file vmwgfx_buffer.c.

struct ttm_placement vmw_vram_placement
Initial value:
= {
.fpfn = 0,
.lpfn = 0,
.num_placement = 1,
.placement = &vram_placement_flags,
.num_busy_placement = 1,
.busy_placement = &vram_placement_flags
}

TTM buffer object driver - vmwgfx_buffer.c

Definition at line 50 of file vmwgfx_buffer.c.

struct ttm_placement vmw_vram_sys_placement
Initial value:
= {
.fpfn = 0,
.lpfn = 0,
.num_placement = 1,
.placement = &vram_placement_flags,
.num_busy_placement = 1,
.busy_placement = &sys_placement_flags
}

Definition at line 92 of file vmwgfx_buffer.c.