Lines Matching defs:new_ctx

856 					 struct ieee80211_chanctx *new_ctx)
878 if (new_ctx) {
880 ieee80211_recalc_chanctx_min_def(local, new_ctx, link);
882 ret = drv_assign_vif_chanctx(local, sdata, link->conf, new_ctx);
886 conf = &new_ctx->conf;
888 &new_ctx->assigned_links);
903 if (new_ctx && ieee80211_chanctx_num_assigned(local, new_ctx) > 0) {
905 ieee80211_recalc_chanctx_min_def(local, new_ctx, NULL);
1109 struct ieee80211_chanctx *new_ctx, *curr_ctx, *ctx;
1117 new_ctx = ieee80211_find_reservation_chanctx(local, chandef, mode);
1118 if (!new_ctx) {
1120 new_ctx = ieee80211_new_chanctx(local, chandef, mode);
1121 if (IS_ERR(new_ctx))
1122 return PTR_ERR(new_ctx);
1174 new_ctx = ieee80211_alloc_chanctx(local, chandef, mode);
1175 if (!new_ctx)
1178 new_ctx->replace_ctx = curr_ctx;
1179 new_ctx->replace_state =
1182 curr_ctx->replace_ctx = new_ctx;
1186 list_add_rcu(&new_ctx->list, &local->chanctx_list);
1190 list_add(&link->reserved_chanctx_list, &new_ctx->reserved_links);
1191 link->reserved_chanctx = new_ctx;
1263 struct ieee80211_chanctx *old_ctx, *new_ctx;
1271 new_ctx = link->reserved_chanctx;
1277 if (WARN_ON(!new_ctx))
1283 if (WARN_ON(new_ctx->replace_state ==
1287 chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx,
1297 _ieee80211_change_chanctx(local, new_ctx, old_ctx, chandef, link);
1301 vif_chsw[0].new_ctx = &new_ctx->conf;
1310 if (ieee80211_chanctx_refcount(local, new_ctx) == 0)
1311 ieee80211_free_chanctx(local, new_ctx);
1316 list_move(&link->assigned_chanctx_list, &new_ctx->assigned_links);
1317 rcu_assign_pointer(link_conf->chanctx_conf, &new_ctx->conf);
1327 ieee80211_recalc_chanctx_min_def(local, new_ctx, NULL);
1328 ieee80211_recalc_smps_chanctx(local, new_ctx);
1329 ieee80211_recalc_radar_chanctx(local, new_ctx);
1344 struct ieee80211_chanctx *old_ctx, *new_ctx;
1349 new_ctx = link->reserved_chanctx;
1357 if (WARN_ON(!new_ctx))
1360 if (WARN_ON(new_ctx->replace_state ==
1364 chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx,
1369 ieee80211_change_chanctx(local, new_ctx, new_ctx, chandef);
1374 err = ieee80211_assign_link_chanctx(link, new_ctx);
1376 if (ieee80211_chanctx_refcount(local, new_ctx) == 0)
1377 ieee80211_free_chanctx(local, new_ctx);
1391 struct ieee80211_chanctx *old_ctx, *new_ctx;
1395 new_ctx = link->reserved_chanctx;
1401 if (WARN_ON(!new_ctx))
1407 if (new_ctx->replace_state != IEEE80211_CHANCTX_REPLACES_OTHER)
1414 struct ieee80211_chanctx *new_ctx)
1421 chandef = ieee80211_chanctx_reserved_chandef(local, new_ctx, NULL);
1425 local->hw.conf.radar_enabled = new_ctx->conf.radar_enabled;
1465 vif_chsw[i].new_ctx = &ctx->conf;
1522 struct ieee80211_chanctx *new_ctx = NULL;
1557 new_ctx = ctx;
1614 WARN_ON(!new_ctx && !local->use_chanctx)) {
1637 err = ieee80211_chsw_switch_hwconf(local, new_ctx);
1883 struct ieee80211_chanctx *new_ctx;
1890 new_ctx = link->reserved_chanctx;
1893 if (WARN_ON(!new_ctx))
1896 if (WARN_ON(new_ctx->replace_state ==
1905 if (new_ctx->replace_state == IEEE80211_CHANCTX_REPLACE_NONE) {
1925 new_ctx->replace_state == IEEE80211_CHANCTX_REPLACES_OTHER) {
1928 if (new_ctx->replace_state ==