linux/drivers/crypto/marvell/octeontx2/otx2_cptvf_reqmgr.c

// SPDX-License-Identifier: GPL-2.0-only
/* Copyright (C) 2020 Marvell. */

#include "otx2_cptvf.h"
#include "otx2_cpt_common.h"

/* Default timeout when waiting for free pending entry in us */
#define CPT_PENTRY_TIMEOUT
#define CPT_PENTRY_STEP

/* Default threshold for stopping and resuming sender requests */
#define CPT_IQ_STOP_MARGIN
#define CPT_IQ_RESUME_MARGIN

/* Default command timeout in seconds */
#define CPT_COMMAND_TIMEOUT
#define CPT_TIME_IN_RESET_COUNT

static void otx2_cpt_dump_sg_list(struct pci_dev *pdev,
				  struct otx2_cpt_req_info *req)
{}

static inline struct otx2_cpt_pending_entry *get_free_pending_entry(
					struct otx2_cpt_pending_queue *q,
					int qlen)
{}

static inline u32 modulo_inc(u32 index, u32 length, u32 inc)
{}

static inline void free_pentry(struct otx2_cpt_pending_entry *pentry)
{}

static int process_request(struct pci_dev *pdev, struct otx2_cpt_req_info *req,
			   struct otx2_cpt_pending_queue *pqueue,
			   struct otx2_cptlf_info *lf)
{}

int otx2_cpt_do_request(struct pci_dev *pdev, struct otx2_cpt_req_info *req,
			int cpu_num)
{}

static int cpt_process_ccode(struct otx2_cptlfs_info *lfs,
			     union otx2_cpt_res_s *cpt_status,
			     struct otx2_cpt_inst_info *info,
			     u32 *res_code)
{}

static inline void process_pending_queue(struct otx2_cptlfs_info *lfs,
					 struct otx2_cpt_pending_queue *pqueue)
{}

void otx2_cpt_post_process(struct otx2_cptlf_wqe *wqe)
{}

int otx2_cpt_get_kcrypto_eng_grp_num(struct pci_dev *pdev)
{}