XenevaOS
Loading...
Searching...
No Matches
Classes | Macros | Functions
drm_framebuffer.h File Reference
#include <linux/bits.h>
#include <linux/ctype.h>
#include <linux/list.h>
#include <linux/sched.h>
#include <drm/drm_fourcc.h>
#include <drm/drm_mode_object.h>
Include dependency graph for drm_framebuffer.h:

Go to the source code of this file.

Classes

struct  drm_framebuffer_funcs
 
struct  drm_framebuffer
 
struct  drm_afbc_framebuffer
 

Macros

#define DRM_FRAMEBUFFER_HAS_HANDLE_REF(_i)   BIT(0u + (_i))
 
#define obj_to_fb(x)   container_of(x, struct drm_framebuffer, base)
 
#define drm_for_each_fb(fb, dev)
 
#define fb_to_afbc_fb(x)   container_of(x, struct drm_afbc_framebuffer, base)
 

Functions

int drm_framebuffer_init (struct drm_device *dev, struct drm_framebuffer *fb, const struct drm_framebuffer_funcs *funcs)
 
struct drm_framebuffer * drm_framebuffer_lookup (struct drm_device *dev, struct drm_file *file_priv, uint32_t id)
 
void drm_framebuffer_remove (struct drm_framebuffer *fb)
 
void drm_framebuffer_cleanup (struct drm_framebuffer *fb)
 
void drm_framebuffer_unregister_private (struct drm_framebuffer *fb)
 

Macro Definition Documentation

◆ drm_for_each_fb

#define drm_for_each_fb (   fb,
  dev 
)
Value:
for (WARN_ON(!mutex_is_locked(&(dev)->mode_config.fb_lock)), \
fb = list_first_entry(&(dev)->mode_config.fb_list, \
struct drm_framebuffer, head); \
&fb->head != (&(dev)->mode_config.fb_list); \
fb = list_next_entry(fb, head))
#define list_first_entry(ptr, type, member)
Definition list.h:21
#define list_next_entry(pos, member)
Definition list.h:27
const struct device * dev
Definition drm_print.h:519
#define mutex_is_locked(m)
Definition mutex.h:65
int const struct list_head const struct list_head struct list_head * head
Definition list_sort.h:13
Definition drm_framebuffer.h:120

◆ DRM_FRAMEBUFFER_HAS_HANDLE_REF

#define DRM_FRAMEBUFFER_HAS_HANDLE_REF (   _i)    BIT(0u + (_i))

◆ fb_to_afbc_fb

#define fb_to_afbc_fb (   x)    container_of(x, struct drm_afbc_framebuffer, base)

◆ obj_to_fb

#define obj_to_fb (   x)    container_of(x, struct drm_framebuffer, base)

Function Documentation

◆ drm_framebuffer_cleanup()

void drm_framebuffer_cleanup ( struct drm_framebuffer *  fb)

◆ drm_framebuffer_init()

int drm_framebuffer_init ( struct drm_device *  dev,
struct drm_framebuffer *  fb,
const struct drm_framebuffer_funcs *  funcs 
)

◆ drm_framebuffer_lookup()

struct drm_framebuffer * drm_framebuffer_lookup ( struct drm_device *  dev,
struct drm_file *  file_priv,
uint32_t  id 
)

◆ drm_framebuffer_remove()

void drm_framebuffer_remove ( struct drm_framebuffer *  fb)

◆ drm_framebuffer_unregister_private()

void drm_framebuffer_unregister_private ( struct drm_framebuffer *  fb)