Lines Matching refs:dpb

238 	const struct v4l2_h264_dpb_entry *dpb = ctx->h264_dec.dpb;  in prepare_table()  local
244 tbl->poc[i * 2] = dpb[i].top_field_order_cnt; in prepare_table()
245 tbl->poc[i * 2 + 1] = dpb[i].bottom_field_order_cnt; in prepare_table()
247 if (!(dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_VALID)) in prepare_table()
258 if (dpb[i].fields & V4L2_H264_TOP_FIELD_REF) in prepare_table()
261 if (dpb[i].fields & V4L2_H264_BOTTOM_FIELD_REF) in prepare_table()
264 if (dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_LONG_TERM) { in prepare_table()
271 if (dpb[i].flags & V4L2_H264_DPB_ENTRY_FLAG_LONG_TERM) in prepare_table()
299 DECLARE_BITMAP(new, ARRAY_SIZE(dec_param->dpb)) = { 0, }; in update_dpb()
300 DECLARE_BITMAP(used, ARRAY_SIZE(dec_param->dpb)) = { 0, }; in update_dpb()
306 for (i = 0; i < ARRAY_SIZE(ctx->h264_dec.dpb); i++) in update_dpb()
307 ctx->h264_dec.dpb[i].flags = 0; in update_dpb()
310 for (i = 0; i < ARRAY_SIZE(dec_param->dpb); i++) { in update_dpb()
311 const struct v4l2_h264_dpb_entry *ndpb = &dec_param->dpb[i]; in update_dpb()
320 for_each_clear_bit(j, used, ARRAY_SIZE(ctx->h264_dec.dpb)) { in update_dpb()
323 cdpb = &ctx->h264_dec.dpb[j]; in update_dpb()
332 if (j == ARRAY_SIZE(ctx->h264_dec.dpb)) in update_dpb()
337 for_each_set_bit(i, new, ARRAY_SIZE(dec_param->dpb)) { in update_dpb()
338 const struct v4l2_h264_dpb_entry *ndpb = &dec_param->dpb[i]; in update_dpb()
346 j = find_first_zero_bit(used, ARRAY_SIZE(ctx->h264_dec.dpb)); in update_dpb()
347 if (WARN_ON(j >= ARRAY_SIZE(ctx->h264_dec.dpb))) in update_dpb()
350 cdpb = &ctx->h264_dec.dpb[j]; in update_dpb()
359 struct v4l2_h264_dpb_entry *dpb = ctx->h264_dec.dpb; in hantro_h264_get_ref_buf() local
364 if (dpb[dpb_idx].flags & V4L2_H264_DPB_ENTRY_FLAG_ACTIVE) in hantro_h264_get_ref_buf()
365 dma_addr = hantro_get_ref(ctx, dpb[dpb_idx].reference_ts); in hantro_h264_get_ref_buf()
380 flags = dpb[dpb_idx].flags & V4L2_H264_DPB_ENTRY_FLAG_FIELD ? 0x2 : 0; in hantro_h264_get_ref_buf()
381 flags |= abs(dpb[dpb_idx].top_field_order_cnt - cur_poc) < in hantro_h264_get_ref_buf()
382 abs(dpb[dpb_idx].bottom_field_order_cnt - cur_poc) ? in hantro_h264_get_ref_buf()
390 const struct v4l2_h264_dpb_entry *dpb = &ctx->h264_dec.dpb[dpb_idx]; in hantro_h264_get_ref_nbr() local
392 if (!(dpb->flags & V4L2_H264_DPB_ENTRY_FLAG_ACTIVE)) in hantro_h264_get_ref_nbr()
394 return dpb->frame_num; in hantro_h264_get_ref_nbr()
471 ctrls->sps, ctx->h264_dec.dpb); in hantro_h264_dec_prepare_run()