Home
last modified time | relevance | path

Searched refs:vtg (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/sti/
Dsti_vtg.c154 static void vtg_reset(struct sti_vtg *vtg) in vtg_reset() argument
156 writel(1, vtg->regs + VTG_DRST_AUTOC); in vtg_reset()
238 static void vtg_set_mode(struct sti_vtg *vtg, in vtg_set_mode() argument
246 writel(mode->htotal, vtg->regs + VTG_CLKLN); in vtg_set_mode()
249 writel(mode->vtotal * 2, vtg->regs + VTG_HLFLN); in vtg_set_mode()
252 vtg_set_output_window(vtg->regs, mode); in vtg_set_mode()
269 vtg->regs + vtg_regs_offs[i].h_hd); in vtg_set_mode()
271 vtg->regs + vtg_regs_offs[i].top_v_vd); in vtg_set_mode()
273 vtg->regs + vtg_regs_offs[i].bot_v_vd); in vtg_set_mode()
275 vtg->regs + vtg_regs_offs[i].top_v_hd); in vtg_set_mode()
[all …]
Dsti_vtg.h24 void sti_vtg_set_config(struct sti_vtg *vtg,
26 int sti_vtg_register_client(struct sti_vtg *vtg, struct notifier_block *nb,
28 int sti_vtg_unregister_client(struct sti_vtg *vtg,
Dsti_crtc.c86 sti_vtg_set_config(compo->vtg[mixer->id], &crtc->mode); in sti_crtc_mode_set()
288 struct sti_vtg *vtg = compo->vtg[pipe]; in sti_crtc_enable_vblank() local
292 if (sti_vtg_register_client(vtg, vtg_vblank_nb, crtc)) { in sti_crtc_enable_vblank()
307 struct sti_vtg *vtg = compo->vtg[pipe]; in sti_crtc_disable_vblank() local
311 if (sti_vtg_unregister_client(vtg, vtg_vblank_nb)) in sti_crtc_disable_vblank()
Dsti_gdp.c132 struct sti_vtg *vtg; member
468 if (sti_vtg_unregister_client(gdp->vtg, &gdp->vtg_field_nb)) in sti_gdp_disable()
475 gdp->vtg = NULL; in sti_gdp_disable()
745 if (!gdp->vtg) { in sti_gdp_atomic_update()
750 gdp->vtg = compo->vtg[mixer->id]; in sti_gdp_atomic_update()
751 sti_vtg_register_client(gdp->vtg, &gdp->vtg_field_nb, crtc); in sti_gdp_atomic_update()
Dsti_compositor.h78 struct sti_vtg *vtg[STI_MAX_MIXER]; member
Dsti_compositor.c248 compo->vtg[STI_MIXER_MAIN] = of_vtg_find(vtg_np); in sti_compositor_probe()
253 compo->vtg[STI_MIXER_AUX] = of_vtg_find(vtg_np); in sti_compositor_probe()
Dsti_hqvdp.c357 struct sti_vtg *vtg; member
763 if (sti_vtg_unregister_client(hqvdp->vtg, &hqvdp->vtg_nb)) in sti_hqvdp_disable()
1092 if (sti_vtg_register_client(hqvdp->vtg, in sti_hqvdp_atomic_check()
1395 hqvdp->vtg = of_vtg_find(vtg_np); in sti_hqvdp_probe()
/linux-6.1.9/Documentation/devicetree/bindings/display/
Dst,stih4xx.txt3 - sti-vtg: video timing generator
5 - compatible: "st,vtg"
9 - st,slave: phandle on a slave vtg
42 - st,vtg: phandle(s) on vtg device (main and aux) nodes.
115 - st,vtg: phandle on vtg main device node.
122 vtg_main_slave: sti-vtg-main-slave@fe85a800 {
123 compatible = "st,vtg";
128 vtg_main: sti-vtg-main-master@fd348000 {
129 compatible = "st,vtg";
134 vtg_aux_slave: sti-vtg-aux-slave@fd348400 {
[all …]
/linux-6.1.9/drivers/mfd/
Dmenelaus.c445 u16 vtg; member
449 static int menelaus_set_voltage(const struct menelaus_vtg *vtg, int mV, in menelaus_set_voltage() argument
457 ret = menelaus_read_reg(vtg->vtg_reg); in menelaus_set_voltage()
460 val = ret & ~(((1 << vtg->vtg_bits) - 1) << vtg->vtg_shift); in menelaus_set_voltage()
461 val |= vtg_val << vtg->vtg_shift; in menelaus_set_voltage()
465 vtg->name, mV, vtg->vtg_reg, val); in menelaus_set_voltage()
467 ret = menelaus_write_reg(vtg->vtg_reg, val); in menelaus_set_voltage()
470 ret = menelaus_write_reg(vtg->mode_reg, mode); in menelaus_set_voltage()
480 static int menelaus_get_vtg_value(int vtg, const struct menelaus_vtg_value *tbl, in menelaus_get_vtg_value() argument
486 if (tbl->vtg == vtg) in menelaus_get_vtg_value()
[all …]
/linux-6.1.9/arch/arm/boot/dts/
Dstih410.dtsi169 st,vtg = <&vtg_main>, <&vtg_aux>;
245 st,vtg = <&vtg_main>;
Dstih407.dtsi77 st,vtg = <&vtg_main>, <&vtg_aux>;
Dstih407-family.dtsi296 vtg_main: sti-vtg-main@8d02800 {
297 compatible = "st,vtg";
302 vtg_aux: sti-vtg-aux@8d00200 {
303 compatible = "st,vtg";