Home
last modified time | relevance | path

Searched refs:dispc (Results 1 – 25 of 44) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/dss/
Ddispc.c50 #define REG_GET(dispc, idx, start, end) \ argument
51 FLD_GET(dispc_read_reg(dispc, idx), start, end)
53 #define REG_FLD_MOD(dispc, idx, val, start, end) \ argument
54 dispc_write_reg(dispc, idx, \
55 FLD_MOD(dispc_read_reg(dispc, idx), val, start, end))
100 int (*calc_scaling)(struct dispc_device *dispc,
342 static unsigned long dispc_fclk_rate(struct dispc_device *dispc);
343 static unsigned long dispc_core_clk_rate(struct dispc_device *dispc);
344 static unsigned long dispc_mgr_lclk_rate(struct dispc_device *dispc,
346 static unsigned long dispc_mgr_pclk_rate(struct dispc_device *dispc,
[all …]
Domapdss.h526 u32 (*read_irqstatus)(struct dispc_device *dispc);
527 void (*clear_irqstatus)(struct dispc_device *dispc, u32 mask);
528 void (*write_irqenable)(struct dispc_device *dispc, u32 mask);
530 int (*request_irq)(struct dispc_device *dispc, irq_handler_t handler,
532 void (*free_irq)(struct dispc_device *dispc, void *dev_id);
534 int (*runtime_get)(struct dispc_device *dispc);
535 void (*runtime_put)(struct dispc_device *dispc);
537 int (*get_num_ovls)(struct dispc_device *dispc);
538 int (*get_num_mgrs)(struct dispc_device *dispc);
540 u32 (*get_memory_bandwidth_limit)(struct dispc_device *dispc);
[all …]
Ddss.h259 struct dispc_device *dispc; member
391 void dispc_dump_clocks(struct dispc_device *dispc, struct seq_file *s);
393 int dispc_runtime_get(struct dispc_device *dispc);
394 void dispc_runtime_put(struct dispc_device *dispc);
396 void dispc_enable_sidle(struct dispc_device *dispc);
397 void dispc_disable_sidle(struct dispc_device *dispc);
399 void dispc_lcd_enable_signal(struct dispc_device *dispc, bool enable);
400 void dispc_pck_free_enable(struct dispc_device *dispc, bool enable);
401 void dispc_enable_fifomerge(struct dispc_device *dispc, bool enable);
405 bool dispc_div_calc(struct dispc_device *dispc, unsigned long dispc_freq,
[all …]
Ddpi.c178 static bool dpi_calc_hsdiv_cb(int m_dispc, unsigned long dispc, in dpi_calc_hsdiv_cb() argument
184 ctx->pll_cinfo.clkout[ctx->clkout_idx] = dispc; in dpi_calc_hsdiv_cb()
186 return dispc_div_calc(ctx->dpi->dss->dispc, dispc, in dpi_calc_hsdiv_cb()
214 return dispc_div_calc(ctx->dpi->dss->dispc, fck, in dpi_calc_dss_cb()
494 r = dispc_runtime_get(dpi->dss->dispc); in dpi_bridge_enable()
528 dispc_runtime_put(dpi->dss->dispc); in dpi_bridge_enable()
546 dispc_runtime_put(dpi->dss->dispc); in dpi_bridge_disable()
Dsdi.c68 return dispc_div_calc(ctx->sdi->dss->dispc, fck, in dpi_calc_dss_cb()
209 r = dispc_runtime_get(sdi->dss->dispc); in sdi_bridge_enable()
236 dispc_mgr_set_clock_div(sdi->dss->dispc, sdi->output.dispc_channel, in sdi_bridge_enable()
256 dispc_runtime_put(sdi->dss->dispc); in sdi_bridge_enable()
269 dispc_runtime_put(sdi->dss->dispc); in sdi_bridge_disable()
DMakefile9 omapdss-y := dss.o dispc.o dispc_coefs.o \
/kernel/linux/linux-5.10/drivers/gpu/drm/tidss/
Dtidss_dispc.c310 static void dispc_write(struct dispc_device *dispc, u16 reg, u32 val) in dispc_write() argument
312 iowrite32(val, dispc->base_common + reg); in dispc_write()
315 static u32 dispc_read(struct dispc_device *dispc, u16 reg) in dispc_read() argument
317 return ioread32(dispc->base_common + reg); in dispc_read()
321 void dispc_vid_write(struct dispc_device *dispc, u32 hw_plane, u16 reg, u32 val) in dispc_vid_write() argument
323 void __iomem *base = dispc->base_vid[hw_plane]; in dispc_vid_write()
328 static u32 dispc_vid_read(struct dispc_device *dispc, u32 hw_plane, u16 reg) in dispc_vid_read() argument
330 void __iomem *base = dispc->base_vid[hw_plane]; in dispc_vid_read()
335 static void dispc_ovr_write(struct dispc_device *dispc, u32 hw_videoport, in dispc_ovr_write() argument
338 void __iomem *base = dispc->base_ovr[hw_videoport]; in dispc_ovr_write()
[all …]
Dtidss_dispc.h92 void dispc_set_irqenable(struct dispc_device *dispc, dispc_irq_t mask);
93 dispc_irq_t dispc_read_and_clear_irqstatus(struct dispc_device *dispc);
95 void dispc_ovr_set_plane(struct dispc_device *dispc, u32 hw_plane,
97 void dispc_ovr_enable_layer(struct dispc_device *dispc,
100 void dispc_vp_prepare(struct dispc_device *dispc, u32 hw_videoport,
102 void dispc_vp_enable(struct dispc_device *dispc, u32 hw_videoport,
104 void dispc_vp_disable(struct dispc_device *dispc, u32 hw_videoport);
105 void dispc_vp_unprepare(struct dispc_device *dispc, u32 hw_videoport);
106 bool dispc_vp_go_busy(struct dispc_device *dispc, u32 hw_videoport);
107 void dispc_vp_go(struct dispc_device *dispc, u32 hw_videoport);
[all …]
Dtidss_crtc.c40 busy = dispc_vp_go_busy(tidss->dispc, tcrtc->hw_videoport); in tidss_crtc_finish_page_flip()
92 struct dispc_device *dispc = tidss->dispc; in tidss_crtc_atomic_check() local
105 ok = dispc_vp_mode_valid(dispc, hw_videoport, mode); in tidss_crtc_atomic_check()
112 return dispc_vp_bus_check(dispc, hw_videoport, state); in tidss_crtc_atomic_check()
153 dispc_ovr_set_plane(tidss->dispc, tplane->hw_plane_id, in tidss_crtc_position_planes()
158 dispc_ovr_enable_layer(tidss->dispc, tcrtc->hw_videoport, layer, in tidss_crtc_position_planes()
188 if (WARN_ON(dispc_vp_go_busy(tidss->dispc, tcrtc->hw_videoport))) in tidss_crtc_atomic_flush()
196 dispc_vp_setup(tidss->dispc, tcrtc->hw_videoport, crtc->state, false); in tidss_crtc_atomic_flush()
204 dispc_vp_go(tidss->dispc, tcrtc->hw_videoport); in tidss_crtc_atomic_flush()
228 r = dispc_vp_set_clk_rate(tidss->dispc, tcrtc->hw_videoport, in tidss_crtc_atomic_enable()
[all …]
Dtidss_irq.c20 dispc_set_irqenable(tidss->dispc, tidss->irq_mask); in tidss_irq_update()
63 irqstatus = dispc_read_and_clear_irqstatus(tidss->dispc); in tidss_irq_handler()
104 dispc_set_irqenable(tidss->dispc, 0); in tidss_irq_preinstall()
105 dispc_read_and_clear_irqstatus(tidss->dispc); in tidss_irq_preinstall()
144 dispc_set_irqenable(tidss->dispc, 0); in tidss_irq_uninstall()
Dtidss_plane.c93 ret = dispc_plane_check(tidss->dispc, hw_plane, state, hw_videoport); in tidss_plane_atomic_check()
113 dispc_plane_enable(tidss->dispc, tplane->hw_plane_id, false); in tidss_plane_atomic_update()
119 ret = dispc_plane_setup(tidss->dispc, tplane->hw_plane_id, in tidss_plane_atomic_update()
125 dispc_plane_enable(tidss->dispc, tplane->hw_plane_id, false); in tidss_plane_atomic_update()
129 dispc_plane_enable(tidss->dispc, tplane->hw_plane_id, true); in tidss_plane_atomic_update()
141 dispc_plane_enable(tidss->dispc, tplane->hw_plane_id, false); in tidss_plane_atomic_disable()
Dtidss_drv.c57 return dispc_runtime_suspend(tidss->dispc); in tidss_pm_runtime_suspend()
67 r = dispc_runtime_resume(tidss->dispc); in tidss_pm_runtime_resume()
160 dispc_runtime_resume(tidss->dispc); in tidss_probe()
203 dispc_runtime_suspend(tidss->dispc); in tidss_probe()
226 dispc_runtime_suspend(tidss->dispc); in tidss_remove()
Dtidss_drv.h22 struct dispc_device *dispc; member
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/
Domap_irq.c32 priv->dispc_ops->write_irqenable(priv->dispc, irqmask); in omap_irq_update()
86 priv->dispc_ops->mgr_get_framedone_irq(priv->dispc, channel); in omap_irq_enable_framedone()
124 priv->irq_mask |= priv->dispc_ops->mgr_get_vsync_irq(priv->dispc, in omap_irq_enable_vblank()
151 priv->irq_mask &= ~priv->dispc_ops->mgr_get_vsync_irq(priv->dispc, in omap_irq_disable_vblank()
216 irqstatus = priv->dispc_ops->read_irqstatus(priv->dispc); in omap_irq_handler()
217 priv->dispc_ops->clear_irqstatus(priv->dispc, irqstatus); in omap_irq_handler()
218 priv->dispc_ops->read_irqstatus(priv->dispc); /* flush posted write */ in omap_irq_handler()
226 if (irqstatus & priv->dispc_ops->mgr_get_vsync_irq(priv->dispc, channel)) { in omap_irq_handler()
231 if (irqstatus & priv->dispc_ops->mgr_get_sync_lost_irq(priv->dispc, channel)) in omap_irq_handler()
234 if (irqstatus & priv->dispc_ops->mgr_get_framedone_irq(priv->dispc, channel)) in omap_irq_handler()
[all …]
Domap_crtc.c106 priv->dispc_ops->mgr_enable(priv->dispc, channel, true); in omap_crtc_dss_start_update()
131 priv->dispc_ops->mgr_enable(priv->dispc, channel, enable); in omap_crtc_set_enabled()
144 framedone_irq = priv->dispc_ops->mgr_get_framedone_irq(priv->dispc, in omap_crtc_set_enabled()
146 vsync_irq = priv->dispc_ops->mgr_get_vsync_irq(priv->dispc, channel); in omap_crtc_set_enabled()
166 priv->dispc_ops->mgr_enable(priv->dispc, channel, enable); in omap_crtc_set_enabled()
189 priv->dispc_ops->mgr_set_timings(priv->dispc, omap_crtc->channel, in omap_crtc_dss_enable()
224 priv->dispc_ops->mgr_set_lcd_config(priv->dispc, omap_crtc->channel, in omap_crtc_dss_set_lcd_config()
303 if (priv->dispc_ops->mgr_go_busy(priv->dispc, omap_crtc->channel)) { in omap_crtc_vblank_irq()
407 priv->dispc_ops->mgr_setup(priv->dispc, omap_crtc->channel, &info); in omap_crtc_write_crtc_properties()
448 priv->dispc_ops->runtime_get(priv->dispc); in omap_crtc_atomic_enable()
[all …]
Domap_plane.c73 ret = priv->dispc_ops->ovl_setup(priv->dispc, omap_plane->id, &info, in omap_plane_atomic_update()
79 priv->dispc_ops->ovl_enable(priv->dispc, omap_plane->id, false); in omap_plane_atomic_update()
83 priv->dispc_ops->ovl_enable(priv->dispc, omap_plane->id, true); in omap_plane_atomic_update()
96 priv->dispc_ops->ovl_enable(priv->dispc, omap_plane->id, false); in omap_plane_atomic_disable()
255 unsigned int num_planes = priv->dispc_ops->get_num_ovls(priv->dispc); in omap_plane_init()
274 formats = priv->dispc_ops->ovl_get_color_modes(priv->dispc, id); in omap_plane_init()
Domap_drv.c72 priv->dispc_ops->runtime_get(priv->dispc); in omap_atomic_commit_tail()
116 priv->dispc_ops->runtime_put(priv->dispc); in omap_atomic_commit_tail()
195 unsigned int num_planes = priv->dispc_ops->get_num_ovls(priv->dispc); in omap_modeset_init_properties()
231 int num_ovls = priv->dispc_ops->get_num_ovls(priv->dispc); in omap_modeset_init()
232 int num_mgrs = priv->dispc_ops->get_num_mgrs(priv->dispc); in omap_modeset_init()
595 priv->dispc = dispc_get_dispc(priv->dss); in omapdrm_init()
610 priv->dispc_ops->get_memory_bandwidth_limit(priv->dispc); in omapdrm_init()
Domap_drv.h49 struct dispc_device *dispc; member
/kernel/linux/linux-5.10/drivers/video/fbdev/omap2/omapfb/dss/
Ddispc.c127 } dispc; variable
253 __raw_writel(val, dispc.base + idx); in dispc_write_reg()
258 return __raw_readl(dispc.base + idx); in dispc_read_reg()
274 spin_lock_irqsave(&dispc.control_lock, flags); in mgr_fld_write()
279 spin_unlock_irqrestore(&dispc.control_lock, flags); in mgr_fld_write()
283 dispc.ctx[DISPC_##reg / sizeof(u32)] = dispc_read_reg(DISPC_##reg)
285 dispc_write_reg(DISPC_##reg, dispc.ctx[DISPC_##reg / sizeof(u32)])
389 dispc.ctx_valid = true; in dispc_save_context()
400 if (!dispc.ctx_valid) in dispc_restore_context()
522 r = pm_runtime_get_sync(&dispc.pdev->dev); in dispc_runtime_get()
[all …]
DMakefile5 omapdss-y := core.o dss.o dss_features.o dispc.o dispc_coefs.o display.o \
9 dispc-compat.o display-sysfs.o
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/display/ti/
Dti,omap2-dss.txt26 - compatible: "ti,omap2-dispc"
32 - max-memory-bandwidth: Input memory (from main memory to dispc) bandwidth limit
Dti,dra7-dss.txt43 - compatible: "ti,dra7-dispc"
51 - max-memory-bandwidth: Input memory (from main memory to dispc) bandwidth limit
Dti,omap3-dss.txt33 - compatible: "ti,omap3-dispc"
41 - max-memory-bandwidth: Input memory (from main memory to dispc) bandwidth limit
Dti,omap5-dss.txt32 - compatible: "ti,omap5-dispc"
40 - max-memory-bandwidth: Input memory (from main memory to dispc) bandwidth limit
Dti,omap4-dss.txt32 - compatible: "ti,omap4-dispc"
40 - max-memory-bandwidth: Input memory (from main memory to dispc) bandwidth limit

12