|
|
|
@@ -43,11 +43,7 @@ static void qla2xxx_free_fcport_work(struct work_struct *work)
|
|
|
|
|
/* BSG support for ELS/CT pass through */
|
|
|
|
|
void qla2x00_bsg_job_done(srb_t *sp, int res)
|
|
|
|
|
{
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
struct fc_bsg_job *bsg_job = sp->u.bsg_job;
|
|
|
|
|
#else
|
|
|
|
|
struct bsg_job *bsg_job = sp->u.bsg_job;
|
|
|
|
|
#endif
|
|
|
|
|
BSG_JOB_TYPE *bsg_job = sp->u.bsg_job;
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
|
|
|
|
|
|
sp->free(sp);
|
|
|
|
@@ -60,11 +56,7 @@ void qla2x00_bsg_job_done(srb_t *sp, int res)
|
|
|
|
|
void qla2x00_bsg_sp_free(srb_t *sp)
|
|
|
|
|
{
|
|
|
|
|
struct qla_hw_data *ha = sp->vha->hw;
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
struct fc_bsg_job *bsg_job = sp->u.bsg_job;
|
|
|
|
|
#else
|
|
|
|
|
struct bsg_job *bsg_job = sp->u.bsg_job;
|
|
|
|
|
#endif
|
|
|
|
|
BSG_JOB_TYPE *bsg_job = sp->u.bsg_job;
|
|
|
|
|
struct fc_bsg_request *bsg_request = bsg_job->request;
|
|
|
|
|
struct qla_mt_iocb_rqst_fx00 *piocb_rqst;
|
|
|
|
|
|
|
|
|
@@ -154,11 +146,7 @@ qla24xx_fcp_prio_cfg_valid(scsi_qla_host_t *vha,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla24xx_proc_fcp_prio_cfg_cmd(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla24xx_proc_fcp_prio_cfg_cmd(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla24xx_proc_fcp_prio_cfg_cmd(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct Scsi_Host *host = fc_bsg_to_shost(bsg_job);
|
|
|
|
|
struct fc_bsg_request *bsg_request = bsg_job->request;
|
|
|
|
@@ -286,11 +274,7 @@ exit_fcp_prio_cfg:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla2x00_process_els(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla2x00_process_els(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla2x00_process_els(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_request *bsg_request = bsg_job->request;
|
|
|
|
|
struct fc_rport *rport;
|
|
|
|
@@ -473,11 +457,7 @@ qla24xx_calc_ct_iocbs(uint16_t dsds)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla2x00_process_ct(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla2x00_process_ct(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla2x00_process_ct(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
srb_t *sp;
|
|
|
|
|
struct fc_bsg_request *bsg_request = bsg_job->request;
|
|
|
|
@@ -755,11 +735,7 @@ done_set_internal:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla2x00_process_loopback(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla2x00_process_loopback(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla2x00_process_loopback(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_request *bsg_request = bsg_job->request;
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
@@ -1002,11 +978,7 @@ done_unmap_req_sg:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla84xx_reset(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla84xx_reset(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla84xx_reset(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_request *bsg_request = bsg_job->request;
|
|
|
|
|
struct Scsi_Host *host = fc_bsg_to_shost(bsg_job);
|
|
|
|
@@ -1042,11 +1014,7 @@ qla84xx_reset(struct bsg_job *bsg_job)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla84xx_updatefw(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla84xx_updatefw(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla84xx_updatefw(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_request *bsg_request = bsg_job->request;
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
@@ -1156,11 +1124,7 @@ done_unmap_sg:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla84xx_mgmt_cmd(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla84xx_mgmt_cmd(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla84xx_mgmt_cmd(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_request *bsg_request = bsg_job->request;
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
@@ -1356,11 +1320,7 @@ exit_mgmt:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla24xx_iidma(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla24xx_iidma(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla24xx_iidma(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_request *bsg_request = bsg_job->request;
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
@@ -1449,13 +1409,8 @@ qla24xx_iidma(struct bsg_job *bsg_job)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla2x00_optrom_setup(struct fc_bsg_job *bsg_job, scsi_qla_host_t *vha,
|
|
|
|
|
qla2x00_optrom_setup(BSG_JOB_TYPE *bsg_job, scsi_qla_host_t *vha,
|
|
|
|
|
uint8_t is_update)
|
|
|
|
|
#else
|
|
|
|
|
qla2x00_optrom_setup(struct bsg_job *bsg_job, scsi_qla_host_t *vha,
|
|
|
|
|
uint8_t is_update)
|
|
|
|
|
#endif
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_request *bsg_request = bsg_job->request;
|
|
|
|
|
uint32_t start = 0;
|
|
|
|
@@ -1524,11 +1479,7 @@ qla2x00_optrom_setup(struct bsg_job *bsg_job, scsi_qla_host_t *vha,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla2x00_read_optrom(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla2x00_read_optrom(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla2x00_read_optrom(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
|
struct Scsi_Host *host = fc_bsg_to_shost(bsg_job);
|
|
|
|
@@ -1565,11 +1516,7 @@ qla2x00_read_optrom(struct bsg_job *bsg_job)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla2x00_update_optrom(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla2x00_update_optrom(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla2x00_update_optrom(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
|
struct Scsi_Host *host = fc_bsg_to_shost(bsg_job);
|
|
|
|
@@ -1610,11 +1557,7 @@ qla2x00_update_optrom(struct bsg_job *bsg_job)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla2x00_update_fru_versions(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla2x00_update_fru_versions(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla2x00_update_fru_versions(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
|
struct Scsi_Host *host = fc_bsg_to_shost(bsg_job);
|
|
|
|
@@ -1667,11 +1610,7 @@ done:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla2x00_read_fru_status(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla2x00_read_fru_status(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla2x00_read_fru_status(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
|
struct Scsi_Host *host = fc_bsg_to_shost(bsg_job);
|
|
|
|
@@ -1722,11 +1661,7 @@ done:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla2x00_write_fru_status(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla2x00_write_fru_status(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla2x00_write_fru_status(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
|
struct Scsi_Host *host = fc_bsg_to_shost(bsg_job);
|
|
|
|
@@ -1773,11 +1708,7 @@ done:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla2x00_write_i2c(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla2x00_write_i2c(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla2x00_write_i2c(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
|
struct Scsi_Host *host = fc_bsg_to_shost(bsg_job);
|
|
|
|
@@ -1823,11 +1754,7 @@ done:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla2x00_read_i2c(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla2x00_read_i2c(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla2x00_read_i2c(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
|
struct Scsi_Host *host = fc_bsg_to_shost(bsg_job);
|
|
|
|
@@ -1877,11 +1804,7 @@ done:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla24xx_process_bidir_cmd(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla24xx_process_bidir_cmd(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla24xx_process_bidir_cmd(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
|
struct Scsi_Host *host = fc_bsg_to_shost(bsg_job);
|
|
|
|
@@ -2059,11 +1982,7 @@ done:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qlafx00_mgmt_cmd(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qlafx00_mgmt_cmd(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qlafx00_mgmt_cmd(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_request *bsg_request = bsg_job->request;
|
|
|
|
|
struct Scsi_Host *host = fc_bsg_to_shost(bsg_job);
|
|
|
|
@@ -2186,11 +2105,7 @@ done:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla26xx_serdes_op(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla26xx_serdes_op(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla26xx_serdes_op(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
|
struct Scsi_Host *host = fc_bsg_to_shost(bsg_job);
|
|
|
|
@@ -2232,11 +2147,7 @@ qla26xx_serdes_op(struct bsg_job *bsg_job)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla8044_serdes_op(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla8044_serdes_op(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla8044_serdes_op(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
|
struct Scsi_Host *host = fc_bsg_to_shost(bsg_job);
|
|
|
|
@@ -2278,11 +2189,7 @@ qla8044_serdes_op(struct bsg_job *bsg_job)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla27xx_get_flash_upd_cap(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla27xx_get_flash_upd_cap(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla27xx_get_flash_upd_cap(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
|
struct Scsi_Host *host = fc_bsg_to_shost(bsg_job);
|
|
|
|
@@ -2314,11 +2221,7 @@ qla27xx_get_flash_upd_cap(struct bsg_job *bsg_job)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla27xx_set_flash_upd_cap(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla27xx_set_flash_upd_cap(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla27xx_set_flash_upd_cap(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
|
struct Scsi_Host *host = fc_bsg_to_shost(bsg_job);
|
|
|
|
@@ -2364,11 +2267,7 @@ qla27xx_set_flash_upd_cap(struct bsg_job *bsg_job)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla27xx_get_bbcr_data(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla27xx_get_bbcr_data(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla27xx_get_bbcr_data(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
|
struct Scsi_Host *host = fc_bsg_to_shost(bsg_job);
|
|
|
|
@@ -2427,11 +2326,7 @@ done:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla2x00_get_priv_stats(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla2x00_get_priv_stats(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla2x00_get_priv_stats(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_request *bsg_request = bsg_job->request;
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
@@ -2490,11 +2385,7 @@ qla2x00_get_priv_stats(struct bsg_job *bsg_job)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla2x00_do_dport_diagnostics(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla2x00_do_dport_diagnostics(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla2x00_do_dport_diagnostics(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
|
struct Scsi_Host *host = fc_bsg_to_shost(bsg_job);
|
|
|
|
@@ -2538,11 +2429,7 @@ qla2x00_do_dport_diagnostics(struct bsg_job *bsg_job)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla2x00_get_flash_image_status(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla2x00_get_flash_image_status(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla2x00_get_flash_image_status(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
scsi_qla_host_t *vha = shost_priv(fc_bsg_to_shost(bsg_job));
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
@@ -2581,11 +2468,7 @@ qla2x00_get_flash_image_status(struct bsg_job *bsg_job)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla2x00_manage_host_stats(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla2x00_manage_host_stats(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla2x00_manage_host_stats(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
scsi_qla_host_t *vha = shost_priv(fc_bsg_to_shost(bsg_job));
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
@@ -2654,11 +2537,7 @@ qla2x00_manage_host_stats(struct bsg_job *bsg_job)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla2x00_get_host_stats(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla2x00_get_host_stats(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla2x00_get_host_stats(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
scsi_qla_host_t *vha = shost_priv(fc_bsg_to_shost(bsg_job));
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
@@ -2763,11 +2642,7 @@ qla2xxx_find_rport(scsi_qla_host_t *vha, uint32_t tgt_num)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla2x00_get_tgt_stats(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla2x00_get_tgt_stats(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla2x00_get_tgt_stats(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
scsi_qla_host_t *vha = shost_priv(fc_bsg_to_shost(bsg_job));
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
@@ -2856,11 +2731,7 @@ tgt_stat_out:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla2x00_manage_host_port(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla2x00_manage_host_port(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla2x00_manage_host_port(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
scsi_qla_host_t *vha = shost_priv(fc_bsg_to_shost(bsg_job));
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
@@ -2918,11 +2789,7 @@ qla2x00_manage_host_port(struct bsg_job *bsg_job)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla2x00_process_vendor_specific(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla2x00_process_vendor_specific(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla2x00_process_vendor_specific(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_request *bsg_request = bsg_job->request;
|
|
|
|
|
|
|
|
|
@@ -3015,11 +2882,7 @@ qla2x00_process_vendor_specific(struct bsg_job *bsg_job)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla24xx_bsg_request(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla24xx_bsg_request(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla24xx_bsg_request(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_request *bsg_request = bsg_job->request;
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
@@ -3084,11 +2947,7 @@ skip_chip_chk:
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
#ifndef NEW_LIBFC_API
|
|
|
|
|
qla24xx_bsg_timeout(struct fc_bsg_job *bsg_job)
|
|
|
|
|
#else
|
|
|
|
|
qla24xx_bsg_timeout(struct bsg_job *bsg_job)
|
|
|
|
|
#endif
|
|
|
|
|
qla24xx_bsg_timeout(BSG_JOB_TYPE *bsg_job)
|
|
|
|
|
{
|
|
|
|
|
struct fc_bsg_reply *bsg_reply = bsg_job->reply;
|
|
|
|
|
scsi_qla_host_t *vha = shost_priv(fc_bsg_to_shost(bsg_job));
|
|
|
|
|