diff options
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_init.c')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 62 |
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 | ||
432 | int | 432 | static int |
433 | qla83xx_nic_core_fw_load(scsi_qla_host_t *vha) | 433 | qla83xx_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 | */ |
1000 | int | 1000 | static int |
1001 | qla81xx_reset_mpi(scsi_qla_host_t *vha) | 1001 | qla81xx_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 | ||
3868 | int | 3868 | static 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 | ||
3884 | int | 3884 | static int |
3885 | qla83xx_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 | |||
3896 | int | ||
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 | ||
3912 | int | 3900 | static const char * |
3913 | qla83xx_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 | |||
3924 | const char * | ||
3925 | qla83xx_dev_state_to_string(uint32_t dev_state) | 3901 | qla83xx_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 */ |
3978 | int | 3954 | static int |
3979 | qla83xx_initiating_reset(scsi_qla_host_t *vha) | 3955 | qla83xx_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 | ||
4025 | int | 4001 | int |
4026 | qla83xx_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 | |||
4037 | int | ||
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 | ||
4043 | int | 4007 | static int |
4044 | qla83xx_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 | |||
4055 | int | ||
4056 | qla83xx_check_driver_presence(scsi_qla_host_t *vha) | 4008 | qla83xx_check_driver_presence(scsi_qla_host_t *vha) |
4057 | { | 4009 | { |
4058 | uint32_t drv_presence = 0; | 4010 | uint32_t drv_presence = 0; |