linux/drivers/scsi/qla2xxx/qla_mid.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * QLogic Fibre Channel HBA Driver
 * Copyright (c)  2003-2014 QLogic Corporation
 */
#include "qla_def.h"
#include "qla_gbl.h"
#include "qla_target.h"

#include <linux/moduleparam.h>
#include <linux/vmalloc.h>
#include <linux/slab.h>
#include <linux/list.h>

#include <scsi/scsi_tcq.h>
#include <scsi/scsicam.h>
#include <linux/delay.h>

void
qla2x00_vp_stop_timer(scsi_qla_host_t *vha)
{}

static uint32_t
qla24xx_allocate_vp_id(scsi_qla_host_t *vha)
{}

void
qla24xx_deallocate_vp_id(scsi_qla_host_t *vha)
{}

static scsi_qla_host_t *
qla24xx_find_vhost_by_name(struct qla_hw_data *ha, uint8_t *port_name)
{}

/*
 * qla2x00_mark_vp_devices_dead
 *	Updates fcport state when device goes offline.
 *
 * Input:
 *	ha = adapter block pointer.
 *	fcport = port structure pointer.
 *
 * Return:
 *	None.
 *
 * Context:
 */
static void
qla2x00_mark_vp_devices_dead(scsi_qla_host_t *vha)
{}

int
qla24xx_disable_vp(scsi_qla_host_t *vha)
{}

int
qla24xx_enable_vp(scsi_qla_host_t *vha)
{}

static void
qla24xx_configure_vp(scsi_qla_host_t *vha)
{}

void
qla2x00_alert_all_vps(struct rsp_que *rsp, uint16_t *mb)
{}

int
qla2x00_vp_abort_isp(scsi_qla_host_t *vha)
{}

static int
qla2x00_do_dpc_vp(scsi_qla_host_t *vha)
{}

void
qla2x00_do_dpc_all_vps(scsi_qla_host_t *vha)
{}

int
qla24xx_vport_create_req_sanity_check(struct fc_vport *fc_vport)
{}

scsi_qla_host_t *
qla24xx_create_vhost(struct fc_vport *fc_vport)
{}

static void
qla25xx_free_req_que(struct scsi_qla_host *vha, struct req_que *req)
{}

static void
qla25xx_free_rsp_que(struct scsi_qla_host *vha, struct rsp_que *rsp)
{}

int
qla25xx_delete_req_que(struct scsi_qla_host *vha, struct req_que *req)
{}

int
qla25xx_delete_rsp_que(struct scsi_qla_host *vha, struct rsp_que *rsp)
{}

/* Delete all queues for a given vhost */
int
qla25xx_delete_queues(struct scsi_qla_host *vha)
{}

int
qla25xx_create_req_que(struct qla_hw_data *ha, uint16_t options,
    uint8_t vp_idx, uint16_t rid, int rsp_que, uint8_t qos, bool startqp)
{}

static void qla_do_work(struct work_struct *work)
{}

/* create response queue */
int
qla25xx_create_rsp_que(struct qla_hw_data *ha, uint16_t options,
    uint8_t vp_idx, uint16_t rid, struct qla_qpair *qpair, bool startqp)
{}

static void qla_ctrlvp_sp_done(srb_t *sp, int res)
{}

/**
 * qla24xx_control_vp() - Enable a virtual port for given host
 * @vha:	adapter block pointer
 * @cmd:	command type to be sent for enable virtual port
 *
 * Return:	qla2xxx local function return status code.
 */
int qla24xx_control_vp(scsi_qla_host_t *vha, int cmd)
{}

struct scsi_qla_host *qla_find_host_by_vp_idx(struct scsi_qla_host *vha, uint16_t vp_idx)
{}

/* vport_slock to be held by the caller */
void
qla_update_vp_map(struct scsi_qla_host *vha, int cmd)
{}

void qla_update_host_map(struct scsi_qla_host *vha, port_id_t id)
{}

int qla_create_buf_pool(struct scsi_qla_host *vha, struct qla_qpair *qp)
{}

void qla_free_buf_pool(struct qla_qpair *qp)
{}

/* it is assume qp->qp_lock is held at this point */
int qla_get_buf(struct scsi_qla_host *vha, struct qla_qpair *qp, struct qla_buf_dsc *dsc)
{}

static void qla_trim_buf(struct qla_qpair *qp, u16 trim)
{}

static void __qla_adjust_buf(struct qla_qpair *qp)
{}

/* it is assume qp->qp_lock is held at this point */
void qla_put_buf(struct qla_qpair *qp, struct qla_buf_dsc *dsc)
{}

#define EXPIRE
void qla_adjust_buf(struct scsi_qla_host *vha)
{}