Home
last modified time | relevance | path

Searched refs:mhdp (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.15/drivers/gpu/drm/bridge/cadence/
Dcdns-mhdp8546-core.c56 static int cdns_mhdp_mailbox_read(struct cdns_mhdp_device *mhdp) in cdns_mhdp_mailbox_read() argument
60 WARN_ON(!mutex_is_locked(&mhdp->mbox_mutex)); in cdns_mhdp_mailbox_read()
62 ret = readx_poll_timeout(readl, mhdp->regs + CDNS_MAILBOX_EMPTY, in cdns_mhdp_mailbox_read()
68 return readl(mhdp->regs + CDNS_MAILBOX_RX_DATA) & 0xff; in cdns_mhdp_mailbox_read()
71 static int cdns_mhdp_mailbox_write(struct cdns_mhdp_device *mhdp, u8 val) in cdns_mhdp_mailbox_write() argument
75 WARN_ON(!mutex_is_locked(&mhdp->mbox_mutex)); in cdns_mhdp_mailbox_write()
77 ret = readx_poll_timeout(readl, mhdp->regs + CDNS_MAILBOX_FULL, in cdns_mhdp_mailbox_write()
83 writel(val, mhdp->regs + CDNS_MAILBOX_TX_DATA); in cdns_mhdp_mailbox_write()
88 static int cdns_mhdp_mailbox_recv_header(struct cdns_mhdp_device *mhdp, in cdns_mhdp_mailbox_recv_header() argument
98 ret = cdns_mhdp_mailbox_read(mhdp); in cdns_mhdp_mailbox_recv_header()
[all …]
Dcdns-mhdp8546-hdcp.c18 static int cdns_mhdp_secure_mailbox_read(struct cdns_mhdp_device *mhdp) in cdns_mhdp_secure_mailbox_read() argument
22 WARN_ON(!mutex_is_locked(&mhdp->mbox_mutex)); in cdns_mhdp_secure_mailbox_read()
24 ret = readx_poll_timeout(readl, mhdp->sapb_regs + CDNS_MAILBOX_EMPTY, in cdns_mhdp_secure_mailbox_read()
30 return readl(mhdp->sapb_regs + CDNS_MAILBOX_RX_DATA) & 0xff; in cdns_mhdp_secure_mailbox_read()
33 static int cdns_mhdp_secure_mailbox_write(struct cdns_mhdp_device *mhdp, in cdns_mhdp_secure_mailbox_write() argument
38 WARN_ON(!mutex_is_locked(&mhdp->mbox_mutex)); in cdns_mhdp_secure_mailbox_write()
40 ret = readx_poll_timeout(readl, mhdp->sapb_regs + CDNS_MAILBOX_FULL, in cdns_mhdp_secure_mailbox_write()
46 writel(val, mhdp->sapb_regs + CDNS_MAILBOX_TX_DATA); in cdns_mhdp_secure_mailbox_write()
51 static int cdns_mhdp_secure_mailbox_recv_header(struct cdns_mhdp_device *mhdp, in cdns_mhdp_secure_mailbox_recv_header() argument
62 ret = cdns_mhdp_secure_mailbox_read(mhdp); in cdns_mhdp_secure_mailbox_recv_header()
[all …]
Dcdns-mhdp8546-j721e.c43 static int cdns_mhdp_j721e_init(struct cdns_mhdp_device *mhdp) in cdns_mhdp_j721e_init() argument
45 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() argument
59 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() argument
65 writel(0, mhdp->j721e_regs + DPTX_DSC_CFG); in cdns_mhdp_j721e_disable()
Dcdns-mhdp8546-hdcp.h85 int cdns_mhdp_hdcp_set_public_key_param(struct cdns_mhdp_device *mhdp,
87 int cdns_mhdp_hdcp_set_lc(struct cdns_mhdp_device *mhdp, u8 *val);
88 int cdns_mhdp_hdcp_enable(struct cdns_mhdp_device *mhdp, u8 content_type);
89 int cdns_mhdp_hdcp_disable(struct cdns_mhdp_device *mhdp);
90 void cdns_mhdp_hdcp_init(struct cdns_mhdp_device *mhdp);
Dcdns-mhdp8546-core.h327 int (*init)(struct cdns_mhdp_device *mhdp);
328 void (*exit)(struct cdns_mhdp_device *mhdp);
329 void (*enable)(struct cdns_mhdp_device *mhdp);
330 void (*disable)(struct cdns_mhdp_device *mhdp);
420 u32 cdns_mhdp_wait_for_sw_event(struct cdns_mhdp_device *mhdp, uint32_t event);