/linux-6.1.9/drivers/gpu/drm/msm/ |
D | msm_atomic.c | 21 static void vblank_get(struct msm_kms *kms, unsigned crtc_mask) in vblank_get() argument 25 for_each_crtc_mask(kms->dev, crtc, crtc_mask) { in vblank_get() 32 static void vblank_put(struct msm_kms *kms, unsigned crtc_mask) in vblank_put() argument 36 for_each_crtc_mask(kms->dev, crtc, crtc_mask) { in vblank_put() 43 static void lock_crtcs(struct msm_kms *kms, unsigned int crtc_mask) in lock_crtcs() argument 48 for_each_crtc_mask(kms->dev, crtc, crtc_mask) { in lock_crtcs() 50 mutex_lock_nested(&kms->commit_lock[crtc_index], crtc_index); in lock_crtcs() 54 static void unlock_crtcs(struct msm_kms *kms, unsigned int crtc_mask) in unlock_crtcs() argument 58 for_each_crtc_mask_reverse(kms->dev, crtc, crtc_mask) in unlock_crtcs() 59 mutex_unlock(&kms->commit_lock[drm_crtc_index(crtc)]); in unlock_crtcs() [all …]
|
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); 31 int (*enable_vblank)(struct msm_kms *kms, struct drm_crtc *crtc); 32 void (*disable_vblank)(struct msm_kms *kms, struct drm_crtc *crtc); 59 void (*enable_commit)(struct msm_kms *kms); 60 void (*disable_commit)(struct msm_kms *kms); 68 ktime_t (*vsync_time)(struct msm_kms *kms, struct drm_crtc *crtc); [all …]
|
D | msm_drv.c | 91 struct msm_kms *kms = priv->kms; in msm_irq() local 93 BUG_ON(!kms); in msm_irq() 95 return kms->funcs->irq(kms); in msm_irq() 101 struct msm_kms *kms = priv->kms; in msm_irq_preinstall() local 103 BUG_ON(!kms); in msm_irq_preinstall() 105 kms->funcs->irq_preinstall(kms); in msm_irq_preinstall() 111 struct msm_kms *kms = priv->kms; in msm_irq_postinstall() local 113 BUG_ON(!kms); in msm_irq_postinstall() 115 if (kms->funcs->irq_postinstall) in msm_irq_postinstall() 116 return kms->funcs->irq_postinstall(kms); in msm_irq_postinstall() [all …]
|
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() 328 if (priv->kms && priv->kms->funcs->debugfs_init) in msm_debugfs_init() 329 priv->kms->funcs->debugfs_init(priv->kms, minor); in msm_debugfs_init()
|
/linux-6.1.9/drivers/gpu/drm/msm/disp/ |
D | msm_disp_snapshot.c | 32 msm_disp_snapshot_state_sync(struct msm_kms *kms) in msm_disp_snapshot_state_sync() argument 34 struct drm_device *drm_dev = kms->dev; in msm_disp_snapshot_state_sync() 37 WARN_ON(!mutex_is_locked(&kms->dump_mutex)); in msm_disp_snapshot_state_sync() 55 struct msm_kms *kms = container_of(work, struct msm_kms, dump_work); in _msm_disp_snapshot_work() local 60 mutex_lock(&kms->dump_mutex); in _msm_disp_snapshot_work() 61 disp_state = msm_disp_snapshot_state_sync(kms); in _msm_disp_snapshot_work() 62 mutex_unlock(&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() [all …]
|
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.1.9/drivers/gpu/drm/imx/dcss/ |
D | dcss-kms.c | 45 static void dcss_kms_mode_config_init(struct dcss_kms_dev *kms) in dcss_kms_mode_config_init() argument 47 struct drm_mode_config *config = &kms->base.mode_config; in dcss_kms_mode_config_init() 49 drm_mode_config_init(&kms->base); in dcss_kms_mode_config_init() 65 static int dcss_kms_bridge_connector_init(struct dcss_kms_dev *kms) in dcss_kms_bridge_connector_init() argument 67 struct drm_device *ddev = &kms->base; in dcss_kms_bridge_connector_init() 68 struct drm_encoder *encoder = &kms->encoder; in dcss_kms_bridge_connector_init() 69 struct drm_crtc *crtc = (struct drm_crtc *)&kms->crtc; in dcss_kms_bridge_connector_init() 86 ret = drm_encoder_init(&kms->base, encoder, in dcss_kms_bridge_connector_init() 99 kms->connector = drm_bridge_connector_init(ddev, encoder); in dcss_kms_bridge_connector_init() 100 if (IS_ERR(kms->connector)) { in dcss_kms_bridge_connector_init() [all …]
|
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() 91 dcss_kms_detach(mdrv->kms); in dcss_drv_platform_remove()
|
/linux-6.1.9/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_core_perf.c | 40 static u64 _dpu_core_perf_calc_bw(struct dpu_kms *kms, in _dpu_core_perf_calc_bw() argument 56 bw_factor = kms->catalog->perf->bw_inefficiency_factor; in _dpu_core_perf_calc_bw() 72 static u64 _dpu_core_perf_calc_clk(struct dpu_kms *kms, in _dpu_core_perf_calc_clk() argument 93 clk_factor = kms->catalog->perf->clk_inefficiency_factor; in _dpu_core_perf_calc_clk() 106 return to_dpu_kms(priv->kms); in _dpu_crtc_get_kms() 109 static void _dpu_core_perf_calc_crtc(struct dpu_kms *kms, in _dpu_core_perf_calc_crtc() argument 114 if (!kms || !kms->catalog || !crtc || !state || !perf) { in _dpu_core_perf_calc_crtc() 121 if (kms->perf.perf_tune.mode == DPU_PERF_MODE_MINIMUM) { in _dpu_core_perf_calc_crtc() 125 } else if (kms->perf.perf_tune.mode == DPU_PERF_MODE_FIXED) { in _dpu_core_perf_calc_crtc() 126 perf->bw_ctl = kms->perf.fix_core_ab_vote; in _dpu_core_perf_calc_crtc() [all …]
|
D | dpu_kms.c | 53 static int dpu_kms_hw_init(struct msm_kms *kms); 60 struct dpu_kms *kms = (struct dpu_kms *)s->private; in _dpu_danger_signal_status() local 64 if (!kms->hw_mdp) { in _dpu_danger_signal_status() 71 pm_runtime_get_sync(&kms->pdev->dev); in _dpu_danger_signal_status() 74 if (kms->hw_mdp->ops.get_danger_status) in _dpu_danger_signal_status() 75 kms->hw_mdp->ops.get_danger_status(kms->hw_mdp, in _dpu_danger_signal_status() 79 if (kms->hw_mdp->ops.get_safe_status) in _dpu_danger_signal_status() 80 kms->hw_mdp->ops.get_safe_status(kms->hw_mdp, in _dpu_danger_signal_status() 83 pm_runtime_put_sync(&kms->pdev->dev); in _dpu_danger_signal_status() 110 struct dpu_kms *kms = file->private_data; in _dpu_plane_danger_read() local [all …]
|
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.1.9/drivers/gpu/drm/arm/display/komeda/ |
D | komeda_kms.c | 42 struct komeda_kms_dev *kms = to_kdev(drm); in komeda_kms_irq_handler() local 54 for (i = 0; i < kms->n_crtcs; i++) in komeda_kms_irq_handler() 55 komeda_crtc_handle_event(&kms->crtcs[i], &evts); in komeda_kms_irq_handler() 75 struct komeda_kms_dev *kms = to_kdev(dev); in komeda_kms_atomic_commit_hw_done() local 78 for (i = 0; i < kms->n_crtcs; i++) { in komeda_kms_atomic_commit_hw_done() 79 struct komeda_crtc *kcrtc = &kms->crtcs[i]; in komeda_kms_atomic_commit_hw_done() 254 static void komeda_kms_mode_config_init(struct komeda_kms_dev *kms, in komeda_kms_mode_config_init() argument 257 struct drm_mode_config *config = &kms->base.mode_config; in komeda_kms_mode_config_init() 259 drm_mode_config_init(&kms->base); in komeda_kms_mode_config_init() 261 komeda_kms_setup_crtcs(kms, mdev); in komeda_kms_mode_config_init() [all …]
|
D | komeda_private_obj.c | 48 static int komeda_layer_obj_add(struct komeda_kms_dev *kms, in komeda_layer_obj_add() argument 58 drm_atomic_private_obj_init(&kms->base, &layer->base.obj, &st->base.obj, in komeda_layer_obj_add() 90 static int komeda_scaler_obj_add(struct komeda_kms_dev *kms, in komeda_scaler_obj_add() argument 100 drm_atomic_private_obj_init(&kms->base, in komeda_scaler_obj_add() 133 static int komeda_compiz_obj_add(struct komeda_kms_dev *kms, in komeda_compiz_obj_add() argument 143 drm_atomic_private_obj_init(&kms->base, &compiz->base.obj, &st->base.obj, in komeda_compiz_obj_add() 176 static int komeda_splitter_obj_add(struct komeda_kms_dev *kms, in komeda_splitter_obj_add() argument 186 drm_atomic_private_obj_init(&kms->base, in komeda_splitter_obj_add() 219 static int komeda_merger_obj_add(struct komeda_kms_dev *kms, in komeda_merger_obj_add() argument 229 drm_atomic_private_obj_init(&kms->base, in komeda_merger_obj_add() [all …]
|
D | komeda_plane.c | 198 static u32 get_possible_crtcs(struct komeda_kms_dev *kms, in get_possible_crtcs() argument 205 for (i = 0; i < kms->n_crtcs; i++) { in get_possible_crtcs() 206 crtc = &kms->crtcs[i]; in get_possible_crtcs() 216 komeda_set_crtc_plane_mask(struct komeda_kms_dev *kms, in komeda_set_crtc_plane_mask() argument 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 240 static int komeda_plane_add(struct komeda_kms_dev *kms, in komeda_plane_add() 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() [all …]
|
D | komeda_kms.h | 174 int komeda_kms_setup_crtcs(struct komeda_kms_dev *kms, struct komeda_dev *mdev); 176 int komeda_kms_add_crtcs(struct komeda_kms_dev *kms, struct komeda_dev *mdev); 177 int komeda_kms_add_planes(struct komeda_kms_dev *kms, struct komeda_dev *mdev); 178 int komeda_kms_add_private_objs(struct komeda_kms_dev *kms, 180 int komeda_kms_add_wb_connectors(struct komeda_kms_dev *kms, 182 void komeda_kms_cleanup_private_objs(struct komeda_kms_dev *kms); 190 void komeda_kms_detach(struct komeda_kms_dev *kms);
|
D | komeda_drv.c | 20 struct komeda_kms_dev *kms; member 37 komeda_kms_detach(mdrv->kms); in komeda_unbind() 69 mdrv->kms = komeda_kms_attach(mdrv->mdev); in komeda_bind() 70 if (IS_ERR(mdrv->kms)) { in komeda_bind() 71 err = PTR_ERR(mdrv->kms); in komeda_bind() 76 drm_fbdev_generic_setup(&mdrv->kms->base, 32); in komeda_bind() 166 res = drm_mode_config_helper_suspend(&mdrv->kms->base); in komeda_pm_suspend() 181 return drm_mode_config_helper_resume(&mdrv->kms->base); in komeda_pm_resume()
|
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()
|
D | komeda_crtc.c | 562 int komeda_kms_setup_crtcs(struct komeda_kms_dev *kms, in komeda_kms_setup_crtcs() argument 570 kms->n_crtcs = 0; in komeda_kms_setup_crtcs() 573 crtc = &kms->crtcs[kms->n_crtcs]; in komeda_kms_setup_crtcs() 585 kms->n_crtcs, master->id, str); in komeda_kms_setup_crtcs() 587 kms->n_crtcs++; in komeda_kms_setup_crtcs() 594 get_crtc_primary(struct komeda_kms_dev *kms, struct komeda_crtc *crtc) in get_crtc_primary() argument 599 drm_for_each_plane(plane, &kms->base) { in get_crtc_primary() 612 static int komeda_crtc_add(struct komeda_kms_dev *kms, in komeda_crtc_add() argument 618 err = drm_crtc_init_with_planes(&kms->base, crtc, in komeda_crtc_add() 619 get_crtc_primary(kms, kcrtc), NULL, in komeda_crtc_add() [all …]
|
/linux-6.1.9/drivers/gpu/drm/msm/disp/mdp4/ |
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() 91 int mdp4_enable_vblank(struct msm_kms *kms, struct drm_crtc *crtc) in mdp4_enable_vblank() argument 93 struct mdp4_kms *mdp4_kms = to_mdp4_kms(to_mdp_kms(kms)); in mdp4_enable_vblank() [all …]
|
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 77 struct mdp4_kms *mdp4_kms = to_mdp4_kms(to_mdp_kms(kms)); in mdp4_enable_commit() 81 static void mdp4_disable_commit(struct msm_kms *kms) in mdp4_disable_commit() argument 83 struct mdp4_kms *mdp4_kms = to_mdp4_kms(to_mdp_kms(kms)); in mdp4_disable_commit() 87 static void mdp4_prepare_commit(struct msm_kms *kms, struct drm_atomic_state *state) in mdp4_prepare_commit() argument 91 static void mdp4_flush_commit(struct msm_kms *kms, unsigned crtc_mask) in mdp4_flush_commit() argument 96 static void mdp4_wait_flush(struct msm_kms *kms, unsigned crtc_mask) in mdp4_wait_flush() argument 98 struct mdp4_kms *mdp4_kms = to_mdp4_kms(to_mdp_kms(kms)); in mdp4_wait_flush() [all …]
|
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()
|
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.1.9/drivers/gpu/drm/msm/disp/mdp5/ |
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() 104 int mdp5_enable_vblank(struct msm_kms *kms, struct drm_crtc *crtc) in mdp5_enable_vblank() argument 106 struct mdp5_kms *mdp5_kms = to_mdp5_kms(to_mdp_kms(kms)); in mdp5_enable_vblank() [all …]
|
D | mdp5_kms.c | 22 static int mdp5_hw_init(struct msm_kms *kms) in mdp5_hw_init() argument 24 struct mdp5_kms *mdp5_kms = to_mdp5_kms(to_mdp_kms(kms)); in mdp5_hw_init() 85 struct mdp5_kms *mdp5_kms = to_mdp5_kms(to_mdp_kms(priv->kms)); in mdp5_get_global_state() 145 static void mdp5_enable_commit(struct msm_kms *kms) in mdp5_enable_commit() argument 147 struct mdp5_kms *mdp5_kms = to_mdp5_kms(to_mdp_kms(kms)); in mdp5_enable_commit() 151 static void mdp5_disable_commit(struct msm_kms *kms) in mdp5_disable_commit() argument 153 struct mdp5_kms *mdp5_kms = to_mdp5_kms(to_mdp_kms(kms)); in mdp5_disable_commit() 157 static void mdp5_prepare_commit(struct msm_kms *kms, struct drm_atomic_state *state) in mdp5_prepare_commit() argument 159 struct mdp5_kms *mdp5_kms = to_mdp5_kms(to_mdp_kms(kms)); in mdp5_prepare_commit() 168 static void mdp5_flush_commit(struct msm_kms *kms, unsigned crtc_mask) in mdp5_flush_commit() argument [all …]
|
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);
|