/linux-6.6.21/tools/testing/selftests/powerpc/primitives/asm/ |
D | feature-fixups.h | 57 #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.6.21/arch/powerpc/include/asm/ |
D | feature-fixups.h | 57 #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.6.21/net/mptcp/ |
D | pm.c | 17 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() 29 MPTCP_INC_STATS(sock_net((struct sock *)msk), in mptcp_pm_announce_addr() 35 msk->pm.remote = *addr; in mptcp_pm_announce_addr() 38 msk->pm.local = *addr; in mptcp_pm_announce_addr() 41 WRITE_ONCE(msk->pm.addr_signal, add_addr); in mptcp_pm_announce_addr() 45 int mptcp_pm_remove_addr(struct mptcp_sock *msk, const struct mptcp_rm_list *rm_list) in mptcp_pm_remove_addr() argument 47 u8 rm_addr = READ_ONCE(msk->pm.addr_signal); in mptcp_pm_remove_addr() [all …]
|
D | sched.c | 19 static int mptcp_sched_default_get_subflow(struct mptcp_sock *msk, in mptcp_sched_default_get_subflow() argument 24 ssk = data->reinject ? mptcp_subflow_get_retrans(msk) : in mptcp_sched_default_get_subflow() 25 mptcp_subflow_get_send(msk); in mptcp_sched_default_get_subflow() 86 int mptcp_init_sched(struct mptcp_sock *msk, in mptcp_init_sched() argument 95 msk->sched = sched; in mptcp_init_sched() 96 if (msk->sched->init) in mptcp_init_sched() 97 msk->sched->init(msk); in mptcp_init_sched() 99 pr_debug("sched=%s", msk->sched->name); in mptcp_init_sched() 104 void mptcp_release_sched(struct mptcp_sock *msk) in mptcp_release_sched() argument 106 struct mptcp_sched_ops *sched = msk->sched; in mptcp_release_sched() [all …]
|
D | sockopt.c | 20 static struct sock *__mptcp_tcp_fallback(struct mptcp_sock *msk) in __mptcp_tcp_fallback() argument 22 msk_owned_by_me(msk); in __mptcp_tcp_fallback() 24 if (likely(!__mptcp_check_fallback(msk))) in __mptcp_tcp_fallback() 27 return msk->first; in __mptcp_tcp_fallback() 51 static void sockopt_seq_inc(struct mptcp_sock *msk) in sockopt_seq_inc() argument 53 u32 seq = (msk->setsockopt_seq + 1) & 0x00ffffff; in sockopt_seq_inc() 55 msk->setsockopt_seq = sockopt_seq_reset((struct sock *)msk) + seq; in sockopt_seq_inc() 58 static int mptcp_get_int_option(struct mptcp_sock *msk, sockptr_t optval, in mptcp_get_int_option() argument 70 static void mptcp_sol_socket_sync_intval(struct mptcp_sock *msk, int optname, int val) in mptcp_sol_socket_sync_intval() argument 73 struct sock *sk = (struct sock *)msk; in mptcp_sol_socket_sync_intval() [all …]
|
D | pm_userspace.c | 10 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 static int mptcp_userspace_pm_append_new_local_addr(struct mptcp_sock *msk, in mptcp_userspace_pm_append_new_local_addr() argument 34 struct sock *sk = (struct sock *)msk; in mptcp_userspace_pm_append_new_local_addr() 42 spin_lock_bh(&msk->pm.lock); in mptcp_userspace_pm_append_new_local_addr() 43 list_for_each_entry(e, &msk->pm.userspace_pm_local_addr_list, list) { in mptcp_userspace_pm_append_new_local_addr() [all …]
|
D | protocol.c | 34 struct mptcp_sock msk; member 53 static u64 mptcp_wnd_end(const struct mptcp_sock *msk) in mptcp_wnd_end() argument 55 return READ_ONCE(msk->wnd_end); in mptcp_wnd_end() 82 static int __mptcp_socket_create(struct mptcp_sock *msk) in __mptcp_socket_create() argument 85 struct sock *sk = (struct sock *)msk; in __mptcp_socket_create() 93 msk->scaling_ratio = tcp_sk(ssock->sk)->scaling_ratio; in __mptcp_socket_create() 94 WRITE_ONCE(msk->first, ssock->sk); in __mptcp_socket_create() 96 list_add(&subflow->node, &msk->conn_list); in __mptcp_socket_create() 99 subflow->subflow_id = msk->subflow_id++; in __mptcp_socket_create() 103 mptcp_sock_graft(msk->first, sk->sk_socket); in __mptcp_socket_create() [all …]
|
D | pm_netlink.c | 57 pm_nl_get_pernet_from_msk(const struct mptcp_sock *msk) in pm_nl_get_pernet_from_msk() argument 59 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 157 msk_owned_by_me(msk); in select_local_address() 164 if (!test_bit(entry->addr.id, msk->pm.id_avail_bitmap)) in select_local_address() 175 select_signal_address(struct pm_nl_pernet *pernet, const struct mptcp_sock *msk) in select_signal_address() argument 186 if (!test_bit(entry->addr.id, msk->pm.id_avail_bitmap)) in select_signal_address() 199 unsigned int mptcp_pm_get_add_addr_signal_max(const struct mptcp_sock *msk) in mptcp_pm_get_add_addr_signal_max() argument 201 const struct pm_nl_pernet *pernet = pm_nl_get_pernet_from_msk(msk); in mptcp_pm_get_add_addr_signal_max() 207 unsigned int mptcp_pm_get_add_addr_accept_max(const struct mptcp_sock *msk) in mptcp_pm_get_add_addr_accept_max() argument [all …]
|
D | token_test.c | 54 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() 62 ((struct sock *)msk)->sk_prot = &tcp_prot; in build_msk() 63 return msk; in build_msk() 70 struct mptcp_sock *msk = build_msk(test); in mptcp_token_test_msk_basic() local 75 ctx->conn = (struct sock *)msk; in mptcp_token_test_msk_basic() 76 sk = (struct sock *)msk; in mptcp_token_test_msk_basic() [all …]
|
D | protocol.h | 341 static inline void msk_owned_by_me(const struct mptcp_sock *msk) in msk_owned_by_me() argument 343 sock_owned_by_me((const struct sock *)msk); in msk_owned_by_me() 368 const struct mptcp_sock *msk = mptcp_sk(sk); in mptcp_send_head() local 370 return READ_ONCE(msk->first_pending); in mptcp_send_head() 375 struct mptcp_sock *msk = mptcp_sk(sk); in mptcp_send_next() local 378 cur = msk->first_pending; in mptcp_send_next() 379 return list_is_last(&cur->list, &msk->rtx_queue) ? NULL : in mptcp_send_next() 385 const struct mptcp_sock *msk = mptcp_sk(sk); in mptcp_pending_tail() local 387 if (!msk->first_pending) in mptcp_pending_tail() 390 if (WARN_ON_ONCE(list_empty(&msk->rtx_queue))) in mptcp_pending_tail() [all …]
|
D | subflow.c | 45 if (subflow_req->msk) in subflow_req_destructor() 46 sock_put((struct sock *)subflow_req->msk); in subflow_req_destructor() 62 static bool mptcp_can_accept_new_subflow(const struct mptcp_sock *msk) in mptcp_can_accept_new_subflow() argument 64 return mptcp_is_fully_established((void *)msk) && in mptcp_can_accept_new_subflow() 65 ((mptcp_pm_is_userspace(msk) && in mptcp_can_accept_new_subflow() 66 mptcp_userspace_pm_active(msk)) || in mptcp_can_accept_new_subflow() 67 READ_ONCE(msk->pm.accept_subflow)); in mptcp_can_accept_new_subflow() 73 struct mptcp_sock *msk = subflow_req->msk; in subflow_req_create_thmac() local 78 subflow_generate_hmac(msk->local_key, msk->remote_key, in subflow_req_create_thmac() 88 struct mptcp_sock *msk; in subflow_token_join_request() local [all …]
|
D | token.c | 154 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_token_new_connect() local 175 WRITE_ONCE(msk->token, subflow->token); in mptcp_token_new_connect() 176 __sk_nulls_add_node_rcu((struct sock *)msk, &bucket->msk_chain); in mptcp_token_new_connect() 192 struct mptcp_sock *msk) in mptcp_token_accept() argument 195 struct sock *sk = (struct sock *)msk; in mptcp_token_accept() 206 __sk_nulls_add_node_rcu((struct sock *)msk, &bucket->msk_chain); in mptcp_token_accept() 214 struct mptcp_sock *msk; in mptcp_token_exists() local 222 msk = mptcp_sk(sk); in mptcp_token_exists() 223 if (READ_ONCE(msk->token) == token) in mptcp_token_exists() 250 struct mptcp_sock *msk; in mptcp_token_get_sock() local [all …]
|
D | options.c | 449 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_established_options_mp() local 481 opts->csum_reqd = READ_ONCE(msk->csum_enabled); in mptcp_established_options_mp() 562 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_established_options_dss() local 569 opts->csum_reqd = READ_ONCE(msk->csum_enabled); in mptcp_established_options_dss() 593 if (!READ_ONCE(msk->can_ack)) { in mptcp_established_options_dss() 598 ack_seq = READ_ONCE(msk->ack_seq); in mptcp_established_options_dss() 599 if (READ_ONCE(msk->use_64bit_ack)) { in mptcp_established_options_dss() 610 WRITE_ONCE(msk->old_wspace, __mptcp_space((struct sock *)msk)); in mptcp_established_options_dss() 655 struct mptcp_sock *msk = mptcp_sk(subflow->conn); in mptcp_established_options_add_addr() local 664 if (!mptcp_pm_should_add_signal(msk) || in mptcp_established_options_add_addr() [all …]
|
D | fastopen.c | 62 void __mptcp_fastopen_gen_msk_ackseq(struct mptcp_sock *msk, struct mptcp_subflow_context *subflow, in __mptcp_fastopen_gen_msk_ackseq() argument 65 struct sock *sk = (struct sock *)msk; in __mptcp_fastopen_gen_msk_ackseq() 72 MPTCP_SKB_CB(skb)->map_seq, MPTCP_SKB_CB(skb)->map_seq + msk->ack_seq, in __mptcp_fastopen_gen_msk_ackseq() 73 MPTCP_SKB_CB(skb)->end_seq, MPTCP_SKB_CB(skb)->end_seq + msk->ack_seq); in __mptcp_fastopen_gen_msk_ackseq() 74 MPTCP_SKB_CB(skb)->map_seq += msk->ack_seq; in __mptcp_fastopen_gen_msk_ackseq() 75 MPTCP_SKB_CB(skb)->end_seq += msk->ack_seq; in __mptcp_fastopen_gen_msk_ackseq() 78 pr_debug("msk=%p ack_seq=%llx", msk, msk->ack_seq); in __mptcp_fastopen_gen_msk_ackseq()
|
D | mptcp_diag.c | 32 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 …]
|
/linux-6.6.21/drivers/net/ethernet/netronome/nfp/flower/ |
D | match.c | 12 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 …]
|
D | main.h | 557 struct nfp_flower_meta_tci *msk, u8 key_type); 560 struct nfp_flower_meta_tci *msk, 570 struct nfp_flower_mac_mpls *msk, 574 struct nfp_flower_mac_mpls *msk, 579 struct nfp_flower_tp_ports *msk, 583 struct nfp_flower_vlan *msk, 587 struct nfp_flower_ipv4 *msk, struct flow_rule *rule); 590 struct nfp_flower_ipv6 *msk, struct flow_rule *rule); 592 nfp_flower_compile_geneve_opt(u8 *ext, u8 *msk, struct flow_rule *rule); 595 struct nfp_flower_ipv4_gre_tun *msk, [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | mptcp_sock.c | 32 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.6.21/net/mctp/ |
D | af_mctp.c | 55 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 …]
|
D | route.c | 59 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.6.21/kernel/irq/ |
D | matrix.c | 130 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 …]
|
D | devres.c | 235 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.6.21/drivers/clk/sprd/ |
D | pll.c | 54 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.6.21/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_hw_utils.c | 19 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.6.21/drivers/media/usb/pvrusb2/ |
D | pvrusb2-ctrl.c | 207 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 …]
|