Home
last modified time | relevance | path

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

/drivers/gpu/drm/sti/
Dsti_vtg.c151 static void vtg_register(struct sti_vtg *vtg) in vtg_register() argument
153 list_add_tail(&vtg->link, &vtg_lookup); in vtg_register()
158 struct sti_vtg *vtg; in of_vtg_find() local
160 list_for_each_entry(vtg, &vtg_lookup, link) { in of_vtg_find()
161 if (vtg->np == np) in of_vtg_find()
162 return vtg; in of_vtg_find()
167 static void vtg_reset(struct sti_vtg *vtg) in vtg_reset() argument
170 if (vtg->slave) in vtg_reset()
171 vtg_reset(vtg->slave); in vtg_reset()
173 writel(1, vtg->regs + VTG_DRST_AUTOC); in vtg_reset()
[all …]
Dsti_vtg.h23 void sti_vtg_set_config(struct sti_vtg *vtg,
25 int sti_vtg_register_client(struct sti_vtg *vtg, struct notifier_block *nb,
27 int sti_vtg_unregister_client(struct sti_vtg *vtg,
Dsti_crtc.c89 sti_vtg_set_config(compo->vtg[mixer->id], &crtc->mode); in sti_crtc_mode_set()
303 struct sti_vtg *vtg = compo->vtg[pipe]; in sti_crtc_enable_vblank() local
307 if (sti_vtg_register_client(vtg, vtg_vblank_nb, crtc)) { in sti_crtc_enable_vblank()
321 struct sti_vtg *vtg = compo->vtg[pipe]; in sti_crtc_disable_vblank() local
325 if (sti_vtg_unregister_client(vtg, vtg_vblank_nb)) in sti_crtc_disable_vblank()
Dsti_gdp.c126 struct sti_vtg *vtg; member
458 if (sti_vtg_unregister_client(gdp->vtg, &gdp->vtg_field_nb)) in sti_gdp_disable()
465 gdp->vtg = NULL; in sti_gdp_disable()
653 if (!gdp->vtg) { in sti_gdp_atomic_check()
655 gdp->vtg = compo->vtg[mixer->id]; in sti_gdp_atomic_check()
656 if (sti_vtg_register_client(gdp->vtg, in sti_gdp_atomic_check()
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.c348 struct sti_vtg *vtg; member
754 if (sti_vtg_unregister_client(hqvdp->vtg, &hqvdp->vtg_nb)) in sti_hqvdp_disable()
1078 if (sti_vtg_register_client(hqvdp->vtg, in sti_hqvdp_atomic_check()
1366 hqvdp->vtg = of_vtg_find(vtg_np); in sti_hqvdp_probe()
/drivers/mfd/
Dmenelaus.c458 u16 vtg; member
462 static int menelaus_set_voltage(const struct menelaus_vtg *vtg, int mV, in menelaus_set_voltage() argument
470 ret = menelaus_read_reg(vtg->vtg_reg); in menelaus_set_voltage()
473 val = ret & ~(((1 << vtg->vtg_bits) - 1) << vtg->vtg_shift); in menelaus_set_voltage()
474 val |= vtg_val << vtg->vtg_shift; in menelaus_set_voltage()
478 vtg->name, mV, vtg->vtg_reg, val); in menelaus_set_voltage()
480 ret = menelaus_write_reg(vtg->vtg_reg, val); in menelaus_set_voltage()
483 ret = menelaus_write_reg(vtg->mode_reg, mode); in menelaus_set_voltage()
493 static int menelaus_get_vtg_value(int vtg, const struct menelaus_vtg_value *tbl, in menelaus_get_vtg_value() argument
499 if (tbl->vtg == vtg) in menelaus_get_vtg_value()
[all …]