Home
last modified time | relevance | path

Searched refs:msk (Results 1 – 25 of 130) sorted by relevance

123456

/linux-6.1.9/arch/powerpc/include/asm/
Dfeature-fixups.h57 #define MAKE_FTR_SECTION_ENTRY(msk, val, label, sect) \ argument
63 FTR_ENTRY_LONG msk; \
77 #define END_FTR_SECTION_NESTED(msk, val, label) \ argument
79 MAKE_FTR_SECTION_ENTRY(msk, val, label, __ftr_fixup)
81 #define END_FTR_SECTION(msk, val) \ argument
82 END_FTR_SECTION_NESTED(msk, val, 97)
84 #define END_FTR_SECTION_NESTED_IFSET(msk, label) \ argument
85 END_FTR_SECTION_NESTED((msk), (msk), label)
87 #define END_FTR_SECTION_IFSET(msk) END_FTR_SECTION((msk), (msk)) argument
88 #define END_FTR_SECTION_IFCLR(msk) END_FTR_SECTION((msk), 0) argument
[all …]
/linux-6.1.9/tools/testing/selftests/powerpc/primitives/asm/
Dfeature-fixups.h57 #define MAKE_FTR_SECTION_ENTRY(msk, val, label, sect) \ argument
63 FTR_ENTRY_LONG msk; \
77 #define END_FTR_SECTION_NESTED(msk, val, label) \ argument
79 MAKE_FTR_SECTION_ENTRY(msk, val, label, __ftr_fixup)
81 #define END_FTR_SECTION(msk, val) \ argument
82 END_FTR_SECTION_NESTED(msk, val, 97)
84 #define END_FTR_SECTION_NESTED_IFSET(msk, label) \ argument
85 END_FTR_SECTION_NESTED((msk), (msk), label)
87 #define END_FTR_SECTION_IFSET(msk) END_FTR_SECTION((msk), (msk)) argument
88 #define END_FTR_SECTION_IFCLR(msk) END_FTR_SECTION((msk), 0) argument
[all …]
/linux-6.1.9/net/mptcp/
Dpm.c17 int mptcp_pm_announce_addr(struct mptcp_sock *msk, in mptcp_pm_announce_addr() argument
21 u8 add_addr = READ_ONCE(msk->pm.addr_signal); in mptcp_pm_announce_addr()
23 pr_debug("msk=%p, local_id=%d, echo=%d", msk, addr->id, echo); in mptcp_pm_announce_addr()
25 lockdep_assert_held(&msk->pm.lock); in mptcp_pm_announce_addr()
34 msk->pm.remote = *addr; in mptcp_pm_announce_addr()
37 msk->pm.local = *addr; in mptcp_pm_announce_addr()
40 WRITE_ONCE(msk->pm.addr_signal, add_addr); in mptcp_pm_announce_addr()
44 int mptcp_pm_remove_addr(struct mptcp_sock *msk, const struct mptcp_rm_list *rm_list) in mptcp_pm_remove_addr() argument
46 u8 rm_addr = READ_ONCE(msk->pm.addr_signal); in mptcp_pm_remove_addr()
48 pr_debug("msk=%p, rm_list_nr=%d", msk, rm_list->nr); in mptcp_pm_remove_addr()
[all …]
Dprotocol.c34 struct mptcp_sock msk; member
65 struct socket *__mptcp_nmpc_socket(const struct mptcp_sock *msk) in __mptcp_nmpc_socket() argument
67 if (!msk->subflow || READ_ONCE(msk->can_ack)) in __mptcp_nmpc_socket()
70 return msk->subflow; in __mptcp_nmpc_socket()
74 static u64 mptcp_wnd_end(const struct mptcp_sock *msk) in mptcp_wnd_end() argument
76 return READ_ONCE(msk->wnd_end); in mptcp_wnd_end()
103 static int __mptcp_socket_create(struct mptcp_sock *msk) in __mptcp_socket_create() argument
106 struct sock *sk = (struct sock *)msk; in __mptcp_socket_create()
114 msk->first = ssock->sk; in __mptcp_socket_create()
115 msk->subflow = ssock; in __mptcp_socket_create()
[all …]
Dsockopt.c19 static struct sock *__mptcp_tcp_fallback(struct mptcp_sock *msk) in __mptcp_tcp_fallback() argument
21 sock_owned_by_me((const struct sock *)msk); in __mptcp_tcp_fallback()
23 if (likely(!__mptcp_check_fallback(msk))) in __mptcp_tcp_fallback()
26 return msk->first; in __mptcp_tcp_fallback()
50 static void sockopt_seq_inc(struct mptcp_sock *msk) in sockopt_seq_inc() argument
52 u32 seq = (msk->setsockopt_seq + 1) & 0x00ffffff; in sockopt_seq_inc()
54 msk->setsockopt_seq = sockopt_seq_reset((struct sock *)msk) + seq; in sockopt_seq_inc()
57 static int mptcp_get_int_option(struct mptcp_sock *msk, sockptr_t optval, in mptcp_get_int_option() argument
69 static void mptcp_sol_socket_sync_intval(struct mptcp_sock *msk, int optname, int val) in mptcp_sol_socket_sync_intval() argument
72 struct sock *sk = (struct sock *)msk; in mptcp_sol_socket_sync_intval()
[all …]
Dpm_netlink.c56 pm_nl_get_pernet_from_msk(const struct mptcp_sock *msk) in pm_nl_get_pernet_from_msk() argument
58 return pm_nl_get_pernet(sock_net((struct sock *)msk)); in pm_nl_get_pernet_from_msk()
153 const struct mptcp_sock *msk) in select_local_address() argument
155 const struct sock *sk = (const struct sock *)msk; in select_local_address()
158 msk_owned_by_me(msk); in select_local_address()
165 if (!test_bit(entry->addr.id, msk->pm.id_avail_bitmap)) in select_local_address()
186 select_signal_address(struct pm_nl_pernet *pernet, const struct mptcp_sock *msk) in select_signal_address() argument
197 if (!test_bit(entry->addr.id, msk->pm.id_avail_bitmap)) in select_signal_address()
210 unsigned int mptcp_pm_get_add_addr_signal_max(const struct mptcp_sock *msk) in mptcp_pm_get_add_addr_signal_max() argument
212 const struct pm_nl_pernet *pernet = pm_nl_get_pernet_from_msk(msk); in mptcp_pm_get_add_addr_signal_max()
[all …]
Dpm_userspace.c10 void mptcp_free_local_addr_list(struct mptcp_sock *msk) in mptcp_free_local_addr_list() argument
13 struct sock *sk = (struct sock *)msk; in mptcp_free_local_addr_list()
16 if (!mptcp_pm_is_userspace(msk)) in mptcp_free_local_addr_list()
19 spin_lock_bh(&msk->pm.lock); in mptcp_free_local_addr_list()
20 list_splice_init(&msk->pm.userspace_pm_local_addr_list, &free_list); in mptcp_free_local_addr_list()
21 spin_unlock_bh(&msk->pm.lock); in mptcp_free_local_addr_list()
28 int mptcp_userspace_pm_append_new_local_addr(struct mptcp_sock *msk, in mptcp_userspace_pm_append_new_local_addr() argument
33 struct sock *sk = (struct sock *)msk; in mptcp_userspace_pm_append_new_local_addr()
41 spin_lock_bh(&msk->pm.lock); in mptcp_userspace_pm_append_new_local_addr()
42 list_for_each_entry(e, &msk->pm.userspace_pm_local_addr_list, list) { in mptcp_userspace_pm_append_new_local_addr()
[all …]
Dprotocol.h322 static inline void msk_owned_by_me(const struct mptcp_sock *msk) in msk_owned_by_me() argument
324 sock_owned_by_me((const struct sock *)msk); in msk_owned_by_me()
347 const struct mptcp_sock *msk = mptcp_sk(sk); in mptcp_send_head() local
349 return READ_ONCE(msk->first_pending); in mptcp_send_head()
354 struct mptcp_sock *msk = mptcp_sk(sk); in mptcp_send_next() local
357 cur = msk->first_pending; in mptcp_send_next()
358 return list_is_last(&cur->list, &msk->rtx_queue) ? NULL : in mptcp_send_next()
364 struct mptcp_sock *msk = mptcp_sk(sk); in mptcp_pending_tail() local
366 if (!msk->first_pending) in mptcp_pending_tail()
369 if (WARN_ON_ONCE(list_empty(&msk->rtx_queue))) in mptcp_pending_tail()
[all …]
Dtoken_test.c54 struct mptcp_sock *msk; in build_msk() local
56 msk = kunit_kzalloc(test, sizeof(struct mptcp_sock), GFP_USER); in build_msk()
57 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, msk); in build_msk()
58 refcount_set(&((struct sock *)msk)->sk_refcnt, 1); in build_msk()
59 sock_net_set((struct sock *)msk, &init_net); in build_msk()
60 return msk; in build_msk()
67 struct mptcp_sock *msk = build_msk(test); in mptcp_token_test_msk_basic() local
72 ctx->conn = (struct sock *)msk; in mptcp_token_test_msk_basic()
73 sk = (struct sock *)msk; in mptcp_token_test_msk_basic()
78 KUNIT_EXPECT_EQ(test, ctx->token, msk->token); in mptcp_token_test_msk_basic()
[all …]
Dsubflow.c44 if (subflow_req->msk) in subflow_req_destructor()
45 sock_put((struct sock *)subflow_req->msk); in subflow_req_destructor()
61 static bool mptcp_can_accept_new_subflow(const struct mptcp_sock *msk) in mptcp_can_accept_new_subflow() argument
63 return mptcp_is_fully_established((void *)msk) && in mptcp_can_accept_new_subflow()
64 ((mptcp_pm_is_userspace(msk) && in mptcp_can_accept_new_subflow()
65 mptcp_userspace_pm_active(msk)) || in mptcp_can_accept_new_subflow()
66 READ_ONCE(msk->pm.accept_subflow)); in mptcp_can_accept_new_subflow()
72 struct mptcp_sock *msk = subflow_req->msk; in subflow_req_create_thmac() local
77 subflow_generate_hmac(msk->local_key, msk->remote_key, in subflow_req_create_thmac()
87 struct mptcp_sock *msk; in subflow_token_join_request() local
[all …]
Dtoken.c154 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_token_new_connect() local
174 WRITE_ONCE(msk->token, subflow->token); in mptcp_token_new_connect()
175 __sk_nulls_add_node_rcu((struct sock *)msk, &bucket->msk_chain); in mptcp_token_new_connect()
190 struct mptcp_sock *msk) in mptcp_token_accept() argument
202 __sk_nulls_add_node_rcu((struct sock *)msk, &bucket->msk_chain); in mptcp_token_accept()
210 struct mptcp_sock *msk; in mptcp_token_exists() local
218 msk = mptcp_sk(sk); in mptcp_token_exists()
219 if (READ_ONCE(msk->token) == token) in mptcp_token_exists()
246 struct mptcp_sock *msk; in mptcp_token_get_sock() local
254 msk = mptcp_sk(sk); in mptcp_token_get_sock()
[all …]
Doptions.c444 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_established_options_mp() local
476 opts->csum_reqd = READ_ONCE(msk->csum_enabled); in mptcp_established_options_mp()
558 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_established_options_dss() local
565 opts->csum_reqd = READ_ONCE(msk->csum_enabled); in mptcp_established_options_dss()
590 if (!READ_ONCE(msk->can_ack)) { in mptcp_established_options_dss()
595 ack_seq = READ_ONCE(msk->ack_seq); in mptcp_established_options_dss()
596 if (READ_ONCE(msk->use_64bit_ack)) { in mptcp_established_options_dss()
607 WRITE_ONCE(msk->old_wspace, __mptcp_space((struct sock *)msk)); in mptcp_established_options_dss()
652 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_established_options_add_addr() local
661 if (!mptcp_pm_should_add_signal(msk) || in mptcp_established_options_add_addr()
[all …]
Dmptcp_diag.c32 struct mptcp_sock *msk = NULL; in mptcp_diag_dump_one() local
39 msk = mptcp_token_get_sock(net, req->id.idiag_cookie[0]); in mptcp_diag_dump_one()
40 if (!msk) in mptcp_diag_dump_one()
44 sk = (struct sock *)msk; in mptcp_diag_dump_one()
159 struct mptcp_sock *msk; in mptcp_diag_dump() local
167 while ((msk = mptcp_token_iter_next(net, &diag_ctx->s_slot, in mptcp_diag_dump()
169 struct inet_sock *inet = (struct inet_sock *)msk; in mptcp_diag_dump()
170 struct sock *sk = (struct sock *)msk; in mptcp_diag_dump()
203 struct mptcp_sock *msk = mptcp_sk(sk); in mptcp_diag_get_info() local
210 struct sock *lsk = READ_ONCE(msk->first); in mptcp_diag_get_info()
[all …]
Dsyncookies.c97 struct mptcp_sock *msk; in mptcp_token_join_cookie_init_state() local
111 msk = mptcp_token_get_sock(net, e->token); in mptcp_token_join_cookie_init_state()
112 if (!msk) { in mptcp_token_join_cookie_init_state()
122 subflow_req->msk = msk; in mptcp_token_join_cookie_init_state()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/flower/
Dmatch.c12 struct nfp_flower_meta_tci *msk, u8 key_type) in nfp_flower_compile_meta() argument
18 msk->nfp_flow_key_layer = key_type; in nfp_flower_compile_meta()
19 msk->mask_id = ~0; in nfp_flower_compile_meta()
24 struct nfp_flower_meta_tci *msk, in nfp_flower_compile_tci() argument
47 msk->tci |= cpu_to_be16(msk_tci); in nfp_flower_compile_tci()
53 struct nfp_flower_meta_tci *msk, in nfp_flower_compile_meta_tci() argument
57 memset(msk, 0, sizeof(struct nfp_flower_meta_tci)); in nfp_flower_compile_meta_tci()
59 nfp_flower_compile_meta(ext, msk, key_type); in nfp_flower_compile_meta_tci()
62 nfp_flower_compile_tci(ext, msk, rule); in nfp_flower_compile_meta_tci()
96 struct nfp_flower_mac_mpls *msk, in nfp_flower_compile_mac() argument
[all …]
Dmain.h539 struct nfp_flower_meta_tci *msk, u8 key_type);
542 struct nfp_flower_meta_tci *msk,
552 struct nfp_flower_mac_mpls *msk,
556 struct nfp_flower_mac_mpls *msk,
561 struct nfp_flower_tp_ports *msk,
565 struct nfp_flower_vlan *msk,
569 struct nfp_flower_ipv4 *msk, struct flow_rule *rule);
572 struct nfp_flower_ipv6 *msk, struct flow_rule *rule);
574 nfp_flower_compile_geneve_opt(u8 *ext, u8 *msk, struct flow_rule *rule);
577 struct nfp_flower_ipv4_gre_tun *msk,
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dmptcp_sock.c32 struct mptcp_sock *msk; in _sockops() local
60 msk = bpf_skc_to_mptcp_sock(sk); in _sockops()
61 if (!msk) in _sockops()
64 storage = bpf_sk_storage_get(&socket_storage_map, msk, 0, in _sockops()
69 storage->token = msk->token; in _sockops()
70 __builtin_memcpy(storage->ca_name, msk->ca_name, TCP_CA_NAME_MAX); in _sockops()
71 storage->first = msk->first; in _sockops()
81 int BPF_PROG(trace_mptcp_pm_new_connection, struct mptcp_sock *msk, in BPF_PROG() argument
85 token = msk->token; in BPF_PROG()
/linux-6.1.9/net/mctp/
Daf_mctp.c55 struct mctp_sock *msk = container_of(sk, struct mctp_sock, sk); in mctp_bind() local
81 msk->bind_net = smctp->smctp_network; in mctp_bind()
82 msk->bind_addr = smctp->smctp_addr.s_addr; in mctp_bind()
83 msk->bind_type = smctp->smctp_type & 0x7f; /* ignore the IC bit */ in mctp_bind()
98 struct mctp_sock *msk = container_of(sk, struct mctp_sock, sk); in mctp_sendmsg() local
133 if (msk->addr_ext && addrlen >= sizeof(struct sockaddr_mctp_ext)) { in mctp_sendmsg()
210 struct mctp_sock *msk = container_of(sk, struct mctp_sock, sk); in mctp_recvmsg() local
259 if (msk->addr_ext) { in mctp_recvmsg()
311 struct mctp_sock *msk = container_of(sock->sk, struct mctp_sock, sk); in mctp_setsockopt() local
322 msk->addr_ext = val; in mctp_setsockopt()
[all …]
Droute.c59 struct mctp_sock *msk = container_of(sk, struct mctp_sock, sk); in mctp_lookup_bind() local
61 if (msk->bind_net != MCTP_NET_ANY && msk->bind_net != cb->net) in mctp_lookup_bind()
64 if (msk->bind_type != type) in mctp_lookup_bind()
67 if (!mctp_address_matches(msk->bind_addr, mh->dest)) in mctp_lookup_bind()
70 return msk; in mctp_lookup_bind()
133 static struct mctp_sk_key *mctp_key_alloc(struct mctp_sock *msk, in mctp_key_alloc() argument
146 key->sk = &msk->sk; in mctp_key_alloc()
173 static int mctp_key_add(struct mctp_sk_key *key, struct mctp_sock *msk) in mctp_key_add() argument
175 struct net *net = sock_net(&msk->sk); in mctp_key_add()
182 if (sock_flag(&msk->sk, SOCK_DEAD)) { in mctp_key_add()
[all …]
/linux-6.1.9/kernel/irq/
Dmatrix.c130 const struct cpumask *msk) in matrix_find_best_cpu() argument
137 for_each_cpu(cpu, msk) { in matrix_find_best_cpu()
151 const struct cpumask *msk) in matrix_find_best_cpu_managed() argument
158 for_each_cpu(cpu, msk) { in matrix_find_best_cpu_managed()
210 int irq_matrix_reserve_managed(struct irq_matrix *m, const struct cpumask *msk) in irq_matrix_reserve_managed() argument
214 for_each_cpu(cpu, msk) { in irq_matrix_reserve_managed()
231 for_each_cpu(cpu, msk) { in irq_matrix_reserve_managed()
251 void irq_matrix_remove_managed(struct irq_matrix *m, const struct cpumask *msk) in irq_matrix_remove_managed() argument
255 for_each_cpu(cpu, msk) { in irq_matrix_remove_managed()
286 int irq_matrix_alloc_managed(struct irq_matrix *m, const struct cpumask *msk, in irq_matrix_alloc_managed() argument
[all …]
Ddevres.c235 u32 msk; member
244 irq_remove_generic_chip(this->gc, this->msk, this->clr, this->set); in devm_irq_remove_generic_chip()
263 u32 msk, enum irq_gc_flags flags, in devm_irq_setup_generic_chip() argument
273 irq_setup_generic_chip(gc, msk, flags, clr, set); in devm_irq_setup_generic_chip()
276 dr->msk = msk; in devm_irq_setup_generic_chip()
/linux-6.1.9/drivers/clk/sprd/
Dpll.c54 u32 msk, u32 val) in sprd_pll_write() argument
66 regmap_write(common->regmap, offset, (reg & ~msk) | val); in sprd_pll_write()
173 cfg[index].msk = mask; in _sprd_pll_set_rate()
184 cfg[index].msk |= mask; in _sprd_pll_set_rate()
189 cfg[index].msk |= mask; in _sprd_pll_set_rate()
196 cfg[index].msk |= mask; in _sprd_pll_set_rate()
206 cfg[index].msk |= mask; in _sprd_pll_set_rate()
214 cfg[index].msk |= mask; in _sprd_pll_set_rate()
217 if (cfg[i].msk) { in _sprd_pll_set_rate()
218 sprd_pll_write(pll, i, cfg[i].msk, cfg[i].val); in _sprd_pll_set_rate()
[all …]
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/
Daq_hw_utils.c19 void aq_hw_write_reg_bit(struct aq_hw_s *aq_hw, u32 addr, u32 msk, in aq_hw_write_reg_bit() argument
22 if (msk ^ ~0) { in aq_hw_write_reg_bit()
26 reg_new = (reg_old & (~msk)) | (val << shift); in aq_hw_write_reg_bit()
35 u32 aq_hw_read_reg_bit(struct aq_hw_s *aq_hw, u32 addr, u32 msk, u32 shift) in aq_hw_read_reg_bit() argument
37 return ((aq_hw_read_reg(aq_hw, addr) & msk) >> shift); in aq_hw_read_reg_bit()
/linux-6.1.9/drivers/media/usb/pvrusb2/
Dpvrusb2-ctrl.c207 int msk; in pvr2_ctrl_get_valname() local
210 for (idx = 0, msk = 1; val; idx++, msk <<= 1) { in pvr2_ctrl_get_valname()
211 if (val & msk) { in pvr2_ctrl_get_valname()
291 static unsigned int gen_bitmask_string(int msk,int val,int msk_only, in gen_bitmask_string() argument
304 for (idx = 0, sm = 1; msk; idx++, sm <<= 1) { in gen_bitmask_string()
305 if (sm & msk) { in gen_bitmask_string()
306 msk &= ~sm; in gen_bitmask_string()
380 int msk; in parse_mtoken() local
382 for (idx = 0, msk = 1; valid_bits; idx++, msk <<= 1) { in parse_mtoken()
383 if (!(msk & valid_bits)) continue; in parse_mtoken()
[all …]
/linux-6.1.9/drivers/usb/mtu3/
Dmtu3_host.c54 u32 reg, msk, val; in ssusb_wakeup_ip_sleep_set() local
59 msk = WC1_IS_EN | WC1_IS_C(0xf) | WC1_IS_P; in ssusb_wakeup_ip_sleep_set()
64 msk = WC0_IS_EN | WC0_IS_C(0xf) | WC0_IS_P; in ssusb_wakeup_ip_sleep_set()
69 msk = WC0_SSUSB0_CDEN | WC0_IS_SPM_EN; in ssusb_wakeup_ip_sleep_set()
70 val = enable ? msk : 0; in ssusb_wakeup_ip_sleep_set()
74 msk = SSC_IP_SLEEP_EN | SSC_SPM_INT_EN; in ssusb_wakeup_ip_sleep_set()
75 val = enable ? msk : 0; in ssusb_wakeup_ip_sleep_set()
80 regmap_update_bits(ssusb->uwk, reg, msk, val); in ssusb_wakeup_ip_sleep_set()

123456