Lines Matching refs:new_ctx

641 					struct ieee80211_chanctx *new_ctx)  in ieee80211_assign_vif_chanctx()  argument
662 if (new_ctx) { in ieee80211_assign_vif_chanctx()
663 ret = drv_assign_vif_chanctx(local, sdata, new_ctx); in ieee80211_assign_vif_chanctx()
667 conf = &new_ctx->conf; in ieee80211_assign_vif_chanctx()
669 &new_ctx->assigned_vifs); in ieee80211_assign_vif_chanctx()
684 if (new_ctx && ieee80211_chanctx_num_assigned(local, new_ctx) > 0) { in ieee80211_assign_vif_chanctx()
686 ieee80211_recalc_chanctx_min_def(local, new_ctx); in ieee80211_assign_vif_chanctx()
874 struct ieee80211_chanctx *new_ctx, *curr_ctx, *ctx; in ieee80211_vif_reserve_chanctx() local
882 new_ctx = ieee80211_find_reservation_chanctx(local, chandef, mode); in ieee80211_vif_reserve_chanctx()
883 if (!new_ctx) { in ieee80211_vif_reserve_chanctx()
885 new_ctx = ieee80211_new_chanctx(local, chandef, mode); in ieee80211_vif_reserve_chanctx()
886 if (IS_ERR(new_ctx)) in ieee80211_vif_reserve_chanctx()
887 return PTR_ERR(new_ctx); in ieee80211_vif_reserve_chanctx()
939 new_ctx = ieee80211_alloc_chanctx(local, chandef, mode); in ieee80211_vif_reserve_chanctx()
940 if (!new_ctx) in ieee80211_vif_reserve_chanctx()
943 new_ctx->replace_ctx = curr_ctx; in ieee80211_vif_reserve_chanctx()
944 new_ctx->replace_state = in ieee80211_vif_reserve_chanctx()
947 curr_ctx->replace_ctx = new_ctx; in ieee80211_vif_reserve_chanctx()
951 list_add_rcu(&new_ctx->list, &local->chanctx_list); in ieee80211_vif_reserve_chanctx()
955 list_add(&sdata->reserved_chanctx_list, &new_ctx->reserved_vifs); in ieee80211_vif_reserve_chanctx()
956 sdata->reserved_chanctx = new_ctx; in ieee80211_vif_reserve_chanctx()
1013 struct ieee80211_chanctx *old_ctx, *new_ctx; in ieee80211_vif_use_reserved_reassign() local
1021 new_ctx = sdata->reserved_chanctx; in ieee80211_vif_use_reserved_reassign()
1027 if (WARN_ON(!new_ctx)) in ieee80211_vif_use_reserved_reassign()
1033 if (WARN_ON(new_ctx->replace_state == in ieee80211_vif_use_reserved_reassign()
1037 chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx, in ieee80211_vif_use_reserved_reassign()
1042 ieee80211_change_chanctx(local, new_ctx, chandef); in ieee80211_vif_use_reserved_reassign()
1046 vif_chsw[0].new_ctx = &new_ctx->conf; in ieee80211_vif_use_reserved_reassign()
1054 if (ieee80211_chanctx_refcount(local, new_ctx) == 0) in ieee80211_vif_use_reserved_reassign()
1055 ieee80211_free_chanctx(local, new_ctx); in ieee80211_vif_use_reserved_reassign()
1060 list_move(&sdata->assigned_chanctx_list, &new_ctx->assigned_vifs); in ieee80211_vif_use_reserved_reassign()
1061 rcu_assign_pointer(sdata->vif.chanctx_conf, &new_ctx->conf); in ieee80211_vif_use_reserved_reassign()
1076 ieee80211_recalc_smps_chanctx(local, new_ctx); in ieee80211_vif_use_reserved_reassign()
1077 ieee80211_recalc_radar_chanctx(local, new_ctx); in ieee80211_vif_use_reserved_reassign()
1078 ieee80211_recalc_chanctx_min_def(local, new_ctx); in ieee80211_vif_use_reserved_reassign()
1092 struct ieee80211_chanctx *old_ctx, *new_ctx; in ieee80211_vif_use_reserved_assign() local
1097 new_ctx = sdata->reserved_chanctx; in ieee80211_vif_use_reserved_assign()
1105 if (WARN_ON(!new_ctx)) in ieee80211_vif_use_reserved_assign()
1108 if (WARN_ON(new_ctx->replace_state == in ieee80211_vif_use_reserved_assign()
1112 chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx, in ieee80211_vif_use_reserved_assign()
1117 ieee80211_change_chanctx(local, new_ctx, chandef); in ieee80211_vif_use_reserved_assign()
1122 err = ieee80211_assign_vif_chanctx(sdata, new_ctx); in ieee80211_vif_use_reserved_assign()
1124 if (ieee80211_chanctx_refcount(local, new_ctx) == 0) in ieee80211_vif_use_reserved_assign()
1125 ieee80211_free_chanctx(local, new_ctx); in ieee80211_vif_use_reserved_assign()
1138 struct ieee80211_chanctx *old_ctx, *new_ctx; in ieee80211_vif_has_in_place_reservation() local
1142 new_ctx = sdata->reserved_chanctx; in ieee80211_vif_has_in_place_reservation()
1148 if (WARN_ON(!new_ctx)) in ieee80211_vif_has_in_place_reservation()
1154 if (new_ctx->replace_state != IEEE80211_CHANCTX_REPLACES_OTHER) in ieee80211_vif_has_in_place_reservation()
1161 struct ieee80211_chanctx *new_ctx) in ieee80211_chsw_switch_hwconf() argument
1168 chandef = ieee80211_chanctx_reserved_chandef(local, new_ctx, NULL); in ieee80211_chsw_switch_hwconf()
1172 local->hw.conf.radar_enabled = new_ctx->conf.radar_enabled; in ieee80211_chsw_switch_hwconf()
1213 vif_chsw[i].new_ctx = &ctx->conf; in ieee80211_chsw_switch_vifs()
1270 struct ieee80211_chanctx *new_ctx = NULL; in ieee80211_vif_use_reserved_switch() local
1303 new_ctx = ctx; in ieee80211_vif_use_reserved_switch()
1360 WARN_ON(!new_ctx && !local->use_chanctx)) { in ieee80211_vif_use_reserved_switch()
1383 err = ieee80211_chsw_switch_hwconf(local, new_ctx); in ieee80211_vif_use_reserved_switch()
1618 struct ieee80211_chanctx *new_ctx; in ieee80211_vif_use_reserved_context() local
1625 new_ctx = sdata->reserved_chanctx; in ieee80211_vif_use_reserved_context()
1628 if (WARN_ON(!new_ctx)) in ieee80211_vif_use_reserved_context()
1631 if (WARN_ON(new_ctx->replace_state == in ieee80211_vif_use_reserved_context()
1640 if (new_ctx->replace_state == IEEE80211_CHANCTX_REPLACE_NONE) { in ieee80211_vif_use_reserved_context()
1663 new_ctx->replace_state == IEEE80211_CHANCTX_REPLACES_OTHER) { in ieee80211_vif_use_reserved_context()
1666 if (new_ctx->replace_state == in ieee80211_vif_use_reserved_context()