• Home
  • Raw
  • Download

Lines Matching refs:ps_jobq

99 IHEVCD_ERROR_T ihevcd_jobq_lock(jobq_t *ps_jobq)  in ihevcd_jobq_lock()  argument
102 retval = ithread_mutex_lock(ps_jobq->pv_mutex); in ihevcd_jobq_lock()
129 IHEVCD_ERROR_T ihevcd_jobq_unlock(jobq_t *ps_jobq) in ihevcd_jobq_unlock() argument
132 retval = ithread_mutex_unlock(ps_jobq->pv_mutex); in ihevcd_jobq_unlock()
162 IHEVCD_ERROR_T ihevcd_jobq_yield(jobq_t *ps_jobq) in ihevcd_jobq_yield() argument
168 rettmp = ihevcd_jobq_unlock(ps_jobq); in ihevcd_jobq_yield()
174 rettmp = ihevcd_jobq_lock(ps_jobq); in ihevcd_jobq_yield()
198 IHEVCD_ERROR_T ihevcd_jobq_free(jobq_t *ps_jobq) in ihevcd_jobq_free() argument
201 ret = ithread_mutex_destroy(ps_jobq->pv_mutex); in ihevcd_jobq_free()
233 jobq_t *ps_jobq; in ihevcd_jobq_init() local
237 ps_jobq = (jobq_t *)pu1_buf; in ihevcd_jobq_init()
241 ps_jobq->pv_mutex = pu1_buf; in ihevcd_jobq_init()
248 ithread_mutex_init(ps_jobq->pv_mutex); in ihevcd_jobq_init()
250 ps_jobq->pv_buf_base = pu1_buf; in ihevcd_jobq_init()
251 ps_jobq->pv_buf_wr = pu1_buf; in ihevcd_jobq_init()
252 ps_jobq->pv_buf_rd = pu1_buf; in ihevcd_jobq_init()
253 ps_jobq->pv_buf_end = pu1_buf + buf_size; in ihevcd_jobq_init()
254 ps_jobq->i4_terminate = 0; in ihevcd_jobq_init()
257 return ps_jobq; in ihevcd_jobq_init()
277 IHEVCD_ERROR_T ihevcd_jobq_reset(jobq_t *ps_jobq) in ihevcd_jobq_reset() argument
280 ret = ihevcd_jobq_lock(ps_jobq); in ihevcd_jobq_reset()
283 ps_jobq->pv_buf_wr = ps_jobq->pv_buf_base; in ihevcd_jobq_reset()
284 ps_jobq->pv_buf_rd = ps_jobq->pv_buf_base; in ihevcd_jobq_reset()
285 ps_jobq->i4_terminate = 0; in ihevcd_jobq_reset()
286 ret = ihevcd_jobq_unlock(ps_jobq); in ihevcd_jobq_reset()
311 IHEVCD_ERROR_T ihevcd_jobq_deinit(jobq_t *ps_jobq) in ihevcd_jobq_deinit() argument
316 ret = ihevcd_jobq_reset(ps_jobq); in ihevcd_jobq_deinit()
319 retval = ithread_mutex_destroy(ps_jobq->pv_mutex); in ihevcd_jobq_deinit()
348 IHEVCD_ERROR_T ihevcd_jobq_terminate(jobq_t *ps_jobq) in ihevcd_jobq_terminate() argument
351 ret = ihevcd_jobq_lock(ps_jobq); in ihevcd_jobq_terminate()
354 ps_jobq->i4_terminate = 1; in ihevcd_jobq_terminate()
356 ret = ihevcd_jobq_unlock(ps_jobq); in ihevcd_jobq_terminate()
392 IHEVCD_ERROR_T ihevcd_jobq_queue(jobq_t *ps_jobq, void *pv_job, WORD32 job_size, WORD32 blocking) in ihevcd_jobq_queue() argument
399 rettmp = ihevcd_jobq_lock(ps_jobq); in ihevcd_jobq_queue()
402 pu1_buf = (UWORD8 *)ps_jobq->pv_buf_wr; in ihevcd_jobq_queue()
403 if((UWORD8 *)ps_jobq->pv_buf_end >= (pu1_buf + job_size)) in ihevcd_jobq_queue()
405 memcpy(ps_jobq->pv_buf_wr, pv_job, job_size); in ihevcd_jobq_queue()
406 ps_jobq->pv_buf_wr = (UWORD8 *)ps_jobq->pv_buf_wr + job_size; in ihevcd_jobq_queue()
418 ps_jobq->i4_terminate = 0; in ihevcd_jobq_queue()
420 rettmp = ihevcd_jobq_unlock(ps_jobq); in ihevcd_jobq_queue()
457 IHEVCD_ERROR_T ihevcd_jobq_dequeue(jobq_t *ps_jobq, void *pv_job, WORD32 job_size, WORD32 blocking) in ihevcd_jobq_dequeue() argument
463 rettmp = ihevcd_jobq_lock(ps_jobq); in ihevcd_jobq_dequeue()
465 pu1_buf = (UWORD8 *)ps_jobq->pv_buf_rd; in ihevcd_jobq_dequeue()
468 if((UWORD8 *)ps_jobq->pv_buf_end >= (pu1_buf + job_size)) in ihevcd_jobq_dequeue()
472 pu1_buf = (UWORD8 *)ps_jobq->pv_buf_rd; in ihevcd_jobq_dequeue()
473 if((UWORD8 *)ps_jobq->pv_buf_wr >= (pu1_buf + job_size)) in ihevcd_jobq_dequeue()
475 memcpy(pv_job, ps_jobq->pv_buf_rd, job_size); in ihevcd_jobq_dequeue()
476 ps_jobq->pv_buf_rd = (UWORD8 *)ps_jobq->pv_buf_rd + job_size; in ihevcd_jobq_dequeue()
483 if(1 == ps_jobq->i4_terminate) in ihevcd_jobq_dequeue()
491 ihevcd_jobq_yield(ps_jobq); in ihevcd_jobq_dequeue()
511 rettmp = ihevcd_jobq_unlock(ps_jobq); in ihevcd_jobq_dequeue()