Lines Matching refs:rval
881 int rval; in qla2xxx_queuecommand() local
916 rval = fc_remote_port_chkready(rport); in qla2xxx_queuecommand()
917 if (rval) { in qla2xxx_queuecommand()
918 cmd->result = rval; in qla2xxx_queuecommand()
921 cmd, rval); in qla2xxx_queuecommand()
972 rval = ha->isp_ops->start_scsi(sp); in qla2xxx_queuecommand()
973 if (rval != QLA_SUCCESS) { in qla2xxx_queuecommand()
975 "Start scsi failed rval=%d for cmd=%p.\n", rval, cmd); in qla2xxx_queuecommand()
1005 int rval; in qla2xxx_mqueuecommand() local
1007 rval = rport ? fc_remote_port_chkready(rport) : (DID_NO_CONNECT << 16); in qla2xxx_mqueuecommand()
1008 if (rval) { in qla2xxx_mqueuecommand()
1009 cmd->result = rval; in qla2xxx_mqueuecommand()
1012 cmd, rval); in qla2xxx_mqueuecommand()
1061 rval = ha->isp_ops->start_scsi_mq(sp); in qla2xxx_mqueuecommand()
1062 if (rval != QLA_SUCCESS) { in qla2xxx_mqueuecommand()
1064 "Start scsi failed rval=%d for cmd=%p.\n", rval, cmd); in qla2xxx_mqueuecommand()
1256 int rval; in qla2xxx_eh_abort() local
1300 rval = ha->isp_ops->abort_command(sp); in qla2xxx_eh_abort()
1303 "Abort command mbx cmd=%p, rval=%x.\n", cmd, rval); in qla2xxx_eh_abort()
1308 switch (rval) { in qla2xxx_eh_abort()
1795 int rval; in qla2x00_abort_srb() local
1818 rval = ha->isp_ops->abort_command(sp); in qla2x00_abort_srb()
1823 switch (rval) { in qla2x00_abort_srb()
4609 int rval; in qla2x00_set_exlogins_buffer() local
4623 rval = qla_get_exlogin_status(vha, &size, &max_cnt); in qla2x00_set_exlogins_buffer()
4624 if (rval != QLA_SUCCESS) { in qla2x00_set_exlogins_buffer()
4627 return rval; in qla2x00_set_exlogins_buffer()
4655 rval = qla_set_exlogin_mem_cfg(vha, ha->exlogin_buf_dma); in qla2x00_set_exlogins_buffer()
4656 if (rval) { in qla2x00_set_exlogins_buffer()
4662 return rval; in qla2x00_set_exlogins_buffer()
4724 int rval; in qla2x00_set_exchoffld_buffer() local
4736 rval = qla_get_exchoffld_status(vha, &size, &max_cnt); in qla2x00_set_exchoffld_buffer()
4737 if (rval != QLA_SUCCESS) { in qla2x00_set_exchoffld_buffer()
4740 return rval; in qla2x00_set_exchoffld_buffer()
4801 rval = qla_set_exchoffld_mem_cfg(vha); in qla2x00_set_exchoffld_buffer()
4802 if (rval) { in qla2x00_set_exchoffld_buffer()
4816 return rval; in qla2x00_set_exchoffld_buffer()
5478 int rval; in qla_sp_retry() local
5480 rval = qla2x00_start_sp(sp); in qla_sp_retry()
5481 if (rval != QLA_SUCCESS) { in qla_sp_retry()
5484 __func__, sp->name, rval); in qla_sp_retry()
5770 int rval = QLA_SUCCESS; in qla83xx_check_nic_core_fw_alive() local
5778 rval = QLA_FUNCTION_FAILED; in qla83xx_check_nic_core_fw_alive()
5793 return rval; in qla83xx_check_nic_core_fw_alive()
5873 int rval; in qla83xx_force_lock_recovery() local
5882 rval = qla83xx_rd_reg(base_vha, QLA83XX_IDC_LOCK_RECOVERY, &data); in qla83xx_force_lock_recovery()
5883 if (rval) in qla83xx_force_lock_recovery()
5884 return rval; in qla83xx_force_lock_recovery()
5890 rval = qla83xx_wr_reg(base_vha, QLA83XX_IDC_LOCK_RECOVERY, in qla83xx_force_lock_recovery()
5892 if (rval) in qla83xx_force_lock_recovery()
5893 return rval; in qla83xx_force_lock_recovery()
5897 rval = qla83xx_rd_reg(base_vha, QLA83XX_IDC_LOCK_RECOVERY, in qla83xx_force_lock_recovery()
5899 if (rval) in qla83xx_force_lock_recovery()
5900 return rval; in qla83xx_force_lock_recovery()
5905 rval = qla83xx_wr_reg(base_vha, in qla83xx_force_lock_recovery()
5907 if (rval) in qla83xx_force_lock_recovery()
5908 return rval; in qla83xx_force_lock_recovery()
5911 rval = qla83xx_rd_reg(base_vha, QLA83XX_DRIVER_UNLOCK, in qla83xx_force_lock_recovery()
5913 if (rval) in qla83xx_force_lock_recovery()
5914 return rval; in qla83xx_force_lock_recovery()
5916 rval = qla83xx_wr_reg(base_vha, QLA83XX_DRIVER_LOCKID, in qla83xx_force_lock_recovery()
5918 if (rval) in qla83xx_force_lock_recovery()
5919 return rval; in qla83xx_force_lock_recovery()
5921 rval = qla83xx_wr_reg(base_vha, in qla83xx_force_lock_recovery()
5923 if (rval) in qla83xx_force_lock_recovery()
5924 return rval; in qla83xx_force_lock_recovery()
5929 return rval; in qla83xx_force_lock_recovery()
5935 int rval = QLA_SUCCESS; in qla83xx_idc_lock_recovery() local
5941 rval = qla83xx_rd_reg(base_vha, QLA83XX_DRIVER_LOCKID, &o_drv_lockid); in qla83xx_idc_lock_recovery()
5942 if (rval) in qla83xx_idc_lock_recovery()
5953 rval = qla83xx_rd_reg(base_vha, QLA83XX_DRIVER_LOCKID, &n_drv_lockid); in qla83xx_idc_lock_recovery()
5954 if (rval) in qla83xx_idc_lock_recovery()
5964 return rval; in qla83xx_idc_lock_recovery()
6081 int rval; in qla24xx_process_purex_rdp() local
6176 rval = qla2x00_read_sfp(vha, sfp_dma, sfp, 0xa0, 0x7, 2, 0); in qla24xx_process_purex_rdp()
6177 if (!rval) { in qla24xx_process_purex_rdp()
6189 rval = qla2x00_read_sfp(vha, sfp_dma, sfp, 0xa0, 0x0, 1, 0); in qla24xx_process_purex_rdp()
6190 if (!rval) { in qla24xx_process_purex_rdp()
6200 rval = qla2x00_read_sfp(vha, sfp_dma, sfp, 0xa2, 0x60, 10, 0); in qla24xx_process_purex_rdp()
6201 if (!rval) { in qla24xx_process_purex_rdp()
6226 rval = qla24xx_get_isp_stats(vha, stat, stat_dma, 0); in qla24xx_process_purex_rdp()
6227 if (!rval) { in qla24xx_process_purex_rdp()
6306 rval = qla2x00_read_sfp(vha, sfp_dma, sfp, 0xa2, 0, 64, 0); in qla24xx_process_purex_rdp()
6307 if (!rval) { in qla24xx_process_purex_rdp()
6352 rval = qla2x00_read_sfp(vha, sfp_dma, sfp, 0xa2, 112, 64, 0); in qla24xx_process_purex_rdp()
6353 if (!rval) { in qla24xx_process_purex_rdp()
6403 rval = qla2x00_read_sfp(vha, sfp_dma, sfp, 0xa0, 20, 64, 0); in qla24xx_process_purex_rdp()
6404 if (!rval) { in qla24xx_process_purex_rdp()
6420 rval = qla2x00_read_sfp(vha, sfp_dma, sfp, 0xa0, 84, 8, 0); in qla24xx_process_purex_rdp()
6421 if (!rval) { in qla24xx_process_purex_rdp()
6440 rval = qla2x00_issue_iocb(vha, rsp_els, rsp_els_dma, 0); in qla24xx_process_purex_rdp()
6442 if (rval) { in qla24xx_process_purex_rdp()
6444 "%s: iocb failed to execute -> %x\n", __func__, rval); in qla24xx_process_purex_rdp()
6564 int rval = QLA_SUCCESS; in __qla83xx_set_drv_presence() local
6568 rval = qla83xx_rd_reg(vha, QLA83XX_IDC_DRV_PRESENCE, &drv_presence); in __qla83xx_set_drv_presence()
6569 if (rval == QLA_SUCCESS) { in __qla83xx_set_drv_presence()
6571 rval = qla83xx_wr_reg(vha, QLA83XX_IDC_DRV_PRESENCE, in __qla83xx_set_drv_presence()
6575 return rval; in __qla83xx_set_drv_presence()
6581 int rval = QLA_SUCCESS; in qla83xx_set_drv_presence() local
6584 rval = __qla83xx_set_drv_presence(vha); in qla83xx_set_drv_presence()
6587 return rval; in qla83xx_set_drv_presence()
6593 int rval = QLA_SUCCESS; in __qla83xx_clear_drv_presence() local
6597 rval = qla83xx_rd_reg(vha, QLA83XX_IDC_DRV_PRESENCE, &drv_presence); in __qla83xx_clear_drv_presence()
6598 if (rval == QLA_SUCCESS) { in __qla83xx_clear_drv_presence()
6600 rval = qla83xx_wr_reg(vha, QLA83XX_IDC_DRV_PRESENCE, in __qla83xx_clear_drv_presence()
6604 return rval; in __qla83xx_clear_drv_presence()
6610 int rval = QLA_SUCCESS; in qla83xx_clear_drv_presence() local
6613 rval = __qla83xx_clear_drv_presence(vha); in qla83xx_clear_drv_presence()
6616 return rval; in qla83xx_clear_drv_presence()
6661 int rval = QLA_SUCCESS; in qla83xx_device_bootstrap() local
6673 rval = qla83xx_restart_nic_firmware(vha); in qla83xx_device_bootstrap()
6676 if (rval != QLA_SUCCESS) { in qla83xx_device_bootstrap()
6688 return rval; in qla83xx_device_bootstrap()
6696 int rval = QLA_SUCCESS; in qla83xx_idc_state_handler() local
6730 rval = qla83xx_device_bootstrap(base_vha); in qla83xx_idc_state_handler()
6782 rval = QLA_FUNCTION_FAILED; in qla83xx_idc_state_handler()
6795 rval = QLA_FUNCTION_FAILED; in qla83xx_idc_state_handler()
6802 return rval; in qla83xx_idc_state_handler()