Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
gpuobj.h File Reference
#include <core/object.h>
#include <core/device.h>
#include <core/parent.h>
#include <core/mm.h>

Go to the source code of this file.

Data Structures

struct  nouveau_gpuobj
 

Macros

#define NVOBJ_FLAG_ZERO_ALLOC   0x00000001
 
#define NVOBJ_FLAG_ZERO_FREE   0x00000002
 
#define NVOBJ_FLAG_HEAP   0x00000004
 
#define nouveau_gpuobj_create(p, e, c, v, g, s, a, f, d)
 
#define nouveau_gpuobj_init(p)   nouveau_object_init(&(p)->base)
 
#define nouveau_gpuobj_fini(p, s)   nouveau_object_fini(&(p)->base, (s))
 

Functions

int nouveau_gpuobj_create_ (struct nouveau_object *, struct nouveau_object *, struct nouveau_oclass *, u32 pclass, struct nouveau_object *, u32 size, u32 align, u32 flags, int length, void **)
 
void nouveau_gpuobj_destroy (struct nouveau_gpuobj *)
 
int nouveau_gpuobj_new (struct nouveau_object *, struct nouveau_object *, u32 size, u32 align, u32 flags, struct nouveau_gpuobj **)
 
int nouveau_gpuobj_dup (struct nouveau_object *, struct nouveau_gpuobj *, struct nouveau_gpuobj **)
 
int nouveau_gpuobj_map (struct nouveau_gpuobj *, u32 acc, struct nouveau_vma *)
 
int nouveau_gpuobj_map_vm (struct nouveau_gpuobj *, struct nouveau_vm *, u32 access, struct nouveau_vma *)
 
void nouveau_gpuobj_unmap (struct nouveau_vma *)
 
void _nouveau_gpuobj_dtor (struct nouveau_object *)
 
int _nouveau_gpuobj_init (struct nouveau_object *)
 
int _nouveau_gpuobj_fini (struct nouveau_object *, bool)
 
u32 _nouveau_gpuobj_rd32 (struct nouveau_object *, u32)
 
void _nouveau_gpuobj_wr32 (struct nouveau_object *, u32, u32)
 

Macro Definition Documentation

#define nouveau_gpuobj_create (   p,
  e,
  c,
  v,
  g,
  s,
  a,
  f,
  d 
)
Value:
nouveau_gpuobj_create_((p), (e), (c), (v), (g), (s), (a), (f), \
sizeof(**d), (void **)d)

Definition at line 37 of file gpuobj.h.

#define nouveau_gpuobj_fini (   p,
  s 
)    nouveau_object_fini(&(p)->base, (s))

Definition at line 41 of file gpuobj.h.

#define nouveau_gpuobj_init (   p)    nouveau_object_init(&(p)->base)

Definition at line 40 of file gpuobj.h.

#define NVOBJ_FLAG_HEAP   0x00000004

Definition at line 14 of file gpuobj.h.

#define NVOBJ_FLAG_ZERO_ALLOC   0x00000001

Definition at line 12 of file gpuobj.h.

#define NVOBJ_FLAG_ZERO_FREE   0x00000002

Definition at line 13 of file gpuobj.h.

Function Documentation

void _nouveau_gpuobj_dtor ( struct nouveau_object )

Definition at line 168 of file gpuobj.c.

int _nouveau_gpuobj_fini ( struct nouveau_object ,
bool   
)

Definition at line 180 of file gpuobj.c.

int _nouveau_gpuobj_init ( struct nouveau_object )

Definition at line 174 of file gpuobj.c.

u32 _nouveau_gpuobj_rd32 ( struct nouveau_object ,
u32   
)

Definition at line 186 of file gpuobj.c.

void _nouveau_gpuobj_wr32 ( struct nouveau_object ,
u32  ,
u32   
)

Definition at line 196 of file gpuobj.c.

int nouveau_gpuobj_create_ ( struct nouveau_object ,
struct nouveau_object ,
struct nouveau_oclass ,
u32  pclass,
struct nouveau_object ,
u32  size,
u32  align,
u32  flags,
int  length,
void **   
)

Definition at line 54 of file gpuobj.c.

void nouveau_gpuobj_destroy ( struct nouveau_gpuobj )

Definition at line 33 of file gpuobj.c.

int nouveau_gpuobj_dup ( struct nouveau_object ,
struct nouveau_gpuobj ,
struct nouveau_gpuobj **   
)

Definition at line 307 of file gpuobj.c.

int nouveau_gpuobj_map ( struct nouveau_gpuobj ,
u32  acc,
struct nouveau_vma  
)

Definition at line 241 of file gpuobj.c.

int nouveau_gpuobj_map_vm ( struct nouveau_gpuobj ,
struct nouveau_vm ,
u32  access,
struct nouveau_vma  
)

Definition at line 258 of file gpuobj.c.

int nouveau_gpuobj_new ( struct nouveau_object ,
struct nouveau_object ,
u32  size,
u32  align,
u32  flags,
struct nouveau_gpuobj **   
)

Definition at line 219 of file gpuobj.c.

void nouveau_gpuobj_unmap ( struct nouveau_vma )

Definition at line 275 of file gpuobj.c.