Lines Matching defs:phy_ctxt
1131 mvmvif->link[link_id]->phy_ctxt = NULL;
1872 mvmvif->deflink.phy_ctxt = NULL;
1965 if (mvmvif->deflink.phy_ctxt) {
1966 iwl_mvm_phy_ctxt_unref(mvm, mvmvif->deflink.phy_ctxt);
1967 mvmvif->deflink.phy_ctxt = NULL;
3807 if (!conf || !link_sta || !mvmvif->link[link_id]->phy_ctxt)
3811 mvmvif->link[link_id]->phy_ctxt->channel->band);
4157 * legit to have phy_ctxt = NULL. Don't bother not to WARN if we are in
4162 !mvmvif->link[link_id]->phy_ctxt)) {
4873 if (mvmvif->deflink.phy_ctxt &&
4874 channel == mvmvif->deflink.phy_ctxt->channel)
4879 struct iwl_mvm_phy_ctxt *phy_ctxt = &mvm->phy_ctxts[i];
4881 if (!phy_ctxt->ref || mvmvif->deflink.phy_ctxt == phy_ctxt)
4884 if (channel == phy_ctxt->channel) {
4885 if (mvmvif->deflink.phy_ctxt)
4887 mvmvif->deflink.phy_ctxt);
4889 mvmvif->deflink.phy_ctxt = phy_ctxt;
4890 iwl_mvm_phy_ctxt_ref(mvm, mvmvif->deflink.phy_ctxt);
4895 /* We already have a phy_ctxt, but it's not on the right channel */
4896 if (mvmvif->deflink.phy_ctxt)
4897 iwl_mvm_phy_ctxt_unref(mvm, mvmvif->deflink.phy_ctxt);
4899 mvmvif->deflink.phy_ctxt = iwl_mvm_get_free_phy_ctxt(mvm);
4900 if (!mvmvif->deflink.phy_ctxt)
4905 return iwl_mvm_phy_ctxt_add(mvm, mvmvif->deflink.phy_ctxt,
5018 struct iwl_mvm_phy_ctxt *phy_ctxt;
5026 phy_ctxt = iwl_mvm_get_free_phy_ctxt(mvm);
5027 if (!phy_ctxt) {
5032 ret = iwl_mvm_phy_ctxt_add(mvm, phy_ctxt, def, &ctx->ap,
5040 *phy_ctxt_id = phy_ctxt->id;
5058 struct iwl_mvm_phy_ctxt *phy_ctxt = &mvm->phy_ctxts[*phy_ctxt_id];
5062 iwl_mvm_phy_ctxt_unref(mvm, phy_ctxt);
5079 struct iwl_mvm_phy_ctxt *phy_ctxt = &mvm->phy_ctxts[*phy_ctxt_id];
5082 if (WARN_ONCE((phy_ctxt->ref > 1) &&
5088 phy_ctxt->ref, changed))
5095 if (phy_ctxt->width == def->width)
5099 if (phy_ctxt->width <= NL80211_CHAN_WIDTH_20 &&
5105 iwl_mvm_phy_ctxt_changed(mvm, phy_ctxt, def, &ctx->ap,
5123 struct iwl_mvm_phy_ctxt *phy_ctxt = &mvm->phy_ctxts[*phy_ctxt_id];
5128 mvmvif->deflink.phy_ctxt = phy_ctxt;
5240 mvmvif->deflink.phy_ctxt = NULL;
5329 mvmvif->deflink.phy_ctxt = NULL;