coda_ctx
static void coda9_set_frame_cache(struct coda_ctx *ctx, u32 fourcc)
static int coda_encoder_reqbufs(struct coda_ctx *ctx,
static int coda_start_encoding(struct coda_ctx *ctx)
int coda_hw_reset(struct coda_ctx *ctx)
static int coda_prepare_encode(struct coda_ctx *ctx)
static void coda_kfifo_sync_from_device(struct coda_ctx *ctx)
static void coda_kfifo_sync_to_device_full(struct coda_ctx *ctx)
static void coda_finish_encode(struct coda_ctx *ctx)
struct coda_ctx *ctx = container_of(work, struct coda_ctx, seq_end_work);
static void coda_kfifo_sync_to_device_write(struct coda_ctx *ctx)
static void coda_bit_release(struct coda_ctx *ctx)
static int coda_alloc_bitstream_buffer(struct coda_ctx *ctx,
static void coda_free_bitstream_buffer(struct coda_ctx *ctx)
static int coda_decoder_reqbufs(struct coda_ctx *ctx,
static bool coda_reorder_enable(struct coda_ctx *ctx)
static int coda_h264_bitstream_pad(struct coda_ctx *ctx, u32 size)
static void coda_decoder_drop_used_metas(struct coda_ctx *ctx)
static int __coda_decoder_seq_init(struct coda_ctx *ctx)
int coda_bitstream_flush(struct coda_ctx *ctx)
struct coda_ctx *ctx = container_of(work,
struct coda_ctx, seq_init_work);
static int __coda_start_decoding(struct coda_ctx *ctx)
static int coda_start_decoding(struct coda_ctx *ctx)
static int coda_prepare_decode(struct coda_ctx *ctx)
static int coda_bitstream_queue(struct coda_ctx *ctx, const u8 *buf, u32 size)
static u32 coda_buffer_parse_headers(struct coda_ctx *ctx,
static void coda_finish_decode(struct coda_ctx *ctx)
static bool coda_bitstream_try_queue(struct coda_ctx *ctx,
static void coda_decode_timeout(struct coda_ctx *ctx)
struct coda_ctx *ctx;
void coda_fill_bitstream(struct coda_ctx *ctx, struct list_head *buffer_list)
static void coda_free_bitstream_buffer(struct coda_ctx *ctx);
void coda_bit_stream_end_flag(struct coda_ctx *ctx)
static void coda_parabuf_write(struct coda_ctx *ctx, int index, u32 value)
static inline int coda_alloc_context_buf(struct coda_ctx *ctx,
static void coda_free_framebuffers(struct coda_ctx *ctx)
static int coda_alloc_framebuffers(struct coda_ctx *ctx,
static void coda_free_context_buffers(struct coda_ctx *ctx)
static int coda_alloc_context_buffers(struct coda_ctx *ctx,
static int coda_encode_header(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf,
static void coda_command_async(struct coda_ctx *ctx, int cmd)
static u32 coda_slice_mode(struct coda_ctx *ctx)
static int coda_enc_param_change(struct coda_ctx *ctx)
static void coda_setup_iram(struct coda_ctx *ctx)
static int coda_command_sync(struct coda_ctx *ctx, int cmd)
void coda_m2m_buf_done(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf,
struct coda_ctx *ctx = file_to_ctx(file);
struct coda_ctx *ctx = file_to_ctx(file);
static void coda_wake_up_capture_queue(struct coda_ctx *ctx)
struct coda_ctx *ctx = file_to_ctx(file);
static bool coda_mark_last_meta(struct coda_ctx *ctx)
static bool coda_mark_last_dst_buf(struct coda_ctx *ctx)
struct coda_ctx *ctx = file_to_ctx(file);
struct coda_ctx *ctx = file_to_ctx(file);
struct coda_ctx *ctx = file_to_ctx(file);
struct coda_ctx *ctx = file_to_ctx(file);
struct coda_ctx *ctx = file_to_ctx(file);
struct coda_ctx *ctx = fh_to_ctx(fh);
struct coda_ctx *ctx = m2m_priv;
struct coda_ctx *ctx = container_of(work, struct coda_ctx, pic_run_work);
struct coda_ctx *ctx = m2m_priv;
struct coda_ctx *ctx = priv;
static void set_default_params(struct coda_ctx *ctx)
struct coda_ctx *ctx = vb2_get_drv_priv(vq);
struct coda_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
void coda_update_profile_level_ctrls(struct coda_ctx *ctx, u8 profile_idc,
static void coda_queue_source_change_event(struct coda_ctx *ctx)
struct coda_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
struct coda_ctx *ctx = vb2_get_drv_priv(q);
struct coda_ctx *ctx = vb2_get_drv_priv(q);
struct coda_ctx *ctx =
container_of(ctrl->handler, struct coda_ctx, ctrls);
static void coda_encode_ctrls(struct coda_ctx *ctx)
static void coda_jpeg_encode_ctrls(struct coda_ctx *ctx)
static void coda_decode_ctrls(struct coda_ctx *ctx)
static int coda_ctrls_setup(struct coda_ctx *ctx)
static int coda_queue_init(struct coda_ctx *ctx, struct vb2_queue *vq)
struct coda_ctx *ctx;
struct coda_ctx *ctx = file_to_ctx(file);
struct coda_ctx *ctx = file_to_ctx(file);
struct coda_ctx *ctx = file_to_ctx(file);
struct coda_ctx *ctx = file_to_ctx(file);
static int coda_try_pixelformat(struct coda_ctx *ctx, struct v4l2_format *f)
static int coda_try_fmt_vdoa(struct coda_ctx *ctx, struct v4l2_format *f,
#define fh_to_ctx(__fh) container_of(__fh, struct coda_ctx, fh)
static unsigned int coda_estimate_sizeimage(struct coda_ctx *ctx, u32 sizeimage,
static inline struct coda_ctx *file_to_ctx(struct file *filp)
static int coda_try_fmt(struct coda_ctx *ctx, const struct coda_codec *codec,
struct coda_ctx *ctx = file_to_ctx(file);
struct coda_ctx *ctx = file_to_ctx(file);
static int coda_s_fmt(struct coda_ctx *ctx, struct v4l2_format *f,
struct coda_ctx *ctx = file_to_ctx(file);
struct coda_ctx *ctx = file_to_ctx(file);
struct coda_ctx *ctx = file_to_ctx(file);
void coda_write_base(struct coda_ctx *ctx, struct coda_q_data *q_data,
struct coda_ctx *ctx = file_to_ctx(file);
struct coda_ctx *ctx = file_to_ctx(file);
void coda_set_gdi_regs(struct coda_ctx *ctx)
int coda_h264_sps_fixup(struct coda_ctx *ctx, int width, int height, char *buf,
int coda_sps_parse_profile(struct coda_ctx *ctx, struct vb2_buffer *vb)
void coda_set_jpeg_compression_quality(struct coda_ctx *ctx, int quality)
static int coda9_jpeg_start_encoding(struct coda_ctx *ctx)
static int coda9_jpeg_prepare_encode(struct coda_ctx *ctx)
static void coda9_jpeg_finish_encode(struct coda_ctx *ctx)
static void coda9_jpeg_encode_timeout(struct coda_ctx *ctx)
static void coda9_jpeg_release(struct coda_ctx *ctx)
static int coda9_jpeg_start_decoding(struct coda_ctx *ctx)
static int coda9_jpeg_prepare_decode(struct coda_ctx *ctx)
static void coda9_jpeg_finish_decode(struct coda_ctx *ctx)
struct coda_ctx *ctx;
int coda_jpeg_write_tables(struct coda_ctx *ctx)
bool coda_jpeg_check_buffer(struct coda_ctx *ctx, struct vb2_buffer *vb)
static int coda9_jpeg_gen_dec_huff_tab(struct coda_ctx *ctx, int tab_num);
int coda_jpeg_decode_header(struct coda_ctx *ctx, struct vb2_buffer *vb)
static void coda9_jpeg_dec_huff_setup(struct coda_ctx *ctx)
static void coda9_jpeg_qmat_setup(struct coda_ctx *ctx)
static void coda9_jpeg_dec_bbc_gbu_setup(struct coda_ctx *ctx,
static int coda9_jpeg_gen_enc_huff_tab(struct coda_ctx *ctx, int tab_num,
static u8 *coda9_jpeg_get_huff_bits(struct coda_ctx *ctx, int tab_num)
static int coda9_jpeg_gen_dec_huff_tab(struct coda_ctx *ctx, int tab_num)
static int coda9_jpeg_load_huff_tab(struct coda_ctx *ctx)
static void coda9_jpeg_write_huff_tab(struct coda_ctx *ctx)
static void coda9_jpeg_load_qmat_tab(struct coda_ctx *ctx)
static int coda_jpeg_define_quantization_table(struct coda_ctx *ctx, u8 index,
static int coda9_jpeg_encode_header(struct coda_ctx *ctx, int len, u8 *buf)
u32 coda_mpeg2_parse_headers(struct coda_ctx *ctx, u8 *buf, u32 size)
u32 coda_mpeg4_parse_headers(struct coda_ctx *ctx, u8 *buf, u32 size)
struct coda_ctx;
int (*reqbufs)(struct coda_ctx *ctx, struct v4l2_requestbuffers *rb);
int (*start_streaming)(struct coda_ctx *ctx);
int (*prepare_run)(struct coda_ctx *ctx);
void (*finish_run)(struct coda_ctx *ctx);
void (*run_timeout)(struct coda_ctx *ctx);
void (*release)(struct coda_ctx *ctx);
void coda_write_base(struct coda_ctx *ctx, struct coda_q_data *q_data,
int coda_hw_reset(struct coda_ctx *ctx);
void coda_fill_bitstream(struct coda_ctx *ctx, struct list_head *buffer_list);
void coda_set_gdi_regs(struct coda_ctx *ctx);
static inline struct coda_q_data *get_q_data(struct coda_ctx *ctx,
static inline unsigned int coda_get_bitstream_payload(struct coda_ctx *ctx)
static inline bool coda_bitstream_can_fetch_past(struct coda_ctx *ctx,
bool coda_bitstream_can_fetch_past(struct coda_ctx *ctx, unsigned int pos);
int coda_bitstream_flush(struct coda_ctx *ctx);
void coda_bit_stream_end_flag(struct coda_ctx *ctx);
void coda_m2m_buf_done(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf,
int coda_sps_parse_profile(struct coda_ctx *ctx, struct vb2_buffer *vb);
int coda_h264_sps_fixup(struct coda_ctx *ctx, int width, int height, char *buf,
u32 coda_mpeg2_parse_headers(struct coda_ctx *ctx, u8 *buf, u32 size);
u32 coda_mpeg4_parse_headers(struct coda_ctx *ctx, u8 *buf, u32 size);
void coda_update_profile_level_ctrls(struct coda_ctx *ctx, u8 profile_idc,
bool coda_jpeg_check_buffer(struct coda_ctx *ctx, struct vb2_buffer *vb);
int coda_jpeg_decode_header(struct coda_ctx *ctx, struct vb2_buffer *vb);
int coda_jpeg_write_tables(struct coda_ctx *ctx);
void coda_set_jpeg_compression_quality(struct coda_ctx *ctx, int quality);
TP_PROTO(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf,
TP_PROTO(struct coda_ctx *ctx, struct coda_buffer_meta *meta),
TP_PROTO(struct coda_ctx *ctx, int cmd),
TP_PROTO(struct coda_ctx *ctx, struct coda_buffer_meta *meta),
TP_PROTO(struct coda_ctx *ctx, struct coda_buffer_meta *meta),
TP_PROTO(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf,
TP_PROTO(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf),
TP_PROTO(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf),
TP_PROTO(struct coda_ctx *ctx),
TP_PROTO(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf),
TP_PROTO(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf),
TP_PROTO(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf),
TP_PROTO(struct coda_ctx *ctx, struct vb2_v4l2_buffer *buf,