Lines Matching refs:cptvf

8 int otx2_cpt_mbox_bbuf_init(struct otx2_cptvf_dev *cptvf, struct pci_dev *pdev)  in otx2_cpt_mbox_bbuf_init()  argument
13 cptvf->bbuf_base = devm_kmalloc(&pdev->dev, MBOX_SIZE, GFP_KERNEL); in otx2_cpt_mbox_bbuf_init()
14 if (!cptvf->bbuf_base) in otx2_cpt_mbox_bbuf_init()
21 otx2_mbox = &cptvf->pfvf_mbox; in otx2_cpt_mbox_bbuf_init()
23 mdev->mbase = cptvf->bbuf_base; in otx2_cpt_mbox_bbuf_init()
52 struct otx2_cptvf_dev *cptvf = arg; in otx2_cptvf_pfvf_mbox_intr() local
56 intr = otx2_cpt_read64(cptvf->reg_base, BLKADDR_RVUM, 0, in otx2_cptvf_pfvf_mbox_intr()
61 queue_work(cptvf->pfvf_mbox_wq, &cptvf->pfvf_mbox_work); in otx2_cptvf_pfvf_mbox_intr()
63 otx2_cpt_write64(cptvf->reg_base, BLKADDR_RVUM, 0, in otx2_cptvf_pfvf_mbox_intr()
69 static void process_pfvf_mbox_mbox_msg(struct otx2_cptvf_dev *cptvf, in process_pfvf_mbox_mbox_msg() argument
72 struct otx2_cptlfs_info *lfs = &cptvf->lfs; in process_pfvf_mbox_mbox_msg()
80 dev_err(&cptvf->pdev->dev, in process_pfvf_mbox_mbox_msg()
85 dev_err(&cptvf->pdev->dev, in process_pfvf_mbox_mbox_msg()
92 cptvf->vf_id = ((msg->pcifunc >> RVU_PFVF_FUNC_SHIFT) in process_pfvf_mbox_mbox_msg()
113 dev_err(&cptvf->pdev->dev, in process_pfvf_mbox_mbox_msg()
124 cptvf->lfs.kcrypto_eng_grp_num = rsp_grp->eng_grp_num; in process_pfvf_mbox_mbox_msg()
128 cptvf->lfs.kvf_limits = rsp_limits->kvf_limits; in process_pfvf_mbox_mbox_msg()
131 dev_err(&cptvf->pdev->dev, "Unsupported msg %d received.\n", in process_pfvf_mbox_mbox_msg()
139 struct otx2_cptvf_dev *cptvf; in otx2_cptvf_pfvf_mbox_handler() local
149 cptvf = container_of(work, struct otx2_cptvf_dev, pfvf_mbox_work); in otx2_cptvf_pfvf_mbox_handler()
150 pfvf_mbox = &cptvf->pfvf_mbox; in otx2_cptvf_pfvf_mbox_handler()
161 process_pfvf_mbox_mbox_msg(cptvf, msg); in otx2_cptvf_pfvf_mbox_handler()
168 int otx2_cptvf_send_eng_grp_num_msg(struct otx2_cptvf_dev *cptvf, int eng_type) in otx2_cptvf_send_eng_grp_num_msg() argument
170 struct otx2_mbox *mbox = &cptvf->pfvf_mbox; in otx2_cptvf_send_eng_grp_num_msg()
171 struct pci_dev *pdev = cptvf->pdev; in otx2_cptvf_send_eng_grp_num_msg()
183 req->hdr.pcifunc = OTX2_CPT_RVU_PFFUNC(cptvf->vf_id, 0); in otx2_cptvf_send_eng_grp_num_msg()
189 int otx2_cptvf_send_kvf_limits_msg(struct otx2_cptvf_dev *cptvf) in otx2_cptvf_send_kvf_limits_msg() argument
191 struct otx2_mbox *mbox = &cptvf->pfvf_mbox; in otx2_cptvf_send_kvf_limits_msg()
192 struct pci_dev *pdev = cptvf->pdev; in otx2_cptvf_send_kvf_limits_msg()
204 req->pcifunc = OTX2_CPT_RVU_PFFUNC(cptvf->vf_id, 0); in otx2_cptvf_send_kvf_limits_msg()