Lines Matching refs:d3_data

2402 					    struct iwl_d3_data *d3_data)  in iwl_mvm_query_netdetect_reasons()  argument
2413 if (WARN_ON(!d3_data || !d3_data->status)) in iwl_mvm_query_netdetect_reasons()
2416 reasons = d3_data->status->wakeup_reasons; in iwl_mvm_query_netdetect_reasons()
2427 ret = iwl_mvm_netdetect_query_results(mvm, d3_data->nd_results); in iwl_mvm_query_netdetect_reasons()
2431 ret = d3_data->nd_results_valid ? 0 : -1; in iwl_mvm_query_netdetect_reasons()
2434 if (ret || !d3_data->nd_results->matched_profiles) { in iwl_mvm_query_netdetect_reasons()
2439 matched_profiles = d3_data->nd_results->matched_profiles; in iwl_mvm_query_netdetect_reasons()
2457 d3_data->nd_results, in iwl_mvm_query_netdetect_reasons()
2478 iwl_mvm_query_set_freqs(mvm, d3_data->nd_results, match, i); in iwl_mvm_query_netdetect_reasons()
2566 struct iwl_d3_data *d3_data) in iwl_mvm_choose_query_wakeup_reasons() argument
2571 if (!d3_data->status) { in iwl_mvm_choose_query_wakeup_reasons()
2575 d3_data->status = iwl_mvm_send_wowlan_get_status(mvm, sta_id); in iwl_mvm_choose_query_wakeup_reasons()
2579 iwl_mvm_query_netdetect_reasons(mvm, vif, d3_data); in iwl_mvm_choose_query_wakeup_reasons()
2582 d3_data->status); in iwl_mvm_choose_query_wakeup_reasons()
2644 struct iwl_d3_data *d3_data, in iwl_mvm_nd_match_info_handler() argument
2648 struct iwl_wowlan_status_data *status = d3_data->status; in iwl_mvm_nd_match_info_handler()
2650 struct iwl_mvm_nd_results *results = d3_data->nd_results; in iwl_mvm_nd_match_info_handler()
2683 d3_data->nd_results_valid = TRUE; in iwl_mvm_nd_match_info_handler()
2697 struct iwl_d3_data *d3_data = data; in iwl_mvm_wait_d3_notif() local
2705 if (d3_data->notif_received & IWL_D3_NOTIF_WOWLAN_INFO) { in iwl_mvm_wait_d3_notif()
2712 d3_data->notif_received |= IWL_D3_NOTIF_WOWLAN_INFO; in iwl_mvm_wait_d3_notif()
2714 iwl_mvm_parse_wowlan_info_notif(mvm, notif, d3_data->status, in iwl_mvm_wait_d3_notif()
2716 if (d3_data->status && in iwl_mvm_wait_d3_notif()
2717 d3_data->status->wakeup_reasons & IWL_WOWLAN_WAKEUP_REASON_HAS_WAKEUP_PKT) in iwl_mvm_wait_d3_notif()
2719 d3_data->notif_expected |= IWL_D3_NOTIF_WOWLAN_WAKE_PKT; in iwl_mvm_wait_d3_notif()
2726 if (d3_data->notif_received & IWL_D3_NOTIF_WOWLAN_WAKE_PKT) { in iwl_mvm_wait_d3_notif()
2731 d3_data->notif_received |= IWL_D3_NOTIF_WOWLAN_WAKE_PKT; in iwl_mvm_wait_d3_notif()
2734 d3_data->status, in iwl_mvm_wait_d3_notif()
2746 if (d3_data->notif_received & IWL_D3_ND_MATCH_INFO) { in iwl_mvm_wait_d3_notif()
2752 d3_data->notif_received |= IWL_D3_ND_MATCH_INFO; in iwl_mvm_wait_d3_notif()
2755 d3_data->notif_expected |= IWL_D3_ND_MATCH_INFO; in iwl_mvm_wait_d3_notif()
2758 iwl_mvm_nd_match_info_handler(mvm, d3_data, notif, len); in iwl_mvm_wait_d3_notif()
2764 d3_data->d3_end_flags = __le32_to_cpu(notif->flags); in iwl_mvm_wait_d3_notif()
2765 d3_data->notif_received |= IWL_D3_NOTIF_D3_END_NOTIF; in iwl_mvm_wait_d3_notif()
2773 return d3_data->notif_received == d3_data->notif_expected; in iwl_mvm_wait_d3_notif()
2815 struct iwl_d3_data *d3_data) in iwl_mvm_d3_notif_wait() argument
2828 iwl_mvm_wait_d3_notif, d3_data); in iwl_mvm_d3_notif_wait()
2830 ret = iwl_mvm_resume_firmware(mvm, d3_data->test); in iwl_mvm_d3_notif_wait()
2855 struct iwl_d3_data d3_data = { in __iwl_mvm_resume() local
2893 d3_data.status = kzalloc(sizeof(*d3_data.status), GFP_KERNEL); in __iwl_mvm_resume()
2894 if (!d3_data.status) { in __iwl_mvm_resume()
2900 ret = iwl_mvm_d3_notif_wait(mvm, &d3_data); in __iwl_mvm_resume()
2913 if (d3_data.d3_end_flags & IWL_D0I3_RESET_REQUIRE) in __iwl_mvm_resume()
2941 keep = iwl_mvm_choose_query_wakeup_reasons(mvm, vif, &d3_data); in __iwl_mvm_resume()
2948 if (d3_data.status) in __iwl_mvm_resume()
2949 kfree(d3_data.status->wake_packet); in __iwl_mvm_resume()
2950 kfree(d3_data.status); in __iwl_mvm_resume()
2953 if (!d3_data.test && !mvm->net_detect) in __iwl_mvm_resume()
2972 } else if (!(d3_data.d3_end_flags & IWL_D0I3_RESET_REQUIRE)) { in __iwl_mvm_resume()