/openbmc/linux/arch/powerpc/include/asm/ |
H A 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 …]
|
/openbmc/linux/tools/testing/selftests/powerpc/primitives/asm/ |
H A 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 …]
|
/openbmc/linux/net/mptcp/ |
H A 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\n", 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 …]
|
H A 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\n", 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 …]
|
H A 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() 68 static int __mptcp_socket_create(struct mptcp_sock *msk) in __mptcp_socket_create() argument 71 struct sock *sk = (struct sock *)msk; in __mptcp_socket_create() 79 msk->scaling_ratio = tcp_sk(ssock->sk)->scaling_ratio; in __mptcp_socket_create() 80 WRITE_ONCE(msk->first, ssock->sk); in __mptcp_socket_create() 82 list_add(&subflow->node, &msk->conn_list); in __mptcp_socket_create() 85 subflow->subflow_id = msk->subflow_id++; in __mptcp_socket_create() 89 mptcp_sock_graft(msk->first, sk->sk_socket); in __mptcp_socket_create() [all …]
|
H A 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 …]
|
H A 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 …]
|
H A 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() 156 const struct mptcp_sock *msk, in select_local_address() argument 162 msk_owned_by_me(msk); in select_local_address() 169 if (!test_bit(entry->addr.id, msk->pm.id_avail_bitmap)) in select_local_address() 182 select_signal_address(struct pm_nl_pernet *pernet, const struct mptcp_sock *msk, in select_signal_address() argument 195 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() 218 unsigned int mptcp_pm_get_add_addr_accept_max(const struct mptcp_sock *msk) in mptcp_pm_get_add_addr_accept_max() argument [all …]
|
H A 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 …]
|
H A D | protocol.h | 345 static inline void msk_owned_by_me(const struct mptcp_sock *msk) in msk_owned_by_me() argument 347 sock_owned_by_me((const struct sock *)msk); in msk_owned_by_me() 372 const struct mptcp_sock *msk = mptcp_sk(sk); in mptcp_send_head() local 374 return READ_ONCE(msk->first_pending); in mptcp_send_head() 379 struct mptcp_sock *msk = mptcp_sk(sk); in mptcp_send_next() local 382 cur = msk->first_pending; in mptcp_send_next() 383 return list_is_last(&cur->list, &msk->rtx_queue) ? NULL : in mptcp_send_next() 389 const struct mptcp_sock *msk = mptcp_sk(sk); in mptcp_pending_tail() local 391 if (!msk->first_pending) in mptcp_pending_tail() 394 if (WARN_ON_ONCE(list_empty(&msk->rtx_queue))) in mptcp_pending_tail() [all …]
|
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
H A 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\n", msk, msk->ack_seq); in __mptcp_fastopen_gen_msk_ackseq()
|
H A 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 …]
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/ |
H A 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 …]
|
/openbmc/u-boot/arch/x86/cpu/quark/ |
H A D | mrc_util.c | 141 uint32_t msk; in set_rcvn() local 156 msk = (byte_lane & 1) ? 0xf00000 : 0xf00; in set_rcvn() 159 mrc_alt_write_mask(DDRPHY, reg, temp, msk); in set_rcvn() 172 msk = 0x3f000000; in set_rcvn() 174 mrc_alt_write_mask(DDRPHY, reg, temp, msk); in set_rcvn() 183 msk = 0x00; in set_rcvn() 187 msk |= (byte_lane & 1) ? (1 << 5) : (1 << 2); in set_rcvn() 189 temp |= msk; in set_rcvn() 192 msk |= (byte_lane & 1) ? (1 << 11) : (1 << 8); in set_rcvn() 194 temp |= msk; in set_rcvn() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A 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()
|
/openbmc/qemu/host/include/generic/host/ |
H A D | store-insert-al16.h.inc | 15 * @msk: mask for value to store 17 * Atomically store @val to @p masked by @msk. 20 store_atom_insert_al16(Int128 *ps, Int128 val, Int128 msk) 29 msk = int128_not(msk); 31 new.s = int128_and(old.s, msk); 40 msk = int128_not(msk); 43 new = int128_and(old, msk);
|
/openbmc/linux/net/mctp/ |
H A 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 …]
|
H A 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 …]
|
/openbmc/qemu/hw/sd/ |
H A D | sdhci.c | 76 uint64_t msk = s->capareg; in sdhci_check_capareg() local 84 msk = FIELD_DP64(msk, SDHC_CAPAB, BUS64BIT_V4, 0); in sdhci_check_capareg() 88 msk = FIELD_DP64(msk, SDHC_CAPAB, UHS_II, 0); in sdhci_check_capareg() 92 msk = FIELD_DP64(msk, SDHC_CAPAB, ADMA3, 0); in sdhci_check_capareg() 98 msk = FIELD_DP64(msk, SDHC_CAPAB, ASYNC_INT, 0); in sdhci_check_capareg() 106 msk = FIELD_DP64(msk, SDHC_CAPAB, SLOT_TYPE, 0); in sdhci_check_capareg() 112 msk = FIELD_DP64(msk, SDHC_CAPAB, EMBEDDED_8BIT, 0); in sdhci_check_capareg() 116 msk = FIELD_DP64(msk, SDHC_CAPAB, BUS_SPEED, 0); in sdhci_check_capareg() 120 msk = FIELD_DP64(msk, SDHC_CAPAB, DRIVER_STRENGTH, 0); in sdhci_check_capareg() 124 msk = FIELD_DP64(msk, SDHC_CAPAB, TIMER_RETUNING, 0); in sdhci_check_capareg() [all …]
|
/openbmc/linux/kernel/irq/ |
H A 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 …]
|
/openbmc/linux/drivers/clk/sprd/ |
H A 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 …]
|
/openbmc/u-boot/arch/m68k/cpu/mcf5227x/ |
H A D | cpu.c | 34 u16 msk; in print_cpuinfo() local 39 msk = (in_be16(&ccm->cir) >> 6); in print_cpuinfo() 41 switch (msk) { in print_cpuinfo() 50 printf("Freescale MCF%d (Mask:%01x Version:%x)\n", id, msk, in print_cpuinfo()
|