Home
last modified time | relevance | path

Searched refs:dpu_kms (Results 1 – 20 of 20) sorted by relevance

/Linux-v6.6/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_kms.c55 static void _dpu_kms_mmu_destroy(struct dpu_kms *dpu_kms);
62 struct dpu_kms *kms = s->private; in _dpu_danger_signal_status()
111 struct dpu_kms *kms = file->private_data; in _dpu_plane_danger_read()
120 static void _dpu_plane_set_danger_state(struct dpu_kms *kms, bool enable) in _dpu_plane_set_danger_state()
146 struct dpu_kms *kms = file->private_data; in _dpu_plane_danger_write()
175 static void dpu_debugfs_danger_init(struct dpu_kms *dpu_kms, in dpu_debugfs_danger_init() argument
181 dpu_kms, &dpu_debugfs_danger_stats_fops); in dpu_debugfs_danger_init()
183 dpu_kms, &dpu_debugfs_safe_stats_fops); in dpu_debugfs_danger_init()
185 dpu_kms, &dpu_plane_danger_enable); in dpu_debugfs_danger_init()
195 struct dpu_kms *dpu_kms; member
[all …]
Ddpu_hw_interrupts.c208 static void dpu_core_irq_callback_handler(struct dpu_kms *dpu_kms, int irq_idx) in dpu_core_irq_callback_handler() argument
212 if (!dpu_kms->hw_intr->irq_tbl[irq_idx].cb) in dpu_core_irq_callback_handler()
215 atomic_inc(&dpu_kms->hw_intr->irq_tbl[irq_idx].count); in dpu_core_irq_callback_handler()
220 dpu_kms->hw_intr->irq_tbl[irq_idx].cb(dpu_kms->hw_intr->irq_tbl[irq_idx].arg, irq_idx); in dpu_core_irq_callback_handler()
225 struct dpu_kms *dpu_kms = to_dpu_kms(kms); in dpu_core_irq() local
226 struct dpu_hw_intr *intr = dpu_kms->hw_intr; in dpu_core_irq()
265 dpu_core_irq_callback_handler(dpu_kms, irq_idx); in dpu_core_irq()
386 static void dpu_clear_irqs(struct dpu_kms *dpu_kms) in dpu_clear_irqs() argument
388 struct dpu_hw_intr *intr = dpu_kms->hw_intr; in dpu_clear_irqs()
404 static void dpu_disable_all_irqs(struct dpu_kms *dpu_kms) in dpu_disable_all_irqs() argument
[all …]
Ddpu_vbif.h50 void dpu_vbif_set_ot_limit(struct dpu_kms *dpu_kms,
58 void dpu_vbif_set_qos_remap(struct dpu_kms *dpu_kms,
65 void dpu_vbif_clear_errors(struct dpu_kms *dpu_kms);
71 void dpu_vbif_init_memtypes(struct dpu_kms *dpu_kms);
73 void dpu_debugfs_vbif_init(struct dpu_kms *dpu_kms, struct dentry *debugfs_root);
Ddpu_core_irq.h39 struct dpu_kms *dpu_kms,
54 struct dpu_kms *dpu_kms,
69 struct dpu_kms *dpu_kms,
77 void dpu_debugfs_core_irq_init(struct dpu_kms *dpu_kms,
Ddpu_vbif.c14 static struct dpu_hw_vbif *dpu_get_vbif(struct dpu_kms *dpu_kms, enum dpu_vbif vbif_idx) in dpu_get_vbif() argument
16 if (vbif_idx < ARRAY_SIZE(dpu_kms->hw_vbif)) in dpu_get_vbif()
17 return dpu_kms->hw_vbif[vbif_idx]; in dpu_get_vbif()
168 void dpu_vbif_set_ot_limit(struct dpu_kms *dpu_kms, in dpu_vbif_set_ot_limit() argument
177 mdp = dpu_kms->hw_mdp; in dpu_vbif_set_ot_limit()
179 vbif = dpu_get_vbif(dpu_kms, params->vbif_idx); in dpu_vbif_set_ot_limit()
219 void dpu_vbif_set_qos_remap(struct dpu_kms *dpu_kms, in dpu_vbif_set_qos_remap() argument
228 if (!params || !dpu_kms->hw_mdp) { in dpu_vbif_set_qos_remap()
232 mdp = dpu_kms->hw_mdp; in dpu_vbif_set_qos_remap()
234 vbif = dpu_get_vbif(dpu_kms, params->vbif_idx); in dpu_vbif_set_qos_remap()
[all …]
Ddpu_kms.h66 struct dpu_kms { struct
124 #define to_dpu_kms(x) container_of(x, struct dpu_kms, base) argument
142 *dpu_kms_get_existing_global_state(struct dpu_kms *dpu_kms);
173 uint32_t offset, uint32_t length, struct dpu_kms *dpu_kms);
185 void *dpu_debugfs_get_root(struct dpu_kms *dpu_kms);
207 unsigned long dpu_kms_get_clk_rate(struct dpu_kms *dpu_kms, char *clock_name);
Ddpu_core_perf.h91 struct dpu_kms;
98 int dpu_core_perf_debugfs_init(struct dpu_kms *dpu_kms, struct dentry *parent);
Ddpu_encoder.c388 irq_status = dpu_core_irq_read(phys_enc->dpu_kms, irq); in dpu_encoder_helper_wait_for_irq()
556 struct dpu_kms *dpu_kms, in dpu_encoder_get_topology() argument
581 else if (!dpu_kms->catalog->caps->has_3d_merge) in dpu_encoder_get_topology()
613 struct dpu_kms *dpu_kms; in dpu_encoder_virt_atomic_check() local
631 dpu_kms = to_dpu_kms(priv->kms); in dpu_encoder_virt_atomic_check()
655 topology = dpu_encoder_get_topology(dpu_enc, dpu_kms, adj_mode, crtc_state, dsc); in dpu_encoder_virt_atomic_check()
665 ret = dpu_rm_reserve(&dpu_kms->rm, global_state, in dpu_encoder_virt_atomic_check()
679 struct dpu_kms *dpu_kms; in _dpu_encoder_update_vsync_source() local
700 dpu_kms = to_dpu_kms(priv->kms); in _dpu_encoder_update_vsync_source()
701 hw_mdptop = dpu_kms->hw_mdp; in _dpu_encoder_update_vsync_source()
[all …]
Ddpu_encoder_phys_cmd.c203 dpu_core_irq_unregister_callback(phys_enc->dpu_kms, in _dpu_encoder_phys_cmd_handle_ppdone_timeout()
270 ret = dpu_core_irq_register_callback(phys_enc->dpu_kms, in dpu_encoder_phys_cmd_control_vblank_irq()
275 ret = dpu_core_irq_unregister_callback(phys_enc->dpu_kms, in dpu_encoder_phys_cmd_control_vblank_irq()
297 dpu_core_irq_register_callback(phys_enc->dpu_kms, in dpu_encoder_phys_cmd_irq_control()
301 dpu_core_irq_register_callback(phys_enc->dpu_kms, in dpu_encoder_phys_cmd_irq_control()
308 dpu_core_irq_register_callback(phys_enc->dpu_kms, in dpu_encoder_phys_cmd_irq_control()
314 dpu_core_irq_unregister_callback(phys_enc->dpu_kms, in dpu_encoder_phys_cmd_irq_control()
317 dpu_core_irq_unregister_callback(phys_enc->dpu_kms, in dpu_encoder_phys_cmd_irq_control()
320 dpu_core_irq_unregister_callback(phys_enc->dpu_kms, in dpu_encoder_phys_cmd_irq_control()
334 struct dpu_kms *dpu_kms; in dpu_encoder_phys_cmd_tearcheck_config() local
[all …]
Ddpu_core_perf.c102 static struct dpu_kms *_dpu_crtc_get_kms(struct drm_crtc *crtc) in _dpu_crtc_get_kms()
151 struct dpu_kms *kms; in dpu_core_perf_crtc_check()
207 static int _dpu_core_perf_crtc_update_bus(struct dpu_kms *kms, in _dpu_core_perf_crtc_update_bus()
258 struct dpu_kms *kms; in dpu_core_perf_crtc_release_bw()
280 static u64 _dpu_core_perf_get_core_clk_rate(struct dpu_kms *kms) in _dpu_core_perf_get_core_clk_rate()
312 struct dpu_kms *kms; in dpu_core_perf_crtc_update()
449 int dpu_core_perf_debugfs_init(struct dpu_kms *dpu_kms, struct dentry *parent) in dpu_core_perf_debugfs_init() argument
451 struct dpu_core_perf *perf = &dpu_kms->perf; in dpu_core_perf_debugfs_init()
Ddpu_encoder_phys_wb.c58 dpu_vbif_set_ot_limit(phys_enc->dpu_kms, &ot_params); in dpu_encoder_phys_wb_set_ot_limit()
95 dpu_vbif_set_qos_remap(phys_enc->dpu_kms, &qos_params); in dpu_encoder_phys_wb_set_qos_remap()
109 if (!phys_enc || !phys_enc->dpu_kms || !phys_enc->dpu_kms->catalog) { in dpu_encoder_phys_wb_set_qos()
114 catalog = phys_enc->dpu_kms->catalog; in dpu_encoder_phys_wb_set_qos()
144 if (!phys_enc || !phys_enc->dpu_kms || !phys_enc->dpu_kms->catalog) { in dpu_encoder_phys_wb_setup_fb()
165 const struct dpu_perf_cfg *perf = phys_enc->dpu_kms->catalog->perf; in dpu_encoder_phys_wb_setup_fb()
396 dpu_core_irq_register_callback(phys->dpu_kms, in dpu_encoder_phys_wb_irq_ctrl()
400 dpu_core_irq_unregister_callback(phys->dpu_kms, phys->irq[INTR_IDX_WB_DONE]); in dpu_encoder_phys_wb_irq_ctrl()
584 aspace = phys_enc->dpu_kms->base.aspace; in dpu_encoder_phys_wb_prepare_wb_job()
638 aspace = phys_enc->dpu_kms->base.aspace; in dpu_encoder_phys_wb_cleanup_wb_job()
Ddpu_writeback.c14 struct dpu_kms *dpu_kms = to_dpu_kms(priv->kms); in dpu_wb_conn_get_modes() local
23 return drm_add_modes_noedid(connector, dpu_kms->catalog->caps->max_mixer_width, in dpu_wb_conn_get_modes()
Ddpu_encoder_phys.h184 struct dpu_kms *dpu_kms; member
259 struct dpu_kms *dpu_kms; member
Ddpu_plane.c99 static struct dpu_kms *_dpu_plane_get_kms(struct drm_plane *plane) in _dpu_plane_get_kms()
350 struct dpu_kms *dpu_kms = _dpu_plane_get_kms(plane); in _dpu_plane_set_ot_limit() local
363 dpu_vbif_set_ot_limit(dpu_kms, &ot_params); in _dpu_plane_set_ot_limit()
376 struct dpu_kms *dpu_kms = _dpu_plane_get_kms(plane); in _dpu_plane_set_qos_remap() local
391 dpu_vbif_set_qos_remap(dpu_kms, &qos_params); in _dpu_plane_set_qos_remap()
650 struct dpu_kms *kms = _dpu_plane_get_kms(&pdpu->base); in dpu_plane_prepare_fb()
740 struct dpu_kms *kms = _dpu_plane_get_kms(&pdpu->base); in dpu_plane_atomic_check_pipe()
1098 struct dpu_kms *kms = _dpu_plane_get_kms(&pdpu->base); in dpu_plane_sspp_atomic_update()
1307 struct dpu_kms *dpu_kms = _dpu_plane_get_kms(plane); in dpu_plane_reset() local
1333 pstate->pipe.sspp = dpu_rm_get_sspp(&dpu_kms->rm, pdpu->pipe); in dpu_plane_reset()
[all …]
Ddpu_hw_sspp.h330 struct dpu_kms;
348 int _dpu_hw_sspp_init_debugfs(struct dpu_hw_sspp *hw_pipe, struct dpu_kms *kms,
Ddpu_encoder_phys_vid.c383 ret = dpu_core_irq_register_callback(phys_enc->dpu_kms, in dpu_encoder_phys_vid_control_vblank_irq()
388 ret = dpu_core_irq_unregister_callback(phys_enc->dpu_kms, in dpu_encoder_phys_vid_control_vblank_irq()
516 dpu_core_irq_unregister_callback(phys_enc->dpu_kms, in dpu_encoder_phys_vid_prepare_for_kickoff()
628 dpu_core_irq_register_callback(phys_enc->dpu_kms, in dpu_encoder_phys_vid_irq_control()
634 dpu_core_irq_unregister_callback(phys_enc->dpu_kms, in dpu_encoder_phys_vid_irq_control()
Ddpu_crtc.c47 static struct dpu_kms *_dpu_crtc_get_kms(struct drm_crtc *crtc) in _dpu_crtc_get_kms()
946 struct dpu_kms *dpu_kms = _dpu_crtc_get_kms(crtc); in dpu_crtc_commit_kickoff() local
982 dpu_vbif_clear_errors(dpu_kms); in dpu_crtc_commit_kickoff()
1467 struct dpu_kms *dpu_kms = to_dpu_kms(priv->kms); in dpu_crtc_init() local
1499 if (dpu_kms->catalog->dspp_count) in dpu_crtc_init()
Ddpu_crtc.h284 int dpu_crtc_register_custom_event(struct dpu_kms *kms,
Ddpu_hw_sspp.c618 int _dpu_hw_sspp_init_debugfs(struct dpu_hw_sspp *hw_pipe, struct dpu_kms *kms, in _dpu_hw_sspp_init_debugfs()
/Linux-v6.6/drivers/gpu/drm/msm/
DMakefile80 disp/dpu1/dpu_kms.o \