#include <linux/bitfield.h>
#include <linux/module.h>
#include <linux/pci.h>
#include "rvu_struct.h"
#include "rvu_reg.h"
#include "rvu.h"
static int npa_aq_enqueue_wait(struct rvu *rvu, struct rvu_block *block,
struct npa_aq_inst_s *inst)
{ … }
int rvu_npa_aq_enq_inst(struct rvu *rvu, struct npa_aq_enq_req *req,
struct npa_aq_enq_rsp *rsp)
{ … }
static int npa_lf_hwctx_disable(struct rvu *rvu, struct hwctx_disable_req *req)
{ … }
#ifdef CONFIG_NDC_DIS_DYNAMIC_CACHING
static int npa_lf_hwctx_lockdown(struct rvu *rvu, struct npa_aq_enq_req *req)
{ … }
int rvu_mbox_handler_npa_aq_enq(struct rvu *rvu,
struct npa_aq_enq_req *req,
struct npa_aq_enq_rsp *rsp)
{ … }
#else
int rvu_mbox_handler_npa_aq_enq(struct rvu *rvu,
struct npa_aq_enq_req *req,
struct npa_aq_enq_rsp *rsp)
{
return rvu_npa_aq_enq_inst(rvu, req, rsp);
}
#endif
int rvu_mbox_handler_npa_hwctx_disable(struct rvu *rvu,
struct hwctx_disable_req *req,
struct msg_rsp *rsp)
{ … }
static void npa_ctx_free(struct rvu *rvu, struct rvu_pfvf *pfvf)
{ … }
int rvu_mbox_handler_npa_lf_alloc(struct rvu *rvu,
struct npa_lf_alloc_req *req,
struct npa_lf_alloc_rsp *rsp)
{ … }
int rvu_mbox_handler_npa_lf_free(struct rvu *rvu, struct msg_req *req,
struct msg_rsp *rsp)
{ … }
static int npa_aq_init(struct rvu *rvu, struct rvu_block *block)
{ … }
int rvu_npa_init(struct rvu *rvu)
{ … }
void rvu_npa_freemem(struct rvu *rvu)
{ … }
void rvu_npa_lf_teardown(struct rvu *rvu, u16 pcifunc, int npalf)
{ … }
int rvu_ndc_fix_locked_cacheline(struct rvu *rvu, int blkaddr)
{ … }