/kernel/linux/linux-5.10/drivers/gpu/drm/sti/ |
H A D | sti_vtg.c | 154 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 in vtg_set_mode() 284 vtg_enable_irq(struct sti_vtg *vtg) vtg_enable_irq() argument 292 sti_vtg_set_config(struct sti_vtg *vtg, const struct drm_display_mode *mode) sti_vtg_set_config() argument 340 sti_vtg_register_client(struct sti_vtg *vtg, struct notifier_block *nb, struct drm_crtc *crtc) sti_vtg_register_client() argument 347 sti_vtg_unregister_client(struct sti_vtg *vtg, struct notifier_block *nb) sti_vtg_unregister_client() argument 354 struct sti_vtg *vtg = arg; vtg_irq_thread() local 367 struct sti_vtg *vtg = arg; vtg_irq() local 382 struct sti_vtg *vtg; vtg_probe() local [all...] |
H A D | sti_vtg.h | 24 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,
|
H A D | sti_crtc.c | 87 sti_vtg_set_config(compo->vtg[mixer->id], &crtc->mode); in sti_crtc_mode_set() 289 struct sti_vtg *vtg = compo->vtg[pipe]; in sti_crtc_enable_vblank() local 293 if (sti_vtg_register_client(vtg, vtg_vblank_nb, crtc)) { in sti_crtc_enable_vblank() 308 struct sti_vtg *vtg = compo->vtg[pipe]; in sti_crtc_disable_vblank() local 312 if (sti_vtg_unregister_client(vtg, vtg_vblank_nb)) in sti_crtc_disable_vblank()
|
H A D | sti_gdp.c | 118 * @vtg: registered vtg 130 struct sti_vtg *vtg; member 466 if (sti_vtg_unregister_client(gdp->vtg, &gdp->vtg_field_nb)) in sti_gdp_disable() 473 gdp->vtg = NULL; in sti_gdp_disable() 736 if (!gdp->vtg) { in sti_gdp_atomic_update() 741 gdp->vtg = compo->vtg[mixer->id]; in sti_gdp_atomic_update() 742 sti_vtg_register_client(gdp->vtg, &gdp->vtg_field_nb, crtc); in sti_gdp_atomic_update()
|
H A D | sti_compositor.h | 63 * @vtg: array of vtgs 78 struct sti_vtg *vtg[STI_MAX_MIXER]; member
|
H A D | sti_compositor.c | 247 vtg_np = of_parse_phandle(pdev->dev.of_node, "st,vtg", 0); in sti_compositor_probe() 249 compo->vtg[STI_MIXER_MAIN] = of_vtg_find(vtg_np); in sti_compositor_probe() 252 vtg_np = of_parse_phandle(pdev->dev.of_node, "st,vtg", 1); in sti_compositor_probe() 254 compo->vtg[STI_MIXER_AUX] = of_vtg_find(vtg_np); in sti_compositor_probe()
|
H A D | sti_hqvdp.c | 339 * @vtg: vtg for main data path 355 struct sti_vtg *vtg; member 761 if (sti_vtg_unregister_client(hqvdp->vtg, &hqvdp->vtg_nb)) in sti_hqvdp_disable() 1088 if (sti_vtg_register_client(hqvdp->vtg, in sti_hqvdp_atomic_check() 1391 vtg_np = of_parse_phandle(pdev->dev.of_node, "st,vtg", 0); in sti_hqvdp_probe() 1393 hqvdp->vtg = of_vtg_find(vtg_np); in sti_hqvdp_probe()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/sti/ |
H A D | sti_vtg.c | 154 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 in vtg_set_mode() 284 vtg_enable_irq(struct sti_vtg *vtg) vtg_enable_irq() argument 292 sti_vtg_set_config(struct sti_vtg *vtg, const struct drm_display_mode *mode) sti_vtg_set_config() argument 340 sti_vtg_register_client(struct sti_vtg *vtg, struct notifier_block *nb, struct drm_crtc *crtc) sti_vtg_register_client() argument 347 sti_vtg_unregister_client(struct sti_vtg *vtg, struct notifier_block *nb) sti_vtg_unregister_client() argument 354 struct sti_vtg *vtg = arg; vtg_irq_thread() local 367 struct sti_vtg *vtg = arg; vtg_irq() local 382 struct sti_vtg *vtg; vtg_probe() local [all...] |
H A D | sti_vtg.h | 24 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,
|
H A D | sti_crtc.c | 86 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()
|
H A D | sti_gdp.c | 120 * @vtg: registered vtg 132 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()
|
H A D | sti_compositor.h | 63 * @vtg: array of vtgs 78 struct sti_vtg *vtg[STI_MAX_MIXER]; member
|
H A D | sti_compositor.c | 246 vtg_np = of_parse_phandle(pdev->dev.of_node, "st,vtg", 0); in sti_compositor_probe() 248 compo->vtg[STI_MIXER_MAIN] = of_vtg_find(vtg_np); in sti_compositor_probe() 251 vtg_np = of_parse_phandle(pdev->dev.of_node, "st,vtg", 1); in sti_compositor_probe() 253 compo->vtg[STI_MIXER_AUX] = of_vtg_find(vtg_np); in sti_compositor_probe()
|
H A D | sti_hqvdp.c | 341 * @vtg: vtg for main data path 357 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() 1393 vtg_np = of_parse_phandle(pdev->dev.of_node, "st,vtg", 0); in sti_hqvdp_probe() 1395 hqvdp->vtg = of_vtg_find(vtg_np); in sti_hqvdp_probe()
|
/kernel/linux/linux-5.10/drivers/mfd/ |
H A D | menelaus.c | 445 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 in menelaus_set_voltage() 480 menelaus_get_vtg_value(int vtg, const struct menelaus_vtg_value *tbl, int n) menelaus_get_vtg_value() argument 646 const struct menelaus_vtg *vtg; menelaus_set_vdcdc() local [all...] |
/kernel/linux/linux-6.6/drivers/mfd/ |
H A D | menelaus.c | 445 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 in menelaus_set_voltage() 480 menelaus_get_vtg_value(int vtg, const struct menelaus_vtg_value *tbl, int n) menelaus_get_vtg_value() argument 646 const struct menelaus_vtg *vtg; menelaus_set_vdcdc() local [all...] |