Lines Matching refs:cmd
25 static int check_recovery(u32 __iomem *cmd) in check_recovery() argument
27 return FIELD_GET(PSP_CMDRESP_RECOVERY, ioread32(cmd)); in check_recovery()
30 static int wait_cmd(u32 __iomem *cmd) in wait_cmd() argument
41 return readl_poll_timeout(cmd, tmp, (tmp & expected), 0, in wait_cmd()
60 u32 __iomem *cmd, *lo, *hi; in psp_send_platform_access_msg() local
75 cmd = psp->io_regs + pa_dev->vdata->cmdresp_reg; in psp_send_platform_access_msg()
81 if (check_recovery(cmd)) { in psp_send_platform_access_msg()
87 if (wait_cmd(cmd)) { in psp_send_platform_access_msg()
107 iowrite32(cmd_reg, cmd); in psp_send_platform_access_msg()
109 if (wait_cmd(cmd)) { in psp_send_platform_access_msg()
128 cmd_reg = ioread32(cmd); in psp_send_platform_access_msg()
152 u32 __iomem *button, *cmd; in psp_ring_platform_doorbell() local
160 cmd = psp->io_regs + pa_dev->vdata->doorbell_cmd_reg; in psp_ring_platform_doorbell()
164 if (wait_cmd(cmd)) { in psp_ring_platform_doorbell()
170 iowrite32(FIELD_PREP(DOORBELL_CMDRESP_STS, msg), cmd); in psp_ring_platform_doorbell()
173 if (wait_cmd(cmd)) { in psp_ring_platform_doorbell()
178 val = FIELD_GET(DOORBELL_CMDRESP_STS, ioread32(cmd)); in psp_ring_platform_doorbell()