• Home
  • Raw
  • Download

Lines Matching refs:new_ctx

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