Lines Matching defs:new_ctx

654 					struct ieee80211_chanctx *new_ctx)
675 if (new_ctx) {
676 ret = drv_assign_vif_chanctx(local, sdata, new_ctx);
680 conf = &new_ctx->conf;
682 &new_ctx->assigned_vifs);
697 if (new_ctx && ieee80211_chanctx_num_assigned(local, new_ctx) > 0) {
699 ieee80211_recalc_chanctx_min_def(local, new_ctx);
887 struct ieee80211_chanctx *new_ctx, *curr_ctx, *ctx;
895 new_ctx = ieee80211_find_reservation_chanctx(local, chandef, mode);
896 if (!new_ctx) {
898 new_ctx = ieee80211_new_chanctx(local, chandef, mode);
899 if (IS_ERR(new_ctx))
900 return PTR_ERR(new_ctx);
952 new_ctx = ieee80211_alloc_chanctx(local, chandef, mode);
953 if (!new_ctx)
956 new_ctx->replace_ctx = curr_ctx;
957 new_ctx->replace_state =
960 curr_ctx->replace_ctx = new_ctx;
964 list_add_rcu(&new_ctx->list, &local->chanctx_list);
968 list_add(&sdata->reserved_chanctx_list, &new_ctx->reserved_vifs);
969 sdata->reserved_chanctx = new_ctx;
1026 struct ieee80211_chanctx *old_ctx, *new_ctx;
1034 new_ctx = sdata->reserved_chanctx;
1040 if (WARN_ON(!new_ctx))
1046 if (WARN_ON(new_ctx->replace_state ==
1050 chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx,
1055 ieee80211_change_chanctx(local, new_ctx, chandef);
1059 vif_chsw[0].new_ctx = &new_ctx->conf;
1067 if (ieee80211_chanctx_refcount(local, new_ctx) == 0)
1068 ieee80211_free_chanctx(local, new_ctx);
1073 list_move(&sdata->assigned_chanctx_list, &new_ctx->assigned_vifs);
1074 rcu_assign_pointer(sdata->vif.chanctx_conf, &new_ctx->conf);
1089 ieee80211_recalc_smps_chanctx(local, new_ctx);
1090 ieee80211_recalc_radar_chanctx(local, new_ctx);
1091 ieee80211_recalc_chanctx_min_def(local, new_ctx);
1105 struct ieee80211_chanctx *old_ctx, *new_ctx;
1110 new_ctx = sdata->reserved_chanctx;
1118 if (WARN_ON(!new_ctx))
1121 if (WARN_ON(new_ctx->replace_state ==
1125 chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx,
1130 ieee80211_change_chanctx(local, new_ctx, chandef);
1135 err = ieee80211_assign_vif_chanctx(sdata, new_ctx);
1137 if (ieee80211_chanctx_refcount(local, new_ctx) == 0)
1138 ieee80211_free_chanctx(local, new_ctx);
1151 struct ieee80211_chanctx *old_ctx, *new_ctx;
1155 new_ctx = sdata->reserved_chanctx;
1161 if (WARN_ON(!new_ctx))
1167 if (new_ctx->replace_state != IEEE80211_CHANCTX_REPLACES_OTHER)
1174 struct ieee80211_chanctx *new_ctx)
1181 chandef = ieee80211_chanctx_reserved_chandef(local, new_ctx, NULL);
1185 local->hw.conf.radar_enabled = new_ctx->conf.radar_enabled;
1226 vif_chsw[i].new_ctx = &ctx->conf;
1283 struct ieee80211_chanctx *new_ctx = NULL;
1316 new_ctx = ctx;
1373 WARN_ON(!new_ctx && !local->use_chanctx)) {
1396 err = ieee80211_chsw_switch_hwconf(local, new_ctx);
1631 struct ieee80211_chanctx *new_ctx;
1638 new_ctx = sdata->reserved_chanctx;
1641 if (WARN_ON(!new_ctx))
1644 if (WARN_ON(new_ctx->replace_state ==
1653 if (new_ctx->replace_state == IEEE80211_CHANCTX_REPLACE_NONE) {
1673 new_ctx->replace_state == IEEE80211_CHANCTX_REPLACES_OTHER) {
1676 if (new_ctx->replace_state ==