mfc_debug(2, "Got instance number: %d\n", ctx->inst_no);
- if (mfc_dec_ctx_ready(ctx))
+ if (mfc_ctx_ready(ctx))
mfc_set_bit(ctx->num, &dev->work_bits);
if (mfc_is_work_to_do(dev))
queue_work(dev->butler_wq, &dev->butler_work);
ctx->capture_state = QUEUE_BUFS_REQUESTED;
- if (mfc_dec_ctx_ready(ctx))
+ if (mfc_ctx_ready(ctx))
mfc_set_bit(ctx->num, &dev->work_bits);
mfc_try_run(dev);
mfc_change_state(ctx, MFCINST_RUNNING);
/* If context is ready then dev = work->data;schedule it to run */
- if (mfc_dec_ctx_ready(ctx)) {
+ if (mfc_ctx_ready(ctx))
mfc_set_bit(ctx->num, &dev->work_bits);
- }
mfc_try_run(dev);
mfc_clear_bit(ctx->num, &dev->work_bits);
mfc_release_hwlock_ctx(ctx);
- if (mfc_dec_ctx_ready(ctx))
+ if (mfc_ctx_ready(ctx))
mfc_set_bit(ctx->num, &dev->work_bits);
if (mfc_is_work_to_do(dev))
queue_work(dev->butler_wq, &dev->butler_work);
mfc_err_ctx("Unsupported buffer type (%d)\n", vq->type);
}
- if (mfc_dec_ctx_ready(ctx)) {
+ if (mfc_ctx_ready(ctx)) {
mfc_set_bit(ctx->num, &dev->work_bits);
mfc_try_run(dev);
}
mfc_debug(2, "Got instance number: %d\n", ctx->inst_no);
- if (mfc_enc_ctx_ready(ctx))
+ if (mfc_ctx_ready(ctx))
mfc_set_bit(ctx->num, &dev->work_bits);
if (ctx->otf_handle && mfc_otf_ctx_ready(ctx))
mfc_set_bit(ctx->num, &dev->work_bits);
struct mfc_dev *dev = ctx->dev;
/* If context is ready then dev = work->data;schedule it to run */
- if (mfc_enc_ctx_ready(ctx)) {
+ if (mfc_ctx_ready(ctx))
mfc_set_bit(ctx->num, &dev->work_bits);
- }
mfc_try_run(dev);
mfc_err_ctx("unsupported buffer type (%d)\n", vq->type);
}
- if (mfc_enc_ctx_ready(ctx)) {
+ if (mfc_ctx_ready(ctx))
mfc_set_bit(ctx->num, &dev->work_bits);
- }
+
mfc_try_run(dev);
mfc_debug_leave();
}
/* Check whether a context should be run on hardware */
-int mfc_dec_ctx_ready(struct mfc_ctx *ctx)
+static int __mfc_dec_ctx_ready(struct mfc_ctx *ctx)
{
struct mfc_dev *dev = ctx->dev;
int src_buf_queue_greater_than_0 = 0;
return 0;
}
-int mfc_enc_ctx_ready(struct mfc_ctx *ctx)
+static int __mfc_enc_ctx_ready(struct mfc_ctx *ctx)
{
struct mfc_enc *enc = ctx->enc_priv;
struct mfc_dev *dev = ctx->dev;
int mfc_ctx_ready(struct mfc_ctx *ctx)
{
if (ctx->type == MFCINST_DECODER)
- return mfc_dec_ctx_ready(ctx);
+ return __mfc_dec_ctx_ready(ctx);
else if (ctx->type == MFCINST_ENCODER)
- return mfc_enc_ctx_ready(ctx);
+ return __mfc_enc_ctx_ready(ctx);
return 0;
}
unsigned int err);
int mfc_get_new_ctx(struct mfc_dev *dev);
-int mfc_dec_ctx_ready(struct mfc_ctx *ctx);
-int mfc_enc_ctx_ready(struct mfc_ctx *ctx);
int mfc_ctx_ready(struct mfc_ctx *ctx);
-
static inline void mfc_set_bit(int num, struct mfc_bits *data)
{
unsigned long flags;