Lines Matching refs:mvmvif

47 	struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);  in iwl_mvm_mac_tsf_id_iter()  local
82 !test_bit(mvmvif->tsf_id, data->available_tsf_ids)) in iwl_mvm_mac_tsf_id_iter()
93 data->preferred_tsf = mvmvif->tsf_id; in iwl_mvm_mac_tsf_id_iter()
111 !test_bit(mvmvif->tsf_id, data->available_tsf_ids)) in iwl_mvm_mac_tsf_id_iter()
122 data->preferred_tsf = mvmvif->tsf_id; in iwl_mvm_mac_tsf_id_iter()
143 __clear_bit(mvmvif->tsf_id, data->available_tsf_ids); in iwl_mvm_mac_tsf_id_iter()
145 if (data->preferred_tsf == mvmvif->tsf_id) in iwl_mvm_mac_tsf_id_iter()
153 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_iface_iterator() local
167 __clear_bit(mvmvif->id, data->available_mac_ids); in iwl_mvm_mac_iface_iterator()
176 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_recalc_tsf_id() local
190 mvmvif->tsf_id = data.preferred_tsf; in iwl_mvm_mac_ctxt_recalc_tsf_id()
191 else if (!test_bit(mvmvif->tsf_id, data.available_tsf_ids)) in iwl_mvm_mac_ctxt_recalc_tsf_id()
192 mvmvif->tsf_id = find_first_bit(data.available_tsf_ids, in iwl_mvm_mac_ctxt_recalc_tsf_id()
198 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_init() local
261 mvmvif->id = find_first_bit(data.available_mac_ids, in iwl_mvm_mac_ctxt_init()
263 if (mvmvif->id == NUM_MAC_INDEX_DRIVER) { in iwl_mvm_mac_ctxt_init()
270 mvmvif->tsf_id = data.preferred_tsf; in iwl_mvm_mac_ctxt_init()
272 mvmvif->tsf_id = find_first_bit(data.available_tsf_ids, in iwl_mvm_mac_ctxt_init()
274 if (mvmvif->tsf_id == NUM_TSF_IDS) { in iwl_mvm_mac_ctxt_init()
280 mvmvif->color = 0; in iwl_mvm_mac_ctxt_init()
282 INIT_LIST_HEAD(&mvmvif->time_event_data.list); in iwl_mvm_mac_ctxt_init()
283 mvmvif->time_event_data.id = TE_MAX; in iwl_mvm_mac_ctxt_init()
296 mvmvif->cab_queue = IWL_MVM_DQA_GCAST_QUEUE; in iwl_mvm_mac_ctxt_init()
299 mvmvif->bcast_sta.sta_id = IWL_MVM_INVALID_STA; in iwl_mvm_mac_ctxt_init()
300 mvmvif->mcast_sta.sta_id = IWL_MVM_INVALID_STA; in iwl_mvm_mac_ctxt_init()
301 mvmvif->ap_sta_id = IWL_MVM_INVALID_STA; in iwl_mvm_mac_ctxt_init()
304 mvmvif->smps_requests[i] = IEEE80211_SMPS_AUTOMATIC; in iwl_mvm_mac_ctxt_init()
309 memset(mvmvif, 0, sizeof(struct iwl_mvm_vif)); in iwl_mvm_mac_ctxt_init()
439 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_cmd_common() local
447 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_mac_ctxt_cmd_common()
448 mvmvif->color)); in iwl_mvm_mac_ctxt_cmd_common()
474 cmd->tsf_id = cpu_to_le32(mvmvif->tsf_id); in iwl_mvm_mac_ctxt_cmd_common()
507 cpu_to_le16(mvmvif->queue_params[i].cw_min); in iwl_mvm_mac_ctxt_cmd_common()
509 cpu_to_le16(mvmvif->queue_params[i].cw_max); in iwl_mvm_mac_ctxt_cmd_common()
511 cpu_to_le16(mvmvif->queue_params[i].txop * 32); in iwl_mvm_mac_ctxt_cmd_common()
512 cmd->ac[ucode_ac].aifsn = mvmvif->queue_params[i].aifs; in iwl_mvm_mac_ctxt_cmd_common()
575 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_cmd_sta() local
612 if (!mvmvif->authorized && in iwl_mvm_mac_ctxt_cmd_sta()
685 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_cmd_ibss() local
700 cmd.ibss.beacon_template = cpu_to_le32(mvmvif->id); in iwl_mvm_mac_ctxt_cmd_ibss()
712 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_go_iterator() local
715 mvmvif->ap_ibss_active) in iwl_mvm_go_iterator()
864 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_set_tx() local
873 tx->sta_id = mvmvif->bcast_sta.sta_id; in iwl_mvm_mac_ctxt_set_tx()
921 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_send_beacon_v6() local
926 beacon_cmd.template_id = cpu_to_le32((u32)mvmvif->id); in iwl_mvm_mac_ctxt_send_beacon_v6()
941 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_send_beacon_v7() local
946 beacon_cmd.template_id = cpu_to_le32((u32)mvmvif->id); in iwl_mvm_mac_ctxt_send_beacon_v7()
970 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_send_beacon_v9() local
998 beacon_cmd.template_id = cpu_to_le32((u32)mvmvif->id); in iwl_mvm_mac_ctxt_send_beacon_v9()
1098 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_cmd_fill_ap() local
1115 if (mvmvif->ap_assoc_sta_count || !mvm->drop_bcn_ap_mode) { in iwl_mvm_mac_ctxt_cmd_fill_ap()
1128 ctxt_ap->mcast_qid = cpu_to_le32(mvmvif->cab_queue); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1147 mvmvif->ap_beacon_time = data.beacon_device_ts + in iwl_mvm_mac_ctxt_cmd_fill_ap()
1151 mvmvif->ap_beacon_time = iwl_mvm_get_systime(mvm); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1155 ctxt_ap->beacon_time = cpu_to_le32(mvmvif->ap_beacon_time); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1159 ctxt_ap->beacon_template = cpu_to_le32(mvmvif->id); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1234 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_add() local
1237 if (WARN_ONCE(mvmvif->uploaded, "Adding active MAC %pM/%d\n", in iwl_mvm_mac_ctxt_add()
1249 mvmvif->uploaded = true; in iwl_mvm_mac_ctxt_add()
1256 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_changed() local
1258 if (WARN_ONCE(!mvmvif->uploaded, "Changing inactive MAC %pM/%d\n", in iwl_mvm_mac_ctxt_changed()
1268 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_remove() local
1272 if (WARN_ONCE(!mvmvif->uploaded, "Removing inactive MAC %pM/%d\n", in iwl_mvm_mac_ctxt_remove()
1278 cmd.id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_mac_ctxt_remove()
1279 mvmvif->color)); in iwl_mvm_mac_ctxt_remove()
1289 mvmvif->uploaded = false; in iwl_mvm_mac_ctxt_remove()
1303 struct iwl_mvm_vif *mvmvif = in iwl_mvm_csa_count_down() local
1307 if (!tx_success && !mvmvif->csa_countdown) in iwl_mvm_csa_count_down()
1310 mvmvif->csa_countdown = true; in iwl_mvm_csa_count_down()
1317 !iwl_mvm_te_scheduled(&mvmvif->time_event_data) && gp2 && in iwl_mvm_csa_count_down()
1329 } else if (!iwl_mvm_te_scheduled(&mvmvif->time_event_data)) { in iwl_mvm_csa_count_down()
1389 struct iwl_mvm_vif *mvmvif = in iwl_mvm_rx_beacon_notif() local
1405 iwl_mvm_modify_all_sta_disable_tx(mvm, mvmvif, false); in iwl_mvm_rx_beacon_notif()
1542 struct iwl_mvm_vif *mvmvif; in iwl_mvm_probe_resp_data_notif() local
1551 mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_probe_resp_data_notif()
1571 old_data = rcu_dereference_protected(mvmvif->probe_resp_data, in iwl_mvm_probe_resp_data_notif()
1572 lockdep_is_held(&mvmvif->mvm->mutex)); in iwl_mvm_probe_resp_data_notif()
1573 rcu_assign_pointer(mvmvif->probe_resp_data, new_data); in iwl_mvm_probe_resp_data_notif()
1589 struct iwl_mvm_vif *mvmvif; in iwl_mvm_channel_switch_start_notif() local
1600 mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_channel_switch_start_notif()
1609 csa_id = FW_CMD_ID_AND_COLOR(mvmvif->id, mvmvif->color); in iwl_mvm_channel_switch_start_notif()
1641 cancel_delayed_work(&mvmvif->csa_work); in iwl_mvm_channel_switch_start_notif()