Lines Matching refs:te_data

84 			   struct iwl_mvm_time_event_data *te_data)  in iwl_mvm_te_clear_data()  argument
88 if (!te_data->vif) in iwl_mvm_te_clear_data()
91 list_del(&te_data->list); in iwl_mvm_te_clear_data()
92 te_data->running = false; in iwl_mvm_te_clear_data()
93 te_data->uid = 0; in iwl_mvm_te_clear_data()
94 te_data->id = TE_MAX; in iwl_mvm_te_clear_data()
95 te_data->vif = NULL; in iwl_mvm_te_clear_data()
215 struct iwl_mvm_time_event_data *te_data, in iwl_mvm_te_handle_notify_csa() argument
218 struct ieee80211_vif *vif = te_data->vif; in iwl_mvm_te_handle_notify_csa()
224 switch (te_data->vif->type) { in iwl_mvm_te_handle_notify_csa()
236 iwl_mvm_csa_client_absent(mvm, te_data->vif); in iwl_mvm_te_handle_notify_csa()
237 ieee80211_chswitch_done(te_data->vif, true); in iwl_mvm_te_handle_notify_csa()
246 iwl_mvm_te_clear_data(mvm, te_data); in iwl_mvm_te_handle_notify_csa()
251 struct iwl_mvm_time_event_data *te_data) in iwl_mvm_te_check_trigger() argument
264 ieee80211_vif_to_wdev(te_data->vif), in iwl_mvm_te_check_trigger()
275 if (trig_te_id != te_data->id || in iwl_mvm_te_check_trigger()
282 te_data->id, in iwl_mvm_te_check_trigger()
297 struct iwl_mvm_time_event_data *te_data, in iwl_mvm_te_handle_notif() argument
306 iwl_mvm_te_check_trigger(mvm, notif, te_data); in iwl_mvm_te_handle_notif()
326 if (iwl_mvm_te_check_disconnect(mvm, te_data->vif, msg)) { in iwl_mvm_te_handle_notif()
327 iwl_mvm_te_clear_data(mvm, te_data); in iwl_mvm_te_handle_notif()
335 jiffies, te_data->end_jiffies); in iwl_mvm_te_handle_notif()
337 switch (te_data->vif->type) { in iwl_mvm_te_handle_notif()
347 iwl_mvm_te_check_disconnect(mvm, te_data->vif, in iwl_mvm_te_handle_notif()
354 iwl_mvm_te_clear_data(mvm, te_data); in iwl_mvm_te_handle_notif()
356 te_data->running = true; in iwl_mvm_te_handle_notif()
357 te_data->end_jiffies = TU_TO_EXP_TIME(te_data->duration); in iwl_mvm_te_handle_notif()
359 if (te_data->vif->type == NL80211_IFTYPE_P2P_DEVICE) { in iwl_mvm_te_handle_notif()
363 } else if (te_data->id == TE_CHANNEL_SWITCH_PERIOD) { in iwl_mvm_te_handle_notif()
364 iwl_mvm_te_handle_notify_csa(mvm, te_data, notif); in iwl_mvm_te_handle_notif()
377 struct iwl_mvm_time_event_data *te_data, *tmp; in iwl_mvm_aux_roc_te_handle_notif() local
380 list_for_each_entry_safe(te_data, tmp, &mvm->aux_roc_te_list, list) { in iwl_mvm_aux_roc_te_handle_notif()
381 if (le32_to_cpu(notif->unique_id) == te_data->uid) { in iwl_mvm_aux_roc_te_handle_notif()
389 iwl_mvm_te_check_trigger(mvm, notif, te_data); in iwl_mvm_aux_roc_te_handle_notif()
401 list_del(&te_data->list); /* remove from list */ in iwl_mvm_aux_roc_te_handle_notif()
402 te_data->running = false; in iwl_mvm_aux_roc_te_handle_notif()
403 te_data->vif = NULL; in iwl_mvm_aux_roc_te_handle_notif()
404 te_data->uid = 0; in iwl_mvm_aux_roc_te_handle_notif()
405 te_data->id = TE_MAX; in iwl_mvm_aux_roc_te_handle_notif()
408 te_data->running = true; in iwl_mvm_aux_roc_te_handle_notif()
429 struct iwl_mvm_time_event_data *te_data, *tmp; in iwl_mvm_rx_time_event_notif() local
440 list_for_each_entry_safe(te_data, tmp, &mvm->time_event_list, list) { in iwl_mvm_rx_time_event_notif()
441 if (le32_to_cpu(notif->unique_id) == te_data->uid) in iwl_mvm_rx_time_event_notif()
442 iwl_mvm_te_handle_notif(mvm, te_data, notif); in iwl_mvm_rx_time_event_notif()
453 struct iwl_mvm_time_event_data *te_data = data; in iwl_mvm_te_notif() local
468 if (le32_to_cpu(resp->unique_id) != te_data->uid) in iwl_mvm_te_notif()
472 te_data->uid); in iwl_mvm_te_notif()
485 struct iwl_mvm_time_event_data *te_data = data; in iwl_mvm_time_event_response() local
500 if (WARN_ON_ONCE(le32_to_cpu(resp->id) != te_data->id)) in iwl_mvm_time_event_response()
503 te_data->uid = le32_to_cpu(resp->unique_id); in iwl_mvm_time_event_response()
505 te_data->uid); in iwl_mvm_time_event_response()
511 struct iwl_mvm_time_event_data *te_data, in iwl_mvm_time_event_send_add() argument
524 if (WARN_ON(te_data->id != TE_MAX)) { in iwl_mvm_time_event_send_add()
528 te_data->vif = vif; in iwl_mvm_time_event_send_add()
529 te_data->duration = le32_to_cpu(te_cmd->duration); in iwl_mvm_time_event_send_add()
530 te_data->id = le32_to_cpu(te_cmd->id); in iwl_mvm_time_event_send_add()
531 list_add_tail(&te_data->list, &mvm->time_event_list); in iwl_mvm_time_event_send_add()
546 iwl_mvm_time_event_response, te_data); in iwl_mvm_time_event_send_add()
564 iwl_mvm_te_clear_data(mvm, te_data); in iwl_mvm_time_event_send_add()
576 struct iwl_mvm_time_event_data *te_data = &mvmvif->time_event_data; in iwl_mvm_protect_session() local
583 if (te_data->running && in iwl_mvm_protect_session()
584 time_after(te_data->end_jiffies, TU_TO_EXP_TIME(min_duration))) { in iwl_mvm_protect_session()
586 jiffies_to_msecs(te_data->end_jiffies - jiffies)); in iwl_mvm_protect_session()
590 if (te_data->running) { in iwl_mvm_protect_session()
592 te_data->uid, in iwl_mvm_protect_session()
593 jiffies_to_msecs(te_data->end_jiffies - jiffies)); in iwl_mvm_protect_session()
623 iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd); in iwl_mvm_protect_session()
634 iwl_mvm_te_notif, te_data); in iwl_mvm_protect_session()
637 if (iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd)) { in iwl_mvm_protect_session()
647 struct iwl_mvm_time_event_data *te_data, in __iwl_mvm_remove_time_event() argument
659 *uid = te_data->uid; in __iwl_mvm_remove_time_event()
660 id = te_data->id; in __iwl_mvm_remove_time_event()
665 iwl_mvm_te_clear_data(mvm, te_data); in __iwl_mvm_remove_time_event()
689 struct iwl_mvm_time_event_data *te_data) in iwl_mvm_remove_aux_roc_te() argument
695 if (!__iwl_mvm_remove_time_event(mvm, te_data, &uid)) in iwl_mvm_remove_aux_roc_te()
718 struct iwl_mvm_time_event_data *te_data) in iwl_mvm_remove_time_event() argument
724 if (!__iwl_mvm_remove_time_event(mvm, te_data, &uid)) in iwl_mvm_remove_time_event()
744 struct iwl_mvm_time_event_data *te_data = &mvmvif->time_event_data; in iwl_mvm_stop_session_protection() local
750 id = te_data->id; in iwl_mvm_stop_session_protection()
760 iwl_mvm_remove_time_event(mvm, mvmvif, te_data); in iwl_mvm_stop_session_protection()
767 struct iwl_mvm_time_event_data *te_data = &mvmvif->time_event_data; in iwl_mvm_start_p2p_roc() local
771 if (te_data->running) { in iwl_mvm_start_p2p_roc()
809 return iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd); in iwl_mvm_start_p2p_roc()
814 struct iwl_mvm_time_event_data *te_data; in iwl_mvm_get_roc_te() local
827 list_for_each_entry(te_data, &mvm->time_event_list, list) { in iwl_mvm_get_roc_te()
828 if (te_data->vif->type == NL80211_IFTYPE_P2P_DEVICE) in iwl_mvm_get_roc_te()
835 te_data = list_first_entry_or_null(&mvm->aux_roc_te_list, in iwl_mvm_get_roc_te()
840 return te_data; in iwl_mvm_get_roc_te()
845 struct iwl_mvm_time_event_data *te_data; in iwl_mvm_cleanup_roc_te() local
848 te_data = iwl_mvm_get_roc_te(mvm); in iwl_mvm_cleanup_roc_te()
849 if (te_data) in iwl_mvm_cleanup_roc_te()
850 __iwl_mvm_remove_time_event(mvm, te_data, &uid); in iwl_mvm_cleanup_roc_te()
856 struct iwl_mvm_time_event_data *te_data; in iwl_mvm_stop_roc() local
858 te_data = iwl_mvm_get_roc_te(mvm); in iwl_mvm_stop_roc()
859 if (!te_data) { in iwl_mvm_stop_roc()
864 mvmvif = iwl_mvm_vif_from_mac80211(te_data->vif); in iwl_mvm_stop_roc()
866 if (te_data->vif->type == NL80211_IFTYPE_P2P_DEVICE) { in iwl_mvm_stop_roc()
867 iwl_mvm_remove_time_event(mvm, mvmvif, te_data); in iwl_mvm_stop_roc()
870 iwl_mvm_remove_aux_roc_te(mvm, mvmvif, te_data); in iwl_mvm_stop_roc()
881 struct iwl_mvm_time_event_data *te_data = &mvmvif->time_event_data; in iwl_mvm_schedule_csa_period() local
886 if (te_data->running) { in iwl_mvm_schedule_csa_period()
890 id = te_data->id; in iwl_mvm_schedule_csa_period()
903 iwl_mvm_remove_time_event(mvm, mvmvif, te_data); in iwl_mvm_schedule_csa_period()
920 return iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd); in iwl_mvm_schedule_csa_period()