Lines Matching refs:ps_buf_mgr

75                 buf_mgr_t *ps_buf_mgr)  in ihevc_buf_mgr_init()  argument
79 ps_buf_mgr->u4_max_buf_cnt = BUF_MGR_MAX_CNT; in ihevc_buf_mgr_init()
80 ps_buf_mgr->u4_active_buf_cnt = 0; in ihevc_buf_mgr_init()
84 ps_buf_mgr->au4_status[id] = 0; in ihevc_buf_mgr_init()
85 ps_buf_mgr->apv_ptr[id] = NULL; in ihevc_buf_mgr_init()
114 buf_mgr_t *ps_buf_mgr, in ihevc_buf_mgr_add() argument
120 if(buf_id >= (WORD32)ps_buf_mgr->u4_max_buf_cnt) in ihevc_buf_mgr_add()
126 if((ps_buf_mgr->apv_ptr[buf_id] != NULL) && in ihevc_buf_mgr_add()
127 (ps_buf_mgr->apv_ptr[buf_id] != pv_ptr)) in ihevc_buf_mgr_add()
131 ps_buf_mgr->apv_ptr[buf_id] = pv_ptr; in ihevc_buf_mgr_add()
161 buf_mgr_t *ps_buf_mgr, in ihevc_buf_mgr_get_next_free() argument
168 for(id = 0; id < (WORD32)ps_buf_mgr->u4_max_buf_cnt; id++) in ihevc_buf_mgr_get_next_free()
170 ASSERT(ps_buf_mgr->au4_status[id] != 2); in ihevc_buf_mgr_get_next_free()
173 if((ps_buf_mgr->au4_status[id] == 0) && (ps_buf_mgr->apv_ptr[id])) in ihevc_buf_mgr_get_next_free()
177 ps_buf_mgr->au4_status[id] = 1; in ihevc_buf_mgr_get_next_free()
178 pv_ret_ptr = ps_buf_mgr->apv_ptr[id]; in ihevc_buf_mgr_get_next_free()
207 buf_mgr_t *ps_buf_mgr) in ihevc_buf_mgr_check_free() argument
211 for(id = 0; id < ps_buf_mgr->u4_max_buf_cnt; id++) in ihevc_buf_mgr_check_free()
213 ASSERT(ps_buf_mgr->au4_status[id] != 2); in ihevc_buf_mgr_check_free()
215 if((ps_buf_mgr->au4_status[id] == 0) && in ihevc_buf_mgr_check_free()
216 (ps_buf_mgr->apv_ptr[id])) in ihevc_buf_mgr_check_free()
254 buf_mgr_t *ps_buf_mgr, in ihevc_buf_mgr_release() argument
259 if(buf_id >= (WORD32)ps_buf_mgr->u4_max_buf_cnt) in ihevc_buf_mgr_release()
264 ps_buf_mgr->au4_status[buf_id] &= ~mask; in ihevc_buf_mgr_release()
265 ASSERT(ps_buf_mgr->au4_status[buf_id] != 2); in ihevc_buf_mgr_release()
268 if(ps_buf_mgr->au4_status[buf_id] == 1) in ihevc_buf_mgr_release()
270 ps_buf_mgr->au4_status[buf_id] = 0; in ihevc_buf_mgr_release()
306 buf_mgr_t *ps_buf_mgr, in ihevc_buf_mgr_set_status() argument
310 if(buf_id >= (WORD32)ps_buf_mgr->u4_max_buf_cnt) in ihevc_buf_mgr_set_status()
316 if((ps_buf_mgr->au4_status[buf_id] & mask) != 0) in ihevc_buf_mgr_set_status()
321 ps_buf_mgr->au4_status[buf_id] |= mask; in ihevc_buf_mgr_set_status()
322 ASSERT(ps_buf_mgr->au4_status[buf_id] != 2); in ihevc_buf_mgr_set_status()
350 buf_mgr_t *ps_buf_mgr, in ihevc_buf_mgr_get_status() argument
353 return ps_buf_mgr->au4_status[buf_id]; in ihevc_buf_mgr_get_status()
380 buf_mgr_t *ps_buf_mgr, in ihevc_buf_mgr_get_buf() argument
383 return ps_buf_mgr->apv_ptr[buf_id]; in ihevc_buf_mgr_get_buf()
407 buf_mgr_t *ps_buf_mgr) in ihevc_buf_mgr_get_num_active_buf() argument
409 return ps_buf_mgr->u4_max_buf_cnt; in ihevc_buf_mgr_get_num_active_buf()