Lines Matching refs:mvmvif
101 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_tsf_id_iter() local
136 !test_bit(mvmvif->tsf_id, data->available_tsf_ids)) in iwl_mvm_mac_tsf_id_iter()
147 data->preferred_tsf = mvmvif->tsf_id; in iwl_mvm_mac_tsf_id_iter()
165 !test_bit(mvmvif->tsf_id, data->available_tsf_ids)) in iwl_mvm_mac_tsf_id_iter()
176 data->preferred_tsf = mvmvif->tsf_id; in iwl_mvm_mac_tsf_id_iter()
197 __clear_bit(mvmvif->tsf_id, data->available_tsf_ids); in iwl_mvm_mac_tsf_id_iter()
199 if (data->preferred_tsf == mvmvif->tsf_id) in iwl_mvm_mac_tsf_id_iter()
284 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_iface_iterator() local
298 __clear_bit(mvmvif->id, data->available_mac_ids); in iwl_mvm_mac_iface_iterator()
307 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_recalc_tsf_id() local
321 mvmvif->tsf_id = data.preferred_tsf; in iwl_mvm_mac_ctxt_recalc_tsf_id()
322 else if (!test_bit(mvmvif->tsf_id, data.available_tsf_ids)) in iwl_mvm_mac_ctxt_recalc_tsf_id()
323 mvmvif->tsf_id = find_first_bit(data.available_tsf_ids, in iwl_mvm_mac_ctxt_recalc_tsf_id()
330 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_allocate_resources() local
395 mvmvif->id = find_first_bit(data.available_mac_ids, in iwl_mvm_mac_ctxt_allocate_resources()
397 if (mvmvif->id == NUM_MAC_INDEX_DRIVER) { in iwl_mvm_mac_ctxt_allocate_resources()
404 mvmvif->tsf_id = data.preferred_tsf; in iwl_mvm_mac_ctxt_allocate_resources()
406 mvmvif->tsf_id = find_first_bit(data.available_tsf_ids, in iwl_mvm_mac_ctxt_allocate_resources()
408 if (mvmvif->tsf_id == NUM_TSF_IDS) { in iwl_mvm_mac_ctxt_allocate_resources()
414 mvmvif->color = 0; in iwl_mvm_mac_ctxt_allocate_resources()
416 INIT_LIST_HEAD(&mvmvif->time_event_data.list); in iwl_mvm_mac_ctxt_allocate_resources()
417 mvmvif->time_event_data.id = TE_MAX; in iwl_mvm_mac_ctxt_allocate_resources()
458 mvmvif->bcast_sta.sta_id = IWL_MVM_STATION_COUNT; in iwl_mvm_mac_ctxt_allocate_resources()
459 mvmvif->ap_sta_id = IWL_MVM_STATION_COUNT; in iwl_mvm_mac_ctxt_allocate_resources()
462 mvmvif->smps_requests[i] = IEEE80211_SMPS_AUTOMATIC; in iwl_mvm_mac_ctxt_allocate_resources()
467 memset(mvmvif, 0, sizeof(struct iwl_mvm_vif)); in iwl_mvm_mac_ctxt_allocate_resources()
658 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_cmd_common() local
666 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_mac_ctxt_cmd_common()
667 mvmvif->color)); in iwl_mvm_mac_ctxt_cmd_common()
693 cmd->tsf_id = cpu_to_le32(mvmvif->tsf_id); in iwl_mvm_mac_ctxt_cmd_common()
723 cpu_to_le16(mvmvif->queue_params[i].cw_min); in iwl_mvm_mac_ctxt_cmd_common()
725 cpu_to_le16(mvmvif->queue_params[i].cw_max); in iwl_mvm_mac_ctxt_cmd_common()
727 cpu_to_le16(mvmvif->queue_params[i].txop * 32); in iwl_mvm_mac_ctxt_cmd_common()
728 cmd->ac[txf].aifsn = mvmvif->queue_params[i].aifs; in iwl_mvm_mac_ctxt_cmd_common()
876 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_cmd_ibss() local
892 cmd.ibss.beacon_template = cpu_to_le32(mvmvif->id); in iwl_mvm_mac_ctxt_cmd_ibss()
904 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_go_iterator() local
907 mvmvif->ap_ibss_active) in iwl_mvm_go_iterator()
972 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_send_beacon() local
989 beacon_cmd.template_id = cpu_to_le32((u32)mvmvif->id); in iwl_mvm_mac_ctxt_send_beacon()
994 beacon_cmd.tx.sta_id = mvmvif->bcast_sta.sta_id; in iwl_mvm_mac_ctxt_send_beacon()
1087 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_cmd_fill_ap() local
1122 mvmvif->ap_beacon_time = data.beacon_device_ts + in iwl_mvm_mac_ctxt_cmd_fill_ap()
1126 mvmvif->ap_beacon_time = in iwl_mvm_mac_ctxt_cmd_fill_ap()
1132 ctxt_ap->beacon_time = cpu_to_le32(mvmvif->ap_beacon_time); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1136 ctxt_ap->beacon_template = cpu_to_le32(mvmvif->id); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1143 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_cmd_ap() local
1157 if (mvmvif->ap_assoc_sta_count) { in iwl_mvm_mac_ctxt_cmd_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()
1301 struct iwl_mvm_vif *mvmvif = in iwl_mvm_csa_count_down() local
1305 if (!tx_success && !mvmvif->csa_countdown) in iwl_mvm_csa_count_down()
1308 mvmvif->csa_countdown = true; in iwl_mvm_csa_count_down()
1315 !iwl_mvm_te_scheduled(&mvmvif->time_event_data) && gp2 && in iwl_mvm_csa_count_down()
1327 } else if (!iwl_mvm_te_scheduled(&mvmvif->time_event_data)) { in iwl_mvm_csa_count_down()
1366 struct iwl_mvm_vif *mvmvif = in iwl_mvm_rx_beacon_notif() local
1382 iwl_mvm_modify_all_sta_disable_tx(mvm, mvmvif, false); in iwl_mvm_rx_beacon_notif()
1392 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_beacon_loss_iterator() local
1393 struct iwl_mvm *mvm = mvmvif->mvm; in iwl_mvm_beacon_loss_iterator()
1399 if (mvmvif->id != (u16)le32_to_cpu(missed_beacons->mac_id)) in iwl_mvm_beacon_loss_iterator()