XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Functions
drm_mode_object.h File Reference
#include <linux/kref.h>
#include <drm/drm_lease.h>
Include dependency graph for drm_mode_object.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  drm_mode_object
 
struct  drm_object_properties
 

Macros

#define DRM_OBJECT_MAX_PROPERTY   64
 
#define DRM_ENUM_NAME_FN(fnname, list)
 

Functions

struct drm_mode_object * drm_mode_object_find (struct drm_device *dev, struct drm_file *file_priv, uint32_t id, uint32_t type)
 
void drm_mode_object_get (struct drm_mode_object *obj)
 
void drm_mode_object_put (struct drm_mode_object *obj)
 
int drm_object_property_set_value (struct drm_mode_object *obj, struct drm_property *property, uint64_t val)
 
int drm_object_property_get_value (struct drm_mode_object *obj, struct drm_property *property, uint64_t *value)
 
int drm_object_property_get_default_value (struct drm_mode_object *obj, struct drm_property *property, uint64_t *val)
 
int drm_object_immutable_property_get_value (struct drm_mode_object *obj, struct drm_property *property, uint64_t *val)
 
void drm_object_attach_property (struct drm_mode_object *obj, struct drm_property *property, uint64_t init_val)
 
bool drm_mode_object_lease_required (uint32_t type)
 

Macro Definition Documentation

◆ DRM_ENUM_NAME_FN

#define DRM_ENUM_NAME_FN (   fnname,
  list 
)
Value:
const char *fnname(int val) \
{ \
int i; \
for (i = 0; i < ARRAY_SIZE(list); i++) { \
if (list[i].type == val) \
return list[i].name; \
} \
return "(unknown)"; \
}
XEProcessList * list
Definition main.cpp:27
#define ARRAY_SIZE(arr)
Definition bordoisila_bits.h:61
char name[16]
Definition process.h:117

◆ DRM_OBJECT_MAX_PROPERTY

#define DRM_OBJECT_MAX_PROPERTY   64

Function Documentation

◆ drm_mode_object_find()

struct drm_mode_object * drm_mode_object_find ( struct drm_device *  dev,
struct drm_file *  file_priv,
uint32_t  id,
uint32_t  type 
)

◆ drm_mode_object_get()

void drm_mode_object_get ( struct drm_mode_object *  obj)

◆ drm_mode_object_lease_required()

bool drm_mode_object_lease_required ( uint32_t  type)

◆ drm_mode_object_put()

void drm_mode_object_put ( struct drm_mode_object *  obj)

◆ drm_object_attach_property()

void drm_object_attach_property ( struct drm_mode_object *  obj,
struct drm_property *  property,
uint64_t  init_val 
)

◆ drm_object_immutable_property_get_value()

int drm_object_immutable_property_get_value ( struct drm_mode_object *  obj,
struct drm_property *  property,
uint64_t *  val 
)

◆ drm_object_property_get_default_value()

int drm_object_property_get_default_value ( struct drm_mode_object *  obj,
struct drm_property *  property,
uint64_t *  val 
)

◆ drm_object_property_get_value()

int drm_object_property_get_value ( struct drm_mode_object *  obj,
struct drm_property *  property,
uint64_t *  value 
)

◆ drm_object_property_set_value()

int drm_object_property_set_value ( struct drm_mode_object *  obj,
struct drm_property *  property,
uint64_t  val 
)