Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
s5p_mfc_opr_v6.c File Reference
#include <linux/delay.h>
#include <linux/mm.h>
#include <linux/io.h>
#include <linux/jiffies.h>
#include <linux/firmware.h>
#include <linux/err.h>
#include <linux/sched.h>
#include <linux/dma-mapping.h>
#include <asm/cacheflush.h>
#include "s5p_mfc_common.h"
#include "s5p_mfc_cmd.h"
#include "s5p_mfc_intr.h"
#include "s5p_mfc_pm.h"
#include "s5p_mfc_debug.h"
#include "s5p_mfc_opr.h"
#include "s5p_mfc_opr_v6.h"

Go to the source code of this file.

Macros

#define READL(offset)   readl(dev->regs_base + (offset))
 
#define WRITEL(data, offset)   writel((data), dev->regs_base + (offset))
 
#define OFFSETA(x)   (((x) - dev->port_a) >> S5P_FIMV_MEM_OFFSET)
 
#define OFFSETB(x)   (((x) - dev->port_b) >> S5P_FIMV_MEM_OFFSET)
 

Functions

int s5p_mfc_alloc_dec_temp_buffers_v6 (struct s5p_mfc_ctx *ctx)
 
void s5p_mfc_release_dec_desc_buffer_v6 (struct s5p_mfc_ctx *ctx)
 
int s5p_mfc_get_dec_status_v6 (struct s5p_mfc_dev *dev)
 
int s5p_mfc_alloc_codec_buffers_v6 (struct s5p_mfc_ctx *ctx)
 
void s5p_mfc_release_codec_buffers_v6 (struct s5p_mfc_ctx *ctx)
 
int s5p_mfc_alloc_instance_buffer_v6 (struct s5p_mfc_ctx *ctx)
 
void s5p_mfc_release_instance_buffer_v6 (struct s5p_mfc_ctx *ctx)
 
int s5p_mfc_alloc_dev_context_buffer_v6 (struct s5p_mfc_dev *dev)
 
void s5p_mfc_release_dev_context_buffer_v6 (struct s5p_mfc_dev *dev)
 
void s5p_mfc_dec_calc_dpb_size_v6 (struct s5p_mfc_ctx *ctx)
 
void s5p_mfc_enc_calc_src_size_v6 (struct s5p_mfc_ctx *ctx)
 
int s5p_mfc_set_dec_stream_buffer_v6 (struct s5p_mfc_ctx *ctx, int buf_addr, unsigned int start_num_byte, unsigned int strm_size)
 
int s5p_mfc_set_dec_frame_buffer_v6 (struct s5p_mfc_ctx *ctx)
 
int s5p_mfc_set_enc_stream_buffer_v6 (struct s5p_mfc_ctx *ctx, unsigned long addr, unsigned int size)
 
void s5p_mfc_set_enc_frame_buffer_v6 (struct s5p_mfc_ctx *ctx, unsigned long y_addr, unsigned long c_addr)
 
void s5p_mfc_get_enc_frame_buffer_v6 (struct s5p_mfc_ctx *ctx, unsigned long *y_addr, unsigned long *c_addr)
 
int s5p_mfc_set_enc_ref_buffer_v6 (struct s5p_mfc_ctx *ctx)
 
int s5p_mfc_init_decode_v6 (struct s5p_mfc_ctx *ctx)
 
int s5p_mfc_decode_one_frame_v6 (struct s5p_mfc_ctx *ctx, enum s5p_mfc_decode_arg last_frame)
 
int s5p_mfc_init_encode_v6 (struct s5p_mfc_ctx *ctx)
 
int s5p_mfc_h264_set_aso_slice_order_v6 (struct s5p_mfc_ctx *ctx)
 
int s5p_mfc_encode_one_frame_v6 (struct s5p_mfc_ctx *ctx)
 
void s5p_mfc_try_run_v6 (struct s5p_mfc_dev *dev)
 
void s5p_mfc_cleanup_queue_v6 (struct list_head *lh, struct vb2_queue *vq)
 
void s5p_mfc_clear_int_flags_v6 (struct s5p_mfc_dev *dev)
 
void s5p_mfc_write_info_v6 (struct s5p_mfc_ctx *ctx, unsigned int data, unsigned int ofs)
 
unsigned int s5p_mfc_read_info_v6 (struct s5p_mfc_ctx *ctx, unsigned int ofs)
 
int s5p_mfc_get_dspl_y_adr_v6 (struct s5p_mfc_dev *dev)
 
int s5p_mfc_get_dec_y_adr_v6 (struct s5p_mfc_dev *dev)
 
int s5p_mfc_get_dspl_status_v6 (struct s5p_mfc_dev *dev)
 
int s5p_mfc_get_decoded_status_v6 (struct s5p_mfc_dev *dev)
 
int s5p_mfc_get_dec_frame_type_v6 (struct s5p_mfc_dev *dev)
 
int s5p_mfc_get_disp_frame_type_v6 (struct s5p_mfc_ctx *ctx)
 
int s5p_mfc_get_consumed_stream_v6 (struct s5p_mfc_dev *dev)
 
int s5p_mfc_get_int_reason_v6 (struct s5p_mfc_dev *dev)
 
int s5p_mfc_get_int_err_v6 (struct s5p_mfc_dev *dev)
 
int s5p_mfc_err_dec_v6 (unsigned int err)
 
int s5p_mfc_err_dspl_v6 (unsigned int err)
 
int s5p_mfc_get_img_width_v6 (struct s5p_mfc_dev *dev)
 
int s5p_mfc_get_img_height_v6 (struct s5p_mfc_dev *dev)
 
int s5p_mfc_get_dpb_count_v6 (struct s5p_mfc_dev *dev)
 
int s5p_mfc_get_mv_count_v6 (struct s5p_mfc_dev *dev)
 
int s5p_mfc_get_inst_no_v6 (struct s5p_mfc_dev *dev)
 
int s5p_mfc_get_enc_dpb_count_v6 (struct s5p_mfc_dev *dev)
 
int s5p_mfc_get_enc_strm_size_v6 (struct s5p_mfc_dev *dev)
 
int s5p_mfc_get_enc_slice_type_v6 (struct s5p_mfc_dev *dev)
 
int s5p_mfc_get_enc_pic_count_v6 (struct s5p_mfc_dev *dev)
 
int s5p_mfc_get_sei_avail_status_v6 (struct s5p_mfc_ctx *ctx)
 
int s5p_mfc_get_mvc_num_views_v6 (struct s5p_mfc_dev *dev)
 
int s5p_mfc_get_mvc_view_id_v6 (struct s5p_mfc_dev *dev)
 
unsigned int s5p_mfc_get_pic_type_top_v6 (struct s5p_mfc_ctx *ctx)
 
unsigned int s5p_mfc_get_pic_type_bot_v6 (struct s5p_mfc_ctx *ctx)
 
unsigned int s5p_mfc_get_crop_info_h_v6 (struct s5p_mfc_ctx *ctx)
 
unsigned int s5p_mfc_get_crop_info_v_v6 (struct s5p_mfc_ctx *ctx)
 
struct s5p_mfc_hw_opss5p_mfc_init_hw_ops_v6 (void)
 

Macro Definition Documentation

#define OFFSETA (   x)    (((x) - dev->port_a) >> S5P_FIMV_MEM_OFFSET)

Definition at line 48 of file s5p_mfc_opr_v6.c.

#define OFFSETB (   x)    (((x) - dev->port_b) >> S5P_FIMV_MEM_OFFSET)

Definition at line 49 of file s5p_mfc_opr_v6.c.

#define READL (   offset)    readl(dev->regs_base + (offset))

Definition at line 46 of file s5p_mfc_opr_v6.c.

#define WRITEL (   data,
  offset 
)    writel((data), dev->regs_base + (offset))

Definition at line 47 of file s5p_mfc_opr_v6.c.

Function Documentation

int s5p_mfc_alloc_codec_buffers_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 72 of file s5p_mfc_opr_v6.c.

int s5p_mfc_alloc_dec_temp_buffers_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 52 of file s5p_mfc_opr_v6.c.

int s5p_mfc_alloc_dev_context_buffer_v6 ( struct s5p_mfc_dev dev)

Definition at line 298 of file s5p_mfc_opr_v6.c.

int s5p_mfc_alloc_instance_buffer_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 220 of file s5p_mfc_opr_v6.c.

void s5p_mfc_cleanup_queue_v6 ( struct list_head lh,
struct vb2_queue vq 
)

Definition at line 1716 of file s5p_mfc_opr_v6.c.

void s5p_mfc_clear_int_flags_v6 ( struct s5p_mfc_dev dev)

Definition at line 1730 of file s5p_mfc_opr_v6.c.

void s5p_mfc_dec_calc_dpb_size_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 358 of file s5p_mfc_opr_v6.c.

int s5p_mfc_decode_one_frame_v6 ( struct s5p_mfc_ctx ctx,
enum s5p_mfc_decode_arg  last_frame 
)

Definition at line 1265 of file s5p_mfc_opr_v6.c.

void s5p_mfc_enc_calc_src_size_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 378 of file s5p_mfc_opr_v6.c.

int s5p_mfc_encode_one_frame_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 1333 of file s5p_mfc_opr_v6.c.

int s5p_mfc_err_dec_v6 ( unsigned int  err)

Definition at line 1806 of file s5p_mfc_opr_v6.c.

int s5p_mfc_err_dspl_v6 ( unsigned int  err)

Definition at line 1811 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_consumed_stream_v6 ( struct s5p_mfc_dev dev)

Definition at line 1790 of file s5p_mfc_opr_v6.c.

unsigned int s5p_mfc_get_crop_info_h_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 1886 of file s5p_mfc_opr_v6.c.

unsigned int s5p_mfc_get_crop_info_v_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 1891 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_dec_frame_type_v6 ( struct s5p_mfc_dev dev)

Definition at line 1778 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_dec_status_v6 ( struct s5p_mfc_dev dev)

Definition at line 65 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_dec_y_adr_v6 ( struct s5p_mfc_dev dev)

Definition at line 1763 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_decoded_status_v6 ( struct s5p_mfc_dev dev)

Definition at line 1773 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_disp_frame_type_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 1784 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_dpb_count_v6 ( struct s5p_mfc_dev dev)

Definition at line 1826 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_dspl_status_v6 ( struct s5p_mfc_dev dev)

Definition at line 1768 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_dspl_y_adr_v6 ( struct s5p_mfc_dev dev)

Definition at line 1758 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_enc_dpb_count_v6 ( struct s5p_mfc_dev dev)

Definition at line 1841 of file s5p_mfc_opr_v6.c.

void s5p_mfc_get_enc_frame_buffer_v6 ( struct s5p_mfc_ctx ctx,
unsigned long y_addr,
unsigned long c_addr 
)

Definition at line 518 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_enc_pic_count_v6 ( struct s5p_mfc_dev dev)

Definition at line 1856 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_enc_slice_type_v6 ( struct s5p_mfc_dev dev)

Definition at line 1851 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_enc_strm_size_v6 ( struct s5p_mfc_dev dev)

Definition at line 1846 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_img_height_v6 ( struct s5p_mfc_dev dev)

Definition at line 1821 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_img_width_v6 ( struct s5p_mfc_dev dev)

Definition at line 1816 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_inst_no_v6 ( struct s5p_mfc_dev dev)

Definition at line 1836 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_int_err_v6 ( struct s5p_mfc_dev dev)

Definition at line 1801 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_int_reason_v6 ( struct s5p_mfc_dev dev)

Definition at line 1795 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_mv_count_v6 ( struct s5p_mfc_dev dev)

Definition at line 1831 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_mvc_num_views_v6 ( struct s5p_mfc_dev dev)

Definition at line 1866 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_mvc_view_id_v6 ( struct s5p_mfc_dev dev)

Definition at line 1871 of file s5p_mfc_opr_v6.c.

unsigned int s5p_mfc_get_pic_type_bot_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 1881 of file s5p_mfc_opr_v6.c.

unsigned int s5p_mfc_get_pic_type_top_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 1876 of file s5p_mfc_opr_v6.c.

int s5p_mfc_get_sei_avail_status_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 1861 of file s5p_mfc_opr_v6.c.

int s5p_mfc_h264_set_aso_slice_order_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 1317 of file s5p_mfc_opr_v6.c.

int s5p_mfc_init_decode_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 1199 of file s5p_mfc_opr_v6.c.

int s5p_mfc_init_encode_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 1294 of file s5p_mfc_opr_v6.c.

struct s5p_mfc_hw_ops* s5p_mfc_init_hw_ops_v6 ( void  )
read

Definition at line 1953 of file s5p_mfc_opr_v6.c.

unsigned int s5p_mfc_read_info_v6 ( struct s5p_mfc_ctx ctx,
unsigned int  ofs 
)

Definition at line 1746 of file s5p_mfc_opr_v6.c.

void s5p_mfc_release_codec_buffers_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 209 of file s5p_mfc_opr_v6.c.

void s5p_mfc_release_dec_desc_buffer_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 60 of file s5p_mfc_opr_v6.c.

void s5p_mfc_release_dev_context_buffer_v6 ( struct s5p_mfc_dev dev)

Definition at line 334 of file s5p_mfc_opr_v6.c.

void s5p_mfc_release_instance_buffer_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 283 of file s5p_mfc_opr_v6.c.

int s5p_mfc_set_dec_frame_buffer_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 411 of file s5p_mfc_opr_v6.c.

int s5p_mfc_set_dec_stream_buffer_v6 ( struct s5p_mfc_ctx ctx,
int  buf_addr,
unsigned int  start_num_byte,
unsigned int  strm_size 
)

Definition at line 391 of file s5p_mfc_opr_v6.c.

void s5p_mfc_set_enc_frame_buffer_v6 ( struct s5p_mfc_ctx ctx,
unsigned long  y_addr,
unsigned long  c_addr 
)

Definition at line 506 of file s5p_mfc_opr_v6.c.

int s5p_mfc_set_enc_ref_buffer_v6 ( struct s5p_mfc_ctx ctx)

Definition at line 535 of file s5p_mfc_opr_v6.c.

int s5p_mfc_set_enc_stream_buffer_v6 ( struct s5p_mfc_ctx ctx,
unsigned long  addr,
unsigned int  size 
)

Definition at line 492 of file s5p_mfc_opr_v6.c.

void s5p_mfc_try_run_v6 ( struct s5p_mfc_dev dev)

Definition at line 1596 of file s5p_mfc_opr_v6.c.

void s5p_mfc_write_info_v6 ( struct s5p_mfc_ctx ctx,
unsigned int  data,
unsigned int  ofs 
)

Definition at line 1736 of file s5p_mfc_opr_v6.c.