Lines Matching refs:new_ctx
640 struct ieee80211_chanctx *new_ctx) in ieee80211_assign_vif_chanctx() argument
658 if (new_ctx) { in ieee80211_assign_vif_chanctx()
659 ret = drv_assign_vif_chanctx(local, sdata, new_ctx); in ieee80211_assign_vif_chanctx()
663 conf = &new_ctx->conf; in ieee80211_assign_vif_chanctx()
665 &new_ctx->assigned_vifs); in ieee80211_assign_vif_chanctx()
680 if (new_ctx && ieee80211_chanctx_num_assigned(local, new_ctx) > 0) { in ieee80211_assign_vif_chanctx()
682 ieee80211_recalc_chanctx_min_def(local, new_ctx); in ieee80211_assign_vif_chanctx()
869 struct ieee80211_chanctx *new_ctx, *curr_ctx, *ctx; in ieee80211_vif_reserve_chanctx() local
877 new_ctx = ieee80211_find_reservation_chanctx(local, chandef, mode); in ieee80211_vif_reserve_chanctx()
878 if (!new_ctx) { in ieee80211_vif_reserve_chanctx()
880 new_ctx = ieee80211_new_chanctx(local, chandef, mode); in ieee80211_vif_reserve_chanctx()
881 if (IS_ERR(new_ctx)) in ieee80211_vif_reserve_chanctx()
882 return PTR_ERR(new_ctx); in ieee80211_vif_reserve_chanctx()
934 new_ctx = ieee80211_alloc_chanctx(local, chandef, mode); in ieee80211_vif_reserve_chanctx()
935 if (!new_ctx) in ieee80211_vif_reserve_chanctx()
938 new_ctx->replace_ctx = curr_ctx; in ieee80211_vif_reserve_chanctx()
939 new_ctx->replace_state = in ieee80211_vif_reserve_chanctx()
942 curr_ctx->replace_ctx = new_ctx; in ieee80211_vif_reserve_chanctx()
946 list_add_rcu(&new_ctx->list, &local->chanctx_list); in ieee80211_vif_reserve_chanctx()
950 list_add(&sdata->reserved_chanctx_list, &new_ctx->reserved_vifs); in ieee80211_vif_reserve_chanctx()
951 sdata->reserved_chanctx = new_ctx; in ieee80211_vif_reserve_chanctx()
1007 struct ieee80211_chanctx *old_ctx, *new_ctx; in ieee80211_vif_use_reserved_reassign() local
1015 new_ctx = sdata->reserved_chanctx; in ieee80211_vif_use_reserved_reassign()
1021 if (WARN_ON(!new_ctx)) in ieee80211_vif_use_reserved_reassign()
1027 if (WARN_ON(new_ctx->replace_state == in ieee80211_vif_use_reserved_reassign()
1031 chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx, in ieee80211_vif_use_reserved_reassign()
1036 ieee80211_change_chanctx(local, new_ctx, chandef); in ieee80211_vif_use_reserved_reassign()
1040 vif_chsw[0].new_ctx = &new_ctx->conf; in ieee80211_vif_use_reserved_reassign()
1048 if (ieee80211_chanctx_refcount(local, new_ctx) == 0) in ieee80211_vif_use_reserved_reassign()
1049 ieee80211_free_chanctx(local, new_ctx); in ieee80211_vif_use_reserved_reassign()
1054 list_move(&sdata->assigned_chanctx_list, &new_ctx->assigned_vifs); in ieee80211_vif_use_reserved_reassign()
1055 rcu_assign_pointer(sdata->vif.chanctx_conf, &new_ctx->conf); in ieee80211_vif_use_reserved_reassign()
1070 ieee80211_recalc_smps_chanctx(local, new_ctx); in ieee80211_vif_use_reserved_reassign()
1071 ieee80211_recalc_radar_chanctx(local, new_ctx); in ieee80211_vif_use_reserved_reassign()
1072 ieee80211_recalc_chanctx_min_def(local, new_ctx); in ieee80211_vif_use_reserved_reassign()
1086 struct ieee80211_chanctx *old_ctx, *new_ctx; in ieee80211_vif_use_reserved_assign() local
1091 new_ctx = sdata->reserved_chanctx; in ieee80211_vif_use_reserved_assign()
1099 if (WARN_ON(!new_ctx)) in ieee80211_vif_use_reserved_assign()
1102 if (WARN_ON(new_ctx->replace_state == in ieee80211_vif_use_reserved_assign()
1106 chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx, in ieee80211_vif_use_reserved_assign()
1111 ieee80211_change_chanctx(local, new_ctx, chandef); in ieee80211_vif_use_reserved_assign()
1116 err = ieee80211_assign_vif_chanctx(sdata, new_ctx); in ieee80211_vif_use_reserved_assign()
1118 if (ieee80211_chanctx_refcount(local, new_ctx) == 0) in ieee80211_vif_use_reserved_assign()
1119 ieee80211_free_chanctx(local, new_ctx); in ieee80211_vif_use_reserved_assign()
1132 struct ieee80211_chanctx *old_ctx, *new_ctx; in ieee80211_vif_has_in_place_reservation() local
1136 new_ctx = sdata->reserved_chanctx; in ieee80211_vif_has_in_place_reservation()
1142 if (WARN_ON(!new_ctx)) in ieee80211_vif_has_in_place_reservation()
1148 if (new_ctx->replace_state != IEEE80211_CHANCTX_REPLACES_OTHER) in ieee80211_vif_has_in_place_reservation()
1155 struct ieee80211_chanctx *new_ctx) in ieee80211_chsw_switch_hwconf() argument
1162 chandef = ieee80211_chanctx_reserved_chandef(local, new_ctx, NULL); in ieee80211_chsw_switch_hwconf()
1166 local->hw.conf.radar_enabled = new_ctx->conf.radar_enabled; in ieee80211_chsw_switch_hwconf()
1207 vif_chsw[i].new_ctx = &ctx->conf; in ieee80211_chsw_switch_vifs()
1264 struct ieee80211_chanctx *new_ctx = NULL; in ieee80211_vif_use_reserved_switch() local
1297 new_ctx = ctx; in ieee80211_vif_use_reserved_switch()
1354 WARN_ON(!new_ctx && !local->use_chanctx)) { in ieee80211_vif_use_reserved_switch()
1377 err = ieee80211_chsw_switch_hwconf(local, new_ctx); in ieee80211_vif_use_reserved_switch()
1614 struct ieee80211_chanctx *new_ctx; in ieee80211_vif_use_reserved_context() local
1621 new_ctx = sdata->reserved_chanctx; in ieee80211_vif_use_reserved_context()
1624 if (WARN_ON(!new_ctx)) in ieee80211_vif_use_reserved_context()
1627 if (WARN_ON(new_ctx->replace_state == in ieee80211_vif_use_reserved_context()
1636 if (new_ctx->replace_state == IEEE80211_CHANCTX_REPLACE_NONE) { in ieee80211_vif_use_reserved_context()
1659 new_ctx->replace_state == IEEE80211_CHANCTX_REPLACES_OTHER) { in ieee80211_vif_use_reserved_context()
1662 if (new_ctx->replace_state == in ieee80211_vif_use_reserved_context()