Home
last modified time | relevance | path

Searched refs:tidss (Results 1 – 18 of 18) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/tidss/
Dtidss_irq.c19 static void tidss_irq_update(struct tidss_device *tidss) in tidss_irq_update() argument
21 assert_spin_locked(&tidss->wait_lock); in tidss_irq_update()
23 dispc_set_irqenable(tidss->dispc, tidss->irq_mask); in tidss_irq_update()
29 struct tidss_device *tidss = to_tidss(ddev); in tidss_irq_enable_vblank() local
34 spin_lock_irqsave(&tidss->wait_lock, flags); in tidss_irq_enable_vblank()
35 tidss->irq_mask |= DSS_IRQ_VP_VSYNC_EVEN(hw_videoport) | in tidss_irq_enable_vblank()
37 tidss_irq_update(tidss); in tidss_irq_enable_vblank()
38 spin_unlock_irqrestore(&tidss->wait_lock, flags); in tidss_irq_enable_vblank()
44 struct tidss_device *tidss = to_tidss(ddev); in tidss_irq_disable_vblank() local
49 spin_lock_irqsave(&tidss->wait_lock, flags); in tidss_irq_disable_vblank()
[all …]
Dtidss_drv.c29 int tidss_runtime_get(struct tidss_device *tidss) in tidss_runtime_get() argument
33 dev_dbg(tidss->dev, "%s\n", __func__); in tidss_runtime_get()
35 r = pm_runtime_resume_and_get(tidss->dev); in tidss_runtime_get()
40 void tidss_runtime_put(struct tidss_device *tidss) in tidss_runtime_put() argument
44 dev_dbg(tidss->dev, "%s\n", __func__); in tidss_runtime_put()
46 pm_runtime_mark_last_busy(tidss->dev); in tidss_runtime_put()
48 r = pm_runtime_put_autosuspend(tidss->dev); in tidss_runtime_put()
54 struct tidss_device *tidss = dev_get_drvdata(dev); in tidss_pm_runtime_suspend() local
58 return dispc_runtime_suspend(tidss->dispc); in tidss_pm_runtime_suspend()
63 struct tidss_device *tidss = dev_get_drvdata(dev); in tidss_pm_runtime_resume() local
[all …]
Dtidss_kms.c25 struct tidss_device *tidss = to_tidss(ddev); in tidss_atomic_commit_tail() local
29 tidss_runtime_get(tidss); in tidss_atomic_commit_tail()
40 tidss_runtime_put(tidss); in tidss_atomic_commit_tail()
103 static int tidss_dispc_modeset_init(struct tidss_device *tidss) in tidss_dispc_modeset_init() argument
105 struct device *dev = tidss->dev; in tidss_dispc_modeset_init()
107 const u32 *fourccs = dispc_plane_formats(tidss->dispc, &fourccs_len); in tidss_dispc_modeset_init()
116 const struct dispc_features *feat = tidss->feat; in tidss_dispc_modeset_init()
191 u32 hw_plane_id = feat->vid_order[tidss->num_planes]; in tidss_dispc_modeset_init()
194 tplane = tidss_plane_create(tidss, hw_plane_id, in tidss_dispc_modeset_init()
198 dev_err(tidss->dev, "plane create failed\n"); in tidss_dispc_modeset_init()
[all …]
Dtidss_crtc.c24 struct tidss_device *tidss = to_tidss(ddev); in tidss_crtc_finish_page_flip() local
37 busy = dispc_vp_go_busy(tidss->dispc, tcrtc->hw_videoport); in tidss_crtc_finish_page_flip()
90 struct tidss_device *tidss = to_tidss(ddev); in tidss_crtc_atomic_check() local
91 struct dispc_device *dispc = tidss->dispc; in tidss_crtc_atomic_check()
119 static void tidss_crtc_position_planes(struct tidss_device *tidss, in tidss_crtc_position_planes() argument
133 for (layer = 0; layer < tidss->feat->num_planes; layer++) { in tidss_crtc_position_planes()
152 dispc_ovr_set_plane(tidss->dispc, tplane->hw_plane_id, in tidss_crtc_position_planes()
157 dispc_ovr_enable_layer(tidss->dispc, tcrtc->hw_videoport, layer, in tidss_crtc_position_planes()
169 struct tidss_device *tidss = to_tidss(ddev); in tidss_crtc_atomic_flush() local
185 if (WARN_ON(dispc_vp_go_busy(tidss->dispc, tcrtc->hw_videoport))) in tidss_crtc_atomic_flush()
[all …]
Dtidss_encoder.c27 struct tidss_device *tidss; member
51 struct tidss_device *tidss = t_enc->tidss; in tidss_bridge_atomic_check() local
67 dev_err(tidss->dev, "%s: No bus_formats in connected display\n", in tidss_bridge_atomic_check()
83 int tidss_encoder_create(struct tidss_device *tidss, in tidss_encoder_create() argument
92 t_enc = drmm_simple_encoder_alloc(&tidss->ddev, struct tidss_encoder, in tidss_encoder_create()
97 t_enc->tidss = tidss; in tidss_encoder_create()
108 dev_err(tidss->dev, "bridge attach failed: %d\n", ret); in tidss_encoder_create()
113 connector = drm_bridge_connector_init(&tidss->ddev, enc); in tidss_encoder_create()
115 dev_err(tidss->dev, "bridge_connector create failed\n"); in tidss_encoder_create()
121 dev_err(tidss->dev, "attaching encoder to connector failed\n"); in tidss_encoder_create()
[all …]
Dtidss_plane.c29 struct tidss_device *tidss = to_tidss(ddev); in tidss_plane_atomic_check() local
101 ret = dispc_plane_check(tidss->dispc, hw_plane, new_plane_state, in tidss_plane_atomic_check()
113 struct tidss_device *tidss = to_tidss(ddev); in tidss_plane_atomic_update() local
122 dispc_plane_enable(tidss->dispc, tplane->hw_plane_id, false); in tidss_plane_atomic_update()
128 dispc_plane_setup(tidss->dispc, tplane->hw_plane_id, new_state, hw_videoport); in tidss_plane_atomic_update()
135 struct tidss_device *tidss = to_tidss(ddev); in tidss_plane_atomic_enable() local
140 dispc_plane_enable(tidss->dispc, tplane->hw_plane_id, true); in tidss_plane_atomic_enable()
147 struct tidss_device *tidss = to_tidss(ddev); in tidss_plane_atomic_disable() local
152 dispc_plane_enable(tidss->dispc, tplane->hw_plane_id, false); in tidss_plane_atomic_disable()
187 struct tidss_plane *tidss_plane_create(struct tidss_device *tidss, in tidss_plane_create() argument
[all …]
DMakefile3 tidss-y := tidss_crtc.o \
12 obj-$(CONFIG_DRM_TIDSS) += tidss.o
Dtidss_drv.h38 int tidss_runtime_get(struct tidss_device *tidss);
39 void tidss_runtime_put(struct tidss_device *tidss);
Dtidss_dispc.h137 int dispc_init(struct tidss_device *tidss);
138 void dispc_remove(struct tidss_device *tidss);
Dtidss_kms.h12 int tidss_modeset_init(struct tidss_device *tidss);
Dtidss_encoder.h14 int tidss_encoder_create(struct tidss_device *tidss,
Dtidss_plane.h20 struct tidss_plane *tidss_plane_create(struct tidss_device *tidss,
Dtidss_crtc.h45 struct tidss_crtc *tidss_crtc_create(struct tidss_device *tidss,
Dtidss_irq.h73 void tidss_irq_resume(struct tidss_device *tidss);
Dtidss_dispc.c386 struct tidss_device *tidss; member
2707 tidss_irq_resume(dispc->tidss); in dispc_runtime_resume()
2712 void dispc_remove(struct tidss_device *tidss) in dispc_remove() argument
2714 dev_dbg(tidss->dev, "%s\n", __func__); in dispc_remove()
2716 tidss->dispc = NULL; in dispc_remove()
2843 int dispc_init(struct tidss_device *tidss) in dispc_init() argument
2845 struct device *dev = tidss->dev; in dispc_init()
2854 feat = tidss->feat; in dispc_init()
2868 dispc->tidss = tidss; in dispc_init()
2956 tidss->dispc = dispc; in dispc_init()
/linux-6.12.1/drivers/gpu/drm/
DMakefile214 obj-$(CONFIG_DRM_TIDSS) += tidss/
DKconfig460 source "drivers/gpu/drm/tidss/Kconfig"
/linux-6.12.1/
DMAINTAINERS7745 F: drivers/gpu/drm/tidss/