/linux/drivers/crypto/cavium/cpt/ |
A D | cptvf_main.c | 16 void *cptvf; member 51 cwqe_info->vq_wqe[i].cptvf = cptvf; in init_worker_threads() 285 ret = alloc_command_queues(cptvf, &cptvf->cqinfo, CPT_INST_SIZE, in init_command_queues() 305 free_command_queues(cptvf, &cptvf->cqinfo); in cleanup_command_queues() 550 cptvf->vfid); in cptvf_misc_intr_handler() 622 cptvf->vfid); in cptvf_set_irq_affinity() 670 cptvf = devm_kzalloc(dev, sizeof(*cptvf), GFP_KERNEL); in cptvf_probe() 671 if (!cptvf) in cptvf_probe() 715 cptvf); in cptvf_probe() 766 cptvf); in cptvf_probe() [all …]
|
A D | cptvf_mbox.c | 33 cptvf->pf_acked = true; in cptvf_handle_mbox_intr() 34 cptvf->vfid = mbx.data; in cptvf_handle_mbox_intr() 35 dev_dbg(&cptvf->pdev->dev, "Received VFID %d\n", cptvf->vfid); in cptvf_handle_mbox_intr() 39 cptvf->pf_acked = true; in cptvf_handle_mbox_intr() 40 cptvf->vftype = mbx.data; in cptvf_handle_mbox_intr() 43 cptvf->vfgrp); in cptvf_handle_mbox_intr() 46 cptvf->pf_acked = true; in cptvf_handle_mbox_intr() 49 cptvf->pf_nacked = true; in cptvf_handle_mbox_intr() 64 cptvf->pf_acked = false; in cptvf_send_msg_to_pf_timeout() 69 if (cptvf->pf_nacked) in cptvf_send_msg_to_pf_timeout() [all …]
|
A D | cptvf_reqmanager.c | 50 struct pci_dev *pdev = cptvf->pdev; in setup_sgio_components() 235 qno, cptvf->nr_queues); in send_cpt_command() 239 qinfo = &cptvf->cqinfo; in send_cpt_command() 321 do_request_cleanup(cptvf, info); in do_post_process() 429 info->cptvf = cptvf; in process_request() 480 process_pending_queue(cptvf, &cptvf->pqinfo, queue); in process_request() 489 process_pending_queue(cptvf, &cptvf->pqinfo, queue); in process_request() 551 process_pending_queue(cptvf, &cptvf->pqinfo, qno); in vq_post_process() 559 if (!cpt_device_ready(cptvf)) { in cptvf_do_request() 566 cptvf->vfid); in cptvf_do_request() [all …]
|
A D | cptvf.h | 118 int cptvf_send_vf_up(struct cpt_vf *cptvf); 119 int cptvf_send_vf_down(struct cpt_vf *cptvf); 120 int cptvf_send_vf_to_grp_msg(struct cpt_vf *cptvf); 121 int cptvf_send_vf_priority_msg(struct cpt_vf *cptvf); 122 int cptvf_send_vq_size_msg(struct cpt_vf *cptvf); 123 int cptvf_check_pf_ready(struct cpt_vf *cptvf); 124 void cptvf_handle_mbox_intr(struct cpt_vf *cptvf); 126 int cvm_crypto_init(struct cpt_vf *cptvf); 127 void vq_post_process(struct cpt_vf *cptvf, u32 qno); 128 void cptvf_write_vq_doorbell(struct cpt_vf *cptvf, u32 val);
|
A D | request_manager.h | 91 struct cpt_vf *cptvf; member 144 void vq_post_process(struct cpt_vf *cptvf, u32 qno); 145 int process_request(struct cpt_vf *cptvf, struct cpt_request_info *req);
|
A D | Makefile | 2 obj-$(CONFIG_CAVIUM_CPT) += cptpf.o cptvf.o 4 cptvf-objs := cptvf_main.o cptvf_reqmanager.o cptvf_mbox.o cptvf_algs.o
|
A D | cptvf_algs.c | 462 int cvm_crypto_init(struct cpt_vf *cptvf) in cvm_crypto_init() argument 464 struct pci_dev *pdev = cptvf->pdev; in cvm_crypto_init() 468 dev_handle.cdev[dev_count] = cptvf; in cvm_crypto_init()
|
A D | cptvf_algs.h | 116 int cptvf_do_request(void *cptvf, struct cpt_request_info *req);
|
/linux/drivers/crypto/marvell/octeontx/ |
A D | otx_cptvf_main.c | 46 cwqe_info->vq_wqe[i].cptvf = cptvf; in init_worker_threads() 271 ret = alloc_command_queues(cptvf, &cptvf->cqinfo, qlen); in init_command_queues() 289 free_command_queues(cptvf, &cptvf->cqinfo); in cleanup_command_queues() 533 cptvf->vfid); in cptvf_misc_intr_handler() 790 cptvf = devm_kzalloc(dev, sizeof(*cptvf), GFP_KERNEL); in otx_cptvf_probe() 791 if (!cptvf) in otx_cptvf_probe() 832 cptvf); in otx_cptvf_probe() 862 err = otx_cptvf_send_vf_to_grp_msg(cptvf, cptvf->vfgrp); in otx_cptvf_probe() 873 cptvf); in otx_cptvf_probe() 893 cptvf->vftype, 1, cptvf->num_vfs); in otx_cptvf_probe() [all …]
|
A D | otx_cptvf_mbox.c | 99 cptvf->pf_acked = true; in otx_cptvf_handle_mbox_intr() 103 cptvf->pf_acked = true; in otx_cptvf_handle_mbox_intr() 104 cptvf->vfid = mbx.data; in otx_cptvf_handle_mbox_intr() 105 dev_dbg(&cptvf->pdev->dev, "Received VFID %d\n", cptvf->vfid); in otx_cptvf_handle_mbox_intr() 108 cptvf->pf_acked = true; in otx_cptvf_handle_mbox_intr() 111 cptvf->vfid, in otx_cptvf_handle_mbox_intr() 113 cptvf->vfgrp); in otx_cptvf_handle_mbox_intr() 116 cptvf->pf_acked = true; in otx_cptvf_handle_mbox_intr() 139 if (cptvf->pf_nacked) in cptvf_send_msg_to_pf_timeout() 142 if (cptvf->pf_acked) in cptvf_send_msg_to_pf_timeout() [all …]
|
A D | otx_cptvf.h | 62 struct otx_cptvf *cptvf; member 95 int otx_cptvf_send_vf_up(struct otx_cptvf *cptvf); 96 int otx_cptvf_send_vf_down(struct otx_cptvf *cptvf); 97 int otx_cptvf_send_vf_to_grp_msg(struct otx_cptvf *cptvf, int group); 98 int otx_cptvf_send_vf_priority_msg(struct otx_cptvf *cptvf); 99 int otx_cptvf_send_vq_size_msg(struct otx_cptvf *cptvf); 100 int otx_cptvf_check_pf_ready(struct otx_cptvf *cptvf); 101 void otx_cptvf_handle_mbox_intr(struct otx_cptvf *cptvf); 102 void otx_cptvf_write_vq_doorbell(struct otx_cptvf *cptvf, u32 val);
|
A D | otx_cptvf_reqmgr.c | 270 struct otx_cpt_cmd_qinfo *qinfo = &cptvf->cqinfo; in cpt_send_cmd() 294 otx_cptvf_write_vq_doorbell(cptvf, 1); in cpt_send_cmd() 299 struct otx_cptvf *cptvf) in process_request() argument 386 cpt_send_cmd(&cptinst, cptvf); in process_request() 407 struct otx_cptvf *cptvf = pci_get_drvdata(pdev); in otx_cpt_do_request() local 409 if (!otx_cpt_device_ready(cptvf)) { in otx_cpt_do_request() 416 cptvf->vfid); in otx_cpt_do_request() 418 } else if ((cptvf->vftype == OTX_CPT_AE_TYPES) && in otx_cpt_do_request() 421 cptvf->vfid); in otx_cpt_do_request() 425 return process_request(pdev, req, &cptvf->pqinfo.queue[0], cptvf); in otx_cpt_do_request() [all …]
|
A D | Makefile | 2 obj-$(CONFIG_CRYPTO_DEV_OCTEONTX_CPT) += octeontx-cpt.o octeontx-cptvf.o 5 octeontx-cptvf-objs := otx_cptvf_main.o otx_cptvf_mbox.o otx_cptvf_reqmgr.o \
|
/linux/drivers/crypto/marvell/octeontx2/ |
A D | otx2_cptvf_main.c | 48 dev_err(&cptvf->pdev->dev, in cptvf_register_interrupts() 62 ret = otx2_cpt_send_ready_msg(&cptvf->pfvf_mbox, cptvf->pdev); in cptvf_register_interrupts() 81 if (!cptvf->pfvf_mbox_wq) in cptvf_pfvf_mbox_init() 88 cptvf->pfvf_mbox_base = cptvf->reg_base + in cptvf_pfvf_mbox_init() 103 ret = otx2_mbox_init(&cptvf->pfvf_mbox, cptvf->pfvf_mbox_base, in cptvf_pfvf_mbox_init() 281 lfs->pdev = cptvf->pdev; in cptvf_lf_init() 284 lfs_num = cptvf->lfs.kvf_limits ? cptvf->lfs.kvf_limits : in cptvf_lf_init() 339 cptvf = devm_kzalloc(dev, sizeof(*cptvf), GFP_KERNEL); in otx2_cptvf_probe() 340 if (!cptvf) in otx2_cptvf_probe() 363 cptvf->pdev = pdev; in otx2_cptvf_probe() [all …]
|
A D | otx2_cptvf_mbox.c | 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 61 queue_work(cptvf->pfvf_mbox_wq, &cptvf->pfvf_mbox_work); in otx2_cptvf_pfvf_mbox_intr() 80 dev_err(&cptvf->pdev->dev, in process_pfvf_mbox_mbox_msg() 85 dev_err(&cptvf->pdev->dev, in process_pfvf_mbox_mbox_msg() 113 dev_err(&cptvf->pdev->dev, in process_pfvf_mbox_mbox_msg() 139 struct otx2_cptvf_dev *cptvf; in otx2_cptvf_pfvf_mbox_handler() local 150 pfvf_mbox = &cptvf->pfvf_mbox; in otx2_cptvf_pfvf_mbox_handler() [all …]
|
A D | cn10k_cpt.c | 72 int cn10k_cptvf_lmtst_init(struct otx2_cptvf_dev *cptvf) in cn10k_cptvf_lmtst_init() argument 74 struct pci_dev *pdev = cptvf->pdev; in cn10k_cptvf_lmtst_init() 77 if (!test_bit(CN10K_LMTST, &cptvf->cap_flag)) { in cn10k_cptvf_lmtst_init() 78 cptvf->lfs.ops = &otx2_hw_ops; in cn10k_cptvf_lmtst_init() 82 cptvf->lfs.ops = &cn10k_hw_ops; in cn10k_cptvf_lmtst_init() 86 cptvf->lfs.lmt_base = devm_ioremap_wc(&pdev->dev, offset, size); in cn10k_cptvf_lmtst_init() 87 if (!cptvf->lfs.lmt_base) { in cn10k_cptvf_lmtst_init()
|
A D | otx2_cptvf.h | 28 int otx2_cptvf_send_eng_grp_num_msg(struct otx2_cptvf_dev *cptvf, int eng_type); 29 int otx2_cptvf_send_kvf_limits_msg(struct otx2_cptvf_dev *cptvf); 30 int otx2_cpt_mbox_bbuf_init(struct otx2_cptvf_dev *cptvf, struct pci_dev *pdev);
|
A D | otx2_cptvf_reqmgr.c | 345 struct otx2_cptvf_dev *cptvf = pci_get_drvdata(pdev); in otx2_cpt_do_request() local 346 struct otx2_cptlfs_info *lfs = &cptvf->lfs; in otx2_cpt_do_request() 541 struct otx2_cptvf_dev *cptvf = pci_get_drvdata(pdev); in otx2_cpt_get_kcrypto_eng_grp_num() local 543 return cptvf->lfs.kcrypto_eng_grp_num; in otx2_cpt_get_kcrypto_eng_grp_num()
|
A D | cn10k_cpt.h | 34 int cn10k_cptvf_lmtst_init(struct otx2_cptvf_dev *cptvf);
|
/linux/drivers/crypto/marvell/ |
A D | Kconfig | 37 the modules will be called octeontx-cpt and octeontx-cptvf
|