Home
last modified time | relevance | path

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

/linux/drivers/crypto/ccp/
H A Dpsp-dev.c29 static int psp_mailbox_poll(const void __iomem *cmdresp_reg, unsigned int *cmdresp, in psp_mailbox_poll() argument
33 *cmdresp = ioread32(cmdresp_reg); in psp_mailbox_poll()
49 void __iomem *cmdresp_reg, *cmdbuff_lo_reg, *cmdbuff_hi_reg; in psp_mailbox_command() local
52 if (!psp || !psp->vdata || !psp->vdata->cmdresp_reg || in psp_mailbox_command()
56 cmdresp_reg = psp->io_regs + psp->vdata->cmdresp_reg; in psp_mailbox_command()
64 if (psp_mailbox_poll(cmdresp_reg, cmdresp, 0)) in psp_mailbox_command()
73 iowrite32(*cmdresp, cmdresp_reg); in psp_mailbox_command()
75 ret = psp_mailbox_poll(cmdresp_reg, cmdresp, timeout_msecs); in psp_mailbox_command()
H A Dsp-dev.h48 const unsigned int cmdresp_reg; member
54 const unsigned int cmdresp_reg; member
63 const unsigned int cmdresp_reg; member
75 const unsigned int cmdresp_reg; member
H A Dsp-pci.c365 .cmdresp_reg = 0x10580, /* C2PMSG_32 */
371 .cmdresp_reg = 0x10980, /* C2PMSG_32 */
389 .cmdresp_reg = 0x10570, /* C2PMSG_28 */
422 .cmdresp_reg = 0x10544, /* C2PMSG_17 */
436 .cmdresp_reg = 0x10544, /* C2PMSG_17 */
448 .cmdresp_reg = 0x10944, /* C2PMSG_17 */
460 .cmdresp_reg = 0x10944, /* C2PMSG_17 */
471 .cmdresp_reg = 0x10944, /* C2PMSG_17 */
H A Dplatform-access.c71 if (!pa_dev->vdata->cmdresp_reg || !pa_dev->vdata->cmdbuff_addr_lo_reg || in psp_send_platform_access_msg()
75 cmd = psp->io_regs + pa_dev->vdata->cmdresp_reg; in psp_send_platform_access_msg()
H A Dsev-dev.c162 reg = ioread32(sev->io_regs + sev->vdata->cmdresp_reg); in sev_irq_handler()
184 *reg = ioread32(sev->io_regs + sev->vdata->cmdresp_reg); in sev_wait_cmd_ioc()
198 *reg = ioread32(sev->io_regs + sev->vdata->cmdresp_reg); in sev_wait_cmd_ioc()
943 iowrite32(reg, sev->io_regs + sev->vdata->cmdresp_reg); in __sev_do_cmd_locked()