/Linux-v5.4/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_core_irq.c | 22 struct dpu_kms *dpu_kms = arg; in dpu_core_irq_callback_handler() local 23 struct dpu_irq *irq_obj = &dpu_kms->irq_obj; in dpu_core_irq_callback_handler() 31 atomic_read(&dpu_kms->irq_obj.enable_counts[irq_idx])); in dpu_core_irq_callback_handler() 39 spin_lock_irqsave(&dpu_kms->irq_obj.cb_lock, irq_flags); in dpu_core_irq_callback_handler() 43 spin_unlock_irqrestore(&dpu_kms->irq_obj.cb_lock, irq_flags); in dpu_core_irq_callback_handler() 50 dpu_kms->hw_intr->ops.clear_intr_status_nolock( in dpu_core_irq_callback_handler() 51 dpu_kms->hw_intr, in dpu_core_irq_callback_handler() 55 int dpu_core_irq_idx_lookup(struct dpu_kms *dpu_kms, in dpu_core_irq_idx_lookup() argument 58 if (!dpu_kms || !dpu_kms->hw_intr || in dpu_core_irq_idx_lookup() 59 !dpu_kms->hw_intr->ops.irq_idx_lookup) in dpu_core_irq_idx_lookup() [all …]
|
D | dpu_kms.c | 50 static void _dpu_kms_mmu_destroy(struct dpu_kms *dpu_kms); 70 struct dpu_kms *kms = (struct dpu_kms *)s->private; in _dpu_danger_signal_status() 132 static void dpu_debugfs_danger_init(struct dpu_kms *dpu_kms, in dpu_debugfs_danger_init() argument 138 dpu_kms, &dpu_debugfs_danger_stats_fops); in dpu_debugfs_danger_init() 140 dpu_kms, &dpu_debugfs_safe_stats_fops); in dpu_debugfs_danger_init() 146 struct dpu_kms *dpu_kms = regset->dpu_kms; in _dpu_debugfs_show_regset32() local 152 if (!dpu_kms->mmio) in _dpu_debugfs_show_regset32() 155 dev = dpu_kms->dev; in _dpu_debugfs_show_regset32() 163 base = dpu_kms->mmio + regset->offset; in _dpu_debugfs_show_regset32() 172 pm_runtime_get_sync(&dpu_kms->pdev->dev); in _dpu_debugfs_show_regset32() [all …]
|
D | dpu_core_irq.h | 16 void dpu_core_irq_preinstall(struct dpu_kms *dpu_kms); 23 void dpu_core_irq_uninstall(struct dpu_kms *dpu_kms); 30 irqreturn_t dpu_core_irq(struct dpu_kms *dpu_kms); 41 struct dpu_kms *dpu_kms, 56 struct dpu_kms *dpu_kms, 71 struct dpu_kms *dpu_kms, 83 struct dpu_kms *dpu_kms, 101 struct dpu_kms *dpu_kms, 119 struct dpu_kms *dpu_kms, 128 void dpu_debugfs_core_irq_init(struct dpu_kms *dpu_kms,
|
D | dpu_vbif.h | 50 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);
|
D | dpu_vbif.c | 148 void dpu_vbif_set_ot_limit(struct dpu_kms *dpu_kms, in dpu_vbif_set_ot_limit() argument 157 if (!dpu_kms) { in dpu_vbif_set_ot_limit() 161 mdp = dpu_kms->hw_mdp; in dpu_vbif_set_ot_limit() 163 for (i = 0; i < ARRAY_SIZE(dpu_kms->hw_vbif); i++) { in dpu_vbif_set_ot_limit() 164 if (dpu_kms->hw_vbif[i] && in dpu_vbif_set_ot_limit() 165 dpu_kms->hw_vbif[i]->idx == params->vbif_idx) in dpu_vbif_set_ot_limit() 166 vbif = dpu_kms->hw_vbif[i]; in dpu_vbif_set_ot_limit() 208 void dpu_vbif_set_qos_remap(struct dpu_kms *dpu_kms, in dpu_vbif_set_qos_remap() argument 217 if (!dpu_kms || !params || !dpu_kms->hw_mdp) { in dpu_vbif_set_qos_remap() 221 mdp = dpu_kms->hw_mdp; in dpu_vbif_set_qos_remap() [all …]
|
D | dpu_kms.h | 95 struct dpu_kms { struct 140 #define to_dpu_kms(x) container_of(x, struct dpu_kms, base) argument 165 struct dpu_kms *dpu_kms; member 178 uint32_t offset, uint32_t length, struct dpu_kms *dpu_kms); 213 void *dpu_debugfs_get_root(struct dpu_kms *dpu_kms); 237 u64 dpu_kms_get_clk_rate(struct dpu_kms *dpu_kms, char *clock_name);
|
D | dpu_encoder.c | 270 irq_status = dpu_core_irq_read(phys_enc->dpu_kms, in dpu_encoder_helper_wait_for_irq() 324 irq->irq_idx = dpu_core_irq_idx_lookup(phys_enc->dpu_kms, in dpu_encoder_helper_register_irq() 333 ret = dpu_core_irq_register_callback(phys_enc->dpu_kms, irq->irq_idx, in dpu_encoder_helper_register_irq() 343 ret = dpu_core_irq_enable(phys_enc->dpu_kms, &irq->irq_idx, 1); in dpu_encoder_helper_register_irq() 348 dpu_core_irq_unregister_callback(phys_enc->dpu_kms, in dpu_encoder_helper_register_irq() 380 ret = dpu_core_irq_disable(phys_enc->dpu_kms, &irq->irq_idx, 1); in dpu_encoder_helper_unregister_irq() 387 ret = dpu_core_irq_unregister_callback(phys_enc->dpu_kms, irq->irq_idx, in dpu_encoder_helper_unregister_irq() 527 struct dpu_kms *dpu_kms, in dpu_encoder_get_topology() argument 551 struct dpu_kms *dpu_kms; in dpu_encoder_virt_atomic_check() local 568 dpu_kms = to_dpu_kms(priv->kms); in dpu_encoder_virt_atomic_check() [all …]
|
D | dpu_core_perf.c | 32 static struct dpu_kms *_dpu_crtc_get_kms(struct drm_crtc *crtc) in _dpu_crtc_get_kms() 66 static void _dpu_core_perf_calc_crtc(struct dpu_kms *kms, in _dpu_core_perf_calc_crtc() 111 struct dpu_kms *kms; in dpu_core_perf_crtc_check() 181 static int _dpu_core_perf_crtc_update_bus(struct dpu_kms *kms, in _dpu_core_perf_crtc_update_bus() 219 struct dpu_kms *kms; in dpu_core_perf_crtc_release_bw() 247 static int _dpu_core_perf_set_core_clk_rate(struct dpu_kms *kms, u64 rate) in _dpu_core_perf_set_core_clk_rate() 258 static u64 _dpu_core_perf_get_core_clk_rate(struct dpu_kms *kms) in _dpu_core_perf_get_core_clk_rate() 291 struct dpu_kms *kms; in dpu_core_perf_crtc_update() 442 int dpu_core_perf_debugfs_init(struct dpu_kms *dpu_kms, struct dentry *parent) in dpu_core_perf_debugfs_init() argument 444 struct dpu_core_perf *perf = &dpu_kms->perf; in dpu_core_perf_debugfs_init()
|
D | dpu_core_perf.h | 125 struct dpu_kms; 132 int dpu_core_perf_debugfs_init(struct dpu_kms *dpu_kms, struct dentry *parent);
|
D | dpu_encoder_phys.h | 224 struct dpu_kms *dpu_kms; member 277 struct dpu_kms *dpu_kms; member
|
D | dpu_encoder_phys_cmd.c | 359 struct dpu_kms *dpu_kms; in dpu_encoder_phys_cmd_tearcheck_config() local 375 dpu_kms = phys_enc->dpu_kms; in dpu_encoder_phys_cmd_tearcheck_config() 376 if (!dpu_kms || !dpu_kms->dev || !dpu_kms->dev->dev_private) { in dpu_encoder_phys_cmd_tearcheck_config() 380 priv = dpu_kms->dev->dev_private; in dpu_encoder_phys_cmd_tearcheck_config() 391 vsync_hz = dpu_kms_get_clk_rate(dpu_kms, "vsync"); in dpu_encoder_phys_cmd_tearcheck_config() 780 phys_enc->hw_mdptop = p->dpu_kms->hw_mdp; in dpu_encoder_phys_cmd_init() 786 phys_enc->dpu_kms = p->dpu_kms; in dpu_encoder_phys_cmd_init()
|
D | dpu_plane.c | 122 static struct dpu_kms *_dpu_plane_get_kms(struct drm_plane *plane) in _dpu_plane_get_kms() 374 struct dpu_kms *dpu_kms = _dpu_plane_get_kms(plane); in _dpu_plane_set_ot_limit() local 387 dpu_vbif_set_ot_limit(dpu_kms, &ot_params); in _dpu_plane_set_ot_limit() 398 struct dpu_kms *dpu_kms = _dpu_plane_get_kms(plane); in _dpu_plane_set_qos_remap() local 413 dpu_vbif_set_qos_remap(dpu_kms, &qos_params); in _dpu_plane_set_qos_remap() 422 struct dpu_kms *kms = _dpu_plane_get_kms(&pdpu->base); in _dpu_plane_set_scanout() 769 struct dpu_kms *kms = _dpu_plane_get_kms(&pdpu->base); in dpu_plane_prepare_fb() 1238 struct dpu_kms *dpu_kms = _dpu_plane_get_kms(plane); in dpu_plane_danger_signal_ctrl() local 1243 pm_runtime_get_sync(&dpu_kms->pdev->dev); in dpu_plane_danger_signal_ctrl() 1245 pm_runtime_put_sync(&dpu_kms->pdev->dev); in dpu_plane_danger_signal_ctrl() [all …]
|
D | dpu_encoder_phys_vid.c | 377 if (!phys_enc || !phys_enc->dpu_kms) { in dpu_encoder_phys_vid_mode_set() 718 phys_enc->hw_mdptop = p->dpu_kms->hw_mdp; in dpu_encoder_phys_vid_init() 726 phys_enc->dpu_kms = p->dpu_kms; in dpu_encoder_phys_vid_init()
|
D | dpu_crtc.h | 267 int dpu_crtc_register_custom_event(struct dpu_kms *kms,
|
D | dpu_crtc.c | 43 static struct dpu_kms *_dpu_crtc_get_kms(struct drm_crtc *crtc) in _dpu_crtc_get_kms() 609 struct dpu_kms *dpu_kms = _dpu_crtc_get_kms(crtc); in dpu_crtc_commit_kickoff() local 638 dpu_vbif_clear_errors(dpu_kms); in dpu_crtc_commit_kickoff() 1292 struct dpu_kms *kms = NULL; in dpu_crtc_init()
|
/Linux-v5.4/drivers/gpu/drm/msm/ |
D | Makefile | 72 disp/dpu1/dpu_kms.o \
|