Lines Matching full:txp

145 #define TXP_READ(offset) readl(txp->regs + (offset))
146 #define TXP_WRITE(offset, val) writel(val, txp->regs + (offset))
277 struct vc4_txp *txp = connector_to_vc4_txp(conn); in vc4_txp_connector_atomic_commit() local
314 drm_writeback_queue_job(&txp->connector, conn_state); in vc4_txp_connector_atomic_commit()
347 struct vc4_txp *txp = encoder_to_vc4_txp(encoder); in vc4_txp_encoder_disable() local
443 struct vc4_txp *txp = data; in vc4_txp_interrupt() local
444 struct vc4_crtc *vc4_crtc = &txp->base; in vc4_txp_interrupt()
448 drm_writeback_signal_completion(&txp->connector, 0); in vc4_txp_interrupt()
464 struct vc4_txp *txp; in vc4_txp_bind() local
473 txp = devm_kzalloc(dev, sizeof(*txp), GFP_KERNEL); in vc4_txp_bind()
474 if (!txp) in vc4_txp_bind()
476 vc4_crtc = &txp->base; in vc4_txp_bind()
482 txp->pdev = pdev; in vc4_txp_bind()
484 txp->regs = vc4_ioremap_regs(pdev, 0); in vc4_txp_bind()
485 if (IS_ERR(txp->regs)) in vc4_txp_bind()
486 return PTR_ERR(txp->regs); in vc4_txp_bind()
487 txp->regset.base = txp->regs; in vc4_txp_bind()
488 txp->regset.regs = txp_regs; in vc4_txp_bind()
489 txp->regset.nregs = ARRAY_SIZE(txp_regs); in vc4_txp_bind()
491 drm_connector_helper_add(&txp->connector.base, in vc4_txp_bind()
493 ret = drm_writeback_connector_init(drm, &txp->connector, in vc4_txp_bind()
505 encoder = &txp->connector.encoder; in vc4_txp_bind()
509 dev_name(dev), txp); in vc4_txp_bind()
513 dev_set_drvdata(dev, txp); in vc4_txp_bind()
514 vc4->txp = txp; in vc4_txp_bind()
516 vc4_debugfs_add_regset32(drm, "txp_regs", &txp->regset); in vc4_txp_bind()
526 struct vc4_txp *txp = dev_get_drvdata(dev); in vc4_txp_unbind() local
528 vc4_txp_connector_destroy(&txp->connector.base); in vc4_txp_unbind()
530 vc4->txp = NULL; in vc4_txp_unbind()
550 { .compatible = "brcm,bcm2835-txp" },