23#ifndef __DRM_PROPERTY_H__
24#define __DRM_PROPERTY_H__
230#define obj_to_property(x) container_of(x, struct drm_property, base)
231#define obj_to_blob(x) container_of(x, struct drm_property_blob, base)
241static inline bool drm_property_type_is(
struct drm_property *property,
247 return property->flags & type;
int64_t ssize_t
Definition stddef.h:38
uint8_t flags
Definition virtio.h:0
unsigned int uint32_t
Definition acefiex.h:163
COMPILER_DEPENDENT_INT64 int64_t
Definition acefiex.h:164
COMPILER_DEPENDENT_UINT64 uint64_t
Definition acefiex.h:165
#define NULL
Definition actypes.h:561
#define DRM_PROP_NAME_LEN
Definition drm_mode.h:33
#define DRM_MODE_OBJECT_PROPERTY
Definition drm_mode.h:617
#define DRM_MODE_PROP_EXTENDED_TYPE
Definition drm_mode.h:524
struct drm_crtc struct drm_plane struct drm_plane const struct drm_crtc_funcs const char * name
Definition drm_crtc.h:1242
struct drm_mode_object * drm_mode_object_find(struct drm_device *dev, struct drm_file *file_priv, uint32_t id, uint32_t type)
const struct device * dev
Definition drm_print.h:519
struct drm_property_blob * drm_property_lookup_blob(struct drm_device *dev, uint32_t id)
struct drm_property * drm_property_create_bitmask(struct drm_device *dev, u32 flags, const char *name, const struct drm_prop_enum_list *props, int num_props, uint64_t supported_bits)
struct drm_property * drm_property_create(struct drm_device *dev, u32 flags, const char *name, int num_values)
struct drm_property * drm_property_create_range(struct drm_device *dev, u32 flags, const char *name, uint64_t min, uint64_t max)
struct drm_property * drm_property_create_bool(struct drm_device *dev, u32 flags, const char *name)
void drm_property_destroy(struct drm_device *dev, struct drm_property *property)
struct drm_property * drm_property_create_signed_range(struct drm_device *dev, u32 flags, const char *name, int64_t min, int64_t max)
int drm_property_replace_blob_from_id(struct drm_device *dev, struct drm_property_blob **blob, uint64_t blob_id, ssize_t expected_size, ssize_t expected_elem_size, ssize_t max_size, bool *replaced)
int drm_property_replace_global_blob(struct drm_device *dev, struct drm_property_blob **replace, size_t length, const void *data, struct drm_mode_object *obj_holds_id, struct drm_property *prop_holds_id)
bool drm_property_replace_blob(struct drm_property_blob **blob, struct drm_property_blob *new_blob)
struct drm_property * drm_property_create_enum(struct drm_device *dev, u32 flags, const char *name, const struct drm_prop_enum_list *props, int num_values)
void drm_property_blob_put(struct drm_property_blob *blob)
struct drm_property_blob * drm_property_blob_get(struct drm_property_blob *blob)
#define obj_to_property(x)
Definition drm_property.h:230
struct drm_property * drm_property_create_object(struct drm_device *dev, u32 flags, const char *name, uint32_t type)
struct drm_property_blob * drm_property_create_blob(struct drm_device *dev, size_t length, const void *data)
int drm_property_add_enum(struct drm_property *property, uint64_t value, const char *name)
void * data
Definition kthread.h:30
uint32_t u32
Definition kernel.h:16
int const struct list_head const struct list_head struct list_head * head
Definition list_sort.h:13
#define min(a, b)
Definition minmax.h:24
#define max(a, b)
Definition minmax.h:28
Definition drm_device.h:75
Definition drm_file.h:165
Definition drm_mode_object.h:55
Definition drm_property.h:225
int type
Definition drm_property.h:226
const char * name
Definition drm_property.h:227
Definition drm_property.h:216
void * data
Definition drm_property.h:222
struct list_head head_global
Definition drm_property.h:219
struct drm_mode_object base
Definition drm_property.h:217
struct drm_device * dev
Definition drm_property.h:218
size_t length
Definition drm_property.h:221
struct list_head head_file
Definition drm_property.h:220
Definition drm_property.h:40
char name[DRM_PROP_NAME_LEN]
Definition drm_property.h:51
uint64_t value
Definition drm_property.h:49
Definition drm_property.h:80
struct list_head enum_list
Definition drm_property.h:197
struct drm_mode_object base
Definition drm_property.h:89
uint32_t flags
Definition drm_property.h:166
char name[DRM_PROP_NAME_LEN]
Definition drm_property.h:171
struct drm_device * dev
Definition drm_property.h:189
uint64_t * values
Definition drm_property.h:184
uint32_t num_values
Definition drm_property.h:176