#include <linux/errno.h>
#include <linux/mempool.h>
#include <scsi/scsi_tcq.h>
#include "snic_disc.h"
#include "snic.h"
#include "snic_io.h"
static const char * const snic_tgt_type_str[] = …;
static inline const char *
snic_tgt_type_to_str(int typ)
{ … }
static const char * const snic_tgt_state_str[] = …;
const char *
snic_tgt_state_to_str(int state)
{ … }
static void
snic_report_tgt_init(struct snic_host_req *req, u32 hid, u8 *buf, u32 len,
dma_addr_t rsp_buf_pa, ulong ctx)
{ … }
static int
snic_queue_report_tgt_req(struct snic *snic)
{ … }
static void
snic_scsi_scan_tgt(struct work_struct *work)
{ … }
static struct snic_tgt *
snic_tgt_lookup(struct snic *snic, struct snic_tgt_id *tgtid)
{ … }
void
snic_tgt_dev_release(struct device *dev)
{ … }
static void
snic_tgt_del(struct work_struct *work)
{ … }
static struct snic_tgt *
snic_tgt_create(struct snic *snic, struct snic_tgt_id *tgtid)
{ … }
void
snic_handle_tgt_disc(struct work_struct *work)
{ … }
int
snic_report_tgt_cmpl_handler(struct snic *snic, struct snic_fw_req *fwreq)
{ … }
void
snic_disc_init(struct snic_disc *disc)
{ … }
void
snic_disc_term(struct snic *snic)
{ … }
int
snic_disc_start(struct snic *snic)
{ … }
void
snic_handle_disc(struct work_struct *work)
{ … }
void
snic_tgt_del_all(struct snic *snic)
{ … }