Home
last modified time | relevance | path

Searched refs:tuple (Results 1 – 25 of 90) sorted by relevance

1234

/linux/tools/testing/selftests/bpf/progs/
H A Dtest_sk_lookup_kern.c61 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()
111 struct bpf_sock_tuple tuple = {}; in err_modify_sk_pointer() local
[all …]
H A Dconnect6_prog.c30 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 Dxdp_flowtable.c74 struct bpf_fib_lookup tuple = { in xdp_flowtable_do_lookup()
101 tuple.family = AF_INET; in xdp_flowtable_do_lookup()
102 tuple.tos = iph->tos; in xdp_flowtable_do_lookup()
103 tuple.l4_protocol = iph->protocol; in xdp_flowtable_do_lookup()
104 tuple.tot_len = bpf_ntohs(iph->tot_len); in xdp_flowtable_do_lookup()
105 tuple.ipv4_src = iph->saddr; in xdp_flowtable_do_lookup()
106 tuple.ipv4_dst = iph->daddr; in xdp_flowtable_do_lookup()
107 tuple.sport = ports->source; in xdp_flowtable_do_lookup()
108 tuple.dport = ports->dest; in xdp_flowtable_do_lookup()
112 struct in6_addr *src = (struct in6_addr *)tuple in xdp_flowtable_do_lookup()
71 struct bpf_fib_lookup tuple = { xdp_flowtable_do_lookup() local
[all...]
H A Dtest_sk_assign.c102 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()
152 dport = ipv4 ? tuple->ipv4.dport : tuple->ipv6.dport; in handle_tcp()
[all …]
H A Dcgroup_skb_sk_lookup_kern.c29 static inline void set_tuple(struct bpf_sock_tuple *tuple, in set_tuple() argument
33 set_ip(tuple->ipv6.saddr, &ip6h->daddr); in set_tuple()
34 set_ip(tuple->ipv6.daddr, &ip6h->saddr); in set_tuple()
35 tuple->ipv6.sport = tcph->dest; in set_tuple()
36 tuple->ipv6.dport = tcph->source; in set_tuple()
44 struct bpf_sock_tuple tuple; in is_allowed_peer_cg() local
45 size_t tuple_len = sizeof(tuple.ipv6); in is_allowed_peer_cg()
48 set_tuple(&tuple, ip6h, tcph); in is_allowed_peer_cg()
50 peer_sk = bpf_sk_lookup_tcp(skb, &tuple, tuple_len, in is_allowed_peer_cg()
H A Dconnect4_prog.c146 struct bpf_sock_tuple tuple = {}; in set_notsent_lowat()
150 memset(&tuple.ipv4.saddr, 0, sizeof(tuple.ipv4.saddr)); in connect_v4_prog()
151 memset(&tuple.ipv4.sport, 0, sizeof(tuple.ipv4.sport)); in connect_v4_prog() local
153 tuple.ipv4.daddr = bpf_htonl(DST_REWRITE_IP4); in connect_v4_prog()
154 tuple.ipv4.dport = bpf_htons(DST_REWRITE_PORT4); in connect_v4_prog()
169 sk = bpf_sk_lookup_tcp(ctx, &tuple, sizeof(tuple.ipv4), in connect_v4_prog()
172 sk = bpf_sk_lookup_udp(ctx, &tuple, sizeo in connect_v4_prog()
[all...]
H A Dtest_cls_redirect.c619 static INLINING uint64_t fill_tuple(struct bpf_sock_tuple *tuple, void *iph,
625 tuple->ipv4.daddr = ipv4->daddr; in fill_tuple()
626 tuple->ipv4.saddr = ipv4->saddr; in fill_tuple()
627 tuple->ipv4.sport = sport; in fill_tuple()
628 tuple->ipv4.dport = dport; in fill_tuple()
629 return sizeof(tuple->ipv4); in fill_tuple()
634 memcpy(&tuple->ipv6.daddr, &ipv6->daddr, in fill_tuple()
635 sizeof(tuple->ipv6.daddr)); in fill_tuple()
636 memcpy(&tuple->ipv6.saddr, &ipv6->saddr, in fill_tuple()
637 sizeof(tuple in fill_tuple()
621 fill_tuple(struct bpf_sock_tuple * tuple,void * iph,uint64_t iphlen,uint16_t sport,uint16_t dport) fill_tuple() argument
651 classify_tcp(struct __sk_buff * skb,struct bpf_sock_tuple * tuple,uint64_t tuplen,void * iph,struct tcphdr * tcp) classify_tcp() argument
684 classify_udp(struct __sk_buff * skb,struct bpf_sock_tuple * tuple,uint64_t tuplen) classify_udp() argument
702 classify_icmp(struct __sk_buff * skb,uint8_t proto,struct bpf_sock_tuple * tuple,uint64_t tuplen,metrics_t * metrics) classify_icmp() argument
752 struct bpf_sock_tuple tuple; process_icmpv4() local
804 struct bpf_sock_tuple tuple; process_icmpv6() local
833 struct bpf_sock_tuple tuple; process_tcp() local
851 struct bpf_sock_tuple tuple; process_udp() local
[all...]
H A Dtest_cls_redirect_dynptr.c511 static uint64_t fill_tuple(struct bpf_sock_tuple *tuple, void *iph, in fill_tuple() argument
517 tuple->ipv4.daddr = ipv4->daddr; in fill_tuple()
518 tuple->ipv4.saddr = ipv4->saddr; in fill_tuple()
519 tuple->ipv4.sport = sport; in fill_tuple()
520 tuple->ipv4.dport = dport; in fill_tuple()
521 return sizeof(tuple->ipv4); in fill_tuple()
526 memcpy(&tuple->ipv6.daddr, &ipv6->daddr, in fill_tuple()
527 sizeof(tuple->ipv6.daddr)); in fill_tuple()
528 memcpy(&tuple->ipv6.saddr, &ipv6->saddr, in fill_tuple()
529 sizeof(tuple in fill_tuple()
540 classify_tcp(struct __sk_buff * skb,struct bpf_sock_tuple * tuple,uint64_t tuplen,void * iph,struct tcphdr * tcp) classify_tcp() argument
572 classify_udp(struct __sk_buff * skb,struct bpf_sock_tuple * tuple,uint64_t tuplen) classify_udp() argument
589 classify_icmp(struct __sk_buff * skb,uint8_t proto,struct bpf_sock_tuple * tuple,uint64_t tuplen,metrics_t * metrics) classify_icmp() argument
641 struct bpf_sock_tuple tuple; process_icmpv4() local
657 struct bpf_sock_tuple tuple; process_icmpv6() local
709 struct bpf_sock_tuple tuple; process_tcp() local
732 struct bpf_sock_tuple tuple; process_udp() local
[all...]
/linux/drivers/pcmcia/
H A Dcistpl.c447 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()
465 if (pccard_get_next_tuple(s, function, tuple) != 0) in pccard_get_first_tuple()
[all …]
H A Dpcmcia_cis.c38 tuple_t tuple; in pccard_read_tuple() local
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()
55 tuple.TupleOffset = 0; in pccard_read_tuple()
56 tuple.TupleDataMax = 255; in pccard_read_tuple()
57 ret = pccard_get_tuple_data(s, &tuple); in pccard_read_tuple()
60 ret = pcmcia_parse_tuple(&tuple, parse); in pccard_read_tuple()
[all …]
/linux/drivers/ssb/
H A Dsdio.c477 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()
503 switch (tuple->data[0]) { in ssb_sdio_get_invariants()
505 GOTO_ERROR_ON(tuple->size != 2, in ssb_sdio_get_invariants()
[all …]
H A Dpcmcia.c597 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 …]
/linux/kernel/bpf/
H A Dmprog.c7 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()
69 return bpf_mprog_prog(tuple, id_or_fd, flags, type); in bpf_mprog_tuple_relative()
[all …]
/linux/net/netfilter/
H A Dxt_conntrack.c44 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3, in conntrack_mt_origsrc()
53 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u3, in conntrack_mt_origdst()
62 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.u3, in conntrack_mt_replsrc()
71 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u3, in conntrack_mt_repldst()
79 const struct nf_conntrack_tuple *tuple; in ct_proto_port_check() local
81 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ct_proto_port_check()
89 (tuple->src.u.all == info->origsrc_port) ^ in ct_proto_port_check()
94 (tuple->dst.u.all == info->origdst_port) ^ in ct_proto_port_check()
98 tuple = &ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ct_proto_port_check()
101 (tuple->src.u.all == info->replsrc_port) ^ in ct_proto_port_check()
[all …]
H A Dnf_conntrack_expect.c90 …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
105 combined.dst_addr = tuple->dst.u3; in nf_ct_expect_dst_hash()
107 combined.dport = (__force __u16)tuple->dst.u.all; in nf_ct_expect_dst_hash()
108 combined.l3num = tuple->src.l3num; in nf_ct_expect_dst_hash()
109 combined.protonum = tuple->dst.protonum; in nf_ct_expect_dst_hash()
117 nf_ct_exp_equal(const struct nf_conntrack_tuple *tuple, in nf_ct_exp_equal() argument
122 return nf_ct_tuple_mask_cmp(tuple, &i->tuple, &i->mask) && in nf_ct_exp_equal()
130 const struct nf_conntrack_tuple *tuple) in __nf_ct_expect_find() argument
139 h = nf_ct_expect_dst_hash(net, tuple); in __nf_ct_expect_find()
143 if (nf_ct_exp_equal(tuple, i, zone, net)) in __nf_ct_expect_find()
[all …]
H A Dnf_flow_table_offload.c95 const struct flow_offload_tuple *tuple, in nf_flow_rule_match() argument
116 if (tuple->xmit_type == FLOW_OFFLOAD_XMIT_TC) in nf_flow_rule_match()
117 key->meta.ingress_ifindex = tuple->tc.iifidx; in nf_flow_rule_match()
119 key->meta.ingress_ifindex = tuple->iifidx; in nf_flow_rule_match()
123 if (tuple->encap_num > 0 && !(tuple->in_vlan_ingress & BIT(0)) && in nf_flow_rule_match()
124 tuple->encap[0].proto == htons(ETH_P_8021Q)) { in nf_flow_rule_match()
127 tuple->encap[0].id, in nf_flow_rule_match()
128 tuple->encap[0].proto); in nf_flow_rule_match()
132 if (tuple->encap_num > 1 && !(tuple->in_vlan_ingress & BIT(1)) && in nf_flow_rule_match()
133 tuple->encap[1].proto == htons(ETH_P_8021Q)) { in nf_flow_rule_match()
[all …]
H A Dnfnetlink_cthelper.c75 nfnl_cthelper_parse_tuple(struct nf_conntrack_tuple *tuple, in nfnl_cthelper_parse_tuple() argument
90 memset(tuple, 0, sizeof(struct nf_conntrack_tuple)); in nfnl_cthelper_parse_tuple()
92 tuple->src.l3num = ntohs(nla_get_be16(tb[NFCTH_TUPLE_L3PROTONUM])); in nfnl_cthelper_parse_tuple()
93 tuple->dst.protonum = nla_get_u8(tb[NFCTH_TUPLE_L4PROTONUM]); in nfnl_cthelper_parse_tuple()
223 struct nf_conntrack_tuple *tuple) in nfnl_cthelper_create() argument
259 memcpy(&helper->tuple, tuple, sizeof(struct nf_conntrack_tuple)); in nfnl_cthelper_create()
432 struct nf_conntrack_tuple tuple; in nfnl_cthelper_new() local
444 ret = nfnl_cthelper_parse_tuple(&tuple, tb[NFCTH_TUPLE]); in nfnl_cthelper_new()
454 if ((tuple.src.l3num != cur->tuple.src.l3num || in nfnl_cthelper_new()
455 tuple.dst.protonum != cur->tuple.dst.protonum)) in nfnl_cthelper_new()
[all …]
H A Dnf_conntrack_netlink.c68 const struct nf_conntrack_tuple *tuple, in ctnetlink_dump_tuples_proto() argument
77 if (nla_put_u8(skb, CTA_PROTO_NUM, tuple->dst.protonum)) in ctnetlink_dump_tuples_proto()
81 ret = l4proto->tuple_to_nlattr(skb, tuple); in ctnetlink_dump_tuples_proto()
92 const struct nf_conntrack_tuple *tuple) in ipv4_tuple_to_nlattr() argument
94 if (nla_put_in_addr(skb, CTA_IP_V4_SRC, tuple->src.u3.ip) || in ipv4_tuple_to_nlattr()
95 nla_put_in_addr(skb, CTA_IP_V4_DST, tuple->dst.u3.ip)) in ipv4_tuple_to_nlattr()
101 const struct nf_conntrack_tuple *tuple) in ipv6_tuple_to_nlattr() argument
103 if (nla_put_in6_addr(skb, CTA_IP_V6_SRC, &tuple->src.u3.in6) || in ipv6_tuple_to_nlattr()
104 nla_put_in6_addr(skb, CTA_IP_V6_DST, &tuple->dst.u3.in6)) in ipv6_tuple_to_nlattr()
110 const struct nf_conntrack_tuple *tuple) in ctnetlink_dump_tuples_ip() argument
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_arfs.c95 struct arfs_tuple tuple; member
516 struct arfs_tuple *tuple = &arfs_rule->tuple; in arfs_add_rule() local
535 ntohs(tuple->etype)); in arfs_add_rule()
536 arfs_table = arfs_get_table(arfs, tuple->ip_proto, tuple->etype); in arfs_add_rule()
539 tuple->etype, tuple->ip_proto); in arfs_add_rule()
545 if (tuple->ip_proto == IPPROTO_TCP) { in arfs_add_rule()
551 ntohs(tuple->dst_port)); in arfs_add_rule()
553 ntohs(tuple->src_port)); in arfs_add_rule()
560 ntohs(tuple->dst_port)); in arfs_add_rule()
562 ntohs(tuple->src_port)); in arfs_add_rule()
[all …]
/linux/drivers/net/wireless/broadcom/b43/
H A Dsdio.c96 struct sdio_func_tuple *tuple; in b43_sdio_probe() local
101 tuple = func->tuples; in b43_sdio_probe()
102 while (tuple) { in b43_sdio_probe()
103 switch (tuple->code) { in b43_sdio_probe()
105 switch (tuple->data[0]) { in b43_sdio_probe()
107 if (tuple->size != 5) in b43_sdio_probe()
109 vendor = tuple->data[1] | (tuple->data[2]<<8); in b43_sdio_probe()
110 device = tuple->data[3] | (tuple->data[4]<<8); in b43_sdio_probe()
121 tuple = tuple->next; in b43_sdio_probe()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcls_redirect.c33 struct tuple { global() struct
34 familytuple global() argument
35 srctuple global() argument
36 dsttuple global() argument
63 set_up_conn(const struct sockaddr * addr,socklen_t len,int type,int * server,int * conn,struct tuple * tuple) set_up_conn() argument
245 build_input(const struct test_cfg * test,void * const buf,const struct tuple * tuple) build_input() argument
371 struct tuple *tuple = &tuples[test->type][j]; test_cls_redirect_common() local
/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede_filter.c58 struct qede_arfs_tuple tuple; member
111 if (n->tuple.stringify) { in qede_configure_arfs_fltr()
114 n->tuple.stringify(&n->tuple, tuple_buffer); in qede_configure_arfs_fltr()
158 fltr->tuple.mode); in qede_enqueue_fltr_and_config_searcher()
159 edev->arfs->mode = fltr->tuple.mode; in qede_enqueue_fltr_and_config_searcher()
197 ntohs(fltr->tuple.src_port), in qede_arfs_filter_op()
198 ntohs(fltr->tuple.dst_port), fltr->rxq_id); in qede_arfs_filter_op()
370 if (tpos->tuple.src_ipv4 == ip_hdr(skb)->saddr && in qede_compare_ip_addr()
371 tpos->tuple.dst_ipv4 == ip_hdr(skb)->daddr) in qede_compare_ip_addr()
376 struct in6_addr *src = &tpos->tuple.src_ipv6; in qede_compare_ip_addr()
[all …]
/linux/drivers/mmc/core/
H A Dsdio_cis.c385 struct sdio_func_tuple *tuple, *victim; in sdio_free_common_cis() local
387 tuple = card->tuples; in sdio_free_common_cis()
389 while (tuple) { in sdio_free_common_cis()
390 victim = tuple; in sdio_free_common_cis()
391 tuple = tuple->next; in sdio_free_common_cis()
420 struct sdio_func_tuple *tuple, *victim; in sdio_free_func_cis() local
422 tuple = func->tuples; in sdio_free_func_cis()
424 while (tuple && tuple != func->card->tuples) { in sdio_free_func_cis()
425 victim = tuple; in sdio_free_func_cis()
426 tuple = tuple->next; in sdio_free_func_cis()
/linux/sound/soc/sof/
H A Dipc4-loader.c416 struct sof_ipc4_tuple *tuple; in sof_ipc4_validate_firmware()
438 tuple = (struct sof_ipc4_tuple *)((u8 *)msg.data_ptr + offset); in sof_ipc4_query_fw_configuration()
440 switch (tuple->type) { in sof_ipc4_query_fw_configuration()
442 fw_ver = (struct sof_ipc4_fw_version *)tuple->value; in sof_ipc4_query_fw_configuration()
450 trace_sof_ipc4_fw_config(sdev, "DL mailbox size", *tuple->value); in sof_ipc4_query_fw_configuration()
453 trace_sof_ipc4_fw_config(sdev, "UL mailbox size", *tuple->value); in sof_ipc4_query_fw_configuration()
456 trace_sof_ipc4_fw_config(sdev, "Trace log size", *tuple->value); in sof_ipc4_query_fw_configuration()
457 ipc4_data->mtrace_log_bytes = *tuple->value; in sof_ipc4_query_fw_configuration()
461 *tuple->value); in sof_ipc4_query_fw_configuration()
462 ipc4_data->max_libs_count = *tuple in sof_ipc4_query_fw_configuration()
433 struct sof_ipc4_tuple *tuple; sof_ipc4_query_fw_configuration() local
[all...]
/linux/net/sched/
H A Dact_ct.c93 /* The following nat helper functions check if the inverted reverse tuple
94 * (target) is different then the current dir tuple - meaning nat for ports
98 tcf_ct_flow_table_add_action_nat_ipv4(const struct nf_conntrack_tuple *tuple, in tcf_ct_flow_table_add_action_nat_ipv4() argument
102 if (memcmp(&target.src.u3, &tuple->src.u3, sizeof(target.src.u3))) in tcf_ct_flow_table_add_action_nat_ipv4()
107 if (memcmp(&target.dst.u3, &tuple->dst.u3, sizeof(target.dst.u3))) in tcf_ct_flow_table_add_action_nat_ipv4()
128 tcf_ct_flow_table_add_action_nat_ipv6(const struct nf_conntrack_tuple *tuple, in tcf_ct_flow_table_add_action_nat_ipv6() argument
132 if (memcmp(&target.src.u3, &tuple->src.u3, sizeof(target.src.u3))) in tcf_ct_flow_table_add_action_nat_ipv6()
136 if (memcmp(&target.dst.u3, &tuple->dst.u3, sizeof(target.dst.u3))) in tcf_ct_flow_table_add_action_nat_ipv6()
143 tcf_ct_flow_table_add_action_nat_tcp(const struct nf_conntrack_tuple *tuple, in tcf_ct_flow_table_add_action_nat_tcp() argument
150 if (target_src != tuple in tcf_ct_flow_table_add_action_nat_tcp()
161 tcf_ct_flow_table_add_action_nat_udp(const struct nf_conntrack_tuple * tuple,struct nf_conntrack_tuple target,struct flow_action * action) tcf_ct_flow_table_add_action_nat_udp() argument
209 const struct nf_conntrack_tuple *tuple = &ct->tuplehash[dir].tuple; tcf_ct_flow_table_add_action_nat() local
490 struct nf_conntrack_tuple *tuple; tcf_ct_flow_table_process_conn() local
518 tcf_ct_flow_table_fill_tuple_ipv4(struct sk_buff * skb,struct flow_offload_tuple * tuple,struct tcphdr ** tcph) tcf_ct_flow_table_fill_tuple_ipv4() argument
591 tcf_ct_flow_table_fill_tuple_ipv6(struct sk_buff * skb,struct flow_offload_tuple * tuple,struct tcphdr ** tcph) tcf_ct_flow_table_fill_tuple_ipv6() argument
664 struct flow_offload_tuple tuple = {}; tcf_ct_flow_table_lookup() local
[all...]

1234