XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Functions | Variables
drm_crtc.h File Reference
#include <linux/spinlock.h>
#include <linux/types.h>
#include <drm/drm_modeset_lock.h>
#include <drm/drm_mode_object.h>
#include <drm/drm_modes.h>
#include <drm/drm_device.h>
#include <drm/drm_plane.h>
#include <drm/drm_debugfs_crc.h>
#include <drm/drm_mode_config.h>
Include dependency graph for drm_crtc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  drm_crtc_state
 
struct  drm_crtc_funcs
 
struct  drm_crtc
 
struct  drm_mode_set
 

Macros

#define obj_to_crtc(x)   container_of(x, struct drm_crtc, base)
 

Functions

 __printf (6, 7) int drm_crtc_init_with_planes(struct drm_device *dev
 
struct drm_crtc struct drm_plane struct drm_plane const struct drm_crtc_funcs const char struct drm_crtc struct drm_plane struct drm_plane const struct drm_crtc_funcs const char void drm_crtc_cleanup (struct drm_crtc *crtc)
 
 __printf (7, 8) void *__drmm_crtc_alloc_with_planes(struct drm_device *dev
 

Variables

struct drm_crtc * crtc
 
struct drm_crtc struct drm_plane * primary
 
struct drm_crtc struct drm_plane struct drm_plane * cursor
 
struct drm_crtc struct drm_plane struct drm_plane const struct drm_crtc_funcs * funcs
 
size_t size
 
size_t size_t offset
 
: human readable name, can be overwritten by the driver

struct drm_encoder - central DRM encoder structure @dev: parent DRM device @head: list management @base: base KMS object

@funcs: control functions, can be NULL for simple managed encoders @helper_private: mid-layer private data

CRTCs drive pixels to encoders, which convert them into signals appropriate for a given connector or set of connectors.

struct drm_crtc struct drm_plane struct drm_plane const struct drm_crtc_funcs const char * name
 

: printf style format string for the CRTC name, or NULL for default name

drmm_crtc_alloc_with_planes - Allocate and initialize a new CRTC object with specified primary and cursor planes. @dev: DRM device @type: the type of the struct which contains struct &drm_crtc @member: the name of the &drm_crtc within @type. @primary: Primary plane for CRTC @cursor: Cursor plane for CRTC @funcs: callbacks for the new CRTC

Allocates and initializes a new crtc object. Cleanup is automatically handled through registering drmm_crtc_cleanup() with drmm_add_action().

The @drm_crtc_funcs.destroy hook must be NULL.

Returns: Pointer to new crtc, or ERR_PTR on failure.

#define drmm_crtc_alloc_with_planes(dev, type, member, primary, cursor, funcs, name, ...)
 
#define drm_for_each_crtc(crtc, dev)    list_for_each_entry(crtc, &(dev)->mode_config.crtc_list, head)
 
#define drm_for_each_crtc_reverse(crtc, dev)    list_for_each_entry_reverse(crtc, &(dev)->mode_config.crtc_list, head)
 
int drm_mode_set_config_internal (struct drm_mode_set *set)
 
struct drm_crtc * drm_crtc_from_index (struct drm_device *dev, int idx)
 
int drm_crtc_create_scaling_filter_property (struct drm_crtc *crtc, unsigned int supported_filters)
 
bool drm_crtc_in_clone_mode (struct drm_crtc_state *crtc_state)
 
int drm_crtc_create_sharpness_strength_property (struct drm_crtc *crtc)
 

Macro Definition Documentation

◆ drm_for_each_crtc

#define drm_for_each_crtc (   crtc,
  dev 
)     list_for_each_entry(crtc, &(dev)->mode_config.crtc_list, head)

drm_for_each_crtc - iterate over all CRTCs @crtc: a &struct drm_crtc as the loop cursor @dev: the &struct drm_device

Iterate over all CRTCs of @dev.

◆ drm_for_each_crtc_reverse

#define drm_for_each_crtc_reverse (   crtc,
  dev 
)     list_for_each_entry_reverse(crtc, &(dev)->mode_config.crtc_list, head)

drm_for_each_crtc_reverse - iterate over all CRTCs in reverse order @crtc: a &struct drm_crtc as the loop cursor @dev: the &struct drm_device

Iterate over all CRTCs of @dev.

◆ drmm_crtc_alloc_with_planes

#define drmm_crtc_alloc_with_planes (   dev,
  type,
  member,
  primary,
  cursor,
  funcs,
  name,
  ... 
)
Value:
((type *)__drmm_crtc_alloc_with_planes(dev, sizeof(type), \
offsetof(type, member), \
name, ##__VA_ARGS__))
struct drm_crtc struct drm_plane * primary
Definition drm_crtc.h:1239
struct drm_crtc struct drm_plane struct drm_plane * cursor
Definition drm_crtc.h:1240
struct drm_crtc struct drm_plane struct drm_plane const struct drm_crtc_funcs * funcs
Definition drm_crtc.h:1241
struct drm_crtc struct drm_plane struct drm_plane const struct drm_crtc_funcs const char * name
Definition drm_crtc.h:1242
const struct device * dev
Definition drm_print.h:519

◆ obj_to_crtc

#define obj_to_crtc (   x)    container_of(x, struct drm_crtc, base)

Function Documentation

◆ __printf() [1/2]

struct drm_crtc struct drm_plane struct drm_plane const struct drm_crtc_funcs const char __printf ( 6  ,
7   
)

◆ __printf() [2/2]

__printf ( 7  ,
8   
)

◆ drm_crtc_cleanup()

struct drm_crtc struct drm_plane struct drm_plane const struct drm_crtc_funcs const char struct drm_crtc struct drm_plane struct drm_plane const struct drm_crtc_funcs const char void drm_crtc_cleanup ( struct drm_crtc *  crtc)

◆ drm_crtc_create_scaling_filter_property()

int drm_crtc_create_scaling_filter_property ( struct drm_crtc *  crtc,
unsigned int  supported_filters 
)

◆ drm_crtc_create_sharpness_strength_property()

int drm_crtc_create_sharpness_strength_property ( struct drm_crtc *  crtc)

◆ drm_crtc_from_index()

struct drm_crtc * drm_crtc_from_index ( struct drm_device *  dev,
int  idx 
)

◆ drm_crtc_in_clone_mode()

bool drm_crtc_in_clone_mode ( struct drm_crtc_state *  crtc_state)

◆ drm_mode_set_config_internal()

int drm_mode_set_config_internal ( struct drm_mode_set *  set)

Variable Documentation

◆ crtc

struct drm_crtc struct drm_plane struct drm_plane const struct drm_crtc_funcs const char struct drm_crtc * crtc

◆ cursor

size_t size_t struct drm_plane struct drm_plane * cursor

◆ funcs

size_t size_t struct drm_plane struct drm_plane const struct drm_crtc_funcs* funcs

◆ name

size_t size_t uint32_t const struct drm_plane_funcs const uint32_t unsigned int const uint64_t enum drm_plane_type plane_type const char * name

◆ offset

size_t size_t offset

◆ primary

size_t size_t struct drm_plane * primary

◆ size

size_t size