Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
fbcmap.c File Reference
#include <linux/string.h>
#include <linux/module.h>
#include <linux/fb.h>
#include <linux/slab.h>
#include <linux/uaccess.h>

Go to the source code of this file.

Functions

int fb_alloc_cmap_gfp (struct fb_cmap *cmap, int len, int transp, gfp_t flags)
 
int fb_alloc_cmap (struct fb_cmap *cmap, int len, int transp)
 
void fb_dealloc_cmap (struct fb_cmap *cmap)
 
int fb_copy_cmap (const struct fb_cmap *from, struct fb_cmap *to)
 
int fb_cmap_to_user (const struct fb_cmap *from, struct fb_cmap_user *to)
 
int fb_set_cmap (struct fb_cmap *cmap, struct fb_info *info)
 
int fb_set_user_cmap (struct fb_cmap_user *cmap, struct fb_info *info)
 
struct fb_cmapfb_default_cmap (int len)
 
void fb_invert_cmaps (void)
 
 EXPORT_SYMBOL (fb_alloc_cmap)
 
 EXPORT_SYMBOL (fb_dealloc_cmap)
 
 EXPORT_SYMBOL (fb_copy_cmap)
 
 EXPORT_SYMBOL (fb_set_cmap)
 
 EXPORT_SYMBOL (fb_default_cmap)
 
 EXPORT_SYMBOL (fb_invert_cmaps)
 

Function Documentation

EXPORT_SYMBOL ( fb_alloc_cmap  )
EXPORT_SYMBOL ( fb_dealloc_cmap  )
EXPORT_SYMBOL ( fb_copy_cmap  )
EXPORT_SYMBOL ( fb_set_cmap  )
EXPORT_SYMBOL ( fb_default_cmap  )
EXPORT_SYMBOL ( fb_invert_cmaps  )
int fb_alloc_cmap ( struct fb_cmap cmap,
int  len,
int  transp 
)

Definition at line 131 of file fbcmap.c.

int fb_alloc_cmap_gfp ( struct fb_cmap cmap,
int  len,
int  transp,
gfp_t  flags 
)

fb_alloc_cmap - allocate a colormap : frame buffer colormap structure : length of : boolean, 1 if there is transparency, 0 otherwise : flags for kmalloc memory allocation

Allocates memory for a colormap . is the number of entries in the palette.

Returns negative errno on error, or zero on success.

Definition at line 92 of file fbcmap.c.

int fb_cmap_to_user ( const struct fb_cmap from,
struct fb_cmap_user to 
)

Definition at line 188 of file fbcmap.c.

int fb_copy_cmap ( const struct fb_cmap from,
struct fb_cmap to 
)

fb_copy_cmap - copy a colormap : frame buffer colormap structure : frame buffer colormap structure

Copy contents of colormap from to .

Definition at line 164 of file fbcmap.c.

void fb_dealloc_cmap ( struct fb_cmap cmap)

fb_dealloc_cmap - deallocate a colormap : frame buffer colormap structure

Deallocates a colormap that was previously allocated with fb_alloc_cmap().

Definition at line 145 of file fbcmap.c.

struct fb_cmap* fb_default_cmap ( int  len)
read

fb_default_cmap - get default colormap : size of palette for a depth

Gets the default colormap for a specific screen depth. is the size of the palette for a particular screen depth.

Returns pointer to a frame buffer colormap structure.

Definition at line 312 of file fbcmap.c.

void fb_invert_cmaps ( void  )

fb_invert_cmaps - invert all defaults colormaps

Invert all default colormaps.

Definition at line 331 of file fbcmap.c.

int fb_set_cmap ( struct fb_cmap cmap,
struct fb_info info 
)

fb_set_cmap - set the colormap : frame buffer colormap structure : frame buffer info structure

Sets the colormap for a screen of device .

Returns negative errno on error, or zero on success.

Definition at line 227 of file fbcmap.c.

int fb_set_user_cmap ( struct fb_cmap_user cmap,
struct fb_info info 
)

Definition at line 263 of file fbcmap.c.