aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_init.c62
1 files changed, 7 insertions, 55 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c
index 39044fc40194..b7e42a80e165 100644
--- a/drivers/scsi/qla2xxx/qla_init.c
+++ b/drivers/scsi/qla2xxx/qla_init.c
@@ -429,7 +429,7 @@ qla2x00_async_adisc_done(struct scsi_qla_host *vha, fc_port_t *fcport,
429/* QLogic ISP2x00 Hardware Support Functions. */ 429/* QLogic ISP2x00 Hardware Support Functions. */
430/****************************************************************************/ 430/****************************************************************************/
431 431
432int 432static int
433qla83xx_nic_core_fw_load(scsi_qla_host_t *vha) 433qla83xx_nic_core_fw_load(scsi_qla_host_t *vha)
434{ 434{
435 int rval = QLA_SUCCESS; 435 int rval = QLA_SUCCESS;
@@ -997,7 +997,7 @@ qla2x00_reset_chip(scsi_qla_host_t *vha)
997 * 997 *
998 * Returns 0 on success. 998 * Returns 0 on success.
999 */ 999 */
1000int 1000static int
1001qla81xx_reset_mpi(scsi_qla_host_t *vha) 1001qla81xx_reset_mpi(scsi_qla_host_t *vha)
1002{ 1002{
1003 uint16_t mb[4] = {0x1010, 0, 1, 0}; 1003 uint16_t mb[4] = {0x1010, 0, 1, 0};
@@ -3865,7 +3865,7 @@ qla83xx_reset_ownership(scsi_qla_host_t *vha)
3865 } 3865 }
3866} 3866}
3867 3867
3868int 3868static int
3869__qla83xx_set_drv_ack(scsi_qla_host_t *vha) 3869__qla83xx_set_drv_ack(scsi_qla_host_t *vha)
3870{ 3870{
3871 int rval = QLA_SUCCESS; 3871 int rval = QLA_SUCCESS;
@@ -3881,19 +3881,7 @@ __qla83xx_set_drv_ack(scsi_qla_host_t *vha)
3881 return rval; 3881 return rval;
3882} 3882}
3883 3883
3884int 3884static int
3885qla83xx_set_drv_ack(scsi_qla_host_t *vha)
3886{
3887 int rval = QLA_SUCCESS;
3888
3889 qla83xx_idc_lock(vha, 0);
3890 rval = __qla83xx_set_drv_ack(vha);
3891 qla83xx_idc_unlock(vha, 0);
3892
3893 return rval;
3894}
3895
3896int
3897__qla83xx_clear_drv_ack(scsi_qla_host_t *vha) 3885__qla83xx_clear_drv_ack(scsi_qla_host_t *vha)
3898{ 3886{
3899 int rval = QLA_SUCCESS; 3887 int rval = QLA_SUCCESS;
@@ -3909,19 +3897,7 @@ __qla83xx_clear_drv_ack(scsi_qla_host_t *vha)
3909 return rval; 3897 return rval;
3910} 3898}
3911 3899
3912int 3900static const char *
3913qla83xx_clear_drv_ack(scsi_qla_host_t *vha)
3914{
3915 int rval = QLA_SUCCESS;
3916
3917 qla83xx_idc_lock(vha, 0);
3918 rval = __qla83xx_clear_drv_ack(vha);
3919 qla83xx_idc_unlock(vha, 0);
3920
3921 return rval;
3922}
3923
3924const char *
3925qla83xx_dev_state_to_string(uint32_t dev_state) 3901qla83xx_dev_state_to_string(uint32_t dev_state)
3926{ 3902{
3927 switch (dev_state) { 3903 switch (dev_state) {
@@ -3975,7 +3951,7 @@ qla83xx_idc_audit(scsi_qla_host_t *vha, int audit_type)
3975} 3951}
3976 3952
3977/* Assumes idc_lock always held on entry */ 3953/* Assumes idc_lock always held on entry */
3978int 3954static int
3979qla83xx_initiating_reset(scsi_qla_host_t *vha) 3955qla83xx_initiating_reset(scsi_qla_host_t *vha)
3980{ 3956{
3981 struct qla_hw_data *ha = vha->hw; 3957 struct qla_hw_data *ha = vha->hw;
@@ -4023,36 +3999,12 @@ __qla83xx_set_idc_control(scsi_qla_host_t *vha, uint32_t idc_control)
4023} 3999}
4024 4000
4025int 4001int
4026qla83xx_set_idc_control(scsi_qla_host_t *vha, uint32_t idc_control)
4027{
4028 int rval = QLA_SUCCESS;
4029
4030 qla83xx_idc_lock(vha, 0);
4031 rval = __qla83xx_set_idc_control(vha, idc_control);
4032 qla83xx_idc_unlock(vha, 0);
4033
4034 return rval;
4035}
4036
4037int
4038__qla83xx_get_idc_control(scsi_qla_host_t *vha, uint32_t *idc_control) 4002__qla83xx_get_idc_control(scsi_qla_host_t *vha, uint32_t *idc_control)
4039{ 4003{
4040 return qla83xx_rd_reg(vha, QLA83XX_IDC_CONTROL, idc_control); 4004 return qla83xx_rd_reg(vha, QLA83XX_IDC_CONTROL, idc_control);
4041} 4005}
4042 4006
4043int 4007static int
4044qla83xx_get_idc_control(scsi_qla_host_t *vha, uint32_t *idc_control)
4045{
4046 int rval = QLA_SUCCESS;
4047
4048 qla83xx_idc_lock(vha, 0);
4049 rval = __qla83xx_get_idc_control(vha, idc_control);
4050 qla83xx_idc_unlock(vha, 0);
4051
4052 return rval;
4053}
4054
4055int
4056qla83xx_check_driver_presence(scsi_qla_host_t *vha) 4008qla83xx_check_driver_presence(scsi_qla_host_t *vha)
4057{ 4009{
4058 uint32_t drv_presence = 0; 4010 uint32_t drv_presence = 0;