XenevaOS
Loading...
Searching...
No Matches
Macros | Functions
drm_gem_framebuffer_helper.h File Reference
#include <linux/dma-buf.h>
#include <linux/iosys-map.h>
Include dependency graph for drm_gem_framebuffer_helper.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define AFBC_VENDOR_AND_TYPE_MASK   GENMASK_ULL(63, 52)
 
#define drm_is_afbc(modifier)    (((modifier) & AFBC_VENDOR_AND_TYPE_MASK) == DRM_FORMAT_MOD_ARM_AFBC(0))
 

Functions

struct drm_gem_object * drm_gem_fb_get_obj (struct drm_framebuffer *fb, unsigned int plane)
 
void drm_gem_fb_destroy (struct drm_framebuffer *fb)
 
int drm_gem_fb_create_handle (struct drm_framebuffer *fb, struct drm_file *file, unsigned int *handle)
 
int drm_gem_fb_init_with_funcs (struct drm_device *dev, struct drm_framebuffer *fb, struct drm_file *file, const struct drm_format_info *info, const struct drm_mode_fb_cmd2 *mode_cmd, const struct drm_framebuffer_funcs *funcs)
 
struct drm_framebuffer * drm_gem_fb_create_with_funcs (struct drm_device *dev, struct drm_file *file, const struct drm_format_info *info, const struct drm_mode_fb_cmd2 *mode_cmd, const struct drm_framebuffer_funcs *funcs)
 
struct drm_framebuffer * drm_gem_fb_create (struct drm_device *dev, struct drm_file *file, const struct drm_format_info *info, const struct drm_mode_fb_cmd2 *mode_cmd)
 
struct drm_framebuffer * drm_gem_fb_create_with_dirty (struct drm_device *dev, struct drm_file *file, const struct drm_format_info *info, const struct drm_mode_fb_cmd2 *mode_cmd)
 
int drm_gem_fb_vmap (struct drm_framebuffer *fb, struct iosys_map *map, struct iosys_map *data)
 
void drm_gem_fb_vunmap (struct drm_framebuffer *fb, struct iosys_map *map)
 
int drm_gem_fb_begin_cpu_access (struct drm_framebuffer *fb, enum dma_data_direction dir)
 
void drm_gem_fb_end_cpu_access (struct drm_framebuffer *fb, enum dma_data_direction dir)
 
int drm_gem_fb_afbc_init (struct drm_device *dev, const struct drm_format_info *info, const struct drm_mode_fb_cmd2 *mode_cmd, struct drm_afbc_framebuffer *afbc_fb)
 

Macro Definition Documentation

◆ AFBC_VENDOR_AND_TYPE_MASK

#define AFBC_VENDOR_AND_TYPE_MASK   GENMASK_ULL(63, 52)

◆ drm_is_afbc

#define drm_is_afbc (   modifier)     (((modifier) & AFBC_VENDOR_AND_TYPE_MASK) == DRM_FORMAT_MOD_ARM_AFBC(0))

Function Documentation

◆ drm_gem_fb_afbc_init()

int drm_gem_fb_afbc_init ( struct drm_device *  dev,
const struct drm_format_info *  info,
const struct drm_mode_fb_cmd2 *  mode_cmd,
struct drm_afbc_framebuffer *  afbc_fb 
)

◆ drm_gem_fb_begin_cpu_access()

int drm_gem_fb_begin_cpu_access ( struct drm_framebuffer *  fb,
enum dma_data_direction  dir 
)

◆ drm_gem_fb_create()

struct drm_framebuffer * drm_gem_fb_create ( struct drm_device *  dev,
struct drm_file *  file,
const struct drm_format_info *  info,
const struct drm_mode_fb_cmd2 *  mode_cmd 
)

◆ drm_gem_fb_create_handle()

int drm_gem_fb_create_handle ( struct drm_framebuffer *  fb,
struct drm_file *  file,
unsigned int *  handle 
)

◆ drm_gem_fb_create_with_dirty()

struct drm_framebuffer * drm_gem_fb_create_with_dirty ( struct drm_device *  dev,
struct drm_file *  file,
const struct drm_format_info *  info,
const struct drm_mode_fb_cmd2 *  mode_cmd 
)

◆ drm_gem_fb_create_with_funcs()

struct drm_framebuffer * drm_gem_fb_create_with_funcs ( struct drm_device *  dev,
struct drm_file *  file,
const struct drm_format_info *  info,
const struct drm_mode_fb_cmd2 *  mode_cmd,
const struct drm_framebuffer_funcs *  funcs 
)

◆ drm_gem_fb_destroy()

void drm_gem_fb_destroy ( struct drm_framebuffer *  fb)

◆ drm_gem_fb_end_cpu_access()

void drm_gem_fb_end_cpu_access ( struct drm_framebuffer *  fb,
enum dma_data_direction  dir 
)

◆ drm_gem_fb_get_obj()

struct drm_gem_object * drm_gem_fb_get_obj ( struct drm_framebuffer *  fb,
unsigned int  plane 
)

◆ drm_gem_fb_init_with_funcs()

int drm_gem_fb_init_with_funcs ( struct drm_device *  dev,
struct drm_framebuffer *  fb,
struct drm_file *  file,
const struct drm_format_info *  info,
const struct drm_mode_fb_cmd2 *  mode_cmd,
const struct drm_framebuffer_funcs *  funcs 
)

◆ drm_gem_fb_vmap()

int drm_gem_fb_vmap ( struct drm_framebuffer *  fb,
struct iosys_map *  map,
struct iosys_map *  data 
)

◆ drm_gem_fb_vunmap()

void drm_gem_fb_vunmap ( struct drm_framebuffer *  fb,
struct iosys_map *  map 
)