#include "erdma.h"
static void arm_cmdq_cq(struct erdma_cmdq *cmdq)
{ … }
static void kick_cmdq_db(struct erdma_cmdq *cmdq)
{ … }
static struct erdma_comp_wait *get_comp_wait(struct erdma_cmdq *cmdq)
{ … }
static void put_comp_wait(struct erdma_cmdq *cmdq,
struct erdma_comp_wait *comp_wait)
{ … }
static int erdma_cmdq_wait_res_init(struct erdma_dev *dev,
struct erdma_cmdq *cmdq)
{ … }
static int erdma_cmdq_sq_init(struct erdma_dev *dev)
{ … }
static int erdma_cmdq_cq_init(struct erdma_dev *dev)
{ … }
static int erdma_cmdq_eq_init(struct erdma_dev *dev)
{ … }
int erdma_cmdq_init(struct erdma_dev *dev)
{ … }
void erdma_finish_cmdq_init(struct erdma_dev *dev)
{ … }
void erdma_cmdq_destroy(struct erdma_dev *dev)
{ … }
static void *get_next_valid_cmdq_cqe(struct erdma_cmdq *cmdq)
{ … }
static void push_cmdq_sqe(struct erdma_cmdq *cmdq, u64 *req, size_t req_len,
struct erdma_comp_wait *comp_wait)
{ … }
static int erdma_poll_single_cmd_completion(struct erdma_cmdq *cmdq)
{ … }
static void erdma_polling_cmd_completions(struct erdma_cmdq *cmdq)
{ … }
void erdma_cmdq_completion_handler(struct erdma_cmdq *cmdq)
{ … }
static int erdma_poll_cmd_completion(struct erdma_comp_wait *comp_ctx,
struct erdma_cmdq *cmdq, u32 timeout)
{ … }
static int erdma_wait_cmd_completion(struct erdma_comp_wait *comp_ctx,
struct erdma_cmdq *cmdq, u32 timeout)
{ … }
void erdma_cmdq_build_reqhdr(u64 *hdr, u32 mod, u32 op)
{ … }
int erdma_post_cmd_wait(struct erdma_cmdq *cmdq, void *req, u32 req_size,
u64 *resp0, u64 *resp1)
{ … }