Lines Matching full:mbox
7 int otx2_cpt_send_mbox_msg(struct otx2_mbox *mbox, struct pci_dev *pdev) in otx2_cpt_send_mbox_msg() argument
11 otx2_mbox_msg_send(mbox, 0); in otx2_cpt_send_mbox_msg()
12 ret = otx2_mbox_wait_for_rsp(mbox, 0); in otx2_cpt_send_mbox_msg()
14 dev_err(&pdev->dev, "RVU MBOX timeout.\n"); in otx2_cpt_send_mbox_msg()
17 dev_err(&pdev->dev, "RVU MBOX error: %d.\n", ret); in otx2_cpt_send_mbox_msg()
23 int otx2_cpt_send_ready_msg(struct otx2_mbox *mbox, struct pci_dev *pdev) in otx2_cpt_send_ready_msg() argument
27 req = otx2_mbox_alloc_msg_rsp(mbox, 0, sizeof(*req), in otx2_cpt_send_ready_msg()
30 dev_err(&pdev->dev, "RVU MBOX failed to get message.\n"); in otx2_cpt_send_ready_msg()
37 return otx2_cpt_send_mbox_msg(mbox, pdev); in otx2_cpt_send_ready_msg()
40 int otx2_cpt_send_af_reg_requests(struct otx2_mbox *mbox, struct pci_dev *pdev) in otx2_cpt_send_af_reg_requests() argument
42 return otx2_cpt_send_mbox_msg(mbox, pdev); in otx2_cpt_send_af_reg_requests()
45 int otx2_cpt_add_read_af_reg(struct otx2_mbox *mbox, struct pci_dev *pdev, in otx2_cpt_add_read_af_reg() argument
51 otx2_mbox_alloc_msg_rsp(mbox, 0, sizeof(*reg_msg), in otx2_cpt_add_read_af_reg()
54 dev_err(&pdev->dev, "RVU MBOX failed to get message.\n"); in otx2_cpt_add_read_af_reg()
70 int otx2_cpt_add_write_af_reg(struct otx2_mbox *mbox, struct pci_dev *pdev, in otx2_cpt_add_write_af_reg() argument
76 otx2_mbox_alloc_msg_rsp(mbox, 0, sizeof(*reg_msg), in otx2_cpt_add_write_af_reg()
79 dev_err(&pdev->dev, "RVU MBOX failed to get message.\n"); in otx2_cpt_add_write_af_reg()
95 int otx2_cpt_read_af_reg(struct otx2_mbox *mbox, struct pci_dev *pdev, in otx2_cpt_read_af_reg() argument
100 ret = otx2_cpt_add_read_af_reg(mbox, pdev, reg, val, blkaddr); in otx2_cpt_read_af_reg()
104 return otx2_cpt_send_mbox_msg(mbox, pdev); in otx2_cpt_read_af_reg()
107 int otx2_cpt_write_af_reg(struct otx2_mbox *mbox, struct pci_dev *pdev, in otx2_cpt_write_af_reg() argument
112 ret = otx2_cpt_add_write_af_reg(mbox, pdev, reg, val, blkaddr); in otx2_cpt_write_af_reg()
116 return otx2_cpt_send_mbox_msg(mbox, pdev); in otx2_cpt_write_af_reg()
121 struct otx2_mbox *mbox = lfs->mbox; in otx2_cpt_attach_rscrs_msg() local
126 otx2_mbox_alloc_msg_rsp(mbox, 0, sizeof(*req), in otx2_cpt_attach_rscrs_msg()
129 dev_err(&lfs->pdev->dev, "RVU MBOX failed to get message.\n"); in otx2_cpt_attach_rscrs_msg()
137 ret = otx2_cpt_send_mbox_msg(mbox, lfs->pdev); in otx2_cpt_attach_rscrs_msg()
149 struct otx2_mbox *mbox = lfs->mbox; in otx2_cpt_detach_rsrcs_msg() local
154 otx2_mbox_alloc_msg_rsp(mbox, 0, sizeof(*req), in otx2_cpt_detach_rsrcs_msg()
157 dev_err(&lfs->pdev->dev, "RVU MBOX failed to get message.\n"); in otx2_cpt_detach_rsrcs_msg()
164 ret = otx2_cpt_send_mbox_msg(mbox, lfs->pdev); in otx2_cpt_detach_rsrcs_msg()
176 struct otx2_mbox *mbox = lfs->mbox; in otx2_cpt_msix_offset_msg() local
181 req = otx2_mbox_alloc_msg_rsp(mbox, 0, sizeof(*req), in otx2_cpt_msix_offset_msg()
184 dev_err(&pdev->dev, "RVU MBOX failed to get message.\n"); in otx2_cpt_msix_offset_msg()
191 ret = otx2_cpt_send_mbox_msg(mbox, pdev); in otx2_cpt_msix_offset_msg()
206 int otx2_cpt_sync_mbox_msg(struct otx2_mbox *mbox) in otx2_cpt_sync_mbox_msg() argument
210 if (!otx2_mbox_nonempty(mbox, 0)) in otx2_cpt_sync_mbox_msg()
212 otx2_mbox_msg_send(mbox, 0); in otx2_cpt_sync_mbox_msg()
213 err = otx2_mbox_wait_for_rsp(mbox, 0); in otx2_cpt_sync_mbox_msg()
217 return otx2_mbox_check_rsp_msgs(mbox, 0); in otx2_cpt_sync_mbox_msg()