Searched refs:cptvf (Results 1 – 8 of 8) sorted by relevance
/Linux-v4.19/drivers/crypto/cavium/cpt/ |
D | cptvf_main.c | 19 void *cptvf; member 32 vq_post_process(cwqe->cptvf, cwqe->qno); in vq_work_handler() 35 static int init_worker_threads(struct cpt_vf *cptvf) in init_worker_threads() argument 37 struct pci_dev *pdev = cptvf->pdev; in init_worker_threads() 45 if (cptvf->nr_queues) { in init_worker_threads() 47 cptvf->nr_queues); in init_worker_threads() 50 for (i = 0; i < cptvf->nr_queues; i++) { in init_worker_threads() 54 cwqe_info->vq_wqe[i].cptvf = cptvf; in init_worker_threads() 57 cptvf->wqe_info = cwqe_info; in init_worker_threads() 62 static void cleanup_worker_threads(struct cpt_vf *cptvf) in cleanup_worker_threads() argument [all …]
|
D | cptvf_mbox.c | 11 static void cptvf_send_msg_to_pf(struct cpt_vf *cptvf, struct cpt_mbox *mbx) in cptvf_send_msg_to_pf() argument 14 cpt_write_csr64(cptvf->reg_base, CPTX_VFX_PF_MBOXX(0, 0, 0), in cptvf_send_msg_to_pf() 16 cpt_write_csr64(cptvf->reg_base, CPTX_VFX_PF_MBOXX(0, 0, 1), in cptvf_send_msg_to_pf() 22 void cptvf_mbox_send_ack(struct cpt_vf *cptvf, struct cpt_mbox *mbx) in cptvf_mbox_send_ack() argument 25 cptvf_send_msg_to_pf(cptvf, mbx); in cptvf_mbox_send_ack() 31 void cptvf_mbox_send_nack(struct cpt_vf *cptvf, struct cpt_mbox *mbx) in cptvf_mbox_send_nack() argument 34 cptvf_send_msg_to_pf(cptvf, mbx); in cptvf_mbox_send_nack() 38 void cptvf_handle_mbox_intr(struct cpt_vf *cptvf) in cptvf_handle_mbox_intr() argument 46 mbx.msg = cpt_read_csr64(cptvf->reg_base, CPTX_VFX_PF_MBOXX(0, 0, 0)); in cptvf_handle_mbox_intr() 47 mbx.data = cpt_read_csr64(cptvf->reg_base, CPTX_VFX_PF_MBOXX(0, 0, 1)); in cptvf_handle_mbox_intr() [all …]
|
D | cptvf_reqmanager.c | 46 static int setup_sgio_components(struct cpt_vf *cptvf, struct buf_ptr *list, in setup_sgio_components() argument 52 struct pci_dev *pdev = cptvf->pdev; in setup_sgio_components() 123 static inline int setup_sgio_list(struct cpt_vf *cptvf, in setup_sgio_list() argument 129 struct pci_dev *pdev = cptvf->pdev; in setup_sgio_list() 145 ret = setup_sgio_components(cptvf, req->in, in setup_sgio_list() 162 ret = setup_sgio_components(cptvf, req->out, in setup_sgio_list() 226 int send_cpt_command(struct cpt_vf *cptvf, union cpt_inst_s *cmd, in send_cpt_command() argument 229 struct pci_dev *pdev = cptvf->pdev; in send_cpt_command() 236 if (unlikely(qno >= cptvf->nr_queues)) { in send_cpt_command() 238 qno, cptvf->nr_queues); in send_cpt_command() [all …]
|
D | cptvf.h | 121 int cptvf_send_vf_up(struct cpt_vf *cptvf); 122 int cptvf_send_vf_down(struct cpt_vf *cptvf); 123 int cptvf_send_vf_to_grp_msg(struct cpt_vf *cptvf); 124 int cptvf_send_vf_priority_msg(struct cpt_vf *cptvf); 125 int cptvf_send_vq_size_msg(struct cpt_vf *cptvf); 126 int cptvf_check_pf_ready(struct cpt_vf *cptvf); 127 void cptvf_handle_mbox_intr(struct cpt_vf *cptvf); 129 int cvm_crypto_init(struct cpt_vf *cptvf); 130 void vq_post_process(struct cpt_vf *cptvf, u32 qno); 131 void cptvf_write_vq_doorbell(struct cpt_vf *cptvf, u32 val);
|
D | Makefile | 1 obj-$(CONFIG_CAVIUM_CPT) += cptpf.o cptvf.o 3 cptvf-objs := cptvf_main.o cptvf_reqmanager.o cptvf_mbox.o cptvf_algs.o
|
D | request_manager.h | 92 struct cpt_vf *cptvf; member 145 void vq_post_process(struct cpt_vf *cptvf, u32 qno); 146 int process_request(struct cpt_vf *cptvf, struct cpt_request_info *req);
|
D | cptvf_algs.h | 119 int cptvf_do_request(void *cptvf, struct cpt_request_info *req);
|
D | cptvf_algs.c | 498 int cvm_crypto_init(struct cpt_vf *cptvf) in cvm_crypto_init() argument 500 struct pci_dev *pdev = cptvf->pdev; in cvm_crypto_init() 504 dev_handle.cdev[dev_count] = cptvf; in cvm_crypto_init()
|