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
320 drm_writeback_queue_job(&txp->connector, conn_state); in vc4_txp_connector_atomic_commit()
353 struct vc4_txp *txp = encoder_to_vc4_txp(encoder); in vc4_txp_encoder_disable() local
449 struct vc4_txp *txp = data; in vc4_txp_interrupt() local
450 struct vc4_crtc *vc4_crtc = &txp->base; in vc4_txp_interrupt()
454 drm_writeback_signal_completion(&txp->connector, 0); in vc4_txp_interrupt()
470 struct vc4_txp *txp; in vc4_txp_bind() local
479 txp = devm_kzalloc(dev, sizeof(*txp), GFP_KERNEL); in vc4_txp_bind()
480 if (!txp) in vc4_txp_bind()
482 vc4_crtc = &txp->base; in vc4_txp_bind()
488 txp->pdev = pdev; in vc4_txp_bind()
490 txp->regs = vc4_ioremap_regs(pdev, 0); in vc4_txp_bind()
491 if (IS_ERR(txp->regs)) in vc4_txp_bind()
492 return PTR_ERR(txp->regs); in vc4_txp_bind()
493 txp->regset.base = txp->regs; in vc4_txp_bind()
494 txp->regset.regs = txp_regs; in vc4_txp_bind()
495 txp->regset.nregs = ARRAY_SIZE(txp_regs); in vc4_txp_bind()
497 drm_connector_helper_add(&txp->connector.base, in vc4_txp_bind()
499 ret = drm_writeback_connector_init(drm, &txp->connector, in vc4_txp_bind()
511 encoder = &txp->connector.encoder; in vc4_txp_bind()
515 dev_name(dev), txp); in vc4_txp_bind()
519 dev_set_drvdata(dev, txp); in vc4_txp_bind()
520 vc4->txp = txp; in vc4_txp_bind()
522 vc4_debugfs_add_regset32(drm, "txp_regs", &txp->regset); in vc4_txp_bind()
532 struct vc4_txp *txp = dev_get_drvdata(dev); in vc4_txp_unbind() local
534 vc4_txp_connector_destroy(&txp->connector.base); in vc4_txp_unbind()
536 vc4->txp = NULL; in vc4_txp_unbind()
556 { .compatible = "brcm,bcm2835-txp" },