• Home
  • Raw
  • Download

Lines Matching refs:ps_buf_mgr

77                 buf_mgr_t *ps_buf_mgr)  in impeg2_buf_mgr_init()  argument
81 ps_buf_mgr->u4_max_buf_cnt = BUF_MGR_MAX_CNT; in impeg2_buf_mgr_init()
82 ps_buf_mgr->u4_active_buf_cnt = 0; in impeg2_buf_mgr_init()
86 ps_buf_mgr->au4_status[id] = 0; in impeg2_buf_mgr_init()
87 ps_buf_mgr->apv_ptr[id] = NULL; in impeg2_buf_mgr_init()
112 buf_mgr_t *ps_buf_mgr) in impeg2_buf_mgr_reset() argument
116 ps_buf_mgr->u4_max_buf_cnt = BUF_MGR_MAX_CNT; in impeg2_buf_mgr_reset()
117 ps_buf_mgr->u4_active_buf_cnt = 0; in impeg2_buf_mgr_reset()
121 ps_buf_mgr->au4_status[id] = 0; in impeg2_buf_mgr_reset()
149 buf_mgr_t *ps_buf_mgr, in impeg2_buf_mgr_add() argument
155 if(i4_buf_id >= (WORD32)ps_buf_mgr->u4_max_buf_cnt) in impeg2_buf_mgr_add()
161 if((ps_buf_mgr->apv_ptr[i4_buf_id] != NULL) && in impeg2_buf_mgr_add()
162 (ps_buf_mgr->apv_ptr[i4_buf_id] != pv_ptr)) in impeg2_buf_mgr_add()
166 ps_buf_mgr->apv_ptr[i4_buf_id] = pv_ptr; in impeg2_buf_mgr_add()
196 buf_mgr_t *ps_buf_mgr, in impeg2_buf_mgr_get_next_free() argument
203 for(id = 0; id < (WORD32)ps_buf_mgr->u4_max_buf_cnt; id++) in impeg2_buf_mgr_get_next_free()
206 if((ps_buf_mgr->au4_status[id] == 0) && (ps_buf_mgr->apv_ptr[id])) in impeg2_buf_mgr_get_next_free()
210 ps_buf_mgr->au4_status[id] = 1; in impeg2_buf_mgr_get_next_free()
211 pv_ret_ptr = ps_buf_mgr->apv_ptr[id]; in impeg2_buf_mgr_get_next_free()
240 buf_mgr_t *ps_buf_mgr) in impeg2_buf_mgr_check_free() argument
244 for(id = 0; id < ps_buf_mgr->u4_max_buf_cnt; id++) in impeg2_buf_mgr_check_free()
246 if((ps_buf_mgr->au4_status[id] == 0) && in impeg2_buf_mgr_check_free()
247 (ps_buf_mgr->apv_ptr[id])) in impeg2_buf_mgr_check_free()
285 buf_mgr_t *ps_buf_mgr, in impeg2_buf_mgr_release() argument
290 if(i4_buf_id >= (WORD32)ps_buf_mgr->u4_max_buf_cnt) in impeg2_buf_mgr_release()
295 if(0 == (ps_buf_mgr->au4_status[i4_buf_id] & u4_mask)) in impeg2_buf_mgr_release()
300 ps_buf_mgr->au4_status[i4_buf_id] &= ~u4_mask; in impeg2_buf_mgr_release()
303 if(ps_buf_mgr->au4_status[i4_buf_id] == 1) in impeg2_buf_mgr_release()
305 ps_buf_mgr->au4_status[i4_buf_id] = 0; in impeg2_buf_mgr_release()
341 buf_mgr_t *ps_buf_mgr, in impeg2_buf_mgr_set_status() argument
345 if(i4_buf_id >= (WORD32)ps_buf_mgr->u4_max_buf_cnt) in impeg2_buf_mgr_set_status()
351 if((ps_buf_mgr->au4_status[i4_buf_id] & u4_mask) != 0) in impeg2_buf_mgr_set_status()
356 ps_buf_mgr->au4_status[i4_buf_id] |= u4_mask; in impeg2_buf_mgr_set_status()
384 buf_mgr_t *ps_buf_mgr, in impeg2_buf_mgr_get_status() argument
387 return ps_buf_mgr->au4_status[i4_buf_id]; in impeg2_buf_mgr_get_status()
414 buf_mgr_t *ps_buf_mgr, in impeg2_buf_mgr_get_buf() argument
417 return ps_buf_mgr->apv_ptr[i4_buf_id]; in impeg2_buf_mgr_get_buf()
441 buf_mgr_t *ps_buf_mgr) in impeg2_buf_mgr_get_num_active_buf() argument
443 return ps_buf_mgr->u4_max_buf_cnt; in impeg2_buf_mgr_get_num_active_buf()