Searched refs:tuple (Results 51 - 75 of 117) sorted by relevance

12345

/linux-master/sound/soc/sof/
H A Dipc4-loader.c341 struct sof_ipc4_tuple *tuple; local
363 tuple = (struct sof_ipc4_tuple *)((u8 *)msg.data_ptr + offset);
365 switch (tuple->type) {
367 fw_ver = (struct sof_ipc4_fw_version *)tuple->value;
375 trace_sof_ipc4_fw_config(sdev, "DL mailbox size", *tuple->value);
378 trace_sof_ipc4_fw_config(sdev, "UL mailbox size", *tuple->value);
381 trace_sof_ipc4_fw_config(sdev, "Trace log size", *tuple->value);
382 ipc4_data->mtrace_log_bytes = *tuple->value;
386 *tuple->value);
387 ipc4_data->max_libs_count = *tuple
[all...]
/linux-master/include/net/netfilter/
H A Dnf_conntrack_tuple.h3 * Definitions and Declarations for tuple.
18 /* A `tuple' is a structure containing the information to uniquely
19 identify a connection. ie. if two packets have the same tuple, they
28 /* The manipulable part of the tuple. */
40 /* These are the parts of the tuple which are fixed. */
88 printk("tuple %p: %u %pI4:%hu -> %pI4:%hu\n",
98 printk("tuple %p: %u %pI6 %hu -> %pI6 %hu\n",
117 /* If we're the first tuple, it's the original dir. */
119 ((enum ip_conntrack_dir)(h)->tuple.dst.dir)
124 struct nf_conntrack_tuple tuple; member in struct:nf_conntrack_tuple_hash
182 nf_ct_tuple_mask_cmp(const struct nf_conntrack_tuple *t, const struct nf_conntrack_tuple *tuple, const struct nf_conntrack_tuple_mask *mask) argument
[all...]
H A Dnf_conntrack_core.h46 /* Find a connection corresponding to a tuple. */
50 const struct nf_conntrack_tuple *tuple);
76 void print_tuple(struct seq_file *s, const struct nf_conntrack_tuple *tuple,
H A Dnf_conntrack.h138 tuplehash[hash->tuple.dst.dir]);
143 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.l3num;
148 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum;
151 #define nf_ct_tuple(ct, dir) (&(ct)->tuplehash[dir].tuple)
163 /* Is this tuple taken? (ignoring any belonging to the given
165 int nf_conntrack_tuple_taken(const struct nf_conntrack_tuple *tuple,
168 /* Return conntrack_info and tuple hash for given skb. */
204 struct nf_conntrack_tuple *tuple);
290 ct->tuplehash[IP_CT_DIR_REPLY].tuple = *newreply;
H A Dnf_conntrack_l4proto.h42 /* Calculate tuple nlattr size */
67 struct nf_conntrack_tuple *tuple);
72 struct nf_conntrack_tuple *tuple);
74 bool nf_conntrack_invert_icmp_tuple(struct nf_conntrack_tuple *tuple,
76 bool nf_conntrack_invert_icmpv6_tuple(struct nf_conntrack_tuple *tuple,
154 const struct nf_conntrack_tuple *tuple);
/linux-master/net/ipv4/netfilter/
H A Dnf_nat_snmp_basic_main.c136 ctx.from = ct->tuplehash[dir].tuple.src.u3.ip;
137 ctx.to = ct->tuplehash[!dir].tuple.dst.u3.ip;
139 ctx.from = ct->tuplehash[!dir].tuple.src.u3.ip;
140 ctx.to = ct->tuplehash[dir].tuple.dst.u3.ip;
210 .tuple.src.l3num = AF_INET,
211 .tuple.src.u.udp.port = cpu_to_be16(SNMP_TRAP_PORT),
212 .tuple.dst.protonum = IPPROTO_UDP,
H A Dnf_socket_ipv4.c139 daddr = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3.ip;
141 ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.tcp.port :
142 ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.udp.port;
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_bpf_nf.c176 struct nf_conntrack_tuple *tuple; local
179 tuple = &ct_lk->tuplehash[IP_CT_DIR_REPLY].tuple;
180 if (tuple->dst.u3.ip == saddr.ip &&
181 tuple->dst.u.all == bpf_htons(sport))
183 if (tuple->src.u3.ip == daddr.ip &&
184 tuple->src.u.all == bpf_htons(dport))
H A Dtest_tcp_custom_syncookie.c513 struct bpf_sock_tuple tuple; local
520 tuple.ipv4.saddr = ctx->ipv4->saddr;
521 tuple.ipv4.daddr = ctx->ipv4->daddr;
522 tuple.ipv4.sport = ctx->tcp->source;
523 tuple.ipv4.dport = ctx->tcp->dest;
524 tuple_size = sizeof(tuple.ipv4);
526 __builtin_memcpy(tuple.ipv6.saddr, &ctx->ipv6->saddr, sizeof(tuple.ipv6.saddr));
527 __builtin_memcpy(tuple.ipv6.daddr, &ctx->ipv6->daddr, sizeof(tuple
[all...]
/linux-master/net/sched/
H A Dact_ct.c86 /* The following nat helper functions check if the inverted reverse tuple
87 * (target) is different then the current dir tuple - meaning nat for ports
91 tcf_ct_flow_table_add_action_nat_ipv4(const struct nf_conntrack_tuple *tuple, argument
95 if (memcmp(&target.src.u3, &tuple->src.u3, sizeof(target.src.u3)))
100 if (memcmp(&target.dst.u3, &tuple->dst.u3, sizeof(target.dst.u3)))
121 tcf_ct_flow_table_add_action_nat_ipv6(const struct nf_conntrack_tuple *tuple, argument
125 if (memcmp(&target.src.u3, &tuple->src.u3, sizeof(target.src.u3)))
129 if (memcmp(&target.dst.u3, &tuple->dst.u3, sizeof(target.dst.u3)))
136 tcf_ct_flow_table_add_action_nat_tcp(const struct nf_conntrack_tuple *tuple, argument
143 if (target_src != tuple
154 tcf_ct_flow_table_add_action_nat_udp(const struct nf_conntrack_tuple *tuple, struct nf_conntrack_tuple target, struct flow_action *action) argument
202 const struct nf_conntrack_tuple *tuple = &ct->tuplehash[dir].tuple; local
478 struct nf_conntrack_tuple *tuple; local
505 tcf_ct_flow_table_fill_tuple_ipv4(struct sk_buff *skb, struct flow_offload_tuple *tuple, struct tcphdr **tcph) argument
578 tcf_ct_flow_table_fill_tuple_ipv6(struct sk_buff *skb, struct flow_offload_tuple *tuple, struct tcphdr **tcph) argument
652 struct flow_offload_tuple tuple = {}; local
[all...]
/linux-master/net/netfilter/
H A Dxt_connlimit.c34 struct nf_conntrack_tuple tuple; local
35 const struct nf_conntrack_tuple *tuple_ptr = &tuple;
44 tuple_ptr = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple;
47 xt_family(par), net, &tuple)) {
H A Dnf_nat_irc.c45 newaddr = ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u3;
47 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port;
H A Dnf_conntrack_standalone.c38 print_tuple(struct seq_file *s, const struct nf_conntrack_tuple *tuple, argument
41 switch (tuple->src.l3num) {
44 &tuple->src.u3.ip, &tuple->dst.u3.ip);
48 tuple->src.u3.ip6, tuple->dst.u3.ip6);
57 tuple->dst.u.icmp.type,
58 tuple->dst.u.icmp.code,
59 ntohs(tuple->src.u.icmp.id));
63 ntohs(tuple
[all...]
H A Dnf_conntrack_netlink.c69 const struct nf_conntrack_tuple *tuple,
78 if (nla_put_u8(skb, CTA_PROTO_NUM, tuple->dst.protonum))
82 ret = l4proto->tuple_to_nlattr(skb, tuple);
93 const struct nf_conntrack_tuple *tuple)
95 if (nla_put_in_addr(skb, CTA_IP_V4_SRC, tuple->src.u3.ip) ||
96 nla_put_in_addr(skb, CTA_IP_V4_DST, tuple->dst.u3.ip))
102 const struct nf_conntrack_tuple *tuple)
104 if (nla_put_in6_addr(skb, CTA_IP_V6_SRC, &tuple->src.u3.in6) ||
105 nla_put_in6_addr(skb, CTA_IP_V6_DST, &tuple->dst.u3.in6))
111 const struct nf_conntrack_tuple *tuple)
68 ctnetlink_dump_tuples_proto(struct sk_buff *skb, const struct nf_conntrack_tuple *tuple, const struct nf_conntrack_l4proto *l4proto) argument
92 ipv4_tuple_to_nlattr(struct sk_buff *skb, const struct nf_conntrack_tuple *tuple) argument
101 ipv6_tuple_to_nlattr(struct sk_buff *skb, const struct nf_conntrack_tuple *tuple) argument
110 ctnetlink_dump_tuples_ip(struct sk_buff *skb, const struct nf_conntrack_tuple *tuple) argument
137 ctnetlink_dump_tuples(struct sk_buff *skb, const struct nf_conntrack_tuple *tuple) argument
1142 struct nf_conntrack_tuple *tuple; local
1326 ctnetlink_parse_tuple_ip(struct nlattr *attr, struct nf_conntrack_tuple *tuple, u_int32_t flags) argument
1354 ctnetlink_parse_tuple_proto(struct nlattr *attr, struct nf_conntrack_tuple *tuple, u_int32_t flags) argument
1445 ctnetlink_parse_tuple_filter(const struct nlattr * const cda[], struct nf_conntrack_tuple *tuple, u32 type, u_int8_t l3num, struct nf_conntrack_zone *zone, u_int32_t flags) argument
1506 ctnetlink_parse_tuple(const struct nlattr * const cda[], struct nf_conntrack_tuple *tuple, u32 type, u_int8_t l3num, struct nf_conntrack_zone *zone) argument
1604 struct nf_conntrack_tuple tuple; local
1657 struct nf_conntrack_tuple tuple; local
2850 ctnetlink_glue_exp_parse(const struct nlattr * const *cda, const struct nf_conn *ct, struct nf_conntrack_tuple *tuple, struct nf_conntrack_tuple *mask) argument
2871 struct nf_conntrack_tuple tuple, mask; local
2927 ctnetlink_exp_dump_tuple(struct sk_buff *skb, const struct nf_conntrack_tuple *tuple, u32 type) argument
2946 ctnetlink_exp_dump_mask(struct sk_buff *skb, const struct nf_conntrack_tuple *tuple, const struct nf_conntrack_tuple_mask *mask) argument
3264 struct nf_conntrack_tuple tuple; local
3306 struct nf_conntrack_tuple tuple; local
3401 struct nf_conntrack_tuple tuple; local
3512 ctnetlink_alloc_expect(const struct nlattr * const cda[], struct nf_conn *ct, struct nf_conntrack_helper *helper, struct nf_conntrack_tuple *tuple, struct nf_conntrack_tuple *mask) argument
3579 struct nf_conntrack_tuple tuple, mask, master_tuple; local
3653 struct nf_conntrack_tuple tuple; local
[all...]
H A Dnf_conntrack_pptp.c110 /* obviously this tuple inversion only works until you do NAT */
111 nf_ct_invert_tuple(&inv_t, &exp->tuple);
135 pr_debug("trying to timeout ct or exp for tuple ");
169 /* try original (pns->pac) tuple */
170 memcpy(&t, &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, sizeof(t));
177 /* try reply (pac->pns) tuple */
178 memcpy(&t, &ct->tuplehash[IP_CT_DIR_REPLY].tuple, sizeof(t));
206 &ct->tuplehash[dir].tuple.src.u3,
207 &ct->tuplehash[dir].tuple.dst.u3,
215 &ct->tuplehash[dir].tuple
[all...]
H A Dnf_conntrack_ovs.c31 if (helper->tuple.src.l3num != NFPROTO_UNSPEC &&
32 helper->tuple.src.l3num != proto)
60 if (helper->tuple.dst.protonum != proto)
H A Dnf_nat_ftp.c81 newaddr = ct->tuplehash[!dir].tuple.dst.u3;
82 exp->saved_proto.tcp.port = exp->tuple.dst.u.tcp.port;
/linux-master/arch/m68k/amiga/
H A Dpcmcia.c37 /* copy a tuple, including tuple header. return nb bytes copied */
40 int pcmcia_copy_tuple(unsigned char tuple_id, void *tuple, int max_len) argument
45 dest = tuple;
/linux-master/include/linux/
H A Dbpf_mprog.h216 struct bpf_tuple *tuple)
219 if (!tuple->link)
220 entry->parent->ref = tuple->prog;
314 struct bpf_tuple *tuple)
316 WRITE_ONCE(fp->prog, tuple->prog);
317 cp->link = tuple->link;
215 bpf_mprog_mark_for_release(struct bpf_mprog_entry *entry, struct bpf_tuple *tuple) argument
312 bpf_mprog_write(struct bpf_mprog_fp *fp, struct bpf_mprog_cp *cp, struct bpf_tuple *tuple) argument
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_ct.c44 * ipv6 and port nat (5) + tuple fields (4) + nic mode zone restore (1) = 10.
153 struct mlx5_ct_tuple tuple; member in struct:mlx5_ct_entry
186 .key_offset = offsetof(struct mlx5_ct_entry, tuple),
187 .key_len = sizeof(((struct mlx5_ct_entry *)0)->tuple),
229 mlx5_tc_ct_rule_to_tuple(struct mlx5_ct_tuple *tuple, struct flow_rule *rule) argument
237 tuple->n_proto = basic.key->n_proto;
238 tuple->ip_proto = basic.key->ip_proto;
239 tuple->addr_type = control.key->addr_type;
241 if (tuple->addr_type == FLOW_DISSECTOR_KEY_IPV4_ADDRS) {
245 tuple
279 mlx5_tc_ct_rule_to_tuple_nat(struct mlx5_ct_tuple *tuple, struct flow_rule *rule) argument
936 mlx5_tc_ct_entry_get(struct mlx5_tc_ct_priv *ct_priv, struct mlx5_ct_tuple *tuple) argument
1358 mlx5_tc_ct_skb_to_tuple(struct sk_buff *skb, struct mlx5_ct_tuple *tuple, u16 zone) argument
2292 struct mlx5_ct_tuple tuple = {}; local
[all...]
/linux-master/drivers/net/ethernet/8390/
H A Dapne.c123 char tuple[8]; local
154 if ((pcmcia_copy_tuple(CISTPL_FUNCID, tuple, 8) < 3) ||
155 (tuple[2] != CISTPL_FUNCID_NETWORK)) {
575 u_char tuple[32]; local
590 if (pcmcia_copy_tuple(CISTPL_CFTABLE_ENTRY, tuple, 32) < 3)
593 config = tuple[2] & 0x3f;
598 if (pcmcia_copy_tuple(CISTPL_CONFIG, tuple, 32) < 6)
601 offset_len = (tuple[2] & 0x3) + 1;
604 offset = (offset << 8) | tuple[4+offset_len];
/linux-master/sound/soc/intel/avs/
H A Dtopology.c42 struct snd_soc_tplg_vendor_value_elem *tuple; local
48 tuple = tuples->value;
49 if (le32_to_cpu(tuple->token) == token) {
116 * Vendor tuple parsing descriptor.
118 * @token: vendor specific token that identifies tuple
119 * @type: tuple type, one of SND_SOC_TPLG_TUPLE_TYPE_XXX
133 struct snd_soc_tplg_vendor_uuid_elem *tuple = elem; local
136 guid_copy((guid_t *)val, (const guid_t *)&tuple->uuid);
144 struct snd_soc_tplg_vendor_value_elem *tuple = elem; local
147 *val = le32_to_cpu(tuple
155 struct snd_soc_tplg_vendor_value_elem *tuple = elem; local
166 struct snd_soc_tplg_vendor_value_elem *tuple = elem; local
177 struct snd_soc_tplg_vendor_value_elem *tuple = elem; local
188 struct snd_soc_tplg_vendor_string_elem *tuple = elem; local
200 struct snd_soc_tplg_vendor_uuid_elem *tuple; local
226 struct snd_soc_tplg_vendor_string_elem *tuple; local
252 struct snd_soc_tplg_vendor_value_elem *tuple; local
400 struct snd_soc_tplg_vendor_string_elem *tuple = elem; local
429 struct snd_soc_tplg_vendor_value_elem *tuple; local
[all...]
/linux-master/drivers/pcmcia/
H A Dcs_internal.h168 tuple_t *tuple);
171 tuple_t *tuple);
173 int pccard_get_tuple_data(struct pcmcia_socket *s, tuple_t *tuple);
/linux-master/drivers/media/dvb-core/
H A Ddvb_ca_en50221.c391 * dvb_ca_en50221_read_tuple - Read a tuple from attribute memory.
398 * @tuple: Dest buffer for tuple (must be 256 bytes). Updated.
404 int *tuple_length, u8 *tuple)
411 /* grab the next tuple length and type */
430 /* read in the whole tuple */
432 tuple[i] = ca->pub->read_attribute_mem(ca->pub, slot,
435 i, tuple[i] & 0xff,
436 ((tuple[i] > 31) && (tuple[
402 dvb_ca_en50221_read_tuple(struct dvb_ca_private *ca, int slot, int *address, int *tuple_type, int *tuple_length, u8 *tuple) argument
462 u8 tuple[257]; local
[all...]
/linux-master/drivers/bluetooth/
H A Dbtsdio.c277 struct sdio_func_tuple *tuple = func->tuples; local
282 while (tuple) {
283 BT_DBG("code 0x%x size %d", tuple->code, tuple->size);
284 tuple = tuple->next;

Completed in 372 milliseconds

12345