Lines Matching refs:ret

184 	int ret, i;
199 ret = iwl_trans_start_fw(mvm->trans, fw, ucode_type == IWL_UCODE_INIT);
200 if (ret) {
203 return ret;
210 ret = iwl_wait_notification(&mvm->notif_wait, &alive_wait,
212 if (ret) {
214 return ret;
229 ret = iwl_trans_update_sf(mvm->trans, &st_fwrd_space);
283 int ret;
298 ret = iwl_mvm_load_ucode_wait_alive(mvm, IWL_UCODE_INIT);
299 if (ret) {
300 IWL_ERR(mvm, "Failed to start INIT ucode: %d\n", ret);
304 ret = iwl_send_bt_init_conf(mvm);
305 if (ret)
311 ret = iwl_nvm_init(mvm, true);
312 if (ret) {
313 IWL_ERR(mvm, "Failed to read NVM: %d\n", ret);
322 ret = iwl_nvm_check_version(mvm->nvm_data, mvm->trans);
323 WARN_ON(ret);
333 ret = 1;
340 ret = iwl_send_tx_ant_cfg(mvm, mvm->fw->valid_tx_ant);
341 if (ret)
348 ret = iwl_send_phy_cfg_cmd(mvm);
349 if (ret) {
351 ret);
359 ret = iwl_wait_notification(&mvm->notif_wait, &calib_wait,
361 if (!ret)
364 if (ret && iwl_mvm_is_radio_killed(mvm)) {
366 ret = 1;
390 return ret;
395 int ret, i;
401 ret = iwl_trans_start_hw(mvm->trans);
402 if (ret)
403 return ret;
411 ret = iwl_run_init_mvm_ucode(mvm, false);
412 if (ret && !iwlmvm_mod_params.init_dbg) {
413 IWL_ERR(mvm, "Failed to run INIT ucode: %d\n", ret);
415 if (WARN_ON(ret > 0))
416 ret = -ERFKILL;
425 ret = iwl_trans_start_hw(mvm->trans);
426 if (ret)
427 return ret;
434 ret = iwl_mvm_load_ucode_wait_alive(mvm, IWL_UCODE_REGULAR);
435 if (ret) {
436 IWL_ERR(mvm, "Failed to start RT ucode: %d\n", ret);
440 ret = iwl_mvm_sf_update(mvm, NULL, false);
441 if (ret)
444 ret = iwl_send_tx_ant_cfg(mvm, mvm->fw->valid_tx_ant);
445 if (ret)
448 ret = iwl_send_bt_init_conf(mvm);
449 if (ret)
453 ret = iwl_send_phy_db_data(mvm->phy_db);
454 if (ret)
457 ret = iwl_send_phy_cfg_cmd(mvm);
458 if (ret)
469 ret = iwl_mvm_add_aux_sta(mvm);
470 if (ret)
482 ret = iwl_mvm_phy_ctxt_add(mvm, &mvm->phy_ctxts[i],
484 if (ret)
500 ret = iwl_mvm_power_update_device(mvm);
501 if (ret)
512 return ret;
517 int ret, i;
521 ret = iwl_trans_start_hw(mvm->trans);
522 if (ret)
523 return ret;
525 ret = iwl_mvm_load_ucode_wait_alive(mvm, IWL_UCODE_WOWLAN);
526 if (ret) {
527 IWL_ERR(mvm, "Failed to start WoWLAN firmware: %d\n", ret);
531 ret = iwl_send_tx_ant_cfg(mvm, mvm->fw->valid_tx_ant);
532 if (ret)
536 ret = iwl_send_phy_db_data(mvm->phy_db);
537 if (ret)
540 ret = iwl_send_phy_cfg_cmd(mvm);
541 if (ret)
549 ret = iwl_mvm_add_aux_sta(mvm);
550 if (ret)
556 return ret;