XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Functions
drm_panel.h File Reference
#include <linux/err.h>
#include <linux/errno.h>
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/kref.h>
Include dependency graph for drm_panel.h:

Go to the source code of this file.

Classes

struct  drm_panel_funcs
 
struct  drm_panel_follower_funcs
 
struct  drm_panel_follower
 
struct  drm_panel
 

Macros

#define devm_drm_panel_alloc(dev, type, member, funcs, connector_type)
 

Functions

void * __devm_drm_panel_alloc (struct device *dev, size_t size, size_t offset, const struct drm_panel_funcs *funcs, int connector_type)
 
struct drm_panel * drm_panel_get (struct drm_panel *panel)
 
void drm_panel_put (struct drm_panel *panel)
 
void drm_panel_add (struct drm_panel *panel)
 
void drm_panel_remove (struct drm_panel *panel)
 
int devm_drm_panel_add (struct device *dev, struct drm_panel *panel)
 
void drm_panel_prepare (struct drm_panel *panel)
 
void drm_panel_unprepare (struct drm_panel *panel)
 
void drm_panel_enable (struct drm_panel *panel)
 
void drm_panel_disable (struct drm_panel *panel)
 
int drm_panel_get_modes (struct drm_panel *panel, struct drm_connector *connector)
 

Macro Definition Documentation

◆ devm_drm_panel_alloc

#define devm_drm_panel_alloc (   dev,
  type,
  member,
  funcs,
  connector_type 
)
Value:
((type *)__devm_drm_panel_alloc(dev, sizeof(type), \
offsetof(type, member), funcs, \
connector_type))
size_t size_t const struct drm_bridge_funcs * funcs
Definition drm_bridge.h:1300
void * __devm_drm_panel_alloc(struct device *dev, size_t size, size_t offset, const struct drm_panel_funcs *funcs, int connector_type)
const struct device * dev
Definition drm_print.h:519

devm_drm_panel_alloc - Allocate and initialize a refcounted panel.

@dev: struct device of the panel device @type: the type of the struct which contains struct &drm_panel @member: the name of the &drm_panel within @type @funcs: callbacks for this panel @connector_type: the connector type (DRM_MODE_CONNECTOR_*) corresponding to the panel interface

The reference count of the returned panel is initialized to 1. This reference will be automatically dropped via devm (by calling drm_panel_put()) when @dev is removed.

Returns: Pointer to container structure embedding the panel, ERR_PTR on failure.

Function Documentation

◆ __devm_drm_panel_alloc()

void * __devm_drm_panel_alloc ( struct device *  dev,
size_t  size,
size_t  offset,
const struct drm_panel_funcs *  funcs,
int  connector_type 
)

◆ devm_drm_panel_add()

int devm_drm_panel_add ( struct device *  dev,
struct drm_panel *  panel 
)

◆ drm_panel_add()

void drm_panel_add ( struct drm_panel *  panel)

◆ drm_panel_disable()

void drm_panel_disable ( struct drm_panel *  panel)

◆ drm_panel_enable()

void drm_panel_enable ( struct drm_panel *  panel)

◆ drm_panel_get()

struct drm_panel * drm_panel_get ( struct drm_panel *  panel)

◆ drm_panel_get_modes()

int drm_panel_get_modes ( struct drm_panel *  panel,
struct drm_connector *  connector 
)

◆ drm_panel_prepare()

void drm_panel_prepare ( struct drm_panel *  panel)

◆ drm_panel_put()

void drm_panel_put ( struct drm_panel *  panel)

◆ drm_panel_remove()

void drm_panel_remove ( struct drm_panel *  panel)

◆ drm_panel_unprepare()

void drm_panel_unprepare ( struct drm_panel *  panel)