/linux-6.3-rc2/drivers/gpu/drm/msm/ |
A D | msm_atomic.c | 77 kms->funcs->enable_commit(kms); in msm_atomic_async_commit() 85 kms->funcs->flush_commit(kms, crtc_mask); in msm_atomic_async_commit() 91 kms->funcs->wait_flush(kms, crtc_mask); in msm_atomic_async_commit() 98 kms->funcs->disable_commit(kms); in msm_atomic_async_commit() 115 timer->kms = kms; in msm_atomic_init_pending_timer() 186 struct msm_kms *kms = priv->kms; in msm_atomic_commit_tail() local 194 kms->funcs->enable_commit(kms); in msm_atomic_commit_tail() 202 kms->funcs->wait_flush(kms, crtc_mask); in msm_atomic_commit_tail() 209 kms->funcs->prepare_commit(kms, state); in msm_atomic_commit_tail() 241 kms->funcs->disable_commit(kms); in msm_atomic_commit_tail() [all …]
|
A D | msm_kms.h | 25 int (*hw_init)(struct msm_kms *kms); 27 void (*irq_preinstall)(struct msm_kms *kms); 28 int (*irq_postinstall)(struct msm_kms *kms); 29 void (*irq_uninstall)(struct msm_kms *kms); 30 irqreturn_t (*irq)(struct msm_kms *kms); 59 void (*enable_commit)(struct msm_kms *kms); 121 void (*destroy)(struct msm_kms *kms); 141 struct msm_kms *kms; member 176 mutex_init(&kms->commit_lock[i]); in msm_kms_init() 178 kms->funcs = funcs; in msm_kms_init() [all …]
|
A D | msm_drv.c | 92 struct msm_kms *kms = priv->kms; in msm_irq() local 96 return kms->funcs->irq(kms); in msm_irq() 102 struct msm_kms *kms = priv->kms; in msm_irq_preinstall() local 106 kms->funcs->irq_preinstall(kms); in msm_irq_preinstall() 112 struct msm_kms *kms = priv->kms; in msm_irq_postinstall() local 125 struct msm_kms *kms = priv->kms; in msm_irq_install() local 151 struct msm_kms *kms = priv->kms; in msm_irq_uninstall() local 156 kms->funcs->irq_uninstall(kms); in msm_irq_uninstall() 260 if (kms && kms->funcs) in msm_drm_uninit() 261 kms->funcs->destroy(kms); in msm_drm_uninit() [all …]
|
A D | msm_debugfs.c | 150 if (!priv->kms) in msm_kms_open() 153 ret = mutex_lock_interruptible(&priv->kms->dump_mutex); in msm_kms_open() 157 state = msm_disp_snapshot_state_sync(priv->kms); in msm_kms_open() 159 mutex_unlock(&priv->kms->dump_mutex); in msm_kms_open() 340 if (priv->kms && priv->kms->funcs->debugfs_init) in msm_debugfs_init() 341 priv->kms->funcs->debugfs_init(priv->kms, minor); in msm_debugfs_init()
|
/linux-6.3-rc2/drivers/gpu/drm/msm/disp/ |
A D | msm_disp_snapshot.c | 60 mutex_lock(&kms->dump_mutex); in _msm_disp_snapshot_work() 84 struct msm_kms *kms; in msm_disp_snapshot_state() local 92 kms = priv->kms; in msm_disp_snapshot_state() 94 kthread_queue_work(kms->dump_worker, &kms->dump_work); in msm_disp_snapshot_state() 100 struct msm_kms *kms; in msm_disp_snapshot_init() local 108 kms = priv->kms; in msm_disp_snapshot_init() 110 mutex_init(&kms->dump_mutex); in msm_disp_snapshot_init() 123 struct msm_kms *kms; in msm_disp_snapshot_destroy() local 132 if (!priv->kms) in msm_disp_snapshot_destroy() 135 kms = priv->kms; in msm_disp_snapshot_destroy() [all …]
|
A D | msm_disp_snapshot_util.c | 125 struct msm_kms *kms; in msm_disp_snapshot_capture_state() local 130 kms = priv->kms; in msm_disp_snapshot_capture_state() 146 if (kms->funcs->snapshot) in msm_disp_snapshot_capture_state() 147 kms->funcs->snapshot(disp_state, kms); in msm_disp_snapshot_capture_state()
|
/linux-6.3-rc2/drivers/gpu/drm/imx/dcss/ |
A D | dcss-kms.c | 48 drm_mode_config_init(&kms->base); in dcss_kms_mode_config_init() 99 if (IS_ERR(kms->connector)) { in dcss_kms_bridge_connector_init() 101 return PTR_ERR(kms->connector); in dcss_kms_bridge_connector_init() 111 struct dcss_kms_dev *kms; in dcss_kms_attach() local 118 if (IS_ERR(kms)) in dcss_kms_attach() 119 return kms; in dcss_kms_attach() 121 drm = &kms->base; in dcss_kms_attach() 122 crtc = &kms->crtc; in dcss_kms_attach() 126 dcss_kms_mode_config_init(kms); in dcss_kms_attach() 150 return kms; in dcss_kms_attach() [all …]
|
A D | dcss-drv.c | 18 struct dcss_kms_dev *kms; member 32 return mdrv ? &mdrv->kms->base : NULL; in dcss_drv_dev_to_drm() 66 mdrv->kms = dcss_kms_attach(mdrv->dcss); in dcss_drv_platform_probe() 67 if (IS_ERR(mdrv->kms)) { in dcss_drv_platform_probe() 68 err = PTR_ERR(mdrv->kms); in dcss_drv_platform_probe() 86 dcss_kms_detach(mdrv->kms); in dcss_drv_platform_remove()
|
/linux-6.3-rc2/drivers/gpu/drm/msm/disp/dpu1/ |
A D | dpu_core_perf.c | 106 return to_dpu_kms(priv->kms); in _dpu_crtc_get_kms() 114 if (!kms || !kms->catalog || !crtc || !state || !perf) { in _dpu_core_perf_calc_crtc() 149 struct dpu_kms *kms; in dpu_core_perf_crtc_check() local 156 kms = _dpu_crtc_get_kms(crtc); in dpu_core_perf_crtc_check() 157 if (!kms->catalog) { in dpu_core_perf_crtc_check() 237 if (!kms->num_paths) in _dpu_core_perf_crtc_update_bus() 260 struct dpu_kms *kms; in dpu_core_perf_crtc_release_bw() local 267 kms = _dpu_crtc_get_kms(crtc); in dpu_core_perf_crtc_release_bw() 268 if (!kms->catalog) { in dpu_core_perf_crtc_release_bw() 319 struct dpu_kms *kms; in dpu_core_perf_crtc_update() local [all …]
|
A D | dpu_kms.c | 64 if (!kms->hw_mdp) { in _dpu_danger_signal_status() 75 kms->hw_mdp->ops.get_danger_status(kms->hw_mdp, in _dpu_danger_signal_status() 80 kms->hw_mdp->ops.get_safe_status(kms->hw_mdp, in _dpu_danger_signal_status() 157 kms->has_danger_ctrl = false; in _dpu_plane_danger_write() 161 kms->has_danger_ctrl = true; in _dpu_plane_danger_write() 436 if (!kms) in dpu_kms_prepare_commit() 849 if (!kms) { in dpu_kms_destroy() 854 dpu_kms = to_dpu_kms(kms); in dpu_kms_destroy() 889 dpu_kms = to_dpu_kms(kms); in dpu_kms_mdp_snapshot() 1017 if (!kms) { in dpu_kms_hw_init() [all …]
|
A D | dpu_core_irq.h | 16 void dpu_core_irq_preinstall(struct msm_kms *kms); 23 void dpu_core_irq_uninstall(struct msm_kms *kms); 30 irqreturn_t dpu_core_irq(struct msm_kms *kms);
|
/linux-6.3-rc2/drivers/gpu/drm/arm/display/komeda/ |
A D | komeda_kms.c | 53 for (i = 0; i < kms->n_crtcs; i++) in komeda_kms_irq_handler() 76 for (i = 0; i < kms->n_crtcs; i++) { in komeda_kms_atomic_commit_hw_done() 257 drm_mode_config_init(&kms->base); in komeda_kms_mode_config_init() 259 komeda_kms_setup_crtcs(kms, mdev); in komeda_kms_mode_config_init() 273 struct komeda_kms_dev *kms; in komeda_kms_attach() local 279 if (IS_ERR(kms)) in komeda_kms_attach() 280 return kms; in komeda_kms_attach() 282 drm = &kms->base; in komeda_kms_attach() 326 return kms; in komeda_kms_attach() 334 komeda_kms_cleanup_private_objs(kms); in komeda_kms_attach() [all …]
|
A D | komeda_private_obj.c | 48 static int komeda_layer_obj_add(struct komeda_kms_dev *kms, in komeda_layer_obj_add() argument 100 drm_atomic_private_obj_init(&kms->base, in komeda_scaler_obj_add() 186 drm_atomic_private_obj_init(&kms->base, in komeda_splitter_obj_add() 229 drm_atomic_private_obj_init(&kms->base, in komeda_merger_obj_add() 375 err = komeda_pipeline_obj_add(kms, pipe); in komeda_kms_add_private_objs() 380 err = komeda_layer_obj_add(kms, pipe->layers[j]); in komeda_kms_add_private_objs() 386 err = komeda_layer_obj_add(kms, pipe->wb_layer); in komeda_kms_add_private_objs() 392 err = komeda_scaler_obj_add(kms, pipe->scalers[j]); in komeda_kms_add_private_objs() 397 err = komeda_compiz_obj_add(kms, pipe->compiz); in komeda_kms_add_private_objs() 408 err = komeda_merger_obj_add(kms, pipe->merger); in komeda_kms_add_private_objs() [all …]
|
A D | komeda_plane.c | 205 for (i = 0; i < kms->n_crtcs; i++) { in get_possible_crtcs() 206 crtc = &kms->crtcs[i]; in get_possible_crtcs() 223 for (i = 0; i < kms->n_crtcs; i++) { in komeda_set_crtc_plane_mask() 224 kcrtc = &kms->crtcs[i]; in komeda_set_crtc_plane_mask() 232 static u32 get_plane_type(struct komeda_kms_dev *kms, in get_plane_type() argument 243 struct komeda_dev *mdev = kms->base.dev_private; in komeda_plane_add() 264 err = drm_universal_plane_init(&kms->base, plane, in komeda_plane_add() 265 get_possible_crtcs(kms, c->pipeline), in komeda_plane_add() 268 get_plane_type(kms, c), in komeda_plane_add() 311 komeda_set_crtc_plane_mask(kms, c->pipeline, plane); in komeda_plane_add() [all …]
|
A D | komeda_kms.h | 173 int komeda_kms_setup_crtcs(struct komeda_kms_dev *kms, struct komeda_dev *mdev); 175 int komeda_kms_add_crtcs(struct komeda_kms_dev *kms, struct komeda_dev *mdev); 176 int komeda_kms_add_planes(struct komeda_kms_dev *kms, struct komeda_dev *mdev); 177 int komeda_kms_add_private_objs(struct komeda_kms_dev *kms, 179 int komeda_kms_add_wb_connectors(struct komeda_kms_dev *kms, 181 void komeda_kms_cleanup_private_objs(struct komeda_kms_dev *kms); 189 void komeda_kms_detach(struct komeda_kms_dev *kms);
|
A D | komeda_drv.c | 21 struct komeda_kms_dev *kms; member 38 komeda_kms_detach(mdrv->kms); in komeda_unbind() 70 mdrv->kms = komeda_kms_attach(mdrv->mdev); in komeda_bind() 71 if (IS_ERR(mdrv->kms)) { in komeda_bind() 72 err = PTR_ERR(mdrv->kms); in komeda_bind() 77 drm_fbdev_generic_setup(&mdrv->kms->base, 32); in komeda_bind() 167 res = drm_mode_config_helper_suspend(&mdrv->kms->base); in komeda_pm_suspend() 182 return drm_mode_config_helper_resume(&mdrv->kms->base); in komeda_pm_resume()
|
A D | komeda_wb_connector.c | 139 static int komeda_wb_connector_add(struct komeda_kms_dev *kms, in komeda_wb_connector_add() argument 142 struct komeda_dev *mdev = kms->base.dev_private; in komeda_wb_connector_add() 164 err = drm_writeback_connector_init(&kms->base, wb_conn, in komeda_wb_connector_add() 186 int komeda_kms_add_wb_connectors(struct komeda_kms_dev *kms, in komeda_kms_add_wb_connectors() argument 191 for (i = 0; i < kms->n_crtcs; i++) { in komeda_kms_add_wb_connectors() 192 err = komeda_wb_connector_add(kms, &kms->crtcs[i]); in komeda_kms_add_wb_connectors()
|
A D | komeda_crtc.c | 561 int komeda_kms_setup_crtcs(struct komeda_kms_dev *kms, in komeda_kms_setup_crtcs() argument 569 kms->n_crtcs = 0; in komeda_kms_setup_crtcs() 572 crtc = &kms->crtcs[kms->n_crtcs]; in komeda_kms_setup_crtcs() 584 kms->n_crtcs, master->id, str); in komeda_kms_setup_crtcs() 586 kms->n_crtcs++; in komeda_kms_setup_crtcs() 598 drm_for_each_plane(plane, &kms->base) { in get_crtc_primary() 611 static int komeda_crtc_add(struct komeda_kms_dev *kms, in komeda_crtc_add() argument 617 err = drm_crtc_init_with_planes(&kms->base, crtc, in komeda_crtc_add() 618 get_crtc_primary(kms, kcrtc), NULL, in komeda_crtc_add() 636 for (i = 0; i < kms->n_crtcs; i++) { in komeda_kms_add_crtcs() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/msm/disp/mdp4/ |
A D | mdp4_irq.c | 35 void mdp4_irq_preinstall(struct msm_kms *kms) in mdp4_irq_preinstall() argument 37 struct mdp4_kms *mdp4_kms = to_mdp4_kms(to_mdp_kms(kms)); in mdp4_irq_preinstall() 44 int mdp4_irq_postinstall(struct msm_kms *kms) in mdp4_irq_postinstall() argument 46 struct mdp_kms *mdp_kms = to_mdp_kms(kms); in mdp4_irq_postinstall() 59 void mdp4_irq_uninstall(struct msm_kms *kms) in mdp4_irq_uninstall() argument 61 struct mdp4_kms *mdp4_kms = to_mdp4_kms(to_mdp_kms(kms)); in mdp4_irq_uninstall() 67 irqreturn_t mdp4_irq(struct msm_kms *kms) in mdp4_irq() argument 69 struct mdp_kms *mdp_kms = to_mdp_kms(kms); in mdp4_irq() 92 struct mdp4_kms *mdp4_kms = to_mdp4_kms(to_mdp_kms(kms)); in mdp4_enable_vblank() 95 mdp_update_vblank_mask(to_mdp_kms(kms), in mdp4_enable_vblank() [all …]
|
A D | mdp4_kms.c | 16 static int mdp4_hw_init(struct msm_kms *kms) in mdp4_hw_init() argument 18 struct mdp4_kms *mdp4_kms = to_mdp4_kms(to_mdp_kms(kms)); in mdp4_hw_init() 75 static void mdp4_enable_commit(struct msm_kms *kms) in mdp4_enable_commit() argument 123 static void mdp4_destroy(struct msm_kms *kms) in mdp4_destroy() argument 389 struct msm_kms *kms = NULL; in mdp4_kms_init() local 411 priv->kms = &mdp4_kms->base.base; in mdp4_kms_init() 412 kms = priv->kms; in mdp4_kms_init() 429 kms->irq = irq; in mdp4_kms_init() 521 kms->aspace = aspace; in mdp4_kms_init() 553 if (kms) in mdp4_kms_init() [all …]
|
A D | mdp4_plane.c | 59 return to_mdp4_kms(to_mdp_kms(priv->kms)); in get_kms() 99 struct msm_kms *kms = priv->kms; in mdp4_plane_prepare_fb() local 106 return msm_framebuffer_prepare(new_state->fb, kms->aspace, false); in mdp4_plane_prepare_fb() 114 struct msm_kms *kms = &mdp4_kms->base.base; in mdp4_plane_cleanup_fb() local 121 msm_framebuffer_cleanup(fb, kms->aspace, false); in mdp4_plane_cleanup_fb() 160 struct msm_kms *kms = &mdp4_kms->base.base; in mdp4_plane_set_scanout() local 172 msm_framebuffer_iova(fb, kms->aspace, 0)); in mdp4_plane_set_scanout() 174 msm_framebuffer_iova(fb, kms->aspace, 1)); in mdp4_plane_set_scanout() 176 msm_framebuffer_iova(fb, kms->aspace, 2)); in mdp4_plane_set_scanout() 178 msm_framebuffer_iova(fb, kms->aspace, 3)); in mdp4_plane_set_scanout()
|
A D | mdp4_kms.h | 154 void mdp4_irq_preinstall(struct msm_kms *kms); 155 int mdp4_irq_postinstall(struct msm_kms *kms); 156 void mdp4_irq_uninstall(struct msm_kms *kms); 157 irqreturn_t mdp4_irq(struct msm_kms *kms); 158 int mdp4_enable_vblank(struct msm_kms *kms, struct drm_crtc *crtc); 159 void mdp4_disable_vblank(struct msm_kms *kms, struct drm_crtc *crtc);
|
/linux-6.3-rc2/drivers/gpu/drm/msm/disp/mdp5/ |
A D | mdp5_irq.c | 39 void mdp5_irq_preinstall(struct msm_kms *kms) in mdp5_irq_preinstall() argument 41 struct mdp5_kms *mdp5_kms = to_mdp5_kms(to_mdp_kms(kms)); in mdp5_irq_preinstall() 50 int mdp5_irq_postinstall(struct msm_kms *kms) in mdp5_irq_postinstall() argument 52 struct mdp_kms *mdp_kms = to_mdp_kms(kms); in mdp5_irq_postinstall() 70 void mdp5_irq_uninstall(struct msm_kms *kms) in mdp5_irq_uninstall() argument 72 struct mdp5_kms *mdp5_kms = to_mdp5_kms(to_mdp_kms(kms)); in mdp5_irq_uninstall() 80 irqreturn_t mdp5_irq(struct msm_kms *kms) in mdp5_irq() argument 82 struct mdp_kms *mdp_kms = to_mdp_kms(kms); in mdp5_irq() 105 struct mdp5_kms *mdp5_kms = to_mdp5_kms(to_mdp_kms(kms)); in mdp5_enable_vblank() 109 mdp_update_vblank_mask(to_mdp_kms(kms), in mdp5_enable_vblank() [all …]
|
A D | mdp5_kms.c | 22 static int mdp5_hw_init(struct msm_kms *kms) in mdp5_hw_init() argument 208 static void mdp5_kms_destroy(struct msm_kms *kms) in mdp5_kms_destroy() argument 557 struct msm_kms *kms; in mdp5_kms_init() local 566 kms = priv->kms; in mdp5_kms_init() 567 if (!kms) in mdp5_kms_init() 570 mdp5_kms = to_mdp5_kms(to_mdp_kms(kms)); in mdp5_kms_init() 586 kms->irq = irq; in mdp5_kms_init() 611 kms->aspace = aspace; in mdp5_kms_init() 631 if (kms) in mdp5_kms_init() 632 mdp5_kms_destroy(kms); in mdp5_kms_init() [all …]
|
A D | mdp5_kms.h | 266 void mdp5_irq_preinstall(struct msm_kms *kms); 267 int mdp5_irq_postinstall(struct msm_kms *kms); 268 void mdp5_irq_uninstall(struct msm_kms *kms); 269 irqreturn_t mdp5_irq(struct msm_kms *kms); 270 int mdp5_enable_vblank(struct msm_kms *kms, struct drm_crtc *crtc); 271 void mdp5_disable_vblank(struct msm_kms *kms, struct drm_crtc *crtc);
|