Home
last modified time | relevance | path

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

/Linux-v6.6/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_get_sync(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 r = pm_runtime_put_sync(tidss->dev); in tidss_runtime_put()
52 struct tidss_device *tidss = dev_get_drvdata(dev); in tidss_pm_runtime_suspend() local
56 return dispc_runtime_suspend(tidss->dispc); in tidss_pm_runtime_suspend()
61 struct tidss_device *tidss = dev_get_drvdata(dev); in tidss_pm_runtime_resume() local
66 r = dispc_runtime_resume(tidss->dispc); in tidss_pm_runtime_resume()
[all …]
Dtidss_kms.c27 struct tidss_device *tidss = to_tidss(ddev); in tidss_atomic_commit_tail() local
32 tidss_runtime_get(tidss); in tidss_atomic_commit_tail()
44 tidss_runtime_put(tidss); in tidss_atomic_commit_tail()
107 static int tidss_dispc_modeset_init(struct tidss_device *tidss) in tidss_dispc_modeset_init() argument
109 struct device *dev = tidss->dev; in tidss_dispc_modeset_init()
111 const u32 *fourccs = dispc_plane_formats(tidss->dispc, &fourccs_len); in tidss_dispc_modeset_init()
120 const struct dispc_features *feat = tidss->feat; in tidss_dispc_modeset_init()
196 u32 hw_plane_id = feat->vid_order[tidss->num_planes]; in tidss_dispc_modeset_init()
199 tplane = tidss_plane_create(tidss, hw_plane_id, in tidss_dispc_modeset_init()
203 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
189 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.c28 struct tidss_device *tidss = to_tidss(ddev); in tidss_plane_atomic_check() local
100 ret = dispc_plane_check(tidss->dispc, hw_plane, new_plane_state, in tidss_plane_atomic_check()
112 struct tidss_device *tidss = to_tidss(ddev); in tidss_plane_atomic_update() local
121 dispc_plane_enable(tidss->dispc, tplane->hw_plane_id, false); in tidss_plane_atomic_update()
127 dispc_plane_setup(tidss->dispc, tplane->hw_plane_id, new_state, hw_videoport); in tidss_plane_atomic_update()
134 struct tidss_device *tidss = to_tidss(ddev); in tidss_plane_atomic_enable() local
139 dispc_plane_enable(tidss->dispc, tplane->hw_plane_id, true); in tidss_plane_atomic_enable()
146 struct tidss_device *tidss = to_tidss(ddev); in tidss_plane_atomic_disable() local
151 dispc_plane_enable(tidss->dispc, tplane->hw_plane_id, false); in tidss_plane_atomic_disable()
178 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.h134 int dispc_init(struct tidss_device *tidss);
135 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.c332 struct tidss_device *tidss; member
2648 tidss_irq_resume(dispc->tidss); in dispc_runtime_resume()
2653 void dispc_remove(struct tidss_device *tidss) in dispc_remove() argument
2655 dev_dbg(tidss->dev, "%s\n", __func__); in dispc_remove()
2657 tidss->dispc = NULL; in dispc_remove()
2719 int dispc_init(struct tidss_device *tidss) in dispc_init() argument
2721 struct device *dev = tidss->dev; in dispc_init()
2730 feat = tidss->feat; in dispc_init()
2744 dispc->tidss = tidss; in dispc_init()
2832 tidss->dispc = dispc; in dispc_init()
/Linux-v6.6/drivers/gpu/drm/
DMakefile194 obj-$(CONFIG_DRM_TIDSS) += tidss/
DKconfig380 source "drivers/gpu/drm/tidss/Kconfig"
/Linux-v6.6/
DMAINTAINERS7083 F: drivers/gpu/drm/tidss/