• Home
  • Raw
  • Download

Lines Matching refs:te_data

26 			   struct iwl_mvm_time_event_data *te_data)  in iwl_mvm_te_clear_data()  argument
30 if (!te_data || !te_data->vif) in iwl_mvm_te_clear_data()
33 list_del(&te_data->list); in iwl_mvm_te_clear_data()
39 INIT_LIST_HEAD(&te_data->list); in iwl_mvm_te_clear_data()
41 te_data->running = false; in iwl_mvm_te_clear_data()
42 te_data->uid = 0; in iwl_mvm_te_clear_data()
43 te_data->id = TE_MAX; in iwl_mvm_te_clear_data()
44 te_data->vif = NULL; in iwl_mvm_te_clear_data()
196 struct iwl_mvm_time_event_data *te_data, in iwl_mvm_te_handle_notify_csa() argument
199 struct ieee80211_vif *vif = te_data->vif; in iwl_mvm_te_handle_notify_csa()
205 switch (te_data->vif->type) { in iwl_mvm_te_handle_notify_csa()
217 iwl_mvm_csa_client_absent(mvm, te_data->vif); in iwl_mvm_te_handle_notify_csa()
219 ieee80211_chswitch_done(te_data->vif, true); in iwl_mvm_te_handle_notify_csa()
228 iwl_mvm_te_clear_data(mvm, te_data); in iwl_mvm_te_handle_notify_csa()
233 struct iwl_mvm_time_event_data *te_data) in iwl_mvm_te_check_trigger() argument
240 ieee80211_vif_to_wdev(te_data->vif), in iwl_mvm_te_check_trigger()
254 if (trig_te_id != te_data->id || in iwl_mvm_te_check_trigger()
261 te_data->id, in iwl_mvm_te_check_trigger()
288 struct iwl_mvm_time_event_data *te_data, in iwl_mvm_te_handle_notif() argument
297 iwl_mvm_te_check_trigger(mvm, notif, te_data); in iwl_mvm_te_handle_notif()
317 if (iwl_mvm_te_check_disconnect(mvm, te_data->vif, msg)) { in iwl_mvm_te_handle_notif()
318 iwl_mvm_te_clear_data(mvm, te_data); in iwl_mvm_te_handle_notif()
326 jiffies, te_data->end_jiffies); in iwl_mvm_te_handle_notif()
328 switch (te_data->vif->type) { in iwl_mvm_te_handle_notif()
339 if (te_data->id == TE_CHANNEL_SWITCH_PERIOD) { in iwl_mvm_te_handle_notif()
349 iwl_mvm_te_check_disconnect(mvm, te_data->vif, in iwl_mvm_te_handle_notif()
350 !te_data->vif->bss_conf.assoc ? in iwl_mvm_te_handle_notif()
358 iwl_mvm_te_clear_data(mvm, te_data); in iwl_mvm_te_handle_notif()
360 te_data->running = true; in iwl_mvm_te_handle_notif()
361 te_data->end_jiffies = TU_TO_EXP_TIME(te_data->duration); in iwl_mvm_te_handle_notif()
363 if (te_data->vif->type == NL80211_IFTYPE_P2P_DEVICE) { in iwl_mvm_te_handle_notif()
366 } else if (te_data->id == TE_CHANNEL_SWITCH_PERIOD) { in iwl_mvm_te_handle_notif()
367 iwl_mvm_te_handle_notify_csa(mvm, te_data, notif); in iwl_mvm_te_handle_notif()
380 struct iwl_mvm_time_event_data *te_data, *tmp; in iwl_mvm_aux_roc_te_handle_notif() local
383 list_for_each_entry_safe(te_data, tmp, &mvm->aux_roc_te_list, list) { in iwl_mvm_aux_roc_te_handle_notif()
384 if (le32_to_cpu(notif->unique_id) == te_data->uid) { in iwl_mvm_aux_roc_te_handle_notif()
392 iwl_mvm_te_check_trigger(mvm, notif, te_data); in iwl_mvm_aux_roc_te_handle_notif()
404 list_del(&te_data->list); /* remove from list */ in iwl_mvm_aux_roc_te_handle_notif()
405 te_data->running = false; in iwl_mvm_aux_roc_te_handle_notif()
406 te_data->vif = NULL; in iwl_mvm_aux_roc_te_handle_notif()
407 te_data->uid = 0; in iwl_mvm_aux_roc_te_handle_notif()
408 te_data->id = TE_MAX; in iwl_mvm_aux_roc_te_handle_notif()
411 te_data->running = true; in iwl_mvm_aux_roc_te_handle_notif()
431 struct iwl_mvm_time_event_data *te_data, *tmp; in iwl_mvm_rx_time_event_notif() local
442 list_for_each_entry_safe(te_data, tmp, &mvm->time_event_list, list) { in iwl_mvm_rx_time_event_notif()
443 if (le32_to_cpu(notif->unique_id) == te_data->uid) in iwl_mvm_rx_time_event_notif()
444 iwl_mvm_te_handle_notif(mvm, te_data, notif); in iwl_mvm_rx_time_event_notif()
455 struct iwl_mvm_time_event_data *te_data = data; in iwl_mvm_te_notif() local
470 if (le32_to_cpu(resp->unique_id) != te_data->uid) in iwl_mvm_te_notif()
474 te_data->uid); in iwl_mvm_te_notif()
487 struct iwl_mvm_time_event_data *te_data = data; in iwl_mvm_time_event_response() local
502 if (WARN_ON_ONCE(le32_to_cpu(resp->id) != te_data->id)) in iwl_mvm_time_event_response()
505 te_data->uid = le32_to_cpu(resp->unique_id); in iwl_mvm_time_event_response()
507 te_data->uid); in iwl_mvm_time_event_response()
513 struct iwl_mvm_time_event_data *te_data, in iwl_mvm_time_event_send_add() argument
526 if (WARN_ON(te_data->id != TE_MAX)) { in iwl_mvm_time_event_send_add()
530 te_data->vif = vif; in iwl_mvm_time_event_send_add()
531 te_data->duration = le32_to_cpu(te_cmd->duration); in iwl_mvm_time_event_send_add()
532 te_data->id = le32_to_cpu(te_cmd->id); in iwl_mvm_time_event_send_add()
533 list_add_tail(&te_data->list, &mvm->time_event_list); in iwl_mvm_time_event_send_add()
548 iwl_mvm_time_event_response, te_data); in iwl_mvm_time_event_send_add()
566 iwl_mvm_te_clear_data(mvm, te_data); in iwl_mvm_time_event_send_add()
578 struct iwl_mvm_time_event_data *te_data = &mvmvif->time_event_data; in iwl_mvm_protect_session() local
585 if (te_data->running && in iwl_mvm_protect_session()
586 time_after(te_data->end_jiffies, TU_TO_EXP_TIME(min_duration))) { in iwl_mvm_protect_session()
588 jiffies_to_msecs(te_data->end_jiffies - jiffies)); in iwl_mvm_protect_session()
592 if (te_data->running) { in iwl_mvm_protect_session()
594 te_data->uid, in iwl_mvm_protect_session()
595 jiffies_to_msecs(te_data->end_jiffies - jiffies)); in iwl_mvm_protect_session()
625 iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd); in iwl_mvm_protect_session()
636 iwl_mvm_te_notif, te_data); in iwl_mvm_protect_session()
639 if (iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd)) { in iwl_mvm_protect_session()
670 struct iwl_mvm_time_event_data *te_data, in __iwl_mvm_remove_time_event() argument
677 if (!te_data->vif) in __iwl_mvm_remove_time_event()
680 mvmvif = iwl_mvm_vif_from_mac80211(te_data->vif); in __iwl_mvm_remove_time_event()
681 iftype = te_data->vif->type; in __iwl_mvm_remove_time_event()
690 *uid = te_data->uid; in __iwl_mvm_remove_time_event()
691 id = te_data->id; in __iwl_mvm_remove_time_event()
696 iwl_mvm_te_clear_data(mvm, te_data); in __iwl_mvm_remove_time_event()
737 struct iwl_mvm_time_event_data *te_data) in iwl_mvm_remove_aux_roc_te() argument
745 if (!__iwl_mvm_remove_time_event(mvm, te_data, &uid)) in iwl_mvm_remove_aux_roc_te()
768 struct iwl_mvm_time_event_data *te_data) in iwl_mvm_remove_time_event() argument
774 if (!__iwl_mvm_remove_time_event(mvm, te_data, &uid)) in iwl_mvm_remove_time_event()
794 struct iwl_mvm_time_event_data *te_data = &mvmvif->time_event_data; in iwl_mvm_stop_session_protection() local
800 id = te_data->id; in iwl_mvm_stop_session_protection()
818 iwl_mvm_remove_time_event(mvm, mvmvif, te_data); in iwl_mvm_stop_session_protection()
840 struct iwl_mvm_time_event_data *te_data = in iwl_mvm_rx_session_protect_notif() local
847 iwl_mvm_te_clear_data(mvm, te_data); in iwl_mvm_rx_session_protect_notif()
853 te_data->running = le32_to_cpu(notif->start); in iwl_mvm_rx_session_protect_notif()
854 te_data->end_jiffies = in iwl_mvm_rx_session_protect_notif()
855 TU_TO_EXP_TIME(te_data->duration); in iwl_mvm_rx_session_protect_notif()
867 iwl_mvm_te_clear_data(mvm, te_data); in iwl_mvm_rx_session_protect_notif()
935 struct iwl_mvm_time_event_data *te_data = &mvmvif->time_event_data; in iwl_mvm_start_p2p_roc() local
939 if (te_data->running) { in iwl_mvm_start_p2p_roc()
983 return iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd); in iwl_mvm_start_p2p_roc()
988 struct iwl_mvm_time_event_data *te_data; in iwl_mvm_get_roc_te() local
1001 list_for_each_entry(te_data, &mvm->time_event_list, list) { in iwl_mvm_get_roc_te()
1002 if (te_data->vif->type == NL80211_IFTYPE_P2P_DEVICE) in iwl_mvm_get_roc_te()
1009 te_data = list_first_entry_or_null(&mvm->aux_roc_te_list, in iwl_mvm_get_roc_te()
1014 return te_data; in iwl_mvm_get_roc_te()
1019 struct iwl_mvm_time_event_data *te_data; in iwl_mvm_cleanup_roc_te() local
1022 te_data = iwl_mvm_get_roc_te(mvm); in iwl_mvm_cleanup_roc_te()
1023 if (te_data) in iwl_mvm_cleanup_roc_te()
1024 __iwl_mvm_remove_time_event(mvm, te_data, &uid); in iwl_mvm_cleanup_roc_te()
1030 struct iwl_mvm_time_event_data *te_data; in iwl_mvm_stop_roc() local
1049 te_data = iwl_mvm_get_roc_te(mvm); in iwl_mvm_stop_roc()
1050 if (!te_data) { in iwl_mvm_stop_roc()
1055 mvmvif = iwl_mvm_vif_from_mac80211(te_data->vif); in iwl_mvm_stop_roc()
1057 if (te_data->vif->type == NL80211_IFTYPE_P2P_DEVICE) { in iwl_mvm_stop_roc()
1058 iwl_mvm_remove_time_event(mvm, mvmvif, te_data); in iwl_mvm_stop_roc()
1061 iwl_mvm_remove_aux_roc_te(mvm, mvmvif, te_data); in iwl_mvm_stop_roc()
1070 struct iwl_mvm_time_event_data *te_data = &mvmvif->time_event_data; in iwl_mvm_remove_csa_period() local
1076 id = te_data->id; in iwl_mvm_remove_csa_period()
1082 iwl_mvm_remove_time_event(mvm, mvmvif, te_data); in iwl_mvm_remove_csa_period()
1090 struct iwl_mvm_time_event_data *te_data = &mvmvif->time_event_data; in iwl_mvm_schedule_csa_period() local
1095 if (te_data->running) { in iwl_mvm_schedule_csa_period()
1099 id = te_data->id; in iwl_mvm_schedule_csa_period()
1112 iwl_mvm_remove_time_event(mvm, mvmvif, te_data); in iwl_mvm_schedule_csa_period()
1129 return iwl_mvm_time_event_send_add(mvm, vif, te_data, &time_cmd); in iwl_mvm_schedule_csa_period()
1164 struct iwl_mvm_time_event_data *te_data = &mvmvif->time_event_data; in iwl_mvm_schedule_session_protection() local
1180 if (te_data->running && in iwl_mvm_schedule_session_protection()
1181 time_after(te_data->end_jiffies, TU_TO_EXP_TIME(min_duration))) { in iwl_mvm_schedule_session_protection()
1183 jiffies_to_msecs(te_data->end_jiffies - jiffies)); in iwl_mvm_schedule_session_protection()
1189 iwl_mvm_te_clear_data(mvm, te_data); in iwl_mvm_schedule_session_protection()
1194 te_data->id = le32_to_cpu(cmd.conf_id); in iwl_mvm_schedule_session_protection()
1195 te_data->duration = le32_to_cpu(cmd.duration_tu); in iwl_mvm_schedule_session_protection()
1196 te_data->vif = vif; in iwl_mvm_schedule_session_protection()
1210 iwl_mvm_te_clear_data(mvm, te_data); in iwl_mvm_schedule_session_protection()