Lines Matching refs:rv
824 int rv = 0; in csio_do_hello() local
834 rv = -ENOMEM; in csio_do_hello()
843 rv = csio_mb_issue(hw, mbp); in csio_do_hello()
844 if (rv) { in csio_do_hello()
845 csio_err(hw, "failed to issue HELLO cmd. ret:%d.\n", rv); in csio_do_hello()
852 rv = -EINVAL; in csio_do_hello()
902 rv = -ETIMEDOUT; in csio_do_hello()
915 rv = -ETIMEDOUT; in csio_do_hello()
959 return rv; in csio_do_hello()
1352 int rv = -EINVAL; in csio_config_device_caps() local
1375 rv = csio_hw_validate_caps(hw, mbp); in csio_config_device_caps()
1376 if (rv != 0) in csio_config_device_caps()
1381 rv = 0; in csio_config_device_caps()
1400 rv = 0; in csio_config_device_caps()
1403 return rv; in csio_config_device_caps()
1659 int rv = -EINVAL; in csio_hw_use_fwconfig() local
1668 rv = csio_do_reset(hw, true); in csio_hw_use_fwconfig()
1669 if (rv != 0) in csio_hw_use_fwconfig()
1679 rv = csio_hw_flash_config(hw, fw_cfg_param, path); in csio_hw_use_fwconfig()
1681 if (rv != 0) { in csio_hw_use_fwconfig()
1719 rv = -EINVAL; in csio_hw_use_fwconfig()
1723 rv = csio_mb_fw_retval(mbp); in csio_hw_use_fwconfig()
1730 if (rv == ENOENT) { in csio_hw_use_fwconfig()
1738 rv = -EINVAL; in csio_hw_use_fwconfig()
1742 rv = csio_mb_fw_retval(mbp); in csio_hw_use_fwconfig()
1745 if (rv != FW_SUCCESS) in csio_hw_use_fwconfig()
1762 rv = -EINVAL; in csio_hw_use_fwconfig()
1766 rv = csio_mb_fw_retval(mbp); in csio_hw_use_fwconfig()
1767 if (rv != FW_SUCCESS) { in csio_hw_use_fwconfig()
1768 csio_dbg(hw, "FW_CAPS_CONFIG_CMD returned %d!\n", rv); in csio_hw_use_fwconfig()
1780 rv = csio_hw_validate_caps(hw, mbp); in csio_hw_use_fwconfig()
1781 if (rv != 0) in csio_hw_use_fwconfig()
1791 rv = csio_get_device_params(hw); in csio_hw_use_fwconfig()
1792 if (rv != 0) in csio_hw_use_fwconfig()
1817 csio_warn(hw, "Configuration file error %d\n", rv); in csio_hw_use_fwconfig()
1818 return rv; in csio_hw_use_fwconfig()
2047 int rv; in csio_hw_configure() local
2050 rv = csio_hw_dev_ready(hw); in csio_hw_configure()
2051 if (rv != 0) { in csio_hw_configure()
2061 rv = csio_hw_get_flash_params(hw); in csio_hw_configure()
2062 if (rv != 0) { in csio_hw_configure()
2063 csio_err(hw, "Failed to get serial flash params rv:%d\n", rv); in csio_hw_configure()
2075 rv = csio_hw_get_fw_version(hw, &hw->fwrev); in csio_hw_configure()
2076 if (rv != 0) in csio_hw_configure()
2081 rv = csio_do_hello(hw, &hw->fw_state); in csio_hw_configure()
2082 if (rv != 0) { in csio_hw_configure()
2089 rv = csio_hw_get_vpd_params(hw, &hw->vpd); in csio_hw_configure()
2090 if (rv != 0) in csio_hw_configure()
2099 rv = csio_hw_flash_fw(hw, &reset); in csio_hw_configure()
2102 if (rv != 0) in csio_hw_configure()
2108 rv = csio_hw_check_fwconfig(hw, param); in csio_hw_configure()
2109 if (rv != 0) { in csio_hw_configure()
2119 rv = csio_hw_use_fwconfig(hw, reset, param); in csio_hw_configure()
2120 if (rv == -ENOENT) { in csio_hw_configure()
2122 "adapter, error%d\n", rv); in csio_hw_configure()
2125 if (rv != 0) { in csio_hw_configure()
2127 "adapter, error%d\n", rv); in csio_hw_configure()
2137 rv = csio_get_device_params(hw); in csio_hw_configure()
2138 if (rv != 0) in csio_hw_configure()
2142 rv = csio_config_device_caps(hw); in csio_hw_configure()
2143 if (rv != 0) in csio_hw_configure()
2169 int rv; in csio_hw_initialize() local
2194 rv = csio_get_fcoe_resinfo(hw); in csio_hw_initialize()
2195 if (rv != 0) { in csio_hw_initialize()
2196 csio_err(hw, "Failed to read fcoe resource info: %d\n", rv); in csio_hw_initialize()
2201 rv = csio_config_queues(hw); in csio_hw_initialize()
2204 if (rv != 0) { in csio_hw_initialize()
2205 csio_err(hw, "Config of queues failed!: %d\n", rv); in csio_hw_initialize()
2213 rv = csio_enable_ports(hw); in csio_hw_initialize()
2214 if (rv != 0) { in csio_hw_initialize()
2215 csio_err(hw, "Failed to enable ports: %d\n", rv); in csio_hw_initialize()
3238 int rv; in csio_mberr_worker() local
3256 rv = csio_mb_issue(hw, mbp_next); in csio_mberr_worker()
3257 if (rv != 0) in csio_mberr_worker()
3518 int rv = 0; in csio_evtq_worker() local
3549 rv = csio_mb_fwevt_handler(hw, in csio_evtq_worker()
3551 if (!rv) in csio_evtq_worker()
3596 int rv; in csio_fwevtq_handler() local
3603 rv = csio_wr_process_iq_idx(hw, hw->fwevt_iq_idx, in csio_fwevtq_handler()
3605 return rv; in csio_fwevtq_handler()
3878 int rv = -EINVAL; in csio_hw_init() local
3913 rv = csio_wrm_init(csio_hw_to_wrm(hw), hw); in csio_hw_init()
3914 if (rv) in csio_hw_init()
3917 rv = csio_scsim_init(csio_hw_to_scsim(hw), hw); in csio_hw_init()
3918 if (rv) in csio_hw_init()
3921 rv = csio_mgmtm_init(csio_hw_to_mgmtm(hw), hw); in csio_hw_init()
3922 if (rv) in csio_hw_init()
3954 return rv; in csio_hw_init()