Lines Matching refs:link_id
15 unsigned int link_id;
29 for_each_sta_active_link(vif, sta, link_sta, link_id) {
33 if (filter_link_id >= 0 && link_id != filter_link_id)
37 rcu_dereference_check(mvmsta->link[link_id],
64 const u8 *addr, int link_id)
73 cmd.link_id = cpu_to_le32(link_id);
141 const u8 *addr, int link_id,
153 ret = iwl_mvm_add_aux_sta_to_fw(mvm, sta, link_id);
155 ret = iwl_mvm_mld_add_int_sta_to_fw(mvm, sta, addr, link_id);
182 int link_id, const u8 *addr, u8 tid,
195 ret = iwl_mvm_mld_add_int_sta_with_queue(mvm, int_sta, addr, link_id,
214 mvmvif->link[link_conf->link_id];
253 mvmvif->link[link_conf->link_id];
287 mvmvif->link[link_conf->link_id];
302 * use the link_id argument place to send lmac_id to the function.
370 struct iwl_mvm_vif_link_info *link = mvmvif->link[link_conf->link_id];
403 struct iwl_mvm_vif_link_info *link = mvmvif->link[link_conf->link_id];
440 mvm_vif->link[link_conf->link_id];
451 cmd.link_id = cpu_to_le32(link_info->fw_link_id);
521 unsigned int link_id,
527 RCU_INIT_POINTER(mvm_sta->link[link_id], NULL);
536 unsigned int link_id;
538 for (link_id = 0; link_id < ARRAY_SIZE(mvm_sta->link); link_id++) {
540 rcu_dereference_protected(mvm_sta->link[link_id],
546 iwl_mvm_mld_free_sta_link(mvm, mvm_sta, link, link_id, false);
553 unsigned int link_id)
556 link_sta_dereference_protected(sta, link_id);
565 if (rcu_access_pointer(sta->link[link_id]) == &sta->deflink) {
574 rcu_assign_pointer(mvm_sta->link[link_id], link);
589 unsigned int link_id;
594 for_each_sta_active_link(vif, sta, link_sta, link_id) {
595 if (WARN_ON(mvm_sta->link[link_id]))
598 ret = iwl_mvm_mld_alloc_sta_link(mvm, vif, sta, link_id);
629 unsigned int link_id;
635 * a valid station. Since we need a link_id to allocate a station,
638 for_each_sta_active_link(vif, sta, link_sta, link_id) {
641 link_conf_dereference_protected(vif, link_id);
643 rcu_dereference_protected(mvm_sta->link[link_id],
649 mvm_link = mvmvif->link[link_conf->link_id];
678 unsigned int link_id;
703 for_each_sta_active_link(vif, sta, link_sta, link_id) {
705 link_conf_dereference_protected(vif, link_id);
707 rcu_dereference_protected(mvm_sta->link[link_id],
720 link_sta_added_to_fw |= BIT(link_id);
723 iwl_mvm_mld_set_ap_sta_id(sta, mvm_vif->link[link_id],
730 for_each_set_bit(link_id, &link_sta_added_to_fw,
733 rcu_dereference_protected(mvm_sta->link[link_id],
749 unsigned int link_id;
754 for_each_sta_active_link(vif, sta, link_sta, link_id) {
756 link_conf_dereference_protected(vif, link_id);
758 rcu_dereference_protected(mvm_sta->link[link_id],
768 IWL_ERR(mvm, "Failed to update sta link %d\n", link_id);
808 unsigned int link_id;
814 for_each_sta_active_link(vif, sta, link_sta, link_id) {
816 rcu_dereference_protected(mvm_sta->link[link_id],
834 for_each_sta_active_link(vif, sta, link_sta, link_id) {
836 rcu_dereference_protected(mvm_sta->link[link_id],
849 link_id, stay_in_fw);
1064 unsigned int link_id;
1069 for_each_set_bit(link_id, &old_links_long,
1072 rcu_dereference_protected(mvm_sta->link[link_id],
1081 if (links_to_rem & BIT(link_id))
1096 for_each_set_bit(link_id, &links_to_rem, IEEE80211_MLD_MAX_NUM_LINKS) {
1098 rcu_dereference_protected(mvm_sta->link[link_id],
1100 mvm_vif_link = mvm_vif->link[link_id];
1114 iwl_mvm_mld_free_sta_link(mvm, mvm_sta, mvm_sta_link, link_id,
1118 for_each_set_bit(link_id, &links_to_add, IEEE80211_MLD_MAX_NUM_LINKS) {
1120 link_conf_dereference_protected(vif, link_id);
1122 link_sta_dereference_protected(sta, link_id);
1123 mvm_vif_link = mvm_vif->link[link_id];
1132 rcu_dereference_protected(mvm_sta->link[link_id],
1147 if (WARN_ON(mvm_sta->link[link_id])) {
1152 link_id);
1161 rcu_dereference_protected(mvm_sta->link[link_id],
1173 link_sta_allocated |= BIT(link_id);
1182 link_sta_added_to_fw |= BIT(link_id);
1200 for_each_set_bit(link_id, &link_sta_added_to_fw,
1203 rcu_dereference_protected(mvm_sta->link[link_id],
1210 for_each_set_bit(link_id, &link_sta_allocated,
1213 rcu_dereference_protected(mvm_sta->link[link_id],
1216 iwl_mvm_mld_free_sta_link(mvm, mvm_sta, mvm_sta_link, link_id,