Lines Matching refs:mvmvif

108 	struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif);  in iwl_mvm_mac_tsf_id_iter()  local
143 !test_bit(mvmvif->tsf_id, data->available_tsf_ids)) in iwl_mvm_mac_tsf_id_iter()
154 data->preferred_tsf = mvmvif->tsf_id; in iwl_mvm_mac_tsf_id_iter()
172 !test_bit(mvmvif->tsf_id, data->available_tsf_ids)) in iwl_mvm_mac_tsf_id_iter()
183 data->preferred_tsf = mvmvif->tsf_id; in iwl_mvm_mac_tsf_id_iter()
204 __clear_bit(mvmvif->tsf_id, data->available_tsf_ids); in iwl_mvm_mac_tsf_id_iter()
206 if (data->preferred_tsf == mvmvif->tsf_id) in iwl_mvm_mac_tsf_id_iter()
269 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_iface_iterator() local
283 __clear_bit(mvmvif->id, data->available_mac_ids); in iwl_mvm_mac_iface_iterator()
292 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_recalc_tsf_id() local
306 mvmvif->tsf_id = data.preferred_tsf; in iwl_mvm_mac_ctxt_recalc_tsf_id()
307 else if (!test_bit(mvmvif->tsf_id, data.available_tsf_ids)) in iwl_mvm_mac_ctxt_recalc_tsf_id()
308 mvmvif->tsf_id = find_first_bit(data.available_tsf_ids, in iwl_mvm_mac_ctxt_recalc_tsf_id()
314 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_init() local
381 mvmvif->id = find_first_bit(data.available_mac_ids, in iwl_mvm_mac_ctxt_init()
383 if (mvmvif->id == NUM_MAC_INDEX_DRIVER) { in iwl_mvm_mac_ctxt_init()
390 mvmvif->tsf_id = data.preferred_tsf; in iwl_mvm_mac_ctxt_init()
392 mvmvif->tsf_id = find_first_bit(data.available_tsf_ids, in iwl_mvm_mac_ctxt_init()
394 if (mvmvif->tsf_id == NUM_TSF_IDS) { in iwl_mvm_mac_ctxt_init()
400 mvmvif->color = 0; in iwl_mvm_mac_ctxt_init()
402 INIT_LIST_HEAD(&mvmvif->time_event_data.list); in iwl_mvm_mac_ctxt_init()
403 mvmvif->time_event_data.id = TE_MAX; in iwl_mvm_mac_ctxt_init()
447 mvmvif->cab_queue = IWL_MVM_DQA_GCAST_QUEUE; in iwl_mvm_mac_ctxt_init()
453 mvmvif->bcast_sta.sta_id = IWL_MVM_INVALID_STA; in iwl_mvm_mac_ctxt_init()
454 mvmvif->mcast_sta.sta_id = IWL_MVM_INVALID_STA; in iwl_mvm_mac_ctxt_init()
455 mvmvif->ap_sta_id = IWL_MVM_INVALID_STA; in iwl_mvm_mac_ctxt_init()
458 mvmvif->smps_requests[i] = IEEE80211_SMPS_AUTOMATIC; in iwl_mvm_mac_ctxt_init()
463 memset(mvmvif, 0, sizeof(struct iwl_mvm_vif)); in iwl_mvm_mac_ctxt_init()
595 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_cmd_common() local
603 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_mac_ctxt_cmd_common()
604 mvmvif->color)); in iwl_mvm_mac_ctxt_cmd_common()
630 cmd->tsf_id = cpu_to_le32(mvmvif->tsf_id); in iwl_mvm_mac_ctxt_cmd_common()
662 cpu_to_le16(mvmvif->queue_params[i].cw_min); in iwl_mvm_mac_ctxt_cmd_common()
664 cpu_to_le16(mvmvif->queue_params[i].cw_max); in iwl_mvm_mac_ctxt_cmd_common()
666 cpu_to_le16(mvmvif->queue_params[i].txop * 32); in iwl_mvm_mac_ctxt_cmd_common()
667 cmd->ac[txf].aifsn = mvmvif->queue_params[i].aifs; in iwl_mvm_mac_ctxt_cmd_common()
822 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_cmd_ibss() local
838 cmd.ibss.beacon_template = cpu_to_le32(mvmvif->id); in iwl_mvm_mac_ctxt_cmd_ibss()
850 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_go_iterator() local
853 mvmvif->ap_ibss_active) in iwl_mvm_go_iterator()
949 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_set_tx() local
958 tx->sta_id = mvmvif->bcast_sta.sta_id; in iwl_mvm_mac_ctxt_set_tx()
1008 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_send_beacon_v6() local
1013 beacon_cmd.template_id = cpu_to_le32((u32)mvmvif->id); in iwl_mvm_mac_ctxt_send_beacon_v6()
1028 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_send_beacon_v7() local
1033 beacon_cmd.template_id = cpu_to_le32((u32)mvmvif->id); in iwl_mvm_mac_ctxt_send_beacon_v7()
1057 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_send_beacon_v9() local
1070 beacon_cmd.template_id = cpu_to_le32((u32)mvmvif->id); in iwl_mvm_mac_ctxt_send_beacon_v9()
1160 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_cmd_fill_ap() local
1177 if (mvmvif->ap_assoc_sta_count || !mvm->drop_bcn_ap_mode) { in iwl_mvm_mac_ctxt_cmd_fill_ap()
1214 mvmvif->ap_beacon_time = data.beacon_device_ts + in iwl_mvm_mac_ctxt_cmd_fill_ap()
1218 mvmvif->ap_beacon_time = in iwl_mvm_mac_ctxt_cmd_fill_ap()
1224 ctxt_ap->beacon_time = cpu_to_le32(mvmvif->ap_beacon_time); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1228 ctxt_ap->beacon_template = cpu_to_le32(mvmvif->id); in iwl_mvm_mac_ctxt_cmd_fill_ap()
1305 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_add() local
1308 if (WARN_ONCE(mvmvif->uploaded, "Adding active MAC %pM/%d\n", in iwl_mvm_mac_ctxt_add()
1320 mvmvif->uploaded = true; in iwl_mvm_mac_ctxt_add()
1327 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_changed() local
1329 if (WARN_ONCE(!mvmvif->uploaded, "Changing inactive MAC %pM/%d\n", in iwl_mvm_mac_ctxt_changed()
1339 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_mac_ctxt_remove() local
1343 if (WARN_ONCE(!mvmvif->uploaded, "Removing inactive MAC %pM/%d\n", in iwl_mvm_mac_ctxt_remove()
1349 cmd.id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(mvmvif->id, in iwl_mvm_mac_ctxt_remove()
1350 mvmvif->color)); in iwl_mvm_mac_ctxt_remove()
1360 mvmvif->uploaded = false; in iwl_mvm_mac_ctxt_remove()
1374 struct iwl_mvm_vif *mvmvif = in iwl_mvm_csa_count_down() local
1378 if (!tx_success && !mvmvif->csa_countdown) in iwl_mvm_csa_count_down()
1381 mvmvif->csa_countdown = true; in iwl_mvm_csa_count_down()
1388 !iwl_mvm_te_scheduled(&mvmvif->time_event_data) && gp2 && in iwl_mvm_csa_count_down()
1400 } else if (!iwl_mvm_te_scheduled(&mvmvif->time_event_data)) { in iwl_mvm_csa_count_down()
1442 struct iwl_mvm_vif *mvmvif = in iwl_mvm_rx_beacon_notif() local
1458 iwl_mvm_modify_all_sta_disable_tx(mvm, mvmvif, false); in iwl_mvm_rx_beacon_notif()
1468 struct iwl_mvm_vif *mvmvif = iwl_mvm_vif_from_mac80211(vif); in iwl_mvm_beacon_loss_iterator() local
1469 struct iwl_mvm *mvm = mvmvif->mvm; in iwl_mvm_beacon_loss_iterator()
1475 if (mvmvif->id != (u16)le32_to_cpu(missed_beacons->mac_id)) in iwl_mvm_beacon_loss_iterator()
1577 struct iwl_mvm_vif *mvmvif; in iwl_mvm_channel_switch_noa_notif() local
1592 mvmvif = iwl_mvm_vif_from_mac80211(csa_vif); in iwl_mvm_channel_switch_noa_notif()
1593 if (WARN(FW_CMD_ID_AND_COLOR(mvmvif->id, mvmvif->color) != id_n_color, in iwl_mvm_channel_switch_noa_notif()
1595 FW_CMD_ID_AND_COLOR(mvmvif->id, mvmvif->color), id_n_color)) in iwl_mvm_channel_switch_noa_notif()