Lines Matching refs:psp

47 	struct psp_device *psp = psp_get_master_device();  in psp_check_platform_access_status()  local
49 if (!psp || !psp->platform_access_data) in psp_check_platform_access_status()
59 struct psp_device *psp = psp_get_master_device(); in psp_send_platform_access_msg() local
66 if (!psp || !psp->platform_access_data) in psp_send_platform_access_msg()
69 pa_dev = psp->platform_access_data; in psp_send_platform_access_msg()
75 cmd = psp->io_regs + pa_dev->vdata->cmdresp_reg; in psp_send_platform_access_msg()
76 lo = psp->io_regs + pa_dev->vdata->cmdbuff_addr_lo_reg; in psp_send_platform_access_msg()
77 hi = psp->io_regs + pa_dev->vdata->cmdbuff_addr_hi_reg; in psp_send_platform_access_msg()
82 dev_dbg(psp->dev, "platform mailbox is in recovery\n"); in psp_send_platform_access_msg()
88 dev_dbg(psp->dev, "platform mailbox is not done processing command\n"); in psp_send_platform_access_msg()
150 struct psp_device *psp = psp_get_master_device(); in psp_ring_platform_doorbell() local
155 if (!psp || !psp->platform_access_data) in psp_ring_platform_doorbell()
158 pa_dev = psp->platform_access_data; in psp_ring_platform_doorbell()
159 button = psp->io_regs + pa_dev->vdata->doorbell_button_reg; in psp_ring_platform_doorbell()
160 cmd = psp->io_regs + pa_dev->vdata->doorbell_cmd_reg; in psp_ring_platform_doorbell()
165 dev_err(psp->dev, "doorbell command not done processing\n"); in psp_ring_platform_doorbell()
194 void platform_access_dev_destroy(struct psp_device *psp) in platform_access_dev_destroy() argument
196 struct psp_platform_access_device *pa_dev = psp->platform_access_data; in platform_access_dev_destroy()
203 psp->platform_access_data = NULL; in platform_access_dev_destroy()
206 int platform_access_dev_init(struct psp_device *psp) in platform_access_dev_init() argument
208 struct device *dev = psp->dev; in platform_access_dev_init()
215 psp->platform_access_data = pa_dev; in platform_access_dev_init()
216 pa_dev->psp = psp; in platform_access_dev_init()
219 pa_dev->vdata = (struct platform_access_vdata *)psp->vdata->platform_access; in platform_access_dev_init()