Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
fimc-core.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/bug.h>
#include <linux/interrupt.h>
#include <linux/device.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/list.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/clk.h>
#include <media/v4l2-ioctl.h>
#include <media/videobuf2-core.h>
#include <media/videobuf2-dma-contig.h>
#include "fimc-core.h"
#include "fimc-reg.h"
#include "fimc-mdevice.h"

Go to the source code of this file.

Macros

#define ctrl_to_ctx(__ctrl)   container_of((__ctrl)->handler, struct fimc_ctx, ctrls.handler)
 

Functions

struct fimc_fmtfimc_get_format (unsigned int index)
 
int fimc_check_scaler_ratio (struct fimc_ctx *ctx, int sw, int sh, int dw, int dh, int rotation)
 
int fimc_set_scaler_info (struct fimc_ctx *ctx)
 
int fimc_prepare_addr (struct fimc_ctx *ctx, struct vb2_buffer *vb, struct fimc_frame *frame, struct fimc_addr *paddr)
 
void fimc_set_yuv_order (struct fimc_ctx *ctx)
 
void fimc_prepare_dma_offset (struct fimc_ctx *ctx, struct fimc_frame *f)
 
int fimc_ctrls_create (struct fimc_ctx *ctx)
 
void fimc_ctrls_delete (struct fimc_ctx *ctx)
 
void fimc_ctrls_activate (struct fimc_ctx *ctx, bool active)
 
void fimc_alpha_ctrl_update (struct fimc_ctx *ctx)
 
int fimc_fill_format (struct fimc_frame *frame, struct v4l2_format *f)
 
void fimc_fill_frame (struct fimc_frame *frame, struct v4l2_format *f)
 
void fimc_adjust_mplane_format (struct fimc_fmt *fmt, u32 width, u32 height, struct v4l2_pix_format_mplane *pix)
 
struct fimc_fmtfimc_find_format (const u32 *pixelformat, const u32 *mbus_code, unsigned int mask, int index)
 
 MODULE_DEVICE_TABLE (platform, fimc_driver_ids)
 
int __init fimc_register_driver (void)
 
void __exit fimc_unregister_driver (void)
 

Macro Definition Documentation

#define ctrl_to_ctx (   __ctrl)    container_of((__ctrl)->handler, struct fimc_ctx, ctrls.handler)

Definition at line 521 of file fimc-core.c.

Function Documentation

void fimc_adjust_mplane_format ( struct fimc_fmt fmt,
u32  width,
u32  height,
struct v4l2_pix_format_mplane pix 
)

fimc_adjust_mplane_format - adjust bytesperline/sizeimage for each plane : fimc pixel format description (input) : requested pixel width : requested pixel height : multi-plane format to adjust

Definition at line 745 of file fimc-core.c.

void fimc_alpha_ctrl_update ( struct fimc_ctx ctx)

Definition at line 677 of file fimc-core.c.

int fimc_check_scaler_ratio ( struct fimc_ctx ctx,
int  sw,
int  sh,
int  dw,
int  dh,
int  rotation 
)

Definition at line 209 of file fimc-core.c.

void fimc_ctrls_activate ( struct fimc_ctx ctx,
bool  active 
)

Definition at line 646 of file fimc-core.c.

int fimc_ctrls_create ( struct fimc_ctx ctx)

Definition at line 592 of file fimc-core.c.

void fimc_ctrls_delete ( struct fimc_ctx ctx)

Definition at line 635 of file fimc-core.c.

int fimc_fill_format ( struct fimc_frame frame,
struct v4l2_format f 
)

Definition at line 694 of file fimc-core.c.

void fimc_fill_frame ( struct fimc_frame frame,
struct v4l2_format f 
)

Definition at line 722 of file fimc-core.c.

struct fimc_fmt* fimc_find_format ( const u32 pixelformat,
const u32 mbus_code,
unsigned int  mask,
int  index 
)
read

fimc_find_format - lookup fimc color format by fourcc or media bus format : fourcc to match, ignored if null : media bus code to match, ignored if null : the color flags to match : offset in the fimc_formats array, ignored if negative

Definition at line 785 of file fimc-core.c.

struct fimc_fmt* fimc_get_format ( unsigned int  index)
read

Definition at line 201 of file fimc-core.c.

int fimc_prepare_addr ( struct fimc_ctx ctx,
struct vb2_buffer vb,
struct fimc_frame frame,
struct fimc_addr paddr 
)

Definition at line 344 of file fimc-core.c.

void fimc_prepare_dma_offset ( struct fimc_ctx ctx,
struct fimc_frame f 
)

Definition at line 441 of file fimc-core.c.

int __init fimc_register_driver ( void  )

Definition at line 1246 of file fimc-core.c.

int fimc_set_scaler_info ( struct fimc_ctx ctx)

Definition at line 242 of file fimc-core.c.

void fimc_set_yuv_order ( struct fimc_ctx ctx)

Definition at line 399 of file fimc-core.c.

void __exit fimc_unregister_driver ( void  )

Definition at line 1251 of file fimc-core.c.

MODULE_DEVICE_TABLE ( platform  ,
fimc_driver_ids   
)