Home
last modified time | relevance | path

Searched refs:dport (Results 1 – 25 of 227) sorted by relevance

12345678910

/linux-6.12.1/drivers/tty/serial/
Ddz.c77 struct dz_port dport[DZ_NB_PORT]; member
99 static u16 dz_in(struct dz_port *dport, unsigned offset) in dz_in() argument
101 void __iomem *addr = dport->port.membase + offset; in dz_in()
106 static void dz_out(struct dz_port *dport, unsigned offset, u16 value) in dz_out() argument
108 void __iomem *addr = dport->port.membase + offset; in dz_out()
125 struct dz_port *dport = to_dport(uport); in dz_stop_tx() local
126 u16 tmp, mask = 1 << dport->port.line; in dz_stop_tx()
128 tmp = dz_in(dport, DZ_TCR); /* read the TX flag */ in dz_stop_tx()
130 dz_out(dport, DZ_TCR, tmp); in dz_stop_tx()
135 struct dz_port *dport = to_dport(uport); in dz_start_tx() local
[all …]
/linux-6.12.1/drivers/tty/
Dmips_ejtag_fdc.c418 struct mips_ejtag_fdc_tty_port *dport; in mips_ejtag_fdc_put_chan() local
425 dport = &priv->ports[chan]; in mips_ejtag_fdc_put_chan()
426 spin_lock(&dport->xmit_lock); in mips_ejtag_fdc_put_chan()
427 if (dport->xmit_cnt) { in mips_ejtag_fdc_put_chan()
428 ptrs[0] = dport->port.xmit_buf + dport->xmit_tail; in mips_ejtag_fdc_put_chan()
430 priv->xmit_size - dport->xmit_tail, in mips_ejtag_fdc_put_chan()
431 dport->xmit_cnt); in mips_ejtag_fdc_put_chan()
432 ptrs[1] = dport->port.xmit_buf; in mips_ejtag_fdc_put_chan()
433 sizes[1] = dport->xmit_cnt - sizes[0]; in mips_ejtag_fdc_put_chan()
449 dport->xmit_cnt -= word.bytes; in mips_ejtag_fdc_put_chan()
[all …]
/linux-6.12.1/net/core/
Dsecure_seq.c77 __be16 sport, __be16 dport) in secure_tcpv6_seq() argument
83 __be16 dport; in secure_tcpv6_seq() member
88 .dport = dport in secure_tcpv6_seq()
93 hash = siphash(&combined, offsetofend(typeof(combined), dport), in secure_tcpv6_seq()
100 __be16 dport) in secure_ipv6_port_ephemeral() argument
106 __be16 dport; in secure_ipv6_port_ephemeral() member
111 .dport = dport, in secure_ipv6_port_ephemeral()
114 return siphash(&combined, offsetofend(typeof(combined), dport), in secure_ipv6_port_ephemeral()
137 __be16 sport, __be16 dport) in secure_tcp_seq() argument
143 (__force u32)sport << 16 | (__force u32)dport, in secure_tcp_seq()
[all …]
/linux-6.12.1/drivers/cxl/core/
Dport.c154 struct cxl_dport *dport = cxlsd->target[i]; in emit_target_list() local
157 if (!dport) in emit_target_list()
162 rc = sysfs_emit_at(buf, offset, "%d%s", dport->port_id, in emit_target_list()
778 static int cxl_dport_setup_regs(struct device *host, struct cxl_dport *dport, in cxl_dport_setup_regs() argument
783 if (dev_is_platform(dport->dport_dev)) in cxl_dport_setup_regs()
791 rc = cxl_setup_comp_regs(dport->dport_dev, &dport->reg_map, in cxl_dport_setup_regs()
793 dport->reg_map.host = host; in cxl_dport_setup_regs()
801 struct cxl_dport *dport = data; in cxl_einj_inject() local
803 if (dport->rch) in cxl_einj_inject()
804 return einj_cxl_inject_rch_error(dport->rcrb.base, type); in cxl_einj_inject()
[all …]
Dpci.c41 struct cxl_dport *dport; in match_add_dports() local
60 dport = devm_cxl_add_dport(port, &pdev->dev, port_num, map.resource); in match_add_dports()
61 if (IS_ERR(dport)) { in match_add_dports()
62 ctx->error = PTR_ERR(dport); in match_add_dports()
63 return PTR_ERR(dport); in match_add_dports()
737 static void cxl_dport_map_rch_aer(struct cxl_dport *dport) in cxl_dport_map_rch_aer() argument
743 aer_cap = cxl_rcrb_to_aer(dport->dport_dev, dport->rcrb.base); in cxl_dport_map_rch_aer()
745 host = dport->reg_map.host; in cxl_dport_map_rch_aer()
746 aer_phys = aer_cap + dport->rcrb.base; in cxl_dport_map_rch_aer()
747 dport->regs.dport_aer = devm_cxl_iomap_block(host, aer_phys, in cxl_dport_map_rch_aer()
[all …]
/linux-6.12.1/drivers/scsi/bfa/
Dbfa_svc.c5630 static void bfa_dport_sm_disabled(struct bfa_dport_s *dport,
5632 static void bfa_dport_sm_enabling_qwait(struct bfa_dport_s *dport,
5634 static void bfa_dport_sm_enabling(struct bfa_dport_s *dport,
5636 static void bfa_dport_sm_enabled(struct bfa_dport_s *dport,
5638 static void bfa_dport_sm_disabling_qwait(struct bfa_dport_s *dport,
5640 static void bfa_dport_sm_disabling(struct bfa_dport_s *dport,
5642 static void bfa_dport_sm_starting_qwait(struct bfa_dport_s *dport,
5644 static void bfa_dport_sm_starting(struct bfa_dport_s *dport,
5646 static void bfa_dport_sm_dynamic_disabling(struct bfa_dport_s *dport,
5648 static void bfa_dport_sm_dynamic_disabling_qwait(struct bfa_dport_s *dport,
[all …]
/linux-6.12.1/include/net/
Dsecure_seq.h9 u64 secure_ipv4_port_ephemeral(__be32 saddr, __be32 daddr, __be16 dport);
11 __be16 dport);
13 __be16 sport, __be16 dport);
16 __be16 sport, __be16 dport);
20 __be16 sport, __be16 dport);
22 __be16 sport, __be16 dport);
Dinet_hashtables.h319 __be32 daddr, __be16 dport, int dif, int sdif) in inet_lookup_listener() argument
322 daddr, ntohs(dport), dif, sdif); in inet_lookup_listener()
401 const __be32 daddr, const __be16 dport, in inet_lookup_established() argument
405 ntohs(dport), dif, 0); in inet_lookup_established()
412 const __be32 daddr, const __be16 dport, in __inet_lookup() argument
416 u16 hnum = ntohs(dport); in __inet_lookup()
433 const __be32 daddr, const __be16 dport, in inet_lookup() argument
440 dport, dif, 0, &refcounted); in inet_lookup()
450 const __be32 daddr, const __be16 dport, in inet_steal_sock() argument
474 saddr, sport, daddr, ntohs(dport), in inet_steal_sock()
[all …]
Dinet6_hashtables.h109 const struct in6_addr *daddr, const __be16 dport, in inet6_steal_sock() argument
133 saddr, sport, daddr, ntohs(dport), in inet6_steal_sock()
149 const __be16 dport, in __inet6_lookup_skb() argument
157 sk = inet6_steal_sock(net, skb, doff, &ip6h->saddr, sport, &ip6h->daddr, dport, in __inet6_lookup_skb()
166 &ip6h->daddr, ntohs(dport), in __inet6_lookup_skb()
173 const struct in6_addr *daddr, const __be16 dport,
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dtest_sk_assign.c107 __be16 dport; in handle_udp() local
118 dport = ipv4 ? tuple->ipv4.dport : tuple->ipv6.dport; in handle_udp()
119 if (dport != bpf_htons(4321)) in handle_udp()
138 __be16 dport; in handle_tcp() local
152 dport = ipv4 ? tuple->ipv4.dport : tuple->ipv6.dport; in handle_tcp()
153 if (dport != bpf_htons(4321)) in handle_tcp()
Dtest_xdp_loop.c86 int dport; in handle_ipv4() local
93 dport = get_dport(iph + 1, data_end, iph->protocol); in handle_ipv4()
94 if (dport == -1) in handle_ipv4()
100 vip.dport = dport; in handle_ipv4()
158 int dport; in handle_ipv6() local
163 dport = get_dport(ip6h + 1, data_end, ip6h->nexthdr); in handle_ipv6()
164 if (dport == -1) in handle_ipv6()
170 vip.dport = dport; in handle_ipv6()
Dtest_xdp.c90 int dport; in handle_ipv4() local
97 dport = get_dport(iph + 1, data_end, iph->protocol); in handle_ipv4()
98 if (dport == -1) in handle_ipv4()
104 vip.dport = dport; in handle_ipv4()
162 int dport; in handle_ipv6() local
167 dport = get_dport(ip6h + 1, data_end, ip6h->nexthdr); in handle_ipv6()
168 if (dport == -1) in handle_ipv6()
174 vip.dport = dport; in handle_ipv6()
Dtest_xdp_dynptr.c90 int dport; in handle_ipv4() local
106 dport = get_dport(iph + 1, iph->protocol); in handle_ipv4()
107 if (dport == -1) in handle_ipv4()
113 vip.dport = dport; in handle_ipv4()
171 int dport; in handle_ipv6() local
185 dport = get_dport(ip6h + 1, ip6h->nexthdr); in handle_ipv6()
186 if (dport == -1) in handle_ipv6()
192 vip.dport = dport; in handle_ipv6()
Dtest_bpf_nf.c43 __be16 dport = 0; variable
169 bpf_tuple.ipv4.dport = bpf_get_prandom_u32(); /* dst port */ in nf_ct_test()
175 __u16 dport = bpf_get_prandom_u32(); in nf_ct_test() local
188 bpf_ct_set_nat_info(ct, &daddr, dport, NF_NAT_MANIP_DST___local); in nf_ct_test()
205 tuple->src.u.all == bpf_htons(dport)) in nf_ct_test()
229 bpf_tuple.ipv4.dport = dport; in nf_ct_test()
269 bpf_tuple.ipv4.dport = bpf_get_prandom_u32(); /* dst port */ in nf_ct_opts_new_test()
278 __u16 dport = bpf_get_prandom_u32(); in nf_ct_opts_new_test() local
290 bpf_ct_set_nat_info(ct, &daddr, dport, NF_NAT_MANIP_DST___local); in nf_ct_opts_new_test()
/linux-6.12.1/tools/testing/cxl/test/
Dmock.c253 struct cxl_dport *dport; in __wrap_devm_cxl_add_rch_dport() local
257 dport = devm_cxl_add_dport(port, dport_dev, port_id, in __wrap_devm_cxl_add_rch_dport()
259 if (!IS_ERR(dport)) { in __wrap_devm_cxl_add_rch_dport()
260 dport->rcrb.base = rcrb; in __wrap_devm_cxl_add_rch_dport()
261 dport->rch = true; in __wrap_devm_cxl_add_rch_dport()
264 dport = devm_cxl_add_rch_dport(port, dport_dev, port_id, rcrb); in __wrap_devm_cxl_add_rch_dport()
267 return dport; in __wrap_devm_cxl_add_rch_dport()
272 struct cxl_dport *dport) in __wrap_cxl_rcd_component_reg_phys() argument
281 component_reg_phys = cxl_rcd_component_reg_phys(dev, dport); in __wrap_cxl_rcd_component_reg_phys()
302 void __wrap_cxl_dport_init_ras_reporting(struct cxl_dport *dport, struct device *host) in __wrap_cxl_dport_init_ras_reporting() argument
[all …]
/linux-6.12.1/samples/bpf/
Dxdp_tx_iptunnel_kern.c88 int dport; in handle_ipv4() local
95 dport = get_dport(iph + 1, data_end, iph->protocol); in handle_ipv4()
96 if (dport == -1) in handle_ipv4()
102 vip.dport = dport; in handle_ipv4()
162 int dport; in handle_ipv6() local
167 dport = get_dport(ip6h + 1, data_end, ip6h->nexthdr); in handle_ipv6()
168 if (dport == -1) in handle_ipv6()
174 vip.dport = dport; in handle_ipv6()
/linux-6.12.1/net/ipv4/netfilter/
Dnf_socket_ipv4.c69 const __be16 sport, const __be16 dport, in nf_socket_get_sock_v4() argument
75 skb, doff, saddr, sport, daddr, dport, in nf_socket_get_sock_v4()
78 return udp4_lib_lookup(net, saddr, sport, daddr, dport, in nf_socket_get_sock_v4()
88 __be16 dport, sport; in nf_sk_lookup_slow_v4() local
112 dport = hp->dest; in nf_sk_lookup_slow_v4()
120 &sport, &dport)) in nf_sk_lookup_slow_v4()
140 dport = (iph->protocol == IPPROTO_TCP) ? in nf_sk_lookup_slow_v4()
147 daddr, sport, dport, indev); in nf_sk_lookup_slow_v4()
Dnf_tproxy_ipv4.c80 const __be16 sport, const __be16 dport, in nf_tproxy_get_sock_v4() argument
100 saddr, sport, daddr, dport, in nf_tproxy_get_sock_v4()
113 daddr, dport, in->ifindex); in nf_tproxy_get_sock_v4()
121 sk = udp4_lib_lookup(net, saddr, sport, daddr, dport, in nf_tproxy_get_sock_v4()
146 protocol, ntohl(saddr), ntohs(sport), ntohl(daddr), ntohs(dport), lookup_type, sk); in nf_tproxy_get_sock_v4()
/linux-6.12.1/net/ipv6/netfilter/
Dnf_socket_ipv6.c81 const __be16 sport, const __be16 dport, in nf_socket_get_sock_v6() argument
87 skb, doff, saddr, sport, daddr, dport, in nf_socket_get_sock_v6()
90 return udp6_lib_lookup(net, saddr, sport, daddr, dport, in nf_socket_get_sock_v6()
100 __be16 dport, sport; in nf_sk_lookup_slow_v6() local
125 dport = hp->dest; in nf_sk_lookup_slow_v6()
133 &sport, &dport, &ipv6_var)) in nf_sk_lookup_slow_v6()
140 sport, dport, indev); in nf_sk_lookup_slow_v6()
/linux-6.12.1/net/ipv4/
Dfou_bpf.c17 __be16 dport; member
71 info->encap.dport = encap->dport; in bpf_skb_set_fou_encap()
96 encap->dport = info->encap.dport; in bpf_skb_get_fou_encap()
/linux-6.12.1/net/ipv6/
Dsyncookies.c42 __be16 sport, __be16 dport, u32 count, int c) in cookie_hash() argument
49 __be16 dport; in cookie_hash() member
55 .dport = dport in cookie_hash()
59 return siphash(&combined, offsetofend(typeof(combined), dport), in cookie_hash()
65 __be16 sport, __be16 dport, __u32 sseq, in secure_tcp_syn_cookie() argument
69 return (cookie_hash(saddr, daddr, sport, dport, 0, 0) + in secure_tcp_syn_cookie()
71 ((cookie_hash(saddr, daddr, sport, dport, count, 1) + data) in secure_tcp_syn_cookie()
77 __be16 dport, __u32 sseq) in check_tcp_syn_cookie() argument
81 cookie -= cookie_hash(saddr, daddr, sport, dport, 0, 0) + sseq; in check_tcp_syn_cookie()
88 cookie_hash(saddr, daddr, sport, dport, count - diff, 1)) in check_tcp_syn_cookie()
/linux-6.12.1/tools/testing/selftests/net/netfilter/packetdrill/
Dconntrack_rst_invalid.pkt31 +0 `conntrack -f $NFCT_IP_VERSION -L -p tcp --dport 8080 2>/dev/null |grep -q ESTABLISHED`
35 +0 `conntrack -f $NFCT_IP_VERSION -L -p tcp --dport 8080 2>/dev/null |grep -q ESTABLISHED`
39 +0 `conntrack -f $NFCT_IP_VERSION -L -p tcp --dport 8080 2>/dev/null |grep -q ESTABLISHED`
44 +0 `conntrack -f $NFCT_IP_VERSION -L -p tcp --dport 8080 2>/dev/null |grep -q ESTABLISHED`
49 +0 `conntrack -f $NFCT_IP_VERSION -L -p tcp --dport 8080 2>/dev/null |grep -q ESTABLISHED`
59 +0 `conntrack -f $NFCT_IP_VERSION -L -p tcp --dport 8080 2>/dev/null |grep -q CLOSE\ `
/linux-6.12.1/tools/testing/selftests/bpf/
Dgenerate_udp_fragments.py68 dport = SERVER_PORT
72 pkt = IP(src=sip,dst=dip) / UDP(sport=sport,dport=dport,chksum=0) / Raw(load=payload)
75 …pkt6 = IPv6(src=sip6,dst=dip6) / IPv6ExtHdrFragment(id=0xBEEF) / UDP(sport=sport,dport=dport) / Ra…
/linux-6.12.1/include/trace/events/
Dtcp.h33 __field(__u16, dport)
50 __entry->dport = ntohs(inet->inet_dport);
66 __entry->sport, __entry->dport, __entry->saddr, __entry->daddr,
156 __field(__u16, dport)
172 __entry->dport = ntohs(inet->inet_dport);
189 __entry->sport, __entry->dport,
226 __field(__u16, dport)
242 __entry->dport = ntohs(ireq->ir_rmt_port);
257 __entry->sport, __entry->dport,
275 __field(__u16, dport)
[all …]
Dicmp.h24 __field(__u16, dport)
42 __entry->dport = 0;
46 __entry->dport = ntohs(uh->dest);
60 __entry->dport, __entry->ulen, __entry->skbaddr)

12345678910