Home
last modified time | relevance | path

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

123456

/Linux-v4.19/drivers/pcmcia/
Dcistpl.c448 tuple_t *tuple) in pccard_get_first_tuple() argument
455 tuple->TupleLink = tuple->Flags = 0; in pccard_get_first_tuple()
458 tuple->CISOffset = tuple->LinkOffset = 0; in pccard_get_first_tuple()
459 SPACE(tuple->Flags) = HAS_LINK(tuple->Flags) = 1; in pccard_get_first_tuple()
461 if ((s->functions > 1) && !(tuple->Attributes & TUPLE_RETURN_COMMON)) { in pccard_get_first_tuple()
462 cisdata_t req = tuple->DesiredTuple; in pccard_get_first_tuple()
463 tuple->DesiredTuple = CISTPL_LONGLINK_MFC; in pccard_get_first_tuple()
464 if (pccard_get_next_tuple(s, function, tuple) == 0) { in pccard_get_first_tuple()
465 tuple->DesiredTuple = CISTPL_LINKTARGET; in pccard_get_first_tuple()
466 if (pccard_get_next_tuple(s, function, tuple) != 0) in pccard_get_first_tuple()
[all …]
Dpcmcia_cis.c41 tuple_t tuple; in pccard_read_tuple() local
50 tuple.DesiredTuple = code; in pccard_read_tuple()
51 tuple.Attributes = 0; in pccard_read_tuple()
53 tuple.Attributes = TUPLE_RETURN_COMMON; in pccard_read_tuple()
54 ret = pccard_get_first_tuple(s, function, &tuple); in pccard_read_tuple()
57 tuple.TupleData = buf; in pccard_read_tuple()
58 tuple.TupleOffset = 0; in pccard_read_tuple()
59 tuple.TupleDataMax = 255; in pccard_read_tuple()
60 ret = pccard_get_tuple_data(s, &tuple); in pccard_read_tuple()
63 ret = pcmcia_parse_tuple(&tuple, parse); in pccard_read_tuple()
[all …]
/Linux-v4.19/net/ipv4/netfilter/
Dnf_nat_h323.c106 if (addr.ip == ct->tuplehash[dir].tuple.src.u3.ip && in set_sig_addr()
119 &ct->tuplehash[!dir].tuple.dst.u3.ip, in set_sig_addr()
124 tuple.dst.u3, in set_sig_addr()
126 } else if (addr.ip == ct->tuplehash[dir].tuple.dst.u3.ip && in set_sig_addr()
131 &ct->tuplehash[!dir].tuple.src.u3.ip, in set_sig_addr()
136 tuple.src.u3, in set_sig_addr()
158 addr.ip == ct->tuplehash[dir].tuple.src.u3.ip && in set_ras_addr()
159 port == ct->tuplehash[dir].tuple.src.u.udp.port) { in set_ras_addr()
162 &ct->tuplehash[!dir].tuple.dst.u3.ip, in set_ras_addr()
163 ntohs(ct->tuplehash[!dir].tuple.dst.u.udp.port)); in set_ras_addr()
[all …]
Dnf_nat_proto_icmp.c21 icmp_in_range(const struct nf_conntrack_tuple *tuple, in icmp_in_range() argument
26 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) && in icmp_in_range()
27 ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id); in icmp_in_range()
32 struct nf_conntrack_tuple *tuple, in icmp_unique_tuple() argument
48 tuple->src.u.icmp.id = htons(ntohs(range->min_proto.icmp.id) + in icmp_unique_tuple()
50 if (++i == range_size || !nf_nat_used_tuple(tuple, ct)) in icmp_unique_tuple()
60 const struct nf_conntrack_tuple *tuple, in icmp_manip_pkt() argument
70 hdr->un.echo.id, tuple->src.u.icmp.id, false); in icmp_manip_pkt()
71 hdr->un.echo.id = tuple->src.u.icmp.id; in icmp_manip_pkt()
/Linux-v4.19/drivers/ssb/
Dsdio.c478 struct sdio_func_tuple *tuple; in ssb_sdio_get_invariants() local
485 tuple = bus->host_sdio->tuples; in ssb_sdio_get_invariants()
486 while (tuple) { in ssb_sdio_get_invariants()
487 switch (tuple->code) { in ssb_sdio_get_invariants()
489 switch (tuple->data[0]) { in ssb_sdio_get_invariants()
491 GOTO_ERROR_ON((tuple->size != 7) && in ssb_sdio_get_invariants()
492 (tuple->data[1] != 6), in ssb_sdio_get_invariants()
495 mac = tuple->data + 2; in ssb_sdio_get_invariants()
504 switch (tuple->data[0]) { in ssb_sdio_get_invariants()
506 GOTO_ERROR_ON(tuple->size != 2, in ssb_sdio_get_invariants()
[all …]
Dpcmcia.c601 tuple_t *tuple, in ssb_pcmcia_get_mac() argument
606 if (tuple->TupleData[0] != CISTPL_FUNCE_LAN_NODE_ID) in ssb_pcmcia_get_mac()
608 if (tuple->TupleDataLen != ETH_ALEN + 2) in ssb_pcmcia_get_mac()
610 if (tuple->TupleData[1] != ETH_ALEN) in ssb_pcmcia_get_mac()
612 memcpy(sprom->il0mac, &tuple->TupleData[2], ETH_ALEN); in ssb_pcmcia_get_mac()
617 tuple_t *tuple, in ssb_pcmcia_do_get_invariants() argument
625 GOTO_ERROR_ON(tuple->TupleDataLen < 1, "VEN tpl < 1"); in ssb_pcmcia_do_get_invariants()
626 switch (tuple->TupleData[0]) { in ssb_pcmcia_do_get_invariants()
628 GOTO_ERROR_ON((tuple->TupleDataLen != 5) && in ssb_pcmcia_do_get_invariants()
629 (tuple->TupleDataLen != 7), in ssb_pcmcia_do_get_invariants()
[all …]
/Linux-v4.19/net/netfilter/
Dnf_flow_table_ip.c100 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_v4.s_addr; in nf_flow_snat_ip()
105 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.src_v4.s_addr; in nf_flow_snat_ip()
125 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.src_v4.s_addr; in nf_flow_dnat_ip()
130 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.dst_v4.s_addr; in nf_flow_dnat_ip()
164 struct flow_offload_tuple *tuple) in nf_flow_tuple_ip() argument
190 tuple->src_v4.s_addr = iph->saddr; in nf_flow_tuple_ip()
191 tuple->dst_v4.s_addr = iph->daddr; in nf_flow_tuple_ip()
192 tuple->src_port = ports->source; in nf_flow_tuple_ip()
193 tuple->dst_port = ports->dest; in nf_flow_tuple_ip()
194 tuple->l3proto = AF_INET; in nf_flow_tuple_ip()
[all …]
Dnf_nat_sip.c105 if (nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.src.u3, addr) && in map_addr()
106 ct->tuplehash[dir].tuple.src.u.udp.port == port) { in map_addr()
107 newaddr = ct->tuplehash[!dir].tuple.dst.u3; in map_addr()
108 newport = ct->tuplehash[!dir].tuple.dst.u.udp.port; in map_addr()
109 } else if (nf_inet_addr_cmp(&ct->tuplehash[dir].tuple.dst.u3, addr) && in map_addr()
110 ct->tuplehash[dir].tuple.dst.u.udp.port == port) { in map_addr()
111 newaddr = ct->tuplehash[!dir].tuple.src.u3; in map_addr()
113 ct->tuplehash[!dir].tuple.src.u.udp.port; in map_addr()
187 &ct->tuplehash[dir].tuple.src.u3) || in nf_nat_sip()
188 port != ct->tuplehash[dir].tuple.src.u.udp.port) in nf_nat_sip()
[all …]
Dnf_conntrack_expect.c80 …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
88 hash = jhash2(tuple->dst.u3.all, ARRAY_SIZE(tuple->dst.u3.all), in nf_ct_expect_dst_hash()
89 (((tuple->dst.protonum ^ tuple->src.l3num) << 16) | in nf_ct_expect_dst_hash()
90 (__force __u16)tuple->dst.u.all) ^ seed); in nf_ct_expect_dst_hash()
96 nf_ct_exp_equal(const struct nf_conntrack_tuple *tuple, in nf_ct_exp_equal() argument
101 return nf_ct_tuple_mask_cmp(tuple, &i->tuple, &i->mask) && in nf_ct_exp_equal()
120 const struct nf_conntrack_tuple *tuple) in __nf_ct_expect_find() argument
128 h = nf_ct_expect_dst_hash(net, tuple); in __nf_ct_expect_find()
130 if (nf_ct_exp_equal(tuple, i, zone, net)) in __nf_ct_expect_find()
141 const struct nf_conntrack_tuple *tuple) in nf_ct_expect_find_get() argument
[all …]
Dnf_nat_proto_udp.c24 struct nf_conntrack_tuple *tuple, in udp_unique_tuple() argument
29 nf_nat_l4proto_unique_tuple(l3proto, tuple, range, maniptype, ct, in udp_unique_tuple()
37 const struct nf_conntrack_tuple *tuple, in __udp_manip_pkt() argument
44 newport = tuple->src.u.udp.port; in __udp_manip_pkt()
48 newport = tuple->dst.u.udp.port; in __udp_manip_pkt()
53 tuple, maniptype); in __udp_manip_pkt()
65 const struct nf_conntrack_tuple *tuple, in udp_manip_pkt() argument
77 __udp_manip_pkt(skb, l3proto, iphdroff, hdr, tuple, maniptype, do_csum); in udp_manip_pkt()
87 const struct nf_conntrack_tuple *tuple, in udplite_manip_pkt() argument
96 __udp_manip_pkt(skb, l3proto, iphdroff, hdr, tuple, maniptype, true); in udplite_manip_pkt()
[all …]
Dxt_conntrack.c47 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3, in conntrack_mt_origsrc()
56 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u3, in conntrack_mt_origdst()
65 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.u3, in conntrack_mt_replsrc()
74 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u3, in conntrack_mt_repldst()
82 const struct nf_conntrack_tuple *tuple; in ct_proto_port_check() local
84 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ct_proto_port_check()
92 (tuple->src.u.all == info->origsrc_port) ^ in ct_proto_port_check()
97 (tuple->dst.u.all == info->origdst_port) ^ in ct_proto_port_check()
101 tuple = &ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ct_proto_port_check()
104 (tuple->src.u.all == info->replsrc_port) ^ in ct_proto_port_check()
[all …]
Dnf_nat_proto_common.c20 bool nf_nat_l4proto_in_range(const struct nf_conntrack_tuple *tuple, in nf_nat_l4proto_in_range() argument
28 port = tuple->src.u.all; in nf_nat_l4proto_in_range()
30 port = tuple->dst.u.all; in nf_nat_l4proto_in_range()
38 struct nf_conntrack_tuple *tuple, in nf_nat_l4proto_unique_tuple() argument
49 portptr = &tuple->src.u.all; in nf_nat_l4proto_unique_tuple()
51 portptr = &tuple->dst.u.all; in nf_nat_l4proto_unique_tuple()
81 off = l3proto->secure_port(tuple, maniptype == NF_NAT_MANIP_SRC in nf_nat_l4proto_unique_tuple()
82 ? tuple->dst.u.all in nf_nat_l4proto_unique_tuple()
83 : tuple->src.u.all); in nf_nat_l4proto_unique_tuple()
94 if (++i != range_size && nf_nat_used_tuple(tuple, ct)) in nf_nat_l4proto_unique_tuple()
Dnf_conntrack_helper.c108 static unsigned int helper_hash(const struct nf_conntrack_tuple *tuple) in helper_hash() argument
110 return (((tuple->src.l3num << 8) | tuple->dst.protonum) ^ in helper_hash()
111 (__force __u16)tuple->src.u.all) % nf_ct_helper_hsize; in helper_hash()
115 __nf_ct_helper_find(const struct nf_conntrack_tuple *tuple) in __nf_ct_helper_find() argument
124 h = helper_hash(tuple); in __nf_ct_helper_find()
126 if (nf_ct_tuple_src_mask_cmp(tuple, &helper->tuple, &mask)) in __nf_ct_helper_find()
143 if (h->tuple.src.l3num != NFPROTO_UNSPEC && in __nf_conntrack_helper_find()
144 h->tuple.src.l3num != l3num) in __nf_conntrack_helper_find()
147 if (h->tuple.dst.protonum == protonum) in __nf_conntrack_helper_find()
214 if (!__nf_ct_helper_find(&ct->tuplehash[IP_CT_DIR_REPLY].tuple)) in nf_ct_lookup_helper()
[all …]
Dnf_flow_table_core.c29 struct flow_offload_tuple *ft = &flow->tuplehash[dir].tuple; in flow_offload_fill_dir()
30 struct nf_conntrack_tuple *ctt = &ct->tuplehash[dir].tuple; in flow_offload_fill_dir()
31 struct dst_entry *dst = route->tuple[dir].dst; in flow_offload_fill_dir()
53 ft->iifidx = route->tuple[dir].ifindex; in flow_offload_fill_dir()
54 ft->oifidx = route->tuple[!dir].ifindex; in flow_offload_fill_dir()
74 if (!dst_hold_safe(route->tuple[FLOW_OFFLOAD_DIR_ORIGINAL].dst)) in flow_offload_alloc()
77 if (!dst_hold_safe(route->tuple[FLOW_OFFLOAD_DIR_REPLY].dst)) in flow_offload_alloc()
93 dst_release(route->tuple[FLOW_OFFLOAD_DIR_ORIGINAL].dst); in flow_offload_alloc()
141 dst_release(flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.dst_cache); in flow_offload_free()
142 dst_release(flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_cache); in flow_offload_free()
[all …]
Dnf_conntrack_h323_main.c273 memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3, sizeof(addr)) || in expect_rtp_rtcp()
285 &ct->tuplehash[!dir].tuple.src.u3, in expect_rtp_rtcp()
286 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp()
295 &ct->tuplehash[!dir].tuple.src.u3, in expect_rtp_rtcp()
296 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp()
299 if (memcmp(&ct->tuplehash[dir].tuple.src.u3, in expect_rtp_rtcp()
300 &ct->tuplehash[!dir].tuple.dst.u3, in expect_rtp_rtcp()
301 sizeof(ct->tuplehash[dir].tuple.src.u3)) && in expect_rtp_rtcp()
312 nf_ct_dump_tuple(&rtp_exp->tuple); in expect_rtp_rtcp()
314 nf_ct_dump_tuple(&rtcp_exp->tuple); in expect_rtp_rtcp()
[all …]
Dnf_conntrack_core.c188 static u32 hash_conntrack_raw(const struct nf_conntrack_tuple *tuple, in hash_conntrack_raw() argument
201 n = (sizeof(tuple->src) + sizeof(tuple->dst.u3)) / sizeof(u32); in hash_conntrack_raw()
202 return jhash2((u32 *)tuple, n, seed ^ in hash_conntrack_raw()
203 (((__force __u16)tuple->dst.u.all << 16) | in hash_conntrack_raw()
204 tuple->dst.protonum)); in hash_conntrack_raw()
213 const struct nf_conntrack_tuple *tuple, in __hash_conntrack() argument
216 return reciprocal_scale(hash_conntrack_raw(tuple, net), size); in __hash_conntrack()
220 const struct nf_conntrack_tuple *tuple) in hash_conntrack() argument
222 return scale_hash(hash_conntrack_raw(tuple, net)); in hash_conntrack()
232 struct nf_conntrack_tuple *tuple, in nf_ct_get_tuple() argument
[all …]
Dnf_conntrack_proto_icmpv6.c41 struct nf_conntrack_tuple *tuple) in icmpv6_pkt_to_tuple() argument
49 tuple->dst.u.icmp.type = hp->icmp6_type; in icmpv6_pkt_to_tuple()
50 tuple->src.u.icmp.id = hp->icmp6_identifier; in icmpv6_pkt_to_tuple()
51 tuple->dst.u.icmp.code = hp->icmp6_code; in icmpv6_pkt_to_tuple()
75 static bool icmpv6_invert_tuple(struct nf_conntrack_tuple *tuple, in icmpv6_invert_tuple() argument
82 tuple->src.u.icmp.id = orig->src.u.icmp.id; in icmpv6_invert_tuple()
83 tuple->dst.u.icmp.type = invmap[type] - 1; in icmpv6_invert_tuple()
84 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in icmpv6_invert_tuple()
120 int type = ct->tuplehash[0].tuple.dst.u.icmp.type - 128; in icmpv6_new()
126 nf_ct_dump_tuple_ipv6(&ct->tuplehash[0].tuple); in icmpv6_new()
[all …]
Dnf_conntrack_proto_icmp.c34 struct net *net, struct nf_conntrack_tuple *tuple) in icmp_pkt_to_tuple() argument
43 tuple->dst.u.icmp.type = hp->type; in icmp_pkt_to_tuple()
44 tuple->src.u.icmp.id = hp->un.echo.id; in icmp_pkt_to_tuple()
45 tuple->dst.u.icmp.code = hp->code; in icmp_pkt_to_tuple()
62 static bool icmp_invert_tuple(struct nf_conntrack_tuple *tuple, in icmp_invert_tuple() argument
69 tuple->src.u.icmp.id = orig->src.u.icmp.id; in icmp_invert_tuple()
70 tuple->dst.u.icmp.type = invmap[orig->dst.u.icmp.type] - 1; in icmp_invert_tuple()
71 tuple->dst.u.icmp.code = orig->dst.u.icmp.code; in icmp_invert_tuple()
110 if (ct->tuplehash[0].tuple.dst.u.icmp.type >= sizeof(valid_new) || in icmp_new()
111 !valid_new[ct->tuplehash[0].tuple.dst.u.icmp.type]) { in icmp_new()
[all …]
Dnf_nat_core.c144 hash_by_src(const struct net *n, const struct nf_conntrack_tuple *tuple) in hash_by_src() argument
151 hash = jhash2((u32 *)&tuple->src, sizeof(tuple->src) / sizeof(u32), in hash_by_src()
152 tuple->dst.protonum ^ nf_nat_hash_rnd ^ net_hash_mix(n)); in hash_by_src()
159 nf_nat_used_tuple(const struct nf_conntrack_tuple *tuple, in nf_nat_used_tuple() argument
170 nf_ct_invert_tuplepr(&reply, tuple); in nf_nat_used_tuple()
180 const struct nf_conntrack_tuple *tuple, in in_range() argument
187 !l3proto->in_range(tuple, range)) in in_range()
191 l4proto->in_range(tuple, NF_NAT_MANIP_SRC, in in_range()
200 const struct nf_conntrack_tuple *tuple) in same_src() argument
204 t = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in same_src()
[all …]
Dnf_conntrack_tftp.c48 struct nf_conntrack_tuple *tuple; in tftp_help() local
61 nf_ct_dump_tuple(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in tftp_help()
62 nf_ct_dump_tuple(&ct->tuplehash[IP_CT_DIR_REPLY].tuple); in tftp_help()
69 tuple = &ct->tuplehash[IP_CT_DIR_REPLY].tuple; in tftp_help()
72 &tuple->src.u3, &tuple->dst.u3, in tftp_help()
73 IPPROTO_UDP, NULL, &tuple->dst.u.udp.port); in tftp_help()
76 nf_ct_dump_tuple(&exp->tuple); in tftp_help()
Dnf_conncount.c48 struct nf_conntrack_tuple tuple; member
93 const struct nf_conntrack_tuple *tuple, in nf_conncount_add() argument
105 conn->tuple = *tuple; in nf_conncount_add()
161 found = nf_conntrack_find_get(net, &conn->zone, &conn->tuple); in find_or_evict()
183 const struct nf_conntrack_tuple *tuple, in nf_conncount_lookup() argument
194 *addit = tuple ? true : false; in nf_conncount_lookup()
205 if (!tuple) in nf_conncount_lookup()
208 if (nf_ct_tuple_equal(&conn->tuple, tuple) && in nf_conncount_lookup()
219 if (tuple && nf_ct_tuple_equal(&conn->tuple, tuple) && in nf_conncount_lookup()
334 const struct nf_conntrack_tuple *tuple, in insert_tree() argument
[all …]
/Linux-v4.19/net/ipv6/netfilter/
Dnf_nat_proto_icmpv6.c23 icmpv6_in_range(const struct nf_conntrack_tuple *tuple, in icmpv6_in_range() argument
28 return ntohs(tuple->src.u.icmp.id) >= ntohs(min->icmp.id) && in icmpv6_in_range()
29 ntohs(tuple->src.u.icmp.id) <= ntohs(max->icmp.id); in icmpv6_in_range()
34 struct nf_conntrack_tuple *tuple, in icmpv6_unique_tuple() argument
50 tuple->src.u.icmp.id = htons(ntohs(range->min_proto.icmp.id) + in icmpv6_unique_tuple()
52 if (++i == range_size || !nf_nat_used_tuple(tuple, ct)) in icmpv6_unique_tuple()
61 const struct nf_conntrack_tuple *tuple, in icmpv6_manip_pkt() argument
71 tuple, maniptype); in icmpv6_manip_pkt()
76 tuple->src.u.icmp.id, false); in icmpv6_manip_pkt()
77 hdr->icmp6_identifier = tuple->src.u.icmp.id; in icmpv6_manip_pkt()
/Linux-v4.19/net/netfilter/ipvs/
Dip_vs_nfct.c120 new_tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ip_vs_update_conntrack()
138 ARG_TUPLE(&ct->tuplehash[IP_CT_DIR_REPLY].tuple)); in ip_vs_update_conntrack()
173 orig = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ip_vs_nfct_expect_callback()
174 ip_vs_conn_fill_param(net_ipvs(net), exp->tuple.src.l3num, orig->dst.protonum, in ip_vs_nfct_expect_callback()
183 new_reply = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ip_vs_nfct_expect_callback()
199 new_reply = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ip_vs_nfct_expect_callback()
249 __func__, ct, ARG_TUPLE(&exp->tuple)); in ip_vs_nfct_expect_related()
262 struct nf_conntrack_tuple tuple; in ip_vs_conn_drop_conntrack() local
267 tuple = (struct nf_conntrack_tuple) { in ip_vs_conn_drop_conntrack()
269 tuple.src.u3 = cp->caddr; in ip_vs_conn_drop_conntrack()
[all …]
/Linux-v4.19/drivers/net/wireless/broadcom/b43/
Dsdio.c100 struct sdio_func_tuple *tuple; in b43_sdio_probe() local
105 tuple = func->tuples; in b43_sdio_probe()
106 while (tuple) { in b43_sdio_probe()
107 switch (tuple->code) { in b43_sdio_probe()
109 switch (tuple->data[0]) { in b43_sdio_probe()
111 if (tuple->size != 5) in b43_sdio_probe()
113 vendor = tuple->data[1] | (tuple->data[2]<<8); in b43_sdio_probe()
114 device = tuple->data[3] | (tuple->data[4]<<8); in b43_sdio_probe()
125 tuple = tuple->next; in b43_sdio_probe()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_arfs.c64 struct arfs_tuple tuple; member
465 struct arfs_tuple *tuple = &arfs_rule->tuple; in arfs_add_rule() local
483 ntohs(tuple->etype)); in arfs_add_rule()
484 arfs_table = arfs_get_table(arfs, tuple->ip_proto, tuple->etype); in arfs_add_rule()
491 if (tuple->ip_proto == IPPROTO_TCP) { in arfs_add_rule()
497 ntohs(tuple->dst_port)); in arfs_add_rule()
499 ntohs(tuple->src_port)); in arfs_add_rule()
506 ntohs(tuple->dst_port)); in arfs_add_rule()
508 ntohs(tuple->src_port)); in arfs_add_rule()
510 if (tuple->etype == htons(ETH_P_IP)) { in arfs_add_rule()
[all …]

123456