Home
last modified time | relevance | path

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

12

/linux/net/mac80211/
H A Dchan.c1005 struct ieee80211_chanctx *new_ctx, in ieee80211_assign_link_chanctx() argument
1028 if (new_ctx) { in ieee80211_assign_link_chanctx()
1030 _ieee80211_recalc_chanctx_min_def(local, new_ctx, link, false); in ieee80211_assign_link_chanctx()
1032 ret = drv_assign_vif_chanctx(local, sdata, link->conf, new_ctx); in ieee80211_assign_link_chanctx()
1039 conf = &new_ctx->conf; in ieee80211_assign_link_chanctx()
1054 if (new_ctx && ieee80211_chanctx_num_assigned(local, new_ctx) > 0) { in ieee80211_assign_link_chanctx()
1056 ieee80211_recalc_chanctx_min_def(local, new_ctx); in ieee80211_assign_link_chanctx()
1252 struct ieee80211_chanctx *new_ctx, *ctx; in ieee80211_replace_chanctx() local
1304 new_ctx = ieee80211_alloc_chanctx(local, chanreq, mode, -1); in ieee80211_replace_chanctx()
1305 if (!new_ctx) 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()
H A Dtrace.h1815 new_ctx->def.chan->center_freq);
1817 new_ctx->def.chan->freq_offset);
1819 new_ctx->def.width);
1821 new_ctx->def.center_freq1);
1823 new_ctx->def.freq1_offset);
1825 new_ctx->def.center_freq2);
H A Dmain.c320 local->hw.conf.radar_enabled = vifs[0].new_ctx->radar_enabled; in ieee80211_emulate_switch_vif_chanctx()
321 _ieee80211_hw_conf_chan(local, vifs[0].new_ctx); in ieee80211_emulate_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 …]
H A Dfs_context.h373 extern int smb3_fs_context_dup(struct smb3_fs_context *new_ctx, struct smb3_fs_context *ctx);
/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/net/mptcp/
H A Dsubflow.c2041 struct mptcp_subflow_context *new_ctx; in subflow_ulp_clone() local
2049 new_ctx = subflow_create_ctx(newsk, priority); in subflow_ulp_clone()
2050 if (!new_ctx) { in subflow_ulp_clone()
2055 new_ctx->conn_finished = 1; in subflow_ulp_clone()
2056 new_ctx->icsk_af_ops = old_ctx->icsk_af_ops; in subflow_ulp_clone()
2057 new_ctx->tcp_state_change = old_ctx->tcp_state_change; in subflow_ulp_clone()
2058 new_ctx->tcp_error_report = old_ctx->tcp_error_report; in subflow_ulp_clone()
2059 new_ctx->rel_write_seq = 1; in subflow_ulp_clone()
2065 new_ctx->mp_capable = 1; in subflow_ulp_clone()
2066 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.c2934 enum dc_status resource_add_otg_master_for_stream_output(struct dc_state *new_ctx, in resource_add_otg_master_for_stream_output() argument
2940 return dc->res_pool->funcs->add_stream_to_ctx(dc, new_ctx, stream); in resource_add_otg_master_for_stream_output()
3068 struct dc_state *new_ctx, in acquire_secondary_dpp_pipes_and_add_plane() argument
3083 &new_ctx->res_ctx, opp_heads); in acquire_secondary_dpp_pipes_and_add_plane()
3084 if (get_num_of_free_pipes(pool, new_ctx) < opp_head_count) in acquire_secondary_dpp_pipes_and_add_plane()
3091 new_ctx, in acquire_secondary_dpp_pipes_and_add_plane()
3114 struct dc_state *new_ctx, in resource_append_dpp_pipes_for_plane_composition() argument
3124 plane_state, new_ctx); in resource_append_dpp_pipes_for_plane_composition()
3127 otg_master_pipe, plane_state, new_ctx, in resource_append_dpp_pipes_for_plane_composition()
3132 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/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/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/drivers/gpu/drm/amd/display/dc/hwss/dcn32/
H A Ddcn32_hwseq.h124 const struct dc_state *new_ctx);
/linux/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc_opr_v5.c1321 int new_ctx; in s5p_mfc_try_run_v5() local
1335 new_ctx = s5p_mfc_get_new_ctx(dev); in s5p_mfc_try_run_v5()
1336 if (new_ctx < 0) { in s5p_mfc_try_run_v5()
1345 ctx = dev->ctx[new_ctx]; in s5p_mfc_try_run_v5()
/linux/include/linux/
H A Ddamon.h942 int damon_commit_ctx(struct damon_ctx *old_ctx, struct damon_ctx *new_ctx);
H A Dlsm_hook_defs.h392 struct xfrm_sec_ctx **new_ctx)
/linux/mm/
H A Dvma.h367 struct vm_userfaultfd_ctx new_ctx, bool give_up_on_oom);
H A Dvma.c1695 struct vm_userfaultfd_ctx new_ctx, bool give_up_on_oom) in vma_modify_flags_uffd() argument
1700 vmg.uffd_ctx = new_ctx; in vma_modify_flags_uffd()
/linux/security/apparmor/
H A Dlsm.c1198 struct aa_sk_ctx *new_ctx = aa_sock(newsk); in apparmor_unix_stream_connect() local
1213 rcu_assign_pointer(new_ctx->label, in apparmor_unix_stream_connect()
1218 unix_connect_peers(sk_ctx, new_ctx); in apparmor_unix_stream_connect()
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddc.h1935 struct dc_state *new_ctx,
2537 …tatus dc_link_validate_dp_tunneling_bandwidth(const struct dc *dc, const struct dc_state *new_ctx);
/linux/drivers/net/wireless/virtual/
H A Dmac80211_hwsim.c3310 vifs[i].new_ctx->def.chan->center_freq, in mac80211_hwsim_switch_vif_chanctx()
3311 vifs[i].new_ctx->def.width, in mac80211_hwsim_switch_vif_chanctx()
3312 vifs[i].new_ctx->def.center_freq1, in mac80211_hwsim_switch_vif_chanctx()
3313 vifs[i].new_ctx->def.center_freq2); in mac80211_hwsim_switch_vif_chanctx()
3317 hwsim_check_chanctx_magic(vifs[i].new_ctx); in mac80211_hwsim_switch_vif_chanctx()
3320 hwsim_set_chanctx_magic(vifs[i].new_ctx); in mac80211_hwsim_switch_vif_chanctx()
/linux/drivers/net/wireless/ath/ath12k/
H A Dmac.c11126 arg->vifs[arg->next_vif].new_ctx = ctx; in ath12k_mac_change_chanctx_fill_iter()
11218 vifs[i].new_ctx->def.chan->center_freq, in ath12k_mac_update_vif_chan()
11220 vifs[i].new_ctx->def.width); in ath12k_mac_update_vif_chan()
11225 arvif->punct_bitmap = vifs[i].new_ctx->def.punctured; in ath12k_mac_update_vif_chan()
11231 ret = ath12k_mac_vdev_restart(arvif, vifs[i].new_ctx); in ath12k_mac_update_vif_chan()
11245 ret = ath12k_mac_vdev_start(arvif, vifs[i].new_ctx); in ath12k_mac_update_vif_chan()
11253 vifs[i].new_ctx->def); in ath12k_mac_update_vif_chan()
11257 vifs[i].new_ctx->def.punctured, in ath12k_mac_update_vif_chan()
11258 vifs[i].new_ctx->def.width, ret); in ath12k_mac_update_vif_chan()
11975 if (ar != ath12k_get_ar_by_ctx(hw, vifs->new_ctx)) in ath12k_mac_op_switch_vif_chanctx()

12