Linux Kernel
3.7.1
|
#include <linux/spinlock.h>
#include <linux/shmem_fs.h>
#include "omap_drv.h"
#include "omap_dmm_tiler.h"
Go to the source code of this file.
Data Structures | |
struct | omap_gem_object |
struct | usergart_entry |
struct | omap_gem_sync_waiter |
Macros | |
#define | to_omap_bo(x) container_of(x, struct omap_gem_object, base) |
#define | OMAP_BO_DMA 0x01000000 /* actually is physically contiguous */ |
#define | OMAP_BO_EXT_SYNC 0x02000000 /* externally allocated sync object */ |
#define | OMAP_BO_EXT_MEM 0x04000000 /* externally allocated memory */ |
#define | NUM_USERGART_ENTRIES 2 |
#define | SYNCDBG 0 |
#define | SYNC(fmt,...) |
#define NUM_USERGART_ENTRIES 2 |
Definition at line 135 of file omap_gem.c.
#define OMAP_BO_DMA 0x01000000 /* actually is physically contiguous */ |
Definition at line 40 of file omap_gem.c.
#define OMAP_BO_EXT_MEM 0x04000000 /* externally allocated memory */ |
Definition at line 42 of file omap_gem.c.
#define OMAP_BO_EXT_SYNC 0x02000000 /* externally allocated sync object */ |
Definition at line 41 of file omap_gem.c.
#define SYNC | ( | fmt, | |
... | |||
) |
Definition at line 1052 of file omap_gem.c.
#define SYNCDBG 0 |
Definition at line 1051 of file omap_gem.c.
#define to_omap_bo | ( | x | ) | container_of(x, struct omap_gem_object, base) |
Definition at line 37 of file omap_gem.c.
Definition at line 117 of file omap_gem_helpers.c.
drm_gem_get_pages - helper to allocate backing pages for a GEM object : obj in question : gfp mask of requested pages
Definition at line 35 of file omap_gem_helpers.c.
void _drm_gem_put_pages | ( | struct drm_gem_object * | obj, |
struct page ** | pages, | ||
bool | dirty, | ||
bool | accessed | ||
) |
drm_gem_put_pages - helper to free backing pages for a GEM object : obj in question : pages to free
Definition at line 95 of file omap_gem_helpers.c.
Definition at line 717 of file omap_gem.c.
void omap_gem_deinit | ( | struct drm_device * | dev | ) |
Definition at line 1485 of file omap_gem.c.
void omap_gem_dma_sync | ( | struct drm_gem_object * | obj, |
enum dma_data_direction | dir | ||
) |
Definition at line 730 of file omap_gem.c.
int omap_gem_dumb_create | ( | struct drm_file * | file, |
struct drm_device * | dev, | ||
struct drm_mode_create_dumb * | args | ||
) |
omap_gem_dumb_create - create a dumb buffer : our client file : our device : the requested arguments copied from userspace
Allocate a buffer suitable for use for a frame buffer of the form described by user space. Give userspace a handle by which to reference it.
Definition at line 615 of file omap_gem.c.
int omap_gem_dumb_destroy | ( | struct drm_file * | file, |
struct drm_device * | dev, | ||
uint32_t | handle | ||
) |
Definition at line 640 of file omap_gem.c.
int omap_gem_dumb_map_offset | ( | struct drm_file * | file, |
struct drm_device * | dev, | ||
uint32_t | handle, | ||
uint64_t * | offset | ||
) |
Definition at line 656 of file omap_gem.c.
int omap_gem_fault | ( | struct vm_area_struct * | vma, |
struct vm_fault * | vmf | ||
) |
omap_gem_fault - pagefault handler for GEM objects : the VMA of the GEM object : fault detail
Invoked when a fault occurs on an mmap of a GEM managed area. GEM does most of the work for us including the actual map/unmap calls but we need to do the actual page work.
The VMA was set up by GEM. In doing so it also ensured that the vma->vm_private_data points to the GEM object that is backing this mapping.
Definition at line 509 of file omap_gem.c.
Definition at line 302 of file omap_gem.c.
Definition at line 1277 of file omap_gem.c.
int omap_gem_get_paddr | ( | struct drm_gem_object * | obj, |
dma_addr_t * | paddr, | ||
bool | remap | ||
) |
Definition at line 760 of file omap_gem.c.
Definition at line 922 of file omap_gem.c.
void omap_gem_init | ( | struct drm_device * | dev | ) |
Definition at line 1430 of file omap_gem.c.
Definition at line 1269 of file omap_gem.c.
int omap_gem_mmap | ( | struct file * | filp, |
struct vm_area_struct * | vma | ||
) |
We override mainly to fix up some of the vm mapping flags..
Definition at line 555 of file omap_gem.c.
int omap_gem_mmap_obj | ( | struct drm_gem_object * | obj, |
struct vm_area_struct * | vma | ||
) |
Definition at line 568 of file omap_gem.c.
Definition at line 328 of file omap_gem.c.
get mmap size
Definition at line 338 of file omap_gem.c.
|
read |
Definition at line 1345 of file omap_gem.c.
int omap_gem_new_handle | ( | struct drm_device * | dev, |
struct drm_file * | file, | ||
union omap_gem_size | gsize, | ||
uint32_t | flags, | ||
uint32_t * | handle | ||
) |
Definition at line 1321 of file omap_gem.c.
int omap_gem_op_async | ( | struct drm_gem_object * | obj, |
enum omap_gem_op | op, | ||
void(*)(void *arg) | fxn, | ||
void * | arg | ||
) |
Definition at line 1196 of file omap_gem.c.
int omap_gem_op_finish | ( | struct drm_gem_object * | obj, |
enum omap_gem_op | op | ||
) |
Definition at line 1126 of file omap_gem.c.
int omap_gem_op_start | ( | struct drm_gem_object * | obj, |
enum omap_gem_op | op | ||
) |
Definition at line 1121 of file omap_gem.c.
int omap_gem_op_sync | ( | struct drm_gem_object * | obj, |
enum omap_gem_op | op | ||
) |
Definition at line 1140 of file omap_gem.c.
Definition at line 1113 of file omap_gem.c.
Definition at line 832 of file omap_gem.c.
Definition at line 940 of file omap_gem.c.
Definition at line 682 of file omap_gem.c.
int omap_gem_rotated_paddr | ( | struct drm_gem_object * | obj, |
uint32_t | orient, | ||
int | x, | ||
int | y, | ||
dma_addr_t * | paddr | ||
) |
Definition at line 864 of file omap_gem.c.
Definition at line 1237 of file omap_gem.c.
Definition at line 358 of file omap_gem.c.
Definition at line 881 of file omap_gem.c.
Definition at line 953 of file omap_gem.c.
Definition at line 144 of file omap_gem.c.
int height |
Definition at line 145 of file omap_gem.c.
int height_shift |
Definition at line 146 of file omap_gem.c.
int last |
Definition at line 149 of file omap_gem.c.
int slot_shift |
Definition at line 147 of file omap_gem.c.
int stride_pfn |
Definition at line 148 of file omap_gem.c.