Searched refs:mhdp (Results 1 – 3 of 3) sorted by relevance
55 static int cdns_mhdp_mailbox_read(struct cdns_mhdp_device *mhdp) in cdns_mhdp_mailbox_read() argument59 WARN_ON(!mutex_is_locked(&mhdp->mbox_mutex)); in cdns_mhdp_mailbox_read()61 ret = readx_poll_timeout(readl, mhdp->regs + CDNS_MAILBOX_EMPTY, in cdns_mhdp_mailbox_read()67 return readl(mhdp->regs + CDNS_MAILBOX_RX_DATA) & 0xff; in cdns_mhdp_mailbox_read()70 static int cdns_mhdp_mailbox_write(struct cdns_mhdp_device *mhdp, u8 val) in cdns_mhdp_mailbox_write() argument74 WARN_ON(!mutex_is_locked(&mhdp->mbox_mutex)); in cdns_mhdp_mailbox_write()76 ret = readx_poll_timeout(readl, mhdp->regs + CDNS_MAILBOX_FULL, in cdns_mhdp_mailbox_write()82 writel(val, mhdp->regs + CDNS_MAILBOX_TX_DATA); in cdns_mhdp_mailbox_write()87 static int cdns_mhdp_mailbox_recv_header(struct cdns_mhdp_device *mhdp, in cdns_mhdp_mailbox_recv_header() argument97 ret = cdns_mhdp_mailbox_read(mhdp); in cdns_mhdp_mailbox_recv_header()[all …]
43 static int cdns_mhdp_j721e_init(struct cdns_mhdp_device *mhdp) in cdns_mhdp_j721e_init() argument45 struct platform_device *pdev = to_platform_device(mhdp->dev); in cdns_mhdp_j721e_init()47 mhdp->j721e_regs = devm_platform_ioremap_resource(pdev, 1); in cdns_mhdp_j721e_init()48 return PTR_ERR_OR_ZERO(mhdp->j721e_regs); in cdns_mhdp_j721e_init()51 static void cdns_mhdp_j721e_enable(struct cdns_mhdp_device *mhdp) in cdns_mhdp_j721e_enable() argument59 mhdp->j721e_regs + DPTX_SRC_CFG); in cdns_mhdp_j721e_enable()62 static void cdns_mhdp_j721e_disable(struct cdns_mhdp_device *mhdp) in cdns_mhdp_j721e_disable() argument65 writel(0, mhdp->j721e_regs + DPTX_DSC_CFG); in cdns_mhdp_j721e_disable()
323 int (*init)(struct cdns_mhdp_device *mhdp);324 void (*exit)(struct cdns_mhdp_device *mhdp);325 void (*enable)(struct cdns_mhdp_device *mhdp);326 void (*disable)(struct cdns_mhdp_device *mhdp);