diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-02 05:50:13 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-18 16:25:03 -0400 |
commit | b9571a577b570b24c4fa2ed79dade612294584d3 (patch) | |
tree | e8eaf1633798951262d7c17deb34365c4ff61804 /drivers/media/platform/s5p-mfc | |
parent | 4294dcf7e335da72fe81538c46b4a8e83037ea20 (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.c | 112 |
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 */ |
52 | int s5p_mfc_alloc_dec_temp_buffers_v6(struct s5p_mfc_ctx *ctx) | 52 | static 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 */ |
60 | void s5p_mfc_release_dec_desc_buffer_v6(struct s5p_mfc_ctx *ctx) | 60 | static void s5p_mfc_release_dec_desc_buffer_v6(struct s5p_mfc_ctx *ctx) |
61 | { | 61 | { |
62 | /* NOP */ | 62 | /* NOP */ |
63 | } | 63 | } |
64 | 64 | ||
65 | int s5p_mfc_get_dec_status_v6(struct s5p_mfc_dev *dev) | 65 | static 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 */ |
72 | int s5p_mfc_alloc_codec_buffers_v6(struct s5p_mfc_ctx *ctx) | 72 | static 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 */ |
206 | void s5p_mfc_release_codec_buffers_v6(struct s5p_mfc_ctx *ctx) | 206 | static 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 */ |
212 | int s5p_mfc_alloc_instance_buffer_v6(struct s5p_mfc_ctx *ctx) | 212 | static 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 */ |
261 | void s5p_mfc_release_instance_buffer_v6(struct s5p_mfc_ctx *ctx) | 261 | static 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 */ |
267 | int s5p_mfc_alloc_dev_context_buffer_v6(struct s5p_mfc_dev *dev) | 267 | static 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 */ |
290 | void s5p_mfc_release_dev_context_buffer_v6(struct s5p_mfc_dev *dev) | 290 | static 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 | ||
309 | void s5p_mfc_dec_calc_dpb_size_v6(struct s5p_mfc_ctx *ctx) | 309 | static 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 | ||
329 | void s5p_mfc_enc_calc_src_size_v6(struct s5p_mfc_ctx *ctx) | 329 | static 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 */ |
342 | int s5p_mfc_set_dec_stream_buffer_v6(struct s5p_mfc_ctx *ctx, int buf_addr, | 342 | static 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 */ |
362 | int s5p_mfc_set_dec_frame_buffer_v6(struct s5p_mfc_ctx *ctx) | 363 | static 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 */ |
443 | int s5p_mfc_set_enc_stream_buffer_v6(struct s5p_mfc_ctx *ctx, | 444 | static 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 | ||
457 | void s5p_mfc_set_enc_frame_buffer_v6(struct s5p_mfc_ctx *ctx, | 458 | static 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 | ||
469 | void s5p_mfc_get_enc_frame_buffer_v6(struct s5p_mfc_ctx *ctx, | 470 | static 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 */ |
486 | int s5p_mfc_set_enc_ref_buffer_v6(struct s5p_mfc_ctx *ctx) | 487 | static 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 */ |
1150 | int s5p_mfc_init_decode_v6(struct s5p_mfc_ctx *ctx) | 1151 | static 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 */ |
1218 | int s5p_mfc_decode_one_frame_v6(struct s5p_mfc_ctx *ctx, | 1219 | static 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 | ||
1247 | int s5p_mfc_init_encode_v6(struct s5p_mfc_ctx *ctx) | 1248 | static 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 | ||
1270 | int s5p_mfc_h264_set_aso_slice_order_v6(struct s5p_mfc_ctx *ctx) | 1271 | static 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 */ |
1286 | int s5p_mfc_encode_one_frame_v6(struct s5p_mfc_ctx *ctx) | 1287 | static 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 */ |
1543 | void s5p_mfc_try_run_v6(struct s5p_mfc_dev *dev) | 1544 | static 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 | ||
1666 | void s5p_mfc_cleanup_queue_v6(struct list_head *lh, struct vb2_queue *vq) | 1667 | static 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 | ||
1680 | void s5p_mfc_clear_int_flags_v6(struct s5p_mfc_dev *dev) | 1681 | static 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 | ||
1686 | void s5p_mfc_write_info_v6(struct s5p_mfc_ctx *ctx, unsigned int data, | 1687 | static 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 | ||
1696 | unsigned int s5p_mfc_read_info_v6(struct s5p_mfc_ctx *ctx, unsigned int ofs) | 1697 | static unsigned int |
1698 | s5p_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 | ||
1708 | int s5p_mfc_get_dspl_y_adr_v6(struct s5p_mfc_dev *dev) | 1710 | static 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 | ||
1713 | int s5p_mfc_get_dec_y_adr_v6(struct s5p_mfc_dev *dev) | 1715 | static 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 | ||
1718 | int s5p_mfc_get_dspl_status_v6(struct s5p_mfc_dev *dev) | 1720 | static 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 | ||
1723 | int s5p_mfc_get_decoded_status_v6(struct s5p_mfc_dev *dev) | 1725 | static 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 | ||
1728 | int s5p_mfc_get_dec_frame_type_v6(struct s5p_mfc_dev *dev) | 1730 | static 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 | ||
1734 | int s5p_mfc_get_disp_frame_type_v6(struct s5p_mfc_ctx *ctx) | 1736 | static 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 | ||
1740 | int s5p_mfc_get_consumed_stream_v6(struct s5p_mfc_dev *dev) | 1742 | static 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 | ||
1745 | int s5p_mfc_get_int_reason_v6(struct s5p_mfc_dev *dev) | 1747 | static 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 | ||
1751 | int s5p_mfc_get_int_err_v6(struct s5p_mfc_dev *dev) | 1753 | static 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 | ||
1756 | int s5p_mfc_err_dec_v6(unsigned int err) | 1758 | static 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 | ||
1761 | int s5p_mfc_err_dspl_v6(unsigned int err) | 1763 | static 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 | ||
1766 | int s5p_mfc_get_img_width_v6(struct s5p_mfc_dev *dev) | 1768 | static 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 | ||
1771 | int s5p_mfc_get_img_height_v6(struct s5p_mfc_dev *dev) | 1773 | static 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 | ||
1776 | int s5p_mfc_get_dpb_count_v6(struct s5p_mfc_dev *dev) | 1778 | static 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 | ||
1781 | int s5p_mfc_get_mv_count_v6(struct s5p_mfc_dev *dev) | 1783 | static 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 | ||
1786 | int s5p_mfc_get_inst_no_v6(struct s5p_mfc_dev *dev) | 1788 | static 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 | ||
1791 | int s5p_mfc_get_enc_dpb_count_v6(struct s5p_mfc_dev *dev) | 1793 | static 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 | ||
1796 | int s5p_mfc_get_enc_strm_size_v6(struct s5p_mfc_dev *dev) | 1798 | static 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 | ||
1801 | int s5p_mfc_get_enc_slice_type_v6(struct s5p_mfc_dev *dev) | 1803 | static 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 | ||
1806 | int s5p_mfc_get_enc_pic_count_v6(struct s5p_mfc_dev *dev) | 1808 | static 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 | ||
1811 | int s5p_mfc_get_sei_avail_status_v6(struct s5p_mfc_ctx *ctx) | 1813 | static 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 | ||
1816 | int s5p_mfc_get_mvc_num_views_v6(struct s5p_mfc_dev *dev) | 1818 | static 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 | ||
1821 | int s5p_mfc_get_mvc_view_id_v6(struct s5p_mfc_dev *dev) | 1823 | static 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 | ||
1826 | unsigned int s5p_mfc_get_pic_type_top_v6(struct s5p_mfc_ctx *ctx) | 1828 | static 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 | ||
1831 | unsigned int s5p_mfc_get_pic_type_bot_v6(struct s5p_mfc_ctx *ctx) | 1833 | static 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 | ||
1836 | unsigned int s5p_mfc_get_crop_info_h_v6(struct s5p_mfc_ctx *ctx) | 1838 | static 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 | ||
1841 | unsigned int s5p_mfc_get_crop_info_v_v6(struct s5p_mfc_ctx *ctx) | 1843 | static 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 | } |