aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/s5p-mfc
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-03-02 05:50:13 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-18 16:25:03 -0400
commitb9571a577b570b24c4fa2ed79dade612294584d3 (patch)
treee8eaf1633798951262d7c17deb34365c4ff61804 /drivers/media/platform/s5p-mfc
parent4294dcf7e335da72fe81538c46b4a8e83037ea20 (diff)
[media] s5p-mfc: Staticize symbols in s5p_mfc_opr_v6.c
Symbols used only in this file should be made static. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/s5p-mfc')
-rw-r--r--drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c112
1 files changed, 57 insertions, 55 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c b/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c
index beb6dbacebd9..33de88b8e9d0 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c
@@ -49,7 +49,7 @@
49#define OFFSETB(x) (((x) - dev->port_b) >> S5P_FIMV_MEM_OFFSET) 49#define OFFSETB(x) (((x) - dev->port_b) >> S5P_FIMV_MEM_OFFSET)
50 50
51/* Allocate temporary buffers for decoding */ 51/* Allocate temporary buffers for decoding */
52int s5p_mfc_alloc_dec_temp_buffers_v6(struct s5p_mfc_ctx *ctx) 52static int s5p_mfc_alloc_dec_temp_buffers_v6(struct s5p_mfc_ctx *ctx)
53{ 53{
54 /* NOP */ 54 /* NOP */
55 55
@@ -57,19 +57,19 @@ int s5p_mfc_alloc_dec_temp_buffers_v6(struct s5p_mfc_ctx *ctx)
57} 57}
58 58
59/* Release temproary buffers for decoding */ 59/* Release temproary buffers for decoding */
60void s5p_mfc_release_dec_desc_buffer_v6(struct s5p_mfc_ctx *ctx) 60static void s5p_mfc_release_dec_desc_buffer_v6(struct s5p_mfc_ctx *ctx)
61{ 61{
62 /* NOP */ 62 /* NOP */
63} 63}
64 64
65int s5p_mfc_get_dec_status_v6(struct s5p_mfc_dev *dev) 65static int s5p_mfc_get_dec_status_v6(struct s5p_mfc_dev *dev)
66{ 66{
67 /* NOP */ 67 /* NOP */
68 return -1; 68 return -1;
69} 69}
70 70
71/* Allocate codec buffers */ 71/* Allocate codec buffers */
72int s5p_mfc_alloc_codec_buffers_v6(struct s5p_mfc_ctx *ctx) 72static int s5p_mfc_alloc_codec_buffers_v6(struct s5p_mfc_ctx *ctx)
73{ 73{
74 struct s5p_mfc_dev *dev = ctx->dev; 74 struct s5p_mfc_dev *dev = ctx->dev;
75 unsigned int mb_width, mb_height; 75 unsigned int mb_width, mb_height;
@@ -203,13 +203,13 @@ int s5p_mfc_alloc_codec_buffers_v6(struct s5p_mfc_ctx *ctx)
203} 203}
204 204
205/* Release buffers allocated for codec */ 205/* Release buffers allocated for codec */
206void s5p_mfc_release_codec_buffers_v6(struct s5p_mfc_ctx *ctx) 206static void s5p_mfc_release_codec_buffers_v6(struct s5p_mfc_ctx *ctx)
207{ 207{
208 s5p_mfc_release_priv_buf(ctx->dev->mem_dev_l, &ctx->bank1); 208 s5p_mfc_release_priv_buf(ctx->dev->mem_dev_l, &ctx->bank1);
209} 209}
210 210
211/* Allocate memory for instance data buffer */ 211/* Allocate memory for instance data buffer */
212int s5p_mfc_alloc_instance_buffer_v6(struct s5p_mfc_ctx *ctx) 212static int s5p_mfc_alloc_instance_buffer_v6(struct s5p_mfc_ctx *ctx)
213{ 213{
214 struct s5p_mfc_dev *dev = ctx->dev; 214 struct s5p_mfc_dev *dev = ctx->dev;
215 struct s5p_mfc_buf_size_v6 *buf_size = dev->variant->buf_size->priv; 215 struct s5p_mfc_buf_size_v6 *buf_size = dev->variant->buf_size->priv;
@@ -258,13 +258,13 @@ int s5p_mfc_alloc_instance_buffer_v6(struct s5p_mfc_ctx *ctx)
258} 258}
259 259
260/* Release instance buffer */ 260/* Release instance buffer */
261void s5p_mfc_release_instance_buffer_v6(struct s5p_mfc_ctx *ctx) 261static void s5p_mfc_release_instance_buffer_v6(struct s5p_mfc_ctx *ctx)
262{ 262{
263 s5p_mfc_release_priv_buf(ctx->dev->mem_dev_l, &ctx->ctx); 263 s5p_mfc_release_priv_buf(ctx->dev->mem_dev_l, &ctx->ctx);
264} 264}
265 265
266/* Allocate context buffers for SYS_INIT */ 266/* Allocate context buffers for SYS_INIT */
267int s5p_mfc_alloc_dev_context_buffer_v6(struct s5p_mfc_dev *dev) 267static int s5p_mfc_alloc_dev_context_buffer_v6(struct s5p_mfc_dev *dev)
268{ 268{
269 struct s5p_mfc_buf_size_v6 *buf_size = dev->variant->buf_size->priv; 269 struct s5p_mfc_buf_size_v6 *buf_size = dev->variant->buf_size->priv;
270 int ret; 270 int ret;
@@ -287,7 +287,7 @@ int s5p_mfc_alloc_dev_context_buffer_v6(struct s5p_mfc_dev *dev)
287} 287}
288 288
289/* Release context buffers for SYS_INIT */ 289/* Release context buffers for SYS_INIT */
290void s5p_mfc_release_dev_context_buffer_v6(struct s5p_mfc_dev *dev) 290static void s5p_mfc_release_dev_context_buffer_v6(struct s5p_mfc_dev *dev)
291{ 291{
292 s5p_mfc_release_priv_buf(dev->mem_dev_l, &dev->ctx_buf); 292 s5p_mfc_release_priv_buf(dev->mem_dev_l, &dev->ctx_buf);
293} 293}
@@ -306,7 +306,7 @@ static int calc_plane(int width, int height)
306 (mbY * S5P_FIMV_NUM_PIXELS_IN_MB_ROW_V6); 306 (mbY * S5P_FIMV_NUM_PIXELS_IN_MB_ROW_V6);
307} 307}
308 308
309void s5p_mfc_dec_calc_dpb_size_v6(struct s5p_mfc_ctx *ctx) 309static void s5p_mfc_dec_calc_dpb_size_v6(struct s5p_mfc_ctx *ctx)
310{ 310{
311 ctx->buf_width = ALIGN(ctx->img_width, S5P_FIMV_NV12MT_HALIGN_V6); 311 ctx->buf_width = ALIGN(ctx->img_width, S5P_FIMV_NV12MT_HALIGN_V6);
312 ctx->buf_height = ALIGN(ctx->img_height, S5P_FIMV_NV12MT_VALIGN_V6); 312 ctx->buf_height = ALIGN(ctx->img_height, S5P_FIMV_NV12MT_VALIGN_V6);
@@ -326,7 +326,7 @@ void s5p_mfc_dec_calc_dpb_size_v6(struct s5p_mfc_ctx *ctx)
326 } 326 }
327} 327}
328 328
329void s5p_mfc_enc_calc_src_size_v6(struct s5p_mfc_ctx *ctx) 329static void s5p_mfc_enc_calc_src_size_v6(struct s5p_mfc_ctx *ctx)
330{ 330{
331 unsigned int mb_width, mb_height; 331 unsigned int mb_width, mb_height;
332 332
@@ -339,8 +339,9 @@ void s5p_mfc_enc_calc_src_size_v6(struct s5p_mfc_ctx *ctx)
339} 339}
340 340
341/* Set registers for decoding stream buffer */ 341/* Set registers for decoding stream buffer */
342int s5p_mfc_set_dec_stream_buffer_v6(struct s5p_mfc_ctx *ctx, int buf_addr, 342static int s5p_mfc_set_dec_stream_buffer_v6(struct s5p_mfc_ctx *ctx,
343 unsigned int start_num_byte, unsigned int strm_size) 343 int buf_addr, unsigned int start_num_byte,
344 unsigned int strm_size)
344{ 345{
345 struct s5p_mfc_dev *dev = ctx->dev; 346 struct s5p_mfc_dev *dev = ctx->dev;
346 struct s5p_mfc_buf_size *buf_size = dev->variant->buf_size; 347 struct s5p_mfc_buf_size *buf_size = dev->variant->buf_size;
@@ -359,7 +360,7 @@ int s5p_mfc_set_dec_stream_buffer_v6(struct s5p_mfc_ctx *ctx, int buf_addr,
359} 360}
360 361
361/* Set decoding frame buffer */ 362/* Set decoding frame buffer */
362int s5p_mfc_set_dec_frame_buffer_v6(struct s5p_mfc_ctx *ctx) 363static int s5p_mfc_set_dec_frame_buffer_v6(struct s5p_mfc_ctx *ctx)
363{ 364{
364 unsigned int frame_size, i; 365 unsigned int frame_size, i;
365 unsigned int frame_size_ch, frame_size_mv; 366 unsigned int frame_size_ch, frame_size_mv;
@@ -440,7 +441,7 @@ int s5p_mfc_set_dec_frame_buffer_v6(struct s5p_mfc_ctx *ctx)
440} 441}
441 442
442/* Set registers for encoding stream buffer */ 443/* Set registers for encoding stream buffer */
443int s5p_mfc_set_enc_stream_buffer_v6(struct s5p_mfc_ctx *ctx, 444static int s5p_mfc_set_enc_stream_buffer_v6(struct s5p_mfc_ctx *ctx,
444 unsigned long addr, unsigned int size) 445 unsigned long addr, unsigned int size)
445{ 446{
446 struct s5p_mfc_dev *dev = ctx->dev; 447 struct s5p_mfc_dev *dev = ctx->dev;
@@ -454,7 +455,7 @@ int s5p_mfc_set_enc_stream_buffer_v6(struct s5p_mfc_ctx *ctx,
454 return 0; 455 return 0;
455} 456}
456 457
457void s5p_mfc_set_enc_frame_buffer_v6(struct s5p_mfc_ctx *ctx, 458static void s5p_mfc_set_enc_frame_buffer_v6(struct s5p_mfc_ctx *ctx,
458 unsigned long y_addr, unsigned long c_addr) 459 unsigned long y_addr, unsigned long c_addr)
459{ 460{
460 struct s5p_mfc_dev *dev = ctx->dev; 461 struct s5p_mfc_dev *dev = ctx->dev;
@@ -466,7 +467,7 @@ void s5p_mfc_set_enc_frame_buffer_v6(struct s5p_mfc_ctx *ctx,
466 mfc_debug(2, "enc src c buf addr: 0x%08lx", c_addr); 467 mfc_debug(2, "enc src c buf addr: 0x%08lx", c_addr);
467} 468}
468 469
469void s5p_mfc_get_enc_frame_buffer_v6(struct s5p_mfc_ctx *ctx, 470static void s5p_mfc_get_enc_frame_buffer_v6(struct s5p_mfc_ctx *ctx,
470 unsigned long *y_addr, unsigned long *c_addr) 471 unsigned long *y_addr, unsigned long *c_addr)
471{ 472{
472 struct s5p_mfc_dev *dev = ctx->dev; 473 struct s5p_mfc_dev *dev = ctx->dev;
@@ -483,7 +484,7 @@ void s5p_mfc_get_enc_frame_buffer_v6(struct s5p_mfc_ctx *ctx,
483} 484}
484 485
485/* Set encoding ref & codec buffer */ 486/* Set encoding ref & codec buffer */
486int s5p_mfc_set_enc_ref_buffer_v6(struct s5p_mfc_ctx *ctx) 487static int s5p_mfc_set_enc_ref_buffer_v6(struct s5p_mfc_ctx *ctx)
487{ 488{
488 struct s5p_mfc_dev *dev = ctx->dev; 489 struct s5p_mfc_dev *dev = ctx->dev;
489 size_t buf_addr1; 490 size_t buf_addr1;
@@ -1147,7 +1148,7 @@ static int s5p_mfc_set_enc_params_h263(struct s5p_mfc_ctx *ctx)
1147} 1148}
1148 1149
1149/* Initialize decoding */ 1150/* Initialize decoding */
1150int s5p_mfc_init_decode_v6(struct s5p_mfc_ctx *ctx) 1151static int s5p_mfc_init_decode_v6(struct s5p_mfc_ctx *ctx)
1151{ 1152{
1152 struct s5p_mfc_dev *dev = ctx->dev; 1153 struct s5p_mfc_dev *dev = ctx->dev;
1153 unsigned int reg = 0; 1154 unsigned int reg = 0;
@@ -1215,7 +1216,7 @@ static inline void s5p_mfc_set_flush(struct s5p_mfc_ctx *ctx, int flush)
1215} 1216}
1216 1217
1217/* Decode a single frame */ 1218/* Decode a single frame */
1218int s5p_mfc_decode_one_frame_v6(struct s5p_mfc_ctx *ctx, 1219static int s5p_mfc_decode_one_frame_v6(struct s5p_mfc_ctx *ctx,
1219 enum s5p_mfc_decode_arg last_frame) 1220 enum s5p_mfc_decode_arg last_frame)
1220{ 1221{
1221 struct s5p_mfc_dev *dev = ctx->dev; 1222 struct s5p_mfc_dev *dev = ctx->dev;
@@ -1244,7 +1245,7 @@ int s5p_mfc_decode_one_frame_v6(struct s5p_mfc_ctx *ctx,
1244 return 0; 1245 return 0;
1245} 1246}
1246 1247
1247int s5p_mfc_init_encode_v6(struct s5p_mfc_ctx *ctx) 1248static int s5p_mfc_init_encode_v6(struct s5p_mfc_ctx *ctx)
1248{ 1249{
1249 struct s5p_mfc_dev *dev = ctx->dev; 1250 struct s5p_mfc_dev *dev = ctx->dev;
1250 1251
@@ -1267,7 +1268,7 @@ int s5p_mfc_init_encode_v6(struct s5p_mfc_ctx *ctx)
1267 return 0; 1268 return 0;
1268} 1269}
1269 1270
1270int s5p_mfc_h264_set_aso_slice_order_v6(struct s5p_mfc_ctx *ctx) 1271static int s5p_mfc_h264_set_aso_slice_order_v6(struct s5p_mfc_ctx *ctx)
1271{ 1272{
1272 struct s5p_mfc_dev *dev = ctx->dev; 1273 struct s5p_mfc_dev *dev = ctx->dev;
1273 struct s5p_mfc_enc_params *p = &ctx->enc_params; 1274 struct s5p_mfc_enc_params *p = &ctx->enc_params;
@@ -1283,7 +1284,7 @@ int s5p_mfc_h264_set_aso_slice_order_v6(struct s5p_mfc_ctx *ctx)
1283} 1284}
1284 1285
1285/* Encode a single frame */ 1286/* Encode a single frame */
1286int s5p_mfc_encode_one_frame_v6(struct s5p_mfc_ctx *ctx) 1287static int s5p_mfc_encode_one_frame_v6(struct s5p_mfc_ctx *ctx)
1287{ 1288{
1288 struct s5p_mfc_dev *dev = ctx->dev; 1289 struct s5p_mfc_dev *dev = ctx->dev;
1289 1290
@@ -1540,7 +1541,7 @@ static inline int s5p_mfc_run_init_enc_buffers(struct s5p_mfc_ctx *ctx)
1540} 1541}
1541 1542
1542/* Try running an operation on hardware */ 1543/* Try running an operation on hardware */
1543void s5p_mfc_try_run_v6(struct s5p_mfc_dev *dev) 1544static void s5p_mfc_try_run_v6(struct s5p_mfc_dev *dev)
1544{ 1545{
1545 struct s5p_mfc_ctx *ctx; 1546 struct s5p_mfc_ctx *ctx;
1546 int new_ctx; 1547 int new_ctx;
@@ -1663,7 +1664,7 @@ void s5p_mfc_try_run_v6(struct s5p_mfc_dev *dev)
1663} 1664}
1664 1665
1665 1666
1666void s5p_mfc_cleanup_queue_v6(struct list_head *lh, struct vb2_queue *vq) 1667static void s5p_mfc_cleanup_queue_v6(struct list_head *lh, struct vb2_queue *vq)
1667{ 1668{
1668 struct s5p_mfc_buf *b; 1669 struct s5p_mfc_buf *b;
1669 int i; 1670 int i;
@@ -1677,13 +1678,13 @@ void s5p_mfc_cleanup_queue_v6(struct list_head *lh, struct vb2_queue *vq)
1677 } 1678 }
1678} 1679}
1679 1680
1680void s5p_mfc_clear_int_flags_v6(struct s5p_mfc_dev *dev) 1681static void s5p_mfc_clear_int_flags_v6(struct s5p_mfc_dev *dev)
1681{ 1682{
1682 mfc_write(dev, 0, S5P_FIMV_RISC2HOST_CMD_V6); 1683 mfc_write(dev, 0, S5P_FIMV_RISC2HOST_CMD_V6);
1683 mfc_write(dev, 0, S5P_FIMV_RISC2HOST_INT_V6); 1684 mfc_write(dev, 0, S5P_FIMV_RISC2HOST_INT_V6);
1684} 1685}
1685 1686
1686void s5p_mfc_write_info_v6(struct s5p_mfc_ctx *ctx, unsigned int data, 1687static void s5p_mfc_write_info_v6(struct s5p_mfc_ctx *ctx, unsigned int data,
1687 unsigned int ofs) 1688 unsigned int ofs)
1688{ 1689{
1689 struct s5p_mfc_dev *dev = ctx->dev; 1690 struct s5p_mfc_dev *dev = ctx->dev;
@@ -1693,7 +1694,8 @@ void s5p_mfc_write_info_v6(struct s5p_mfc_ctx *ctx, unsigned int data,
1693 s5p_mfc_clock_off(); 1694 s5p_mfc_clock_off();
1694} 1695}
1695 1696
1696unsigned int s5p_mfc_read_info_v6(struct s5p_mfc_ctx *ctx, unsigned int ofs) 1697static unsigned int
1698s5p_mfc_read_info_v6(struct s5p_mfc_ctx *ctx, unsigned int ofs)
1697{ 1699{
1698 struct s5p_mfc_dev *dev = ctx->dev; 1700 struct s5p_mfc_dev *dev = ctx->dev;
1699 int ret; 1701 int ret;
@@ -1705,140 +1707,140 @@ unsigned int s5p_mfc_read_info_v6(struct s5p_mfc_ctx *ctx, unsigned int ofs)
1705 return ret; 1707 return ret;
1706} 1708}
1707 1709
1708int s5p_mfc_get_dspl_y_adr_v6(struct s5p_mfc_dev *dev) 1710static int s5p_mfc_get_dspl_y_adr_v6(struct s5p_mfc_dev *dev)
1709{ 1711{
1710 return mfc_read(dev, S5P_FIMV_D_DISPLAY_LUMA_ADDR_V6); 1712 return mfc_read(dev, S5P_FIMV_D_DISPLAY_LUMA_ADDR_V6);
1711} 1713}
1712 1714
1713int s5p_mfc_get_dec_y_adr_v6(struct s5p_mfc_dev *dev) 1715static int s5p_mfc_get_dec_y_adr_v6(struct s5p_mfc_dev *dev)
1714{ 1716{
1715 return mfc_read(dev, S5P_FIMV_D_DECODED_LUMA_ADDR_V6); 1717 return mfc_read(dev, S5P_FIMV_D_DECODED_LUMA_ADDR_V6);
1716} 1718}
1717 1719
1718int s5p_mfc_get_dspl_status_v6(struct s5p_mfc_dev *dev) 1720static int s5p_mfc_get_dspl_status_v6(struct s5p_mfc_dev *dev)
1719{ 1721{
1720 return mfc_read(dev, S5P_FIMV_D_DISPLAY_STATUS_V6); 1722 return mfc_read(dev, S5P_FIMV_D_DISPLAY_STATUS_V6);
1721} 1723}
1722 1724
1723int s5p_mfc_get_decoded_status_v6(struct s5p_mfc_dev *dev) 1725static int s5p_mfc_get_decoded_status_v6(struct s5p_mfc_dev *dev)
1724{ 1726{
1725 return mfc_read(dev, S5P_FIMV_D_DECODED_STATUS_V6); 1727 return mfc_read(dev, S5P_FIMV_D_DECODED_STATUS_V6);
1726} 1728}
1727 1729
1728int s5p_mfc_get_dec_frame_type_v6(struct s5p_mfc_dev *dev) 1730static int s5p_mfc_get_dec_frame_type_v6(struct s5p_mfc_dev *dev)
1729{ 1731{
1730 return mfc_read(dev, S5P_FIMV_D_DECODED_FRAME_TYPE_V6) & 1732 return mfc_read(dev, S5P_FIMV_D_DECODED_FRAME_TYPE_V6) &
1731 S5P_FIMV_DECODE_FRAME_MASK_V6; 1733 S5P_FIMV_DECODE_FRAME_MASK_V6;
1732} 1734}
1733 1735
1734int s5p_mfc_get_disp_frame_type_v6(struct s5p_mfc_ctx *ctx) 1736static int s5p_mfc_get_disp_frame_type_v6(struct s5p_mfc_ctx *ctx)
1735{ 1737{
1736 return mfc_read(ctx->dev, S5P_FIMV_D_DISPLAY_FRAME_TYPE_V6) & 1738 return mfc_read(ctx->dev, S5P_FIMV_D_DISPLAY_FRAME_TYPE_V6) &
1737 S5P_FIMV_DECODE_FRAME_MASK_V6; 1739 S5P_FIMV_DECODE_FRAME_MASK_V6;
1738} 1740}
1739 1741
1740int s5p_mfc_get_consumed_stream_v6(struct s5p_mfc_dev *dev) 1742static int s5p_mfc_get_consumed_stream_v6(struct s5p_mfc_dev *dev)
1741{ 1743{
1742 return mfc_read(dev, S5P_FIMV_D_DECODED_NAL_SIZE_V6); 1744 return mfc_read(dev, S5P_FIMV_D_DECODED_NAL_SIZE_V6);
1743} 1745}
1744 1746
1745int s5p_mfc_get_int_reason_v6(struct s5p_mfc_dev *dev) 1747static int s5p_mfc_get_int_reason_v6(struct s5p_mfc_dev *dev)
1746{ 1748{
1747 return mfc_read(dev, S5P_FIMV_RISC2HOST_CMD_V6) & 1749 return mfc_read(dev, S5P_FIMV_RISC2HOST_CMD_V6) &
1748 S5P_FIMV_RISC2HOST_CMD_MASK; 1750 S5P_FIMV_RISC2HOST_CMD_MASK;
1749} 1751}
1750 1752
1751int s5p_mfc_get_int_err_v6(struct s5p_mfc_dev *dev) 1753static int s5p_mfc_get_int_err_v6(struct s5p_mfc_dev *dev)
1752{ 1754{
1753 return mfc_read(dev, S5P_FIMV_ERROR_CODE_V6); 1755 return mfc_read(dev, S5P_FIMV_ERROR_CODE_V6);
1754} 1756}
1755 1757
1756int s5p_mfc_err_dec_v6(unsigned int err) 1758static int s5p_mfc_err_dec_v6(unsigned int err)
1757{ 1759{
1758 return (err & S5P_FIMV_ERR_DEC_MASK_V6) >> S5P_FIMV_ERR_DEC_SHIFT_V6; 1760 return (err & S5P_FIMV_ERR_DEC_MASK_V6) >> S5P_FIMV_ERR_DEC_SHIFT_V6;
1759} 1761}
1760 1762
1761int s5p_mfc_err_dspl_v6(unsigned int err) 1763static int s5p_mfc_err_dspl_v6(unsigned int err)
1762{ 1764{
1763 return (err & S5P_FIMV_ERR_DSPL_MASK_V6) >> S5P_FIMV_ERR_DSPL_SHIFT_V6; 1765 return (err & S5P_FIMV_ERR_DSPL_MASK_V6) >> S5P_FIMV_ERR_DSPL_SHIFT_V6;
1764} 1766}
1765 1767
1766int s5p_mfc_get_img_width_v6(struct s5p_mfc_dev *dev) 1768static int s5p_mfc_get_img_width_v6(struct s5p_mfc_dev *dev)
1767{ 1769{
1768 return mfc_read(dev, S5P_FIMV_D_DISPLAY_FRAME_WIDTH_V6); 1770 return mfc_read(dev, S5P_FIMV_D_DISPLAY_FRAME_WIDTH_V6);
1769} 1771}
1770 1772
1771int s5p_mfc_get_img_height_v6(struct s5p_mfc_dev *dev) 1773static int s5p_mfc_get_img_height_v6(struct s5p_mfc_dev *dev)
1772{ 1774{
1773 return mfc_read(dev, S5P_FIMV_D_DISPLAY_FRAME_HEIGHT_V6); 1775 return mfc_read(dev, S5P_FIMV_D_DISPLAY_FRAME_HEIGHT_V6);
1774} 1776}
1775 1777
1776int s5p_mfc_get_dpb_count_v6(struct s5p_mfc_dev *dev) 1778static int s5p_mfc_get_dpb_count_v6(struct s5p_mfc_dev *dev)
1777{ 1779{
1778 return mfc_read(dev, S5P_FIMV_D_MIN_NUM_DPB_V6); 1780 return mfc_read(dev, S5P_FIMV_D_MIN_NUM_DPB_V6);
1779} 1781}
1780 1782
1781int s5p_mfc_get_mv_count_v6(struct s5p_mfc_dev *dev) 1783static int s5p_mfc_get_mv_count_v6(struct s5p_mfc_dev *dev)
1782{ 1784{
1783 return mfc_read(dev, S5P_FIMV_D_MIN_NUM_MV_V6); 1785 return mfc_read(dev, S5P_FIMV_D_MIN_NUM_MV_V6);
1784} 1786}
1785 1787
1786int s5p_mfc_get_inst_no_v6(struct s5p_mfc_dev *dev) 1788static int s5p_mfc_get_inst_no_v6(struct s5p_mfc_dev *dev)
1787{ 1789{
1788 return mfc_read(dev, S5P_FIMV_RET_INSTANCE_ID_V6); 1790 return mfc_read(dev, S5P_FIMV_RET_INSTANCE_ID_V6);
1789} 1791}
1790 1792
1791int s5p_mfc_get_enc_dpb_count_v6(struct s5p_mfc_dev *dev) 1793static int s5p_mfc_get_enc_dpb_count_v6(struct s5p_mfc_dev *dev)
1792{ 1794{
1793 return mfc_read(dev, S5P_FIMV_E_NUM_DPB_V6); 1795 return mfc_read(dev, S5P_FIMV_E_NUM_DPB_V6);
1794} 1796}
1795 1797
1796int s5p_mfc_get_enc_strm_size_v6(struct s5p_mfc_dev *dev) 1798static int s5p_mfc_get_enc_strm_size_v6(struct s5p_mfc_dev *dev)
1797{ 1799{
1798 return mfc_read(dev, S5P_FIMV_E_STREAM_SIZE_V6); 1800 return mfc_read(dev, S5P_FIMV_E_STREAM_SIZE_V6);
1799} 1801}
1800 1802
1801int s5p_mfc_get_enc_slice_type_v6(struct s5p_mfc_dev *dev) 1803static int s5p_mfc_get_enc_slice_type_v6(struct s5p_mfc_dev *dev)
1802{ 1804{
1803 return mfc_read(dev, S5P_FIMV_E_SLICE_TYPE_V6); 1805 return mfc_read(dev, S5P_FIMV_E_SLICE_TYPE_V6);
1804} 1806}
1805 1807
1806int s5p_mfc_get_enc_pic_count_v6(struct s5p_mfc_dev *dev) 1808static int s5p_mfc_get_enc_pic_count_v6(struct s5p_mfc_dev *dev)
1807{ 1809{
1808 return mfc_read(dev, S5P_FIMV_E_PICTURE_COUNT_V6); 1810 return mfc_read(dev, S5P_FIMV_E_PICTURE_COUNT_V6);
1809} 1811}
1810 1812
1811int s5p_mfc_get_sei_avail_status_v6(struct s5p_mfc_ctx *ctx) 1813static int s5p_mfc_get_sei_avail_status_v6(struct s5p_mfc_ctx *ctx)
1812{ 1814{
1813 return mfc_read(ctx->dev, S5P_FIMV_D_FRAME_PACK_SEI_AVAIL_V6); 1815 return mfc_read(ctx->dev, S5P_FIMV_D_FRAME_PACK_SEI_AVAIL_V6);
1814} 1816}
1815 1817
1816int s5p_mfc_get_mvc_num_views_v6(struct s5p_mfc_dev *dev) 1818static int s5p_mfc_get_mvc_num_views_v6(struct s5p_mfc_dev *dev)
1817{ 1819{
1818 return mfc_read(dev, S5P_FIMV_D_MVC_NUM_VIEWS_V6); 1820 return mfc_read(dev, S5P_FIMV_D_MVC_NUM_VIEWS_V6);
1819} 1821}
1820 1822
1821int s5p_mfc_get_mvc_view_id_v6(struct s5p_mfc_dev *dev) 1823static int s5p_mfc_get_mvc_view_id_v6(struct s5p_mfc_dev *dev)
1822{ 1824{
1823 return mfc_read(dev, S5P_FIMV_D_MVC_VIEW_ID_V6); 1825 return mfc_read(dev, S5P_FIMV_D_MVC_VIEW_ID_V6);
1824} 1826}
1825 1827
1826unsigned int s5p_mfc_get_pic_type_top_v6(struct s5p_mfc_ctx *ctx) 1828static unsigned int s5p_mfc_get_pic_type_top_v6(struct s5p_mfc_ctx *ctx)
1827{ 1829{
1828 return s5p_mfc_read_info_v6(ctx, PIC_TIME_TOP_V6); 1830 return s5p_mfc_read_info_v6(ctx, PIC_TIME_TOP_V6);
1829} 1831}
1830 1832
1831unsigned int s5p_mfc_get_pic_type_bot_v6(struct s5p_mfc_ctx *ctx) 1833static unsigned int s5p_mfc_get_pic_type_bot_v6(struct s5p_mfc_ctx *ctx)
1832{ 1834{
1833 return s5p_mfc_read_info_v6(ctx, PIC_TIME_BOT_V6); 1835 return s5p_mfc_read_info_v6(ctx, PIC_TIME_BOT_V6);
1834} 1836}
1835 1837
1836unsigned int s5p_mfc_get_crop_info_h_v6(struct s5p_mfc_ctx *ctx) 1838static unsigned int s5p_mfc_get_crop_info_h_v6(struct s5p_mfc_ctx *ctx)
1837{ 1839{
1838 return s5p_mfc_read_info_v6(ctx, CROP_INFO_H_V6); 1840 return s5p_mfc_read_info_v6(ctx, CROP_INFO_H_V6);
1839} 1841}
1840 1842
1841unsigned int s5p_mfc_get_crop_info_v_v6(struct s5p_mfc_ctx *ctx) 1843static unsigned int s5p_mfc_get_crop_info_v_v6(struct s5p_mfc_ctx *ctx)
1842{ 1844{
1843 return s5p_mfc_read_info_v6(ctx, CROP_INFO_V_V6); 1845 return s5p_mfc_read_info_v6(ctx, CROP_INFO_V_V6);
1844} 1846}