Home
last modified time | relevance | path

Searched refs:new_ctx (Results 1 – 25 of 64) sorted by relevance

123

/linux/net/mac80211/
H A Dchan.c886 struct ieee80211_chanctx *new_ctx, in ieee80211_assign_link_chanctx() argument
910 if (new_ctx) { in ieee80211_assign_link_chanctx()
912 ieee80211_recalc_chanctx_min_def(local, new_ctx, link, false); in ieee80211_assign_link_chanctx()
914 ret = drv_assign_vif_chanctx(local, sdata, link->conf, new_ctx); in ieee80211_assign_link_chanctx()
921 conf = &new_ctx->conf; in ieee80211_assign_link_chanctx()
924 &new_ctx->assigned_links); in ieee80211_assign_link_chanctx()
939 if (new_ctx && ieee80211_chanctx_num_assigned(local, new_ctx) > 0) { in ieee80211_assign_link_chanctx()
941 ieee80211_recalc_chanctx_min_def(local, new_ctx, NULL, false); in ieee80211_assign_link_chanctx()
1141 struct ieee80211_chanctx *new_ctx, *ctx; in ieee80211_replace_chanctx() local
1193 new_ctx = ieee80211_alloc_chanctx(local, chanreq, mode, -1); in ieee80211_replace_chanctx()
[all …]
H A Ddriver-ops.c397 struct ieee80211_chanctx *new_ctx = in drv_switch_vif_chanctx() local
398 container_of(vifs[i].new_ctx, in drv_switch_vif_chanctx()
408 new_ctx->driver_present) || in drv_switch_vif_chanctx()
410 !new_ctx->driver_present)); in drv_switch_vif_chanctx()
420 struct ieee80211_chanctx *new_ctx = in drv_switch_vif_chanctx() local
421 container_of(vifs[i].new_ctx, in drv_switch_vif_chanctx()
429 new_ctx->driver_present = true; in drv_switch_vif_chanctx()
/linux/fs/smb/client/
H A Dfs_context.c424 new_ctx->field = kstrdup(ctx->field, GFP_ATOMIC); \
425 if (new_ctx->field == NULL) { \
426 smb3_cleanup_fs_context_contents(new_ctx); \
433 smb3_fs_context_dup(struct smb3_fs_context *new_ctx, struct smb3_fs_context *ctx) in smb3_fs_context_dup() argument
435 memcpy(new_ctx, ctx, sizeof(*ctx)); in smb3_fs_context_dup()
436 new_ctx->prepath = NULL; in smb3_fs_context_dup()
437 new_ctx->nodename = NULL; in smb3_fs_context_dup()
438 new_ctx->username = NULL; in smb3_fs_context_dup()
439 new_ctx->password = NULL; in smb3_fs_context_dup()
440 new_ctx->password2 = NULL; in smb3_fs_context_dup()
[all …]
/linux/tools/perf/arch/x86/tests/
H A Dintel-pt-test.c30 enum intel_pt_pkt_ctx new_ctx; member
217 enum intel_pt_pkt_ctx new_ctx) in fail() argument
238 if (new_ctx != d->new_ctx) in fail()
240 d->new_ctx, new_ctx); in fail()
295 packet.payload != d->packet.payload || ctx != d->new_ctx) in test_one()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn20/
H A Ddcn20_resource.h63 struct dc_state *new_ctx,
135 bool dcn20_validate_dsc(struct dc *dc, struct dc_state *new_ctx);
164 enum dc_status dcn20_add_stream_to_ctx(struct dc *dc, struct dc_state *new_ctx, struct dc_stream_st…
166 enum dc_status dcn20_remove_stream_from_ctx(struct dc *dc, struct dc_state *new_ctx, struct dc_stre…
H A Ddcn20_resource.c1411 struct dc_state *new_ctx, in remove_dsc_from_stream_resource() argument
1418 if (new_ctx->res_ctx.pipe_ctx[i].stream == dc_stream && !new_ctx->res_ctx.pipe_ctx[i].top_pipe) { in remove_dsc_from_stream_resource()
1419 pipe_ctx = &new_ctx->res_ctx.pipe_ctx[i]; in remove_dsc_from_stream_resource()
1422 dcn20_release_dsc(&new_ctx->res_ctx, dc->res_pool, &pipe_ctx->stream_res.dsc); in remove_dsc_from_stream_resource()
1433 enum dc_status dcn20_add_stream_to_ctx(struct dc *dc, struct dc_state *new_ctx, struct dc_stream_st… in dcn20_add_stream_to_ctx() argument
1437 result = resource_map_pool_resources(dc, new_ctx, dc_stream); in dcn20_add_stream_to_ctx()
1440 result = resource_map_phy_clock_resources(dc, new_ctx, dc_stream); in dcn20_add_stream_to_ctx()
1444 result = dcn20_add_dsc_to_stream_resource(dc, new_ctx, dc_stream); in dcn20_add_stream_to_ctx()
1447 result = dcn20_build_mapped_resource(dc, new_ctx, dc_stream); in dcn20_add_stream_to_ctx()
1453 enum dc_status dcn20_remove_stream_from_ctx(struct dc *dc, struct dc_state *new_ctx, struct dc_stre… in dcn20_remove_stream_from_ctx() argument
[all …]
/linux/drivers/net/wireless/mediatek/mt76/
H A Dchannel.c196 struct mt76_chanctx *new_ctx = (struct mt76_chanctx *)vifs->new_ctx->drv_priv; in mt76_switch_vif_chanctx() local
197 struct ieee80211_chanctx_conf *conf = vifs->new_ctx; in mt76_switch_vif_chanctx()
206 phy = new_ctx->phy = dev->band_phys[conf->def.chan->band]; in mt76_switch_vif_chanctx()
208 phy = new_ctx->phy; in mt76_switch_vif_chanctx()
212 update_chan = phy->chanctx != new_ctx; in mt76_switch_vif_chanctx()
227 ret = mt76_phy_update_channel(phy, vifs->new_ctx); in mt76_switch_vif_chanctx()
256 mlink->ctx = vifs->new_ctx; in mt76_switch_vif_chanctx()
/linux/drivers/gpu/drm/amd/display/dc/inc/
H A Dresource.h292 enum dc_status resource_add_otg_master_for_stream_output(struct dc_state *new_ctx,
301 void resource_remove_otg_master_for_stream_output(struct dc_state *new_ctx,
311 struct dc_state *new_ctx,
343 struct dc_state *new_ctx,
367 struct dc_state *new_ctx,
H A Dcore_types.h141 struct dc_state *new_ctx,
147 struct dc_state *new_ctx,
161 struct dc_state *new_ctx,
166 struct dc_state *new_ctx,
/linux/net/mptcp/
H A Dsubflow.c2025 struct mptcp_subflow_context *new_ctx; in subflow_ulp_clone() local
2033 new_ctx = subflow_create_ctx(newsk, priority); in subflow_ulp_clone()
2034 if (!new_ctx) { in subflow_ulp_clone()
2039 new_ctx->conn_finished = 1; in subflow_ulp_clone()
2040 new_ctx->icsk_af_ops = old_ctx->icsk_af_ops; in subflow_ulp_clone()
2041 new_ctx->tcp_state_change = old_ctx->tcp_state_change; in subflow_ulp_clone()
2042 new_ctx->tcp_error_report = old_ctx->tcp_error_report; in subflow_ulp_clone()
2043 new_ctx->rel_write_seq = 1; in subflow_ulp_clone()
2049 new_ctx->mp_capable = 1; in subflow_ulp_clone()
2050 new_ctx->local_key = subflow_req->local_key; in subflow_ulp_clone()
[all …]
/linux/security/selinux/
H A Dxfrm.c293 struct xfrm_sec_ctx *new_ctx; in selinux_xfrm_policy_clone() local
298 new_ctx = kmemdup(old_ctx, sizeof(*old_ctx) + old_ctx->ctx_len, in selinux_xfrm_policy_clone()
300 if (!new_ctx) in selinux_xfrm_policy_clone()
303 *new_ctxp = new_ctx; in selinux_xfrm_policy_clone()
/linux/arch/powerpc/kernel/
H A Dsignal_64.c658 struct ucontext __user *, new_ctx, long, ctx_size) in SYSCALL_DEFINE3() argument
664 if (new_ctx && in SYSCALL_DEFINE3()
665 get_user(new_msr, &new_ctx->uc_mcontext.gp_regs[PT_MSR])) in SYSCALL_DEFINE3()
696 if (new_ctx == NULL) in SYSCALL_DEFINE3()
698 if (!access_ok(new_ctx, ctx_size) || in SYSCALL_DEFINE3()
699 fault_in_readable((char __user *)new_ctx, ctx_size)) in SYSCALL_DEFINE3()
714 if (__get_user_sigset(&set, &new_ctx->uc_sigmask)) { in SYSCALL_DEFINE3()
720 if (!user_read_access_begin(new_ctx, ctx_size)) in SYSCALL_DEFINE3()
722 if (__unsafe_restore_sigcontext(current, NULL, 0, &new_ctx->uc_mcontext)) { in SYSCALL_DEFINE3()
H A Dsignal_32.c991 struct ucontext __user *, new_ctx, int, ctx_size) in COMPAT_SYSCALL_DEFINE3() argument
994 struct ucontext __user *, new_ctx, long, ctx_size) in COMPAT_SYSCALL_DEFINE3()
1003 if (new_ctx) { in COMPAT_SYSCALL_DEFINE3()
1012 if (__get_user(cmcp, &new_ctx->uc_regs)) in COMPAT_SYSCALL_DEFINE3()
1061 if (new_ctx == NULL) in COMPAT_SYSCALL_DEFINE3()
1063 if (!access_ok(new_ctx, ctx_size) || in COMPAT_SYSCALL_DEFINE3()
1064 fault_in_readable((char __user *)new_ctx, ctx_size)) in COMPAT_SYSCALL_DEFINE3()
1078 if (do_setcontext(new_ctx, regs, 0)) { in COMPAT_SYSCALL_DEFINE3()
/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_resource.c2839 enum dc_status resource_add_otg_master_for_stream_output(struct dc_state *new_ctx, in resource_add_otg_master_for_stream_output() argument
2845 return dc->res_pool->funcs->add_stream_to_ctx(dc, new_ctx, stream); in resource_add_otg_master_for_stream_output()
2973 struct dc_state *new_ctx, in acquire_secondary_dpp_pipes_and_add_plane() argument
2988 &new_ctx->res_ctx, opp_heads); in acquire_secondary_dpp_pipes_and_add_plane()
2989 if (get_num_of_free_pipes(pool, new_ctx) < opp_head_count) in acquire_secondary_dpp_pipes_and_add_plane()
2996 new_ctx, in acquire_secondary_dpp_pipes_and_add_plane()
3019 struct dc_state *new_ctx, in resource_append_dpp_pipes_for_plane_composition() argument
3029 plane_state, new_ctx); in resource_append_dpp_pipes_for_plane_composition()
3032 otg_master_pipe, plane_state, new_ctx, in resource_append_dpp_pipes_for_plane_composition()
3037 plane_state, new_ctx, pool); in resource_append_dpp_pipes_for_plane_composition()
[all …]
/linux/arch/powerpc/include/asm/
H A Dsyscalls.h54 struct ucontext __user *new_ctx, long ctx_size);
76 struct ucontext32 __user *new_ctx,
/linux/drivers/gpu/drm/amd/display/dc/link/
H A Dlink_validation.c392 …um dc_status link_validate_dp_tunnel_bandwidth(const struct dc *dc, const struct dc_state *new_ctx) in link_validate_dp_tunnel_bandwidth() argument
399 for (uint8_t i = 0; (i < MAX_PIPES && i < new_ctx->stream_count); i++) { in link_validate_dp_tunnel_bandwidth()
400 const struct dc_stream_state *stream = new_ctx->streams[i]; in link_validate_dp_tunnel_bandwidth()
417 dp_tunnel_settings = get_dp_tunnel_settings(new_ctx, stream); in link_validate_dp_tunnel_bandwidth()
H A Dlink_validation.h35 const struct dc_state *new_ctx);
/linux/drivers/gpu/drm/amd/display/dc/resource/dce112/
H A Ddce112_resource.h52 struct dc_state *new_ctx,
/linux/drivers/gpu/drm/amd/display/dc/resource/dce100/
H A Ddce100_resource.h55 struct dc_state *new_ctx,
/linux/drivers/gpu/drm/amd/display/dc/dml2/
H A Ddml2_wrapper.h79 struct dc_state *new_ctx,
85 struct dc_state *new_ctx,
/linux/arch/sparc/mm/
H A Dinit_64.c769 unsigned long new_ver, new_ctx, old_ctx; in mmu_context_wrap() local
806 new_ctx = (old_ctx & ~CTX_VERSION_MASK) | new_ver; in mmu_context_wrap()
807 set_bit(new_ctx & CTX_NR_MASK, mmu_context_bmap); in mmu_context_wrap()
808 mm->context.sparc64_ctx_val = new_ctx; in mmu_context_wrap()
825 unsigned long ctx, new_ctx; in get_new_mmu_context() local
835 new_ctx = find_next_zero_bit(mmu_context_bmap, 1 << CTX_NR_BITS, ctx); in get_new_mmu_context()
836 if (new_ctx >= (1 << CTX_NR_BITS)) { in get_new_mmu_context()
837 new_ctx = find_next_zero_bit(mmu_context_bmap, ctx, 1); in get_new_mmu_context()
838 if (new_ctx >= ctx) { in get_new_mmu_context()
845 mmu_context_bmap[new_ctx>>6] |= (1UL << (new_ctx & 63)); in get_new_mmu_context()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dce110/
H A Ddce110_resource.c1104 struct dc_state *new_ctx, in dce110_add_stream_to_ctx() argument
1109 result = resource_map_pool_resources(dc, new_ctx, dc_stream); in dce110_add_stream_to_ctx()
1112 result = resource_map_clock_resources(dc, new_ctx, dc_stream); in dce110_add_stream_to_ctx()
1116 result = build_mapped_resource(dc, new_ctx, dc_stream); in dce110_add_stream_to_ctx()
1123 struct dc_state *new_ctx, in dce110_acquire_underlay() argument
1130 struct resource_context *res_ctx = &new_ctx->res_ctx; in dce110_acquire_underlay()
1179 new_ctx->stream_count); in dce110_acquire_underlay()
/linux/net/bpf/
H A Dtest_run.c123 struct xdp_buff *new_ctx, *orig_ctx; in xdp_test_run_init_page() local
135 new_ctx = &head->ctx; in xdp_test_run_init_page()
140 xdp_init_buff(new_ctx, TEST_XDP_FRAME_SIZE, &xdp->rxq); in xdp_test_run_init_page()
141 xdp_prepare_buff(new_ctx, data, headroom, frm_len, true); in xdp_test_run_init_page()
142 new_ctx->data = new_ctx->data_meta + meta_len; in xdp_test_run_init_page()
144 xdp_update_frame_from_buff(new_ctx, frm); in xdp_test_run_init_page()
145 frm->mem_type = new_ctx->rxq->mem.type; in xdp_test_run_init_page()
147 memcpy(&head->orig_ctx, new_ctx, sizeof(head->orig_ctx)); in xdp_test_run_init_page()
/linux/fs/
H A Dlibfs.c355 struct offset_ctx *new_ctx = new_dir->i_op->get_offset_ctx(new_dir); in simple_offset_rename() local
362 return simple_offset_replace(new_ctx, old_dentry, new_offset); in simple_offset_rename()
364 return simple_offset_add(new_ctx, old_dentry); in simple_offset_rename()
386 struct offset_ctx *new_ctx = new_dir->i_op->get_offset_ctx(new_dir); in simple_offset_rename_exchange() local
392 simple_offset_remove(new_ctx, new_dentry); in simple_offset_rename_exchange()
394 ret = simple_offset_replace(new_ctx, old_dentry, new_index); in simple_offset_rename_exchange()
400 simple_offset_remove(new_ctx, old_dentry); in simple_offset_rename_exchange()
406 simple_offset_remove(new_ctx, old_dentry); in simple_offset_rename_exchange()
414 (void)simple_offset_replace(new_ctx, new_dentry, new_index); in simple_offset_rename_exchange()
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn30/
H A Ddcn30_resource.h98 struct dc_state *new_ctx,

123