Lines Matching refs:rv
907 int rv = 0; in csio_do_hello() local
918 rv = -ENOMEM; in csio_do_hello()
929 rv = csio_mb_issue(hw, mbp); in csio_do_hello()
930 if (rv) { in csio_do_hello()
931 csio_err(hw, "failed to issue HELLO cmd. ret:%d.\n", rv); in csio_do_hello()
938 rv = -EINVAL; in csio_do_hello()
988 rv = -ETIMEDOUT; in csio_do_hello()
1001 rv = -ETIMEDOUT; in csio_do_hello()
1045 return rv; in csio_do_hello()
1372 int rv = -EINVAL; in csio_hw_fw_config_file() local
1405 csio_dbg(hw, "FW_CAPS_CONFIG_CMD returned %d!\n", rv); in csio_hw_fw_config_file()
1418 rv = -ENOENT; in csio_hw_fw_config_file()
1438 csio_dbg(hw, "FW_CAPS_CONFIG_CMD returned %d!\n", rv); in csio_hw_fw_config_file()
1442 rv = 0; in csio_hw_fw_config_file()
1445 return rv; in csio_hw_fw_config_file()
1547 int rv = -EINVAL; in csio_config_device_caps() local
1575 rv = 0; in csio_config_device_caps()
1594 rv = 0; in csio_config_device_caps()
1597 return rv; in csio_config_device_caps()
1932 int rv; in csio_hw_use_fwconfig() local
1941 rv = csio_do_reset(hw, true); in csio_hw_use_fwconfig()
1942 if (rv != 0) in csio_hw_use_fwconfig()
1952 rv = csio_hw_flash_config(hw, fw_cfg_param, path); in csio_hw_use_fwconfig()
1954 if (rv != 0) { in csio_hw_use_fwconfig()
1955 if (rv == -ENOENT) { in csio_hw_use_fwconfig()
1982 rv = csio_hw_fw_config_file(hw, mtype, maddr, &finiver, in csio_hw_use_fwconfig()
1984 if (rv != 0) in csio_hw_use_fwconfig()
2008 rv = csio_get_device_params(hw); in csio_hw_use_fwconfig()
2009 if (rv != 0) in csio_hw_use_fwconfig()
2033 csio_dbg(hw, "Configuration file error %d\n", rv); in csio_hw_use_fwconfig()
2034 return rv; in csio_hw_use_fwconfig()
2044 int rv; in csio_hw_no_fwconfig() local
2049 rv = csio_do_reset(hw, true); in csio_hw_no_fwconfig()
2050 if (rv != 0) in csio_hw_no_fwconfig()
2055 rv = csio_config_device_caps(hw); in csio_hw_no_fwconfig()
2056 if (rv != 0) in csio_hw_no_fwconfig()
2060 rv = csio_config_global_rss(hw); in csio_hw_no_fwconfig()
2061 if (rv != 0) in csio_hw_no_fwconfig()
2065 rv = csio_config_pfvf(hw); in csio_hw_no_fwconfig()
2066 if (rv != 0) in csio_hw_no_fwconfig()
2070 rv = csio_get_device_params(hw); in csio_hw_no_fwconfig()
2071 if (rv != 0) in csio_hw_no_fwconfig()
2081 return rv; in csio_hw_no_fwconfig()
2142 int rv; in csio_hw_configure() local
2145 rv = csio_hw_dev_ready(hw); in csio_hw_configure()
2146 if (rv != 0) { in csio_hw_configure()
2156 rv = csio_hw_get_flash_params(hw); in csio_hw_configure()
2157 if (rv != 0) { in csio_hw_configure()
2158 csio_err(hw, "Failed to get serial flash params rv:%d\n", rv); in csio_hw_configure()
2168 rv = csio_hw_get_fw_version(hw, &hw->fwrev); in csio_hw_configure()
2169 if (rv != 0) in csio_hw_configure()
2174 rv = csio_do_hello(hw, &hw->fw_state); in csio_hw_configure()
2175 if (rv != 0) { in csio_hw_configure()
2182 rv = csio_hw_get_vpd_params(hw, &hw->vpd); in csio_hw_configure()
2183 if (rv != 0) in csio_hw_configure()
2187 rv = csio_hw_check_fw_version(hw); in csio_hw_configure()
2188 if (rv == -EINVAL) { in csio_hw_configure()
2192 rv = csio_hw_flash_fw(hw); in csio_hw_configure()
2195 if (rv == 0) { in csio_hw_configure()
2202 rv = csio_hw_check_fw_version(hw); in csio_hw_configure()
2214 rv = csio_hw_use_fwconfig(hw, reset, param); in csio_hw_configure()
2215 if (rv == -ENOENT) in csio_hw_configure()
2217 if (rv != 0) { in csio_hw_configure()
2222 rv = csio_hw_no_fwconfig(hw, reset); in csio_hw_configure()
2225 rv = csio_hw_no_fwconfig(hw, reset); in csio_hw_configure()
2228 if (rv != 0) in csio_hw_configure()
2237 rv = csio_get_device_params(hw); in csio_hw_configure()
2238 if (rv != 0) in csio_hw_configure()
2242 rv = csio_config_device_caps(hw); in csio_hw_configure()
2243 if (rv != 0) in csio_hw_configure()
2269 int rv; in csio_hw_initialize() local
2294 rv = csio_get_fcoe_resinfo(hw); in csio_hw_initialize()
2295 if (rv != 0) { in csio_hw_initialize()
2296 csio_err(hw, "Failed to read fcoe resource info: %d\n", rv); in csio_hw_initialize()
2301 rv = csio_config_queues(hw); in csio_hw_initialize()
2304 if (rv != 0) { in csio_hw_initialize()
2305 csio_err(hw, "Config of queues failed!: %d\n", rv); in csio_hw_initialize()
2313 rv = csio_enable_ports(hw); in csio_hw_initialize()
2314 if (rv != 0) { in csio_hw_initialize()
2315 csio_err(hw, "Failed to enable ports: %d\n", rv); in csio_hw_initialize()
3334 int rv; in csio_mberr_worker() local
3352 rv = csio_mb_issue(hw, mbp_next); in csio_mberr_worker()
3353 if (rv != 0) in csio_mberr_worker()
3614 int rv = 0; in csio_evtq_worker() local
3645 rv = csio_mb_fwevt_handler(hw, in csio_evtq_worker()
3647 if (!rv) in csio_evtq_worker()
3692 int rv; in csio_fwevtq_handler() local
3699 rv = csio_wr_process_iq_idx(hw, hw->fwevt_iq_idx, in csio_fwevtq_handler()
3701 return rv; in csio_fwevtq_handler()
3980 int rv = -EINVAL; in csio_hw_init() local
4015 rv = csio_wrm_init(csio_hw_to_wrm(hw), hw); in csio_hw_init()
4016 if (rv) in csio_hw_init()
4019 rv = csio_scsim_init(csio_hw_to_scsim(hw), hw); in csio_hw_init()
4020 if (rv) in csio_hw_init()
4023 rv = csio_mgmtm_init(csio_hw_to_mgmtm(hw), hw); in csio_hw_init()
4024 if (rv) in csio_hw_init()
4056 return rv; in csio_hw_init()