Lines Matching refs:mvmvif
99 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_tsf_id_iter() local
134 !test_bit(mvmvif->tsf_id, data->available_tsf_ids)) in iwl_mvm_mac_tsf_id_iter()
145 data->preferred_tsf = mvmvif->tsf_id; in iwl_mvm_mac_tsf_id_iter()
163 !test_bit(mvmvif->tsf_id, data->available_tsf_ids)) in iwl_mvm_mac_tsf_id_iter()
174 data->preferred_tsf = mvmvif->tsf_id; in iwl_mvm_mac_tsf_id_iter()
195 __clear_bit(mvmvif->tsf_id, data->available_tsf_ids); in iwl_mvm_mac_tsf_id_iter()
197 if (data->preferred_tsf == mvmvif->tsf_id) in iwl_mvm_mac_tsf_id_iter()
282 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_iface_iterator() local
296 __clear_bit(mvmvif->id, data->available_mac_ids); in iwl_mvm_mac_iface_iterator()
305 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_recalc_tsf_id() local
319 mvmvif->tsf_id = data.preferred_tsf; in iwl_mvm_mac_ctxt_recalc_tsf_id()
320 else if (!test_bit(mvmvif->tsf_id, data.available_tsf_ids)) in iwl_mvm_mac_ctxt_recalc_tsf_id()
321 mvmvif->tsf_id = find_first_bit(data.available_tsf_ids, in iwl_mvm_mac_ctxt_recalc_tsf_id()
328 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_allocate_resources() local
393 mvmvif->id = find_first_bit(data.available_mac_ids, in iwl_mvm_mac_ctxt_allocate_resources()
395 if (mvmvif->id == NUM_MAC_INDEX_DRIVER) { in iwl_mvm_mac_ctxt_allocate_resources()
402 mvmvif->tsf_id = data.preferred_tsf; in iwl_mvm_mac_ctxt_allocate_resources()
404 mvmvif->tsf_id = find_first_bit(data.available_tsf_ids, in iwl_mvm_mac_ctxt_allocate_resources()
406 if (mvmvif->tsf_id == NUM_TSF_IDS) { in iwl_mvm_mac_ctxt_allocate_resources()
412 mvmvif->color = 0; in iwl_mvm_mac_ctxt_allocate_resources()
414 INIT_LIST_HEAD(&mvmvif->time_event_data.list); in iwl_mvm_mac_ctxt_allocate_resources()
415 mvmvif->time_event_data.id = TE_MAX; in iwl_mvm_mac_ctxt_allocate_resources()
456 mvmvif->bcast_sta.sta_id = IWL_MVM_STATION_COUNT; in iwl_mvm_mac_ctxt_allocate_resources()
457 mvmvif->ap_sta_id = IWL_MVM_STATION_COUNT; in iwl_mvm_mac_ctxt_allocate_resources()
460 mvmvif->smps_requests[i] = IEEE80211_SMPS_AUTOMATIC; in iwl_mvm_mac_ctxt_allocate_resources()
465 memset(mvmvif, 0, sizeof(struct iwl_mvm_vif)); in iwl_mvm_mac_ctxt_allocate_resources()
649 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_cmd_common() local
657 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_mac_ctxt_cmd_common()
658 mvmvif->color)); in iwl_mvm_mac_ctxt_cmd_common()
684 cmd->tsf_id = cpu_to_le32(mvmvif->tsf_id); in iwl_mvm_mac_ctxt_cmd_common()
714 cpu_to_le16(mvmvif->queue_params[i].cw_min); in iwl_mvm_mac_ctxt_cmd_common()
716 cpu_to_le16(mvmvif->queue_params[i].cw_max); in iwl_mvm_mac_ctxt_cmd_common()
718 cpu_to_le16(mvmvif->queue_params[i].txop * 32); in iwl_mvm_mac_ctxt_cmd_common()
719 cmd->ac[txf].aifsn = mvmvif->queue_params[i].aifs; in iwl_mvm_mac_ctxt_cmd_common()
864 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_cmd_ibss() local
880 cmd.ibss.beacon_template = cpu_to_le32(mvmvif->id); in iwl_mvm_mac_ctxt_cmd_ibss()
892 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_go_iterator() local
895 mvmvif->ap_ibss_active) in iwl_mvm_go_iterator()
960 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_send_beacon() local
977 beacon_cmd.template_id = cpu_to_le32((u32)mvmvif->id); in iwl_mvm_mac_ctxt_send_beacon()
982 beacon_cmd.tx.sta_id = mvmvif->bcast_sta.sta_id; in iwl_mvm_mac_ctxt_send_beacon()
1075 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_cmd_fill_ap() local
1110 mvmvif->ap_beacon_time = data.beacon_device_ts + in iwl_mvm_mac_ctxt_cmd_fill_ap()
1114 mvmvif->ap_beacon_time = in iwl_mvm_mac_ctxt_cmd_fill_ap()
1120 ctxt_ap->beacon_time = cpu_to_le32(mvmvif->ap_beacon_time); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1124 ctxt_ap->beacon_template = cpu_to_le32(mvmvif->id); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1215 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_add() local
1218 if (WARN_ONCE(mvmvif->uploaded, "Adding active MAC %pM/%d\n", in iwl_mvm_mac_ctxt_add()
1230 mvmvif->uploaded = true; in iwl_mvm_mac_ctxt_add()
1237 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_changed() local
1239 if (WARN_ONCE(!mvmvif->uploaded, "Changing inactive MAC %pM/%d\n", in iwl_mvm_mac_ctxt_changed()
1249 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_remove() local
1253 if (WARN_ONCE(!mvmvif->uploaded, "Removing inactive MAC %pM/%d\n", in iwl_mvm_mac_ctxt_remove()
1259 cmd.id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_mac_ctxt_remove()
1260 mvmvif->color)); in iwl_mvm_mac_ctxt_remove()
1270 mvmvif->uploaded = false; in iwl_mvm_mac_ctxt_remove()
1282 struct iwl_mvm_vif *mvmvif = in iwl_mvm_csa_count_down() local
1286 if (!tx_success && !mvmvif->csa_countdown) in iwl_mvm_csa_count_down()
1289 mvmvif->csa_countdown = true; in iwl_mvm_csa_count_down()
1296 !iwl_mvm_te_scheduled(&mvmvif->time_event_data) && gp2 && in iwl_mvm_csa_count_down()
1308 } else if (!iwl_mvm_te_scheduled(&mvmvif->time_event_data)) { in iwl_mvm_csa_count_down()
1348 struct iwl_mvm_vif *mvmvif = in iwl_mvm_rx_beacon_notif() local
1364 iwl_mvm_modify_all_sta_disable_tx(mvm, mvmvif, false); in iwl_mvm_rx_beacon_notif()
1376 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_beacon_loss_iterator() local
1377 struct iwl_mvm *mvm = mvmvif->mvm; in iwl_mvm_beacon_loss_iterator()
1383 if (mvmvif->id != (u16)le32_to_cpu(missed_beacons->mac_id)) in iwl_mvm_beacon_loss_iterator()