| /linux/drivers/crypto/marvell/octeontx2/ ! |
| H A D | otx2_cptpf_main.c | 21 static void cptpf_enable_vfpf_mbox_intr(struct otx2_cptpf_dev *cptpf, in cptpf_enable_vfpf_mbox_intr() argument 27 otx2_cpt_write64(cptpf->reg_base, BLKADDR_RVUM, 0, in cptpf_enable_vfpf_mbox_intr() 29 otx2_cpt_write64(cptpf->reg_base, BLKADDR_RVUM, 0, in cptpf_enable_vfpf_mbox_intr() 34 otx2_cpt_write64(cptpf->reg_base, BLKADDR_RVUM, 0, in cptpf_enable_vfpf_mbox_intr() 41 otx2_cpt_write64(cptpf->reg_base, BLKADDR_RVUM, 0, in cptpf_enable_vfpf_mbox_intr() 47 static void cptpf_disable_vfpf_mbox_intr(struct otx2_cptpf_dev *cptpf, in cptpf_disable_vfpf_mbox_intr() argument 53 otx2_cpt_write64(cptpf->reg_base, BLKADDR_RVUM, 0, in cptpf_disable_vfpf_mbox_intr() 55 otx2_cpt_write64(cptpf->reg_base, BLKADDR_RVUM, 0, in cptpf_disable_vfpf_mbox_intr() 58 otx2_cpt_write64(cptpf->reg_base, BLKADDR_RVUM, 0, in cptpf_disable_vfpf_mbox_intr() 61 vector = pci_irq_vector(cptpf->pdev, RVU_PF_INT_VEC_VFPF_MBOX0); in cptpf_disable_vfpf_mbox_intr() [all …]
|
| H A D | otx2_cptpf_mbox.c | 28 static int forward_to_af(struct otx2_cptpf_dev *cptpf, in forward_to_af() argument 35 mutex_lock(&cptpf->lock); in forward_to_af() 36 msg = otx2_mbox_alloc_msg(&cptpf->afpf_mbox, 0, size); in forward_to_af() 38 mutex_unlock(&cptpf->lock); in forward_to_af() 49 ret = otx2_cpt_sync_mbox_msg(&cptpf->afpf_mbox); in forward_to_af() 56 dev_warn(&cptpf->pdev->dev, in forward_to_af() 58 mutex_unlock(&cptpf->lock); in forward_to_af() 61 mutex_unlock(&cptpf->lock); in forward_to_af() 65 static int handle_msg_get_caps(struct otx2_cptpf_dev *cptpf, in handle_msg_get_caps() argument 72 otx2_mbox_alloc_msg(&cptpf->vfpf_mbox, vf->vf_id, in handle_msg_get_caps() [all …]
|
| H A D | otx2_cpt_devlink.c | 11 struct otx2_cptpf_dev *cptpf = cpt_dl->cptpf; in otx2_cpt_dl_egrp_create() local 13 return otx2_cpt_dl_custom_egrp_create(cptpf, ctx); in otx2_cpt_dl_egrp_create() 21 struct otx2_cptpf_dev *cptpf = cpt_dl->cptpf; in otx2_cpt_dl_egrp_delete() local 23 return otx2_cpt_dl_custom_egrp_delete(cptpf, ctx); in otx2_cpt_dl_egrp_delete() 40 struct otx2_cptpf_dev *cptpf = cpt_dl->cptpf; in otx2_cpt_dl_t106_mode_get() local 41 struct pci_dev *pdev = cptpf->pdev; in otx2_cpt_dl_t106_mode_get() 44 otx2_cpt_read_af_reg(&cptpf->afpf_mbox, pdev, CPT_AF_CTL, ®_val, in otx2_cpt_dl_t106_mode_get() 56 struct otx2_cptpf_dev *cptpf = cpt_dl->cptpf; in otx2_cpt_dl_t106_mode_set() local 57 struct pci_dev *pdev = cptpf->pdev; in otx2_cpt_dl_t106_mode_set() 60 if (cptpf->enabled_vfs != 0 || cptpf->eng_grps.is_grps_created) in otx2_cpt_dl_t106_mode_set() [all …]
|
| H A D | otx2_cptpf_ucode.c | 162 static int __write_ucode_base(struct otx2_cptpf_dev *cptpf, int eng, in __write_ucode_base() argument 165 return otx2_cpt_write_af_reg(&cptpf->afpf_mbox, cptpf->pdev, in __write_ucode_base() 171 struct otx2_cptpf_dev *cptpf, int blkaddr) in cptx_set_ucode_base() argument 178 ret = otx2_cpt_write_af_reg(&cptpf->afpf_mbox, cptpf->pdev, in cptx_set_ucode_base() 180 rvu_make_pcifunc(cptpf->pdev, in cptx_set_ucode_base() 181 cptpf->pf_id, 0), in cptx_set_ucode_base() 199 ret = __write_ucode_base(cptpf, bit, dma_addr, in cptx_set_ucode_base() 210 struct otx2_cptpf_dev *cptpf = obj; in cpt_set_ucode_base() local 213 if (cptpf->has_cpt1) { in cpt_set_ucode_base() 214 ret = cptx_set_ucode_base(eng_grp, cptpf, BLKADDR_CPT1); in cpt_set_ucode_base() [all …]
|
| H A D | cn10k_cpt.c | 83 int cn10k_cptpf_lmtst_init(struct otx2_cptpf_dev *cptpf) in cn10k_cptpf_lmtst_init() argument 85 struct pci_dev *pdev = cptpf->pdev; in cn10k_cptpf_lmtst_init() 89 if (!test_bit(CN10K_LMTST, &cptpf->cap_flag)) { in cn10k_cptpf_lmtst_init() 90 cptpf->lfs.ops = &otx2_hw_ops; in cn10k_cptpf_lmtst_init() 94 cptpf->lfs.ops = &cn10k_hw_ops; in cn10k_cptpf_lmtst_init() 96 ret = cn10k_cpt_lmtst_alloc(pdev, &cptpf->lfs, size); in cn10k_cptpf_lmtst_init() 99 cptpf->pf_id); in cn10k_cptpf_lmtst_init() 103 ret = otx2_cpt_lmtst_tbl_setup_msg(&cptpf->lfs); in cn10k_cptpf_lmtst_init() 106 cptpf->pf_id); in cn10k_cptpf_lmtst_init() 107 cn10k_cpt_lmtst_free(pdev, &cptpf->lfs); in cn10k_cptpf_lmtst_init()
|
| H A D | otx2_cptpf_ucode.h | 160 int otx2_cpt_create_eng_grps(struct otx2_cptpf_dev *cptpf, 162 int otx2_cpt_disable_all_cores(struct otx2_cptpf_dev *cptpf); 164 int otx2_cpt_discover_eng_capabilities(struct otx2_cptpf_dev *cptpf); 165 int otx2_cpt_dl_custom_egrp_create(struct otx2_cptpf_dev *cptpf, 167 int otx2_cpt_dl_custom_egrp_delete(struct otx2_cptpf_dev *cptpf,
|
| H A D | otx2_cpt_devlink.h | 13 struct otx2_cptpf_dev *cptpf; member 17 int otx2_cpt_register_dl(struct otx2_cptpf_dev *cptpf); 18 void otx2_cpt_unregister_dl(struct otx2_cptpf_dev *cptpf);
|
| H A D | otx2_cptpf.h | 14 struct otx2_cptpf_dev *cptpf; /* PF pointer this VF belongs to */ member 74 int otx2_inline_cptlf_setup(struct otx2_cptpf_dev *cptpf,
|
| H A D | cn10k_cpt.h | 51 int cn10k_cptpf_lmtst_init(struct otx2_cptpf_dev *cptpf);
|
| /linux/drivers/crypto/cavium/cpt/ ! |
| H A D | Makefile | 2 obj-$(CONFIG_CAVIUM_CPT) += cptpf.o cptvf.o 3 cptpf-objs := cptpf_main.o cptpf_mbox.o
|