/openbmc/openbmc-tools/sensor_yaml_config/ |
H A D | sensor_map.yaml | 1 ? !!python/tuple 3 - !!python/tuple [org.open_power.OCC.Status] 5 ? !!python/tuple 7 - !!python/tuple [org.open_power.OCC.Status] 9 ? !!python/tuple 11 - !!python/tuple [xyz.openbmc_project.Object.Enable] 13 ? !!python/tuple 15 - !!python/tuple [ 20 ? !!python/tuple 22 - !!python/tuple [ [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_sk_lookup_kern.c | 20 /* Fill 'tuple' with L3 info, and attempt to find L4. On fail, return NULL. */ 61 struct bpf_sock_tuple *tuple; in sk_lookup_success() local 69 tuple = get_tuple(data, sizeof(*eth), data_end, eth->h_proto, &ipv4); in sk_lookup_success() 70 if (!tuple || tuple + sizeof *tuple > data_end) in sk_lookup_success() 73 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in sk_lookup_success() 74 sk = bpf_sk_lookup_tcp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in sk_lookup_success() 84 struct bpf_sock_tuple tuple = {}; in sk_lookup_success_simple() local 87 sk = bpf_sk_lookup_tcp(skb, &tuple, sizeof(tuple), BPF_F_CURRENT_NETNS, 0); in sk_lookup_success_simple() 96 struct bpf_sock_tuple tuple = {}; in err_use_after_free() local 100 sk = bpf_sk_lookup_tcp(skb, &tuple, sizeof(tuple), BPF_F_CURRENT_NETNS, 0); in err_use_after_free() [all …]
|
H A D | connect6_prog.c | 30 struct bpf_sock_tuple tuple = {}; in connect_v6_prog() local 35 memset(&tuple.ipv6.saddr, 0, sizeof(tuple.ipv6.saddr)); in connect_v6_prog() 36 memset(&tuple.ipv6.sport, 0, sizeof(tuple.ipv6.sport)); in connect_v6_prog() 38 tuple.ipv6.daddr[0] = bpf_htonl(DST_REWRITE_IP6_0); in connect_v6_prog() 39 tuple.ipv6.daddr[1] = bpf_htonl(DST_REWRITE_IP6_1); in connect_v6_prog() 40 tuple.ipv6.daddr[2] = bpf_htonl(DST_REWRITE_IP6_2); in connect_v6_prog() 41 tuple.ipv6.daddr[3] = bpf_htonl(DST_REWRITE_IP6_3); in connect_v6_prog() 43 tuple.ipv6.dport = bpf_htons(DST_REWRITE_PORT6); in connect_v6_prog() 48 sk = bpf_sk_lookup_tcp(ctx, &tuple, sizeof(tuple.ipv6), in connect_v6_prog() 51 sk = bpf_sk_lookup_udp(ctx, &tuple, sizeof(tuple.ipv6), in connect_v6_prog() [all …]
|
H A D | test_sk_assign.c | 53 /* Fill 'tuple' with L3 info, and attempt to find L4. On fail, return NULL. */ 102 handle_udp(struct __sk_buff *skb, struct bpf_sock_tuple *tuple, bool ipv4) in handle_udp() argument 110 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in handle_udp() 111 if ((void *)tuple + tuple_len > (void *)(long)skb->data_end) in handle_udp() 114 sk = bpf_sk_lookup_udp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in handle_udp() 118 dport = ipv4 ? tuple->ipv4.dport : tuple->ipv6.dport; in handle_udp() 133 handle_tcp(struct __sk_buff *skb, struct bpf_sock_tuple *tuple, bool ipv4) in handle_tcp() argument 141 tuple_len = ipv4 ? sizeof(tuple->ipv4) : sizeof(tuple->ipv6); in handle_tcp() 142 if ((void *)tuple + tuple_len > (void *)(long)skb->data_end) in handle_tcp() 145 sk = bpf_skc_lookup_tcp(skb, tuple, tuple_len, BPF_F_CURRENT_NETNS, 0); in handle_tcp() [all …]
|
/openbmc/linux/drivers/pcmcia/ |
H A D | cistpl.c | 432 /* The high-level CIS tuple services */ 447 tuple_t *tuple) in pccard_get_first_tuple() argument 454 tuple->TupleLink = tuple->Flags = 0; in pccard_get_first_tuple() 457 tuple->CISOffset = tuple->LinkOffset = 0; in pccard_get_first_tuple() 458 SPACE(tuple->Flags) = HAS_LINK(tuple->Flags) = 1; in pccard_get_first_tuple() 460 if ((s->functions > 1) && !(tuple->Attributes & TUPLE_RETURN_COMMON)) { in pccard_get_first_tuple() 461 cisdata_t req = tuple->DesiredTuple; in pccard_get_first_tuple() 462 tuple->DesiredTuple = CISTPL_LONGLINK_MFC; in pccard_get_first_tuple() 463 if (pccard_get_next_tuple(s, function, tuple) == 0) { in pccard_get_first_tuple() 464 tuple->DesiredTuple = CISTPL_LINKTARGET; in pccard_get_first_tuple() [all …]
|
H A D | pcmcia_cis.c | 27 * pccard_read_tuple() - internal CIS tuple access 31 * @parse: buffer where the tuple shall be parsed (or NULL, if no parse) 33 * pccard_read_tuple() reads out one tuple and attempts to parse it 38 tuple_t tuple; in pccard_read_tuple() local 44 dev_warn(&s->dev, "no memory to read tuple\n"); in pccard_read_tuple() 47 tuple.DesiredTuple = code; in pccard_read_tuple() 48 tuple.Attributes = 0; in pccard_read_tuple() 50 tuple.Attributes = TUPLE_RETURN_COMMON; in pccard_read_tuple() 51 ret = pccard_get_first_tuple(s, function, &tuple); in pccard_read_tuple() 54 tuple.TupleData = buf; in pccard_read_tuple() [all …]
|
/openbmc/sdbusplus/include/sdbusplus/utility/ |
H A D | tuple_to_array.hpp | 4 #include <tuple> 16 /** tuple_to_array - Create std::array from std::tuple. 18 * @tparam V - Type of the first tuple element. 21 * @tparam I - Sequence of integral indexes (0...N) for each tuple elemeent. 23 * @param tuple - Tuple of N same-typed elements. 24 * @param @exclude [unnamed] - std::integer_sequence of tuple's index values. 26 * @return A std::array where each I-th element is tuple's I-th element. 29 constexpr auto tuple_to_array(std::tuple<V, Types...>&& tuple, in tuple_to_array() argument 33 std::get<I>(tuple)..., in tuple_to_array() 39 /** tuple_to_array - Create std::array from std::tuple. [all …]
|
/openbmc/linux/net/netfilter/ |
H A D | nf_flow_table_ip.c | 85 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_v4.s_addr; in nf_flow_snat_ip() 90 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.src_v4.s_addr; in nf_flow_snat_ip() 108 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.src_v4.s_addr; in nf_flow_dnat_ip() 113 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.dst_v4.s_addr; in nf_flow_dnat_ip() 142 struct flow_offload_tuple *tuple) in nf_flow_tuple_encap() argument 149 tuple->encap[i].id = skb_vlan_tag_get(skb); in nf_flow_tuple_encap() 150 tuple->encap[i].proto = skb->vlan_proto; in nf_flow_tuple_encap() 156 tuple->encap[i].id = ntohs(veth->h_vlan_TCI); in nf_flow_tuple_encap() 157 tuple->encap[i].proto = skb->protocol; in nf_flow_tuple_encap() 161 tuple->encap[i].id = ntohs(phdr->sid); in nf_flow_tuple_encap() [all …]
|
H A D | nf_nat_sip.c | 107 if (nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.src.u3, addr) && in map_addr() 108 ct->tuplehash[dir].tuple.src.u.udp.port == port) { in map_addr() 109 newaddr = ct->tuplehash[!dir].tuple.dst.u3; in map_addr() 110 newport = ct->tuplehash[!dir].tuple.dst.u.udp.port; in map_addr() 111 } else if (nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.dst.u3, addr) && in map_addr() 112 ct->tuplehash[dir].tuple.dst.u.udp.port == port) { in map_addr() 113 newaddr = ct->tuplehash[!dir].tuple.src.u3; in map_addr() 115 ct->tuplehash[!dir].tuple.src.u.udp.port; in map_addr() 189 &ct->tuplehash[dir].tuple.src.u3) || in nf_nat_sip() 190 port != ct->tuplehash[dir].tuple.src.u.udp.port) in nf_nat_sip() [all …]
|
H A D | nf_nat_core.c | 64 const struct nf_conntrack_tuple *t = &ct->tuplehash[dir].tuple; in nf_nat_ipv4_decode_session() 97 const struct nf_conntrack_tuple *t = &ct->tuplehash[dir].tuple; in nf_nat_ipv6_decode_session() 158 const struct nf_conntrack_tuple *tuple) in hash_by_src() argument 173 combined.src = tuple->src; in hash_by_src() 175 combined.protonum = tuple->dst.protonum; in hash_by_src() 187 * nf_nat_used_tuple - check if proposed nat tuple clashes with existing entry 188 * @tuple: proposed NAT binding 192 * if there is no existing entry with an identical tuple in either direction. 211 * the existing and the newly added entry (identical IP_CT_DIR_REPLY tuple). 216 nf_nat_used_tuple(const struct nf_conntrack_tuple *tuple, in nf_nat_used_tuple() argument [all …]
|
H A D | nf_nat_proto.c | 41 const struct nf_conntrack_tuple *tuple, in __udp_manip_pkt() argument 48 newport = tuple->src.u.udp.port; in __udp_manip_pkt() 52 newport = tuple->dst.u.udp.port; in __udp_manip_pkt() 56 nf_csum_update(skb, iphdroff, &hdr->check, tuple, maniptype); in __udp_manip_pkt() 67 const struct nf_conntrack_tuple *tuple, in udp_manip_pkt() argument 76 __udp_manip_pkt(skb, iphdroff, hdr, tuple, maniptype, !!hdr->check); in udp_manip_pkt() 83 const struct nf_conntrack_tuple *tuple, in udplite_manip_pkt() argument 93 __udp_manip_pkt(skb, iphdroff, hdr, tuple, maniptype, true); in udplite_manip_pkt() 101 const struct nf_conntrack_tuple *tuple, in sctp_manip_pkt() argument 122 hdr->source = tuple->src.u.sctp.port; in sctp_manip_pkt() [all …]
|
H A D | nf_flow_table_offload.c | 91 const struct flow_offload_tuple *tuple, in nf_flow_rule_match() argument 112 if (tuple->xmit_type == FLOW_OFFLOAD_XMIT_TC) in nf_flow_rule_match() 113 key->meta.ingress_ifindex = tuple->tc.iifidx; in nf_flow_rule_match() 115 key->meta.ingress_ifindex = tuple->iifidx; in nf_flow_rule_match() 119 if (tuple->encap_num > 0 && !(tuple->in_vlan_ingress & BIT(0)) && in nf_flow_rule_match() 120 tuple->encap[0].proto == htons(ETH_P_8021Q)) { in nf_flow_rule_match() 123 tuple->encap[0].id, in nf_flow_rule_match() 124 tuple->encap[0].proto); in nf_flow_rule_match() 128 if (tuple->encap_num > 1 && !(tuple->in_vlan_ingress & BIT(1)) && in nf_flow_rule_match() 129 tuple->encap[1].proto == htons(ETH_P_8021Q)) { in nf_flow_rule_match() [all …]
|
H A D | nf_conntrack_expect.c | 82 …tic unsigned int nf_ct_expect_dst_hash(const struct net *n, const struct nf_conntrack_tuple *tuple) in nf_ct_expect_dst_hash() argument 97 combined.dst_addr = tuple->dst.u3; in nf_ct_expect_dst_hash() 99 combined.dport = (__force __u16)tuple->dst.u.all; in nf_ct_expect_dst_hash() 100 combined.l3num = tuple->src.l3num; in nf_ct_expect_dst_hash() 101 combined.protonum = tuple->dst.protonum; in nf_ct_expect_dst_hash() 109 nf_ct_exp_equal(const struct nf_conntrack_tuple *tuple, in nf_ct_exp_equal() argument 114 return nf_ct_tuple_mask_cmp(tuple, &i->tuple, &i->mask) && in nf_ct_exp_equal() 133 const struct nf_conntrack_tuple *tuple) in __nf_ct_expect_find() argument 142 h = nf_ct_expect_dst_hash(net, tuple); in __nf_ct_expect_find() 144 if (nf_ct_exp_equal(tuple, i, zone, net)) in __nf_ct_expect_find() [all …]
|
H A D | nf_conntrack_bpf.c | 38 * -ENOENT - Conntrack lookup could not find entry for tuple 39 * -EAFNOSUPPORT - tuple__sz isn't one of sizeof(tuple->ipv4) 40 * or sizeof(tuple->ipv6) 44 * @dir: - connection tracking tuple direction. 63 struct nf_conntrack_tuple *tuple) in bpf_nf_ct_tuple_parse() argument 65 union nf_inet_addr *src = dir ? &tuple->dst.u3 : &tuple->src.u3; in bpf_nf_ct_tuple_parse() 66 union nf_inet_addr *dst = dir ? &tuple->src.u3 : &tuple->dst.u3; in bpf_nf_ct_tuple_parse() 67 union nf_conntrack_man_proto *sport = dir ? (void *)&tuple->dst.u in bpf_nf_ct_tuple_parse() 68 : &tuple->src.u; in bpf_nf_ct_tuple_parse() 69 union nf_conntrack_man_proto *dport = dir ? &tuple->src.u in bpf_nf_ct_tuple_parse() [all …]
|
/openbmc/phosphor-host-ipmid/include/ipmid/ |
H A D | utility.hpp | 24 #include <tuple> 42 * @brief a utility template to extract the args after N from a tuple 44 * Given a tuple of type <T1, ...TN, TN+1, ...>, provide type = tuple<TN+1,...> 50 struct StripFirstArgs<N, std::tuple<FirstArg, Rest...>> : 51 StripFirstArgs<N - 1, std::tuple<Rest...>> 55 struct StripFirstArgs<0, std::tuple<FirstArg, Rest...>> 57 using type = std::tuple<FirstArg, Rest...>; 60 struct StripFirstArgs<N, std::tuple<>> 62 using type = std::tuple<>; 66 * @brief a utility template to extract the remaining args from a tuple [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/libcereal/files/ |
H A D | 0001-Fix-instances-of-Wmissing-template-arg-list-after-te.patch | 17 include/cereal/types/tuple.hpp | 4 ++-- 20 diff --git a/include/cereal/types/tuple.hpp b/include/cereal/types/tuple.hpp 22 --- a/include/cereal/types/tuple.hpp 23 +++ b/include/cereal/types/tuple.hpp 26 static void apply( Archive & ar, std::tuple<Types...> & tuple ) 28 - serialize<Height - 1>::template apply( ar, tuple ); 29 + serialize<Height - 1>::apply( ar, tuple ); 31 std::get<Height - 1>( tuple )) ); 35 void CEREAL_SERIALIZE_FUNCTION_NAME( Archive & ar, std::tuple<Types...> & tuple ) 37 - tuple_detail::serialize<std::tuple_size<std::tuple<Types...>>::value>::template apply( ar, tup… [all …]
|
/openbmc/sdbusplus/include/sdbusplus/message/ |
H A D | append.hpp | 13 #include <tuple> 90 // std::tuple needs to be broken down into components. 92 struct can_append_multiple<std::tuple<Args...>> : std::false_type 306 struct append_single<std::tuple<Args...>> 363 std::tuple<Fields...> field_tuple) in op() 378 std::tuple<Fields...> field_tuple) in op() 384 /** @brief Append a tuple of 2 or more entries into the sd_bus_message. 386 * @tparam Tuple - The tuple type to append. 387 * @param[in] t - The tuple to append. 389 * A tuple of 2 or more entries can be added as a set with [all …]
|
H A D | read.hpp | 11 #include <tuple> 93 // std::tuple needs to be broken down into components. 95 struct can_read_multiple<std::tuple<Args...>> : std::false_type 317 "sd_bus_message_enter_container tuple"); in op() 328 "sd_bus_message_exit_container tuple"); in op() 442 std::tuple<Fields...> field_tuple) in op() 455 /** @brief Read a tuple from the sd_bus_message. 457 * @tparam Tuple - The tuple type to read. 458 * @param[out] t - The tuple to read into. 460 * A tuple of 2 or more entries can be read as a set with [all …]
|
/openbmc/linux/drivers/ssb/ |
H A D | sdio.c | 477 struct sdio_func_tuple *tuple; in ssb_sdio_get_invariants() local 484 tuple = bus->host_sdio->tuples; in ssb_sdio_get_invariants() 485 while (tuple) { in ssb_sdio_get_invariants() 486 switch (tuple->code) { in ssb_sdio_get_invariants() 488 switch (tuple->data[0]) { in ssb_sdio_get_invariants() 490 GOTO_ERROR_ON((tuple->size != 7) && in ssb_sdio_get_invariants() 491 (tuple->data[1] != 6), in ssb_sdio_get_invariants() 494 mac = tuple->data + 2; in ssb_sdio_get_invariants() 502 case 0x80: /* vendor specific tuple */ in ssb_sdio_get_invariants() 503 switch (tuple->data[0]) { in ssb_sdio_get_invariants() [all …]
|
H A D | pcmcia.c | 597 tuple_t *tuple, in ssb_pcmcia_get_mac() argument 602 if (tuple->TupleData[0] != CISTPL_FUNCE_LAN_NODE_ID) in ssb_pcmcia_get_mac() 604 if (tuple->TupleDataLen != ETH_ALEN + 2) in ssb_pcmcia_get_mac() 606 if (tuple->TupleData[1] != ETH_ALEN) in ssb_pcmcia_get_mac() 608 memcpy(sprom->il0mac, &tuple->TupleData[2], ETH_ALEN); in ssb_pcmcia_get_mac() 613 tuple_t *tuple, in ssb_pcmcia_do_get_invariants() argument 621 GOTO_ERROR_ON(tuple->TupleDataLen < 1, "VEN tpl < 1"); in ssb_pcmcia_do_get_invariants() 622 switch (tuple->TupleData[0]) { in ssb_pcmcia_do_get_invariants() 624 GOTO_ERROR_ON((tuple->TupleDataLen != 5) && in ssb_pcmcia_do_get_invariants() 625 (tuple->TupleDataLen != 7), in ssb_pcmcia_do_get_invariants() [all …]
|
/openbmc/linux/kernel/bpf/ |
H A D | mprog.c | 7 static int bpf_mprog_link(struct bpf_tuple *tuple, in bpf_mprog_link() argument 25 tuple->link = link; in bpf_mprog_link() 26 tuple->prog = link->prog; in bpf_mprog_link() 30 static int bpf_mprog_prog(struct bpf_tuple *tuple, in bpf_mprog_prog() argument 48 tuple->link = NULL; in bpf_mprog_prog() 49 tuple->prog = prog; in bpf_mprog_prog() 53 static int bpf_mprog_tuple_relative(struct bpf_tuple *tuple, in bpf_mprog_tuple_relative() argument 60 memset(tuple, 0, sizeof(*tuple)); in bpf_mprog_tuple_relative() 62 return bpf_mprog_link(tuple, id_or_fd, flags, type); in bpf_mprog_tuple_relative() 64 * tuple link/prog is just NULLed. This is the case when before/ in bpf_mprog_tuple_relative() [all …]
|
/openbmc/linux/net/ipv4/netfilter/ |
H A D | nf_nat_h323.c | 105 if (addr.ip == ct->tuplehash[dir].tuple.src.u3.ip && in set_sig_addr() 118 &ct->tuplehash[!dir].tuple.dst.u3.ip, in set_sig_addr() 123 tuple.dst.u3, in set_sig_addr() 125 } else if (addr.ip == ct->tuplehash[dir].tuple.dst.u3.ip && in set_sig_addr() 130 &ct->tuplehash[!dir].tuple.src.u3.ip, in set_sig_addr() 135 tuple.src.u3, in set_sig_addr() 157 addr.ip == ct->tuplehash[dir].tuple.src.u3.ip && in set_ras_addr() 158 port == ct->tuplehash[dir].tuple.src.u.udp.port) { in set_ras_addr() 161 &ct->tuplehash[!dir].tuple.dst.u3.ip, in set_ras_addr() 162 ntohs(ct->tuplehash[!dir].tuple.dst.u.udp.port)); in set_ras_addr() [all …]
|
/openbmc/openpower-vpd-parser/vpd-tool/include/ |
H A D | tool_types.hpp | 6 #include <tuple> 19 std::vector<std::tuple<std::string, std::string, std::string>>, 36 std::tuple<uint64_t, std::vector<std::tuple<std::string, std::string, double, uint64_t>>>, 37 std::vector<std::tuple<std::string, std::string>>, 38 std::vector<std::tuple<uint32_t, std::vector<uint32_t>>>, 39 std::vector<std::tuple<uint32_t, size_t>>, 40 std::vector<std::tuple<sdbusplus::message::object_path, std::string, 44 //IpzType contains tuple of <Record, Keyword> 45 using IpzType = std::tuple<std::string, std::string>; 50 //KwData contains tuple of <keywordName, KeywordValue> [all …]
|
/openbmc/linux/net/netfilter/ipvs/ |
H A D | ip_vs_nfct.c | 100 * CIP->VIP will remain the same, so leave the tuple in in ip_vs_update_conntrack() 104 new_tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ip_vs_update_conntrack() 122 ARG_TUPLE(&ct->tuplehash[IP_CT_DIR_REPLY].tuple)); in ip_vs_update_conntrack() 157 orig = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ip_vs_nfct_expect_callback() 158 ip_vs_conn_fill_param(net_ipvs(net), exp->tuple.src.l3num, orig->dst.protonum, in ip_vs_nfct_expect_callback() 167 new_reply = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ip_vs_nfct_expect_callback() 168 IP_VS_DBG_BUF(7, "%s: ct=%p before alter: reply tuple=" in ip_vs_nfct_expect_callback() 183 new_reply = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ip_vs_nfct_expect_callback() 184 IP_VS_DBG_BUF(7, "%s: ct=%p before alter: reply tuple=" in ip_vs_nfct_expect_callback() 192 IP_VS_DBG_BUF(7, "%s: ct=%p, status=0x%lX, tuple=" FMT_TUPLE in ip_vs_nfct_expect_callback() [all …]
|
/openbmc/phosphor-fan-presence/control/ |
H A D | types.hpp | 7 #include <tuple> 26 std::tuple<std::string, std::string, std::string, bool>; 30 using Condition = std::tuple<std::string, std::vector<ConditionProperty>>; 40 std::tuple<std::string, std::vector<std::string>, std::string, std::string>; 45 using Group = std::vector<std::tuple<std::string, std::string, std::string>>; 56 using ActionData = std::vector<std::tuple<Group, std::vector<Action>>>; 63 std::tuple<std::string, std::string, std::string, PropertyVariantType>; 67 using Service = std::tuple<std::string, bool>; 76 using TimerConf = std::tuple<std::chrono::microseconds, TimerType>; 85 std::tuple<std::string, Group, ActionData, std::vector<Trigger>>; [all …]
|