Lines Matching refs:new_ctx

617 					struct ieee80211_chanctx *new_ctx)  in ieee80211_assign_vif_chanctx()  argument
635 if (new_ctx) { in ieee80211_assign_vif_chanctx()
636 ret = drv_assign_vif_chanctx(local, sdata, new_ctx); in ieee80211_assign_vif_chanctx()
640 conf = &new_ctx->conf; in ieee80211_assign_vif_chanctx()
642 &new_ctx->assigned_vifs); in ieee80211_assign_vif_chanctx()
657 if (new_ctx && ieee80211_chanctx_num_assigned(local, new_ctx) > 0) { in ieee80211_assign_vif_chanctx()
659 ieee80211_recalc_chanctx_min_def(local, new_ctx); in ieee80211_assign_vif_chanctx()
844 struct ieee80211_chanctx *new_ctx, *curr_ctx, *ctx; in ieee80211_vif_reserve_chanctx() local
852 new_ctx = ieee80211_find_reservation_chanctx(local, chandef, mode); in ieee80211_vif_reserve_chanctx()
853 if (!new_ctx) { in ieee80211_vif_reserve_chanctx()
855 new_ctx = ieee80211_new_chanctx(local, chandef, mode); in ieee80211_vif_reserve_chanctx()
856 if (IS_ERR(new_ctx)) in ieee80211_vif_reserve_chanctx()
857 return PTR_ERR(new_ctx); in ieee80211_vif_reserve_chanctx()
909 new_ctx = ieee80211_alloc_chanctx(local, chandef, mode); in ieee80211_vif_reserve_chanctx()
910 if (!new_ctx) in ieee80211_vif_reserve_chanctx()
913 new_ctx->replace_ctx = curr_ctx; in ieee80211_vif_reserve_chanctx()
914 new_ctx->replace_state = in ieee80211_vif_reserve_chanctx()
917 curr_ctx->replace_ctx = new_ctx; in ieee80211_vif_reserve_chanctx()
921 list_add_rcu(&new_ctx->list, &local->chanctx_list); in ieee80211_vif_reserve_chanctx()
925 list_add(&sdata->reserved_chanctx_list, &new_ctx->reserved_vifs); in ieee80211_vif_reserve_chanctx()
926 sdata->reserved_chanctx = new_ctx; in ieee80211_vif_reserve_chanctx()
982 struct ieee80211_chanctx *old_ctx, *new_ctx; in ieee80211_vif_use_reserved_reassign() local
990 new_ctx = sdata->reserved_chanctx; in ieee80211_vif_use_reserved_reassign()
996 if (WARN_ON(!new_ctx)) in ieee80211_vif_use_reserved_reassign()
1002 if (WARN_ON(new_ctx->replace_state == in ieee80211_vif_use_reserved_reassign()
1006 chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx, in ieee80211_vif_use_reserved_reassign()
1013 vif_chsw[0].new_ctx = &new_ctx->conf; in ieee80211_vif_use_reserved_reassign()
1021 if (ieee80211_chanctx_refcount(local, new_ctx) == 0) in ieee80211_vif_use_reserved_reassign()
1022 ieee80211_free_chanctx(local, new_ctx); in ieee80211_vif_use_reserved_reassign()
1027 list_move(&sdata->assigned_chanctx_list, &new_ctx->assigned_vifs); in ieee80211_vif_use_reserved_reassign()
1028 rcu_assign_pointer(sdata->vif.chanctx_conf, &new_ctx->conf); in ieee80211_vif_use_reserved_reassign()
1041 ieee80211_recalc_smps_chanctx(local, new_ctx); in ieee80211_vif_use_reserved_reassign()
1042 ieee80211_recalc_radar_chanctx(local, new_ctx); in ieee80211_vif_use_reserved_reassign()
1043 ieee80211_recalc_chanctx_min_def(local, new_ctx); in ieee80211_vif_use_reserved_reassign()
1057 struct ieee80211_chanctx *old_ctx, *new_ctx; in ieee80211_vif_use_reserved_assign() local
1062 new_ctx = sdata->reserved_chanctx; in ieee80211_vif_use_reserved_assign()
1070 if (WARN_ON(!new_ctx)) in ieee80211_vif_use_reserved_assign()
1073 if (WARN_ON(new_ctx->replace_state == in ieee80211_vif_use_reserved_assign()
1077 chandef = ieee80211_chanctx_non_reserved_chandef(local, new_ctx, in ieee80211_vif_use_reserved_assign()
1085 err = ieee80211_assign_vif_chanctx(sdata, new_ctx); in ieee80211_vif_use_reserved_assign()
1087 if (ieee80211_chanctx_refcount(local, new_ctx) == 0) in ieee80211_vif_use_reserved_assign()
1088 ieee80211_free_chanctx(local, new_ctx); in ieee80211_vif_use_reserved_assign()
1101 struct ieee80211_chanctx *old_ctx, *new_ctx; in ieee80211_vif_has_in_place_reservation() local
1105 new_ctx = sdata->reserved_chanctx; in ieee80211_vif_has_in_place_reservation()
1111 if (WARN_ON(!new_ctx)) in ieee80211_vif_has_in_place_reservation()
1117 if (new_ctx->replace_state != IEEE80211_CHANCTX_REPLACES_OTHER) in ieee80211_vif_has_in_place_reservation()
1124 struct ieee80211_chanctx *new_ctx) in ieee80211_chsw_switch_hwconf() argument
1131 chandef = ieee80211_chanctx_reserved_chandef(local, new_ctx, NULL); in ieee80211_chsw_switch_hwconf()
1135 local->hw.conf.radar_enabled = new_ctx->conf.radar_enabled; in ieee80211_chsw_switch_hwconf()
1176 vif_chsw[i].new_ctx = &ctx->conf; in ieee80211_chsw_switch_vifs()
1233 struct ieee80211_chanctx *new_ctx = NULL; in ieee80211_vif_use_reserved_switch() local
1266 new_ctx = ctx; in ieee80211_vif_use_reserved_switch()
1323 WARN_ON(!new_ctx && !local->use_chanctx)) { in ieee80211_vif_use_reserved_switch()
1346 err = ieee80211_chsw_switch_hwconf(local, new_ctx); in ieee80211_vif_use_reserved_switch()
1581 struct ieee80211_chanctx *new_ctx; in ieee80211_vif_use_reserved_context() local
1588 new_ctx = sdata->reserved_chanctx; in ieee80211_vif_use_reserved_context()
1591 if (WARN_ON(!new_ctx)) in ieee80211_vif_use_reserved_context()
1594 if (WARN_ON(new_ctx->replace_state == in ieee80211_vif_use_reserved_context()
1603 if (new_ctx->replace_state == IEEE80211_CHANCTX_REPLACE_NONE) { in ieee80211_vif_use_reserved_context()
1626 new_ctx->replace_state == IEEE80211_CHANCTX_REPLACES_OTHER) { in ieee80211_vif_use_reserved_context()
1629 if (new_ctx->replace_state == in ieee80211_vif_use_reserved_context()