Lines Matching refs:link_id

13 	unsigned int link_id;  in iwl_mvm_sta_fw_id_mask()  local
26 for (link_id = 0; link_id < ARRAY_SIZE(mvmsta->link); link_id++) { in iwl_mvm_sta_fw_id_mask()
30 if (filter_link_id >= 0 && link_id != filter_link_id) in iwl_mvm_sta_fw_id_mask()
34 rcu_dereference_check(mvmsta->link[link_id], in iwl_mvm_sta_fw_id_mask()
61 const u8 *addr, int link_id) in iwl_mvm_mld_add_int_sta_to_fw() argument
70 cmd.link_id = cpu_to_le32(link_id); in iwl_mvm_mld_add_int_sta_to_fw()
138 const u8 *addr, int link_id, in iwl_mvm_mld_add_int_sta_with_queue() argument
150 ret = iwl_mvm_add_aux_sta_to_fw(mvm, sta, link_id); in iwl_mvm_mld_add_int_sta_with_queue()
152 ret = iwl_mvm_mld_add_int_sta_to_fw(mvm, sta, addr, link_id); in iwl_mvm_mld_add_int_sta_with_queue()
179 int link_id, const u8 *addr, u8 tid, in iwl_mvm_mld_add_int_sta() argument
192 ret = iwl_mvm_mld_add_int_sta_with_queue(mvm, int_sta, addr, link_id, in iwl_mvm_mld_add_int_sta()
211 mvmvif->link[link_conf->link_id]; in iwl_mvm_mld_add_bcast_sta()
250 mvmvif->link[link_conf->link_id]; in iwl_mvm_mld_add_mcast_sta()
284 mvmvif->link[link_conf->link_id]; in iwl_mvm_mld_add_snif_sta()
367 struct iwl_mvm_vif_link_info *link = mvmvif->link[link_conf->link_id]; in iwl_mvm_mld_rm_bcast_sta()
400 struct iwl_mvm_vif_link_info *link = mvmvif->link[link_conf->link_id]; in iwl_mvm_mld_rm_mcast_sta()
437 mvm_vif->link[link_conf->link_id]; in iwl_mvm_mld_cfg_sta()
448 cmd.link_id = cpu_to_le32(link_info->fw_link_id); in iwl_mvm_mld_cfg_sta()
518 unsigned int link_id, in iwl_mvm_mld_free_sta_link() argument
524 RCU_INIT_POINTER(mvm_sta->link[link_id], NULL); in iwl_mvm_mld_free_sta_link()
533 unsigned int link_id; in iwl_mvm_mld_sta_rm_all_sta_links() local
535 for (link_id = 0; link_id < ARRAY_SIZE(mvm_sta->link); link_id++) { in iwl_mvm_mld_sta_rm_all_sta_links()
537 rcu_dereference_protected(mvm_sta->link[link_id], in iwl_mvm_mld_sta_rm_all_sta_links()
543 iwl_mvm_mld_free_sta_link(mvm, mvm_sta, link, link_id, false); in iwl_mvm_mld_sta_rm_all_sta_links()
550 unsigned int link_id) in iwl_mvm_mld_alloc_sta_link() argument
553 link_sta_dereference_protected(sta, link_id); in iwl_mvm_mld_alloc_sta_link()
562 if (rcu_access_pointer(sta->link[link_id]) == &sta->deflink) { in iwl_mvm_mld_alloc_sta_link()
571 rcu_assign_pointer(mvm_sta->link[link_id], link); in iwl_mvm_mld_alloc_sta_link()
585 unsigned int link_id; in iwl_mvm_mld_alloc_sta_links() local
590 for (link_id = 0; link_id < ARRAY_SIZE(sta->link); link_id++) { in iwl_mvm_mld_alloc_sta_links()
591 if (!rcu_access_pointer(sta->link[link_id]) || in iwl_mvm_mld_alloc_sta_links()
592 mvm_sta->link[link_id]) in iwl_mvm_mld_alloc_sta_links()
595 ret = iwl_mvm_mld_alloc_sta_link(mvm, vif, sta, link_id); in iwl_mvm_mld_alloc_sta_links()
629 unsigned int link_id; in iwl_mvm_alloc_sta_after_restart() local
638 for_each_sta_active_link(vif, sta, link_sta, link_id) { in iwl_mvm_alloc_sta_after_restart()
641 link_conf_dereference_protected(vif, link_id); in iwl_mvm_alloc_sta_after_restart()
643 rcu_dereference_protected(mvm_sta->link[link_id], in iwl_mvm_alloc_sta_after_restart()
649 mvm_link = mvmvif->link[link_conf->link_id]; in iwl_mvm_alloc_sta_after_restart()
678 unsigned int link_id; in iwl_mvm_mld_add_sta() local
701 for_each_sta_active_link(vif, sta, link_sta, link_id) { in iwl_mvm_mld_add_sta()
703 link_conf_dereference_protected(vif, link_id); in iwl_mvm_mld_add_sta()
705 rcu_dereference_protected(mvm_sta->link[link_id], in iwl_mvm_mld_add_sta()
718 link_sta_added_to_fw |= BIT(link_id); in iwl_mvm_mld_add_sta()
721 iwl_mvm_mld_set_ap_sta_id(sta, mvm_vif->link[link_id], in iwl_mvm_mld_add_sta()
729 for_each_set_bit(link_id, &link_sta_added_to_fw, in iwl_mvm_mld_add_sta()
732 rcu_dereference_protected(mvm_sta->link[link_id], in iwl_mvm_mld_add_sta()
748 unsigned int link_id; in iwl_mvm_mld_update_sta() local
753 for_each_sta_active_link(vif, sta, link_sta, link_id) { in iwl_mvm_mld_update_sta()
755 link_conf_dereference_protected(vif, link_id); in iwl_mvm_mld_update_sta()
757 rcu_dereference_protected(mvm_sta->link[link_id], in iwl_mvm_mld_update_sta()
767 IWL_ERR(mvm, "Failed to update sta link %d\n", link_id); in iwl_mvm_mld_update_sta()
807 unsigned int link_id; in iwl_mvm_mld_rm_sta() local
813 for_each_sta_active_link(vif, sta, link_sta, link_id) { in iwl_mvm_mld_rm_sta()
815 rcu_dereference_protected(mvm_sta->link[link_id], in iwl_mvm_mld_rm_sta()
833 for_each_sta_active_link(vif, sta, link_sta, link_id) { in iwl_mvm_mld_rm_sta()
835 rcu_dereference_protected(mvm_sta->link[link_id], in iwl_mvm_mld_rm_sta()
848 link_id, stay_in_fw); in iwl_mvm_mld_rm_sta()
1048 unsigned int link_id; in iwl_mvm_mld_update_sta_links() local
1053 for_each_set_bit(link_id, &old_links_long, in iwl_mvm_mld_update_sta_links()
1056 rcu_dereference_protected(mvm_sta->link[link_id], in iwl_mvm_mld_update_sta_links()
1065 if (links_to_rem & BIT(link_id)) in iwl_mvm_mld_update_sta_links()
1080 for_each_set_bit(link_id, &links_to_rem, IEEE80211_MLD_MAX_NUM_LINKS) { in iwl_mvm_mld_update_sta_links()
1082 rcu_dereference_protected(mvm_sta->link[link_id], in iwl_mvm_mld_update_sta_links()
1084 mvm_vif_link = mvm_vif->link[link_id]; in iwl_mvm_mld_update_sta_links()
1098 iwl_mvm_mld_free_sta_link(mvm, mvm_sta, mvm_sta_link, link_id, in iwl_mvm_mld_update_sta_links()
1102 for_each_set_bit(link_id, &links_to_add, IEEE80211_MLD_MAX_NUM_LINKS) { in iwl_mvm_mld_update_sta_links()
1104 link_conf_dereference_protected(vif, link_id); in iwl_mvm_mld_update_sta_links()
1106 link_sta_dereference_protected(sta, link_id); in iwl_mvm_mld_update_sta_links()
1107 mvm_vif_link = mvm_vif->link[link_id]; in iwl_mvm_mld_update_sta_links()
1110 mvm_sta->link[link_id])) { in iwl_mvm_mld_update_sta_links()
1115 ret = iwl_mvm_mld_alloc_sta_link(mvm, vif, sta, link_id); in iwl_mvm_mld_update_sta_links()
1123 rcu_dereference_protected(mvm_sta->link[link_id], in iwl_mvm_mld_update_sta_links()
1135 link_sta_allocated |= BIT(link_id); in iwl_mvm_mld_update_sta_links()
1144 link_sta_added_to_fw |= BIT(link_id); in iwl_mvm_mld_update_sta_links()
1162 for_each_set_bit(link_id, &link_sta_added_to_fw, in iwl_mvm_mld_update_sta_links()
1165 rcu_dereference_protected(mvm_sta->link[link_id], in iwl_mvm_mld_update_sta_links()
1172 for_each_set_bit(link_id, &link_sta_allocated, in iwl_mvm_mld_update_sta_links()
1175 rcu_dereference_protected(mvm_sta->link[link_id], in iwl_mvm_mld_update_sta_links()
1178 iwl_mvm_mld_free_sta_link(mvm, mvm_sta, mvm_sta_link, link_id, in iwl_mvm_mld_update_sta_links()