Home
last modified time | relevance | path

Searched refs:global_state (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.10/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_rm.c251 struct dpu_global_state *global_state, in _dpu_rm_check_lm_and_get_connected_blks() argument
259 if (reserved_by_other(global_state->mixer_to_enc_id, lm_idx, enc_id)) { in _dpu_rm_check_lm_and_get_connected_blks()
271 if (reserved_by_other(global_state->pingpong_to_enc_id, idx, enc_id)) { in _dpu_rm_check_lm_and_get_connected_blks()
287 if (reserved_by_other(global_state->dspp_to_enc_id, idx, enc_id)) { in _dpu_rm_check_lm_and_get_connected_blks()
298 struct dpu_global_state *global_state, in _dpu_rm_reserve_lms() argument
322 if (!_dpu_rm_check_lm_and_get_connected_blks(rm, global_state, in _dpu_rm_reserve_lms()
343 global_state, enc_id, j, in _dpu_rm_reserve_lms()
360 global_state->mixer_to_enc_id[lm_idx[i]] = enc_id; in _dpu_rm_reserve_lms()
361 global_state->pingpong_to_enc_id[pp_idx[i]] = enc_id; in _dpu_rm_reserve_lms()
362 global_state->dspp_to_enc_id[dspp_idx[i]] = in _dpu_rm_reserve_lms()
[all …]
Ddpu_rm.h69 struct dpu_global_state *global_state,
81 void dpu_rm_release(struct dpu_global_state *global_state,
88 struct dpu_global_state *global_state, uint32_t enc_id,
Ddpu_encoder.c585 struct dpu_global_state *global_state; in dpu_encoder_virt_atomic_check() local
602 global_state = dpu_kms_get_global_state(crtc_state->state); in dpu_encoder_virt_atomic_check()
603 if (IS_ERR(global_state)) in dpu_encoder_virt_atomic_check()
604 return PTR_ERR(global_state); in dpu_encoder_virt_atomic_check()
635 dpu_rm_release(global_state, drm_enc); in dpu_encoder_virt_atomic_check()
638 ret = dpu_rm_reserve(&dpu_kms->rm, global_state, in dpu_encoder_virt_atomic_check()
975 struct dpu_global_state *global_state; in dpu_encoder_virt_mode_set() local
996 global_state = dpu_kms_get_existing_global_state(dpu_kms); in dpu_encoder_virt_mode_set()
997 if (IS_ERR_OR_NULL(global_state)) { in dpu_encoder_virt_mode_set()
1026 num_pp = dpu_rm_get_assigned_resources(&dpu_kms->rm, global_state, in dpu_encoder_virt_mode_set()
[all …]
Ddpu_kms.h120 struct drm_private_obj global_state; member
Ddpu_kms.c219 return to_dpu_global_state(dpu_kms->global_state.state); in dpu_kms_get_existing_global_state()
238 &dpu_kms->global_state); in dpu_kms_get_global_state()
282 drm_atomic_private_obj_init(dpu_kms->dev, &dpu_kms->global_state, in dpu_kms_global_obj_init()
/Linux-v5.10/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_mixer.c44 struct mdp5_global_state *global_state = mdp5_get_global_state(s); in mdp5_mixer_assign() local
48 if (IS_ERR(global_state)) in mdp5_mixer_assign()
49 return PTR_ERR(global_state); in mdp5_mixer_assign()
51 new_state = &global_state->hwmixer; in mdp5_mixer_assign()
121 struct mdp5_global_state *global_state = mdp5_get_global_state(s); in mdp5_mixer_release() local
122 struct mdp5_hw_mixer_state *new_state = &global_state->hwmixer; in mdp5_mixer_release()
Dmdp5_smp.c333 struct mdp5_global_state *global_state; in mdp5_smp_dump() local
342 global_state = mdp5_get_existing_global_state(mdp5_kms); in mdp5_smp_dump()
345 hwpstate = &global_state->hwpipe; in mdp5_smp_dump()
346 state = &global_state->smp; in mdp5_smp_dump()
381 struct mdp5_global_state *global_state; in mdp5_smp_init() local
395 global_state = mdp5_get_existing_global_state(mdp5_kms); in mdp5_smp_init()
396 state = &global_state->smp; in mdp5_smp_init()
Dmdp5_kms.c160 struct mdp5_global_state *global_state; in mdp5_prepare_commit() local
162 global_state = mdp5_get_existing_global_state(mdp5_kms); in mdp5_prepare_commit()
165 mdp5_smp_prepare_commit(mdp5_kms->smp, &global_state->smp); in mdp5_prepare_commit()
185 struct mdp5_global_state *global_state; in mdp5_complete_commit() local
187 global_state = mdp5_get_existing_global_state(mdp5_kms); in mdp5_complete_commit()
190 mdp5_smp_complete_commit(mdp5_kms->smp, &global_state->smp); in mdp5_complete_commit()