Lines Matching refs:enc_id

24 				     uint32_t enc_id)  in reserved_by_other()  argument
26 return res_map[idx] && res_map[idx] != enc_id; in reserved_by_other()
240 uint32_t enc_id, int lm_idx, int *pp_idx, int *dspp_idx, in _dpu_rm_check_lm_and_get_connected_blks() argument
247 if (reserved_by_other(global_state->mixer_to_enc_id, lm_idx, enc_id)) { in _dpu_rm_check_lm_and_get_connected_blks()
259 if (reserved_by_other(global_state->pingpong_to_enc_id, idx, enc_id)) { in _dpu_rm_check_lm_and_get_connected_blks()
275 if (reserved_by_other(global_state->dspp_to_enc_id, idx, enc_id)) { in _dpu_rm_check_lm_and_get_connected_blks()
287 uint32_t enc_id, in _dpu_rm_reserve_lms() argument
311 enc_id, i, &pp_idx[lm_count], in _dpu_rm_reserve_lms()
330 global_state, enc_id, j, in _dpu_rm_reserve_lms()
347 global_state->mixer_to_enc_id[lm_idx[i]] = enc_id; in _dpu_rm_reserve_lms()
348 global_state->pingpong_to_enc_id[pp_idx[i]] = enc_id; in _dpu_rm_reserve_lms()
350 reqs->topology.num_dspp ? enc_id : 0; in _dpu_rm_reserve_lms()
352 trace_dpu_rm_reserve_lms(lm_idx[i] + LM_0, enc_id, in _dpu_rm_reserve_lms()
362 uint32_t enc_id, in _dpu_rm_reserve_ctls() argument
381 if (reserved_by_other(global_state->ctl_to_enc_id, j, enc_id)) in _dpu_rm_reserve_ctls()
405 global_state->ctl_to_enc_id[ctl_idx[i]] = enc_id; in _dpu_rm_reserve_ctls()
406 trace_dpu_rm_reserve_ctls(i + CTL_0, enc_id); in _dpu_rm_reserve_ctls()
414 uint32_t enc_id) in _dpu_rm_pingpong_next_index() argument
419 if (global_state->pingpong_to_enc_id[i] == enc_id) in _dpu_rm_pingpong_next_index()
440 uint32_t enc_id, in _dpu_rm_dsc_alloc() argument
453 if (reserved_by_other(global_state->dsc_to_enc_id, dsc_idx, enc_id)) in _dpu_rm_dsc_alloc()
456 pp_idx = _dpu_rm_pingpong_next_index(global_state, pp_idx, enc_id); in _dpu_rm_dsc_alloc()
464 global_state->dsc_to_enc_id[dsc_idx] = enc_id; in _dpu_rm_dsc_alloc()
480 uint32_t enc_id, in _dpu_rm_dsc_alloc_pair() argument
495 if (reserved_by_other(global_state->dsc_to_enc_id, dsc_idx, enc_id) || in _dpu_rm_dsc_alloc_pair()
496 reserved_by_other(global_state->dsc_to_enc_id, dsc_idx + 1, enc_id)) in _dpu_rm_dsc_alloc_pair()
499 pp_idx = _dpu_rm_pingpong_next_index(global_state, pp_idx, enc_id); in _dpu_rm_dsc_alloc_pair()
509 pp_idx = _dpu_rm_pingpong_next_index(global_state, pp_idx + 1, enc_id); in _dpu_rm_dsc_alloc_pair()
519 global_state->dsc_to_enc_id[dsc_idx] = enc_id; in _dpu_rm_dsc_alloc_pair()
520 global_state->dsc_to_enc_id[dsc_idx + 1] = enc_id; in _dpu_rm_dsc_alloc_pair()
539 uint32_t enc_id = enc->base.id; in _dpu_rm_reserve_dsc() local
556 return _dpu_rm_dsc_alloc_pair(rm, global_state, enc_id, top); in _dpu_rm_reserve_dsc()
558 return _dpu_rm_dsc_alloc(rm, global_state, enc_id, top); in _dpu_rm_reserve_dsc()
634 uint32_t enc_id) in _dpu_rm_clear_mapping() argument
639 if (res_mapping[i] == enc_id) in _dpu_rm_clear_mapping()
698 struct dpu_global_state *global_state, uint32_t enc_id, in dpu_rm_get_assigned_resources() argument
743 if (hw_to_enc_id[i] != enc_id) in dpu_rm_get_assigned_resources()
748 blks_size, enc_id); in dpu_rm_get_assigned_resources()
753 type, enc_id); in dpu_rm_get_assigned_resources()