Home
last modified time | relevance | path

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

12345678

/linux-6.6.21/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.6.21/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.6.21/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.6.21/drivers/cxl/core/
Dport.c152 struct cxl_dport *dport = cxlsd->target[i]; in emit_target_list() local
155 if (!dport) in emit_target_list()
160 rc = sysfs_emit_at(buf, offset, "%d%s", dport->port_id, in emit_target_list()
728 static int cxl_dport_setup_regs(struct device *host, struct cxl_dport *dport, in cxl_dport_setup_regs() argument
733 if (dev_is_platform(dport->dport_dev)) in cxl_dport_setup_regs()
741 rc = cxl_setup_comp_regs(dport->dport_dev, &dport->comp_map, in cxl_dport_setup_regs()
743 dport->comp_map.host = host; in cxl_dport_setup_regs()
904 struct cxl_dport *dport; in find_dport() local
908 xa_for_each(&port->dports, index, dport) in find_dport()
909 if (dport->port_id == id) in find_dport()
[all …]
/linux-6.6.21/drivers/scsi/bfa/
Dbfa_svc.c5658 static void bfa_dport_sm_disabled(struct bfa_dport_s *dport,
5660 static void bfa_dport_sm_enabling_qwait(struct bfa_dport_s *dport,
5662 static void bfa_dport_sm_enabling(struct bfa_dport_s *dport,
5664 static void bfa_dport_sm_enabled(struct bfa_dport_s *dport,
5666 static void bfa_dport_sm_disabling_qwait(struct bfa_dport_s *dport,
5668 static void bfa_dport_sm_disabling(struct bfa_dport_s *dport,
5670 static void bfa_dport_sm_starting_qwait(struct bfa_dport_s *dport,
5672 static void bfa_dport_sm_starting(struct bfa_dport_s *dport,
5674 static void bfa_dport_sm_dynamic_disabling(struct bfa_dport_s *dport,
5676 static void bfa_dport_sm_dynamic_disabling_qwait(struct bfa_dport_s *dport,
[all …]
/linux-6.6.21/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.h324 __be32 daddr, __be16 dport, int dif, int sdif) in inet_lookup_listener() argument
327 daddr, ntohs(dport), dif, sdif); in inet_lookup_listener()
406 const __be32 daddr, const __be16 dport, in inet_lookup_established() argument
410 ntohs(dport), dif, 0); in inet_lookup_established()
417 const __be32 daddr, const __be16 dport, in __inet_lookup() argument
421 u16 hnum = ntohs(dport); in __inet_lookup()
438 const __be32 daddr, const __be16 dport, in inet_lookup() argument
445 dport, dif, 0, &refcounted); in inet_lookup()
455 const __be32 daddr, const __be16 dport, in inet_steal_sock() argument
479 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,
Droute.h168 __be16 dport, __be16 sport, in ip_route_output_ports() argument
174 daddr, saddr, dport, sport, sock_net_uid(net, sk)); in ip_route_output_ports()
296 __be16 sport, __be16 dport, in ip_route_connect_init() argument
306 src, dport, sport, sk->sk_uid); in ip_route_connect_init()
311 __be16 sport, __be16 dport, in ip_route_connect() argument
317 ip_route_connect_init(fl4, dst, src, oif, protocol, sport, dport, sk); in ip_route_connect()
332 __be16 sport, __be16 dport, in ip_route_newports() argument
335 if (sport != orig_sport || dport != orig_dport) { in ip_route_newports()
336 fl4->fl4_dport = dport; in ip_route_newports()
/linux-6.6.21/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.c89 int dport; in handle_ipv4() local
96 dport = get_dport(iph + 1, data_end, iph->protocol); in handle_ipv4()
97 if (dport == -1) in handle_ipv4()
103 vip.dport = dport; in handle_ipv4()
161 int dport; in handle_ipv6() local
166 dport = get_dport(ip6h + 1, data_end, ip6h->nexthdr); in handle_ipv6()
167 if (dport == -1) in handle_ipv6()
173 vip.dport = dport; in handle_ipv6()
Dtest_xdp_loop.c85 int dport; in handle_ipv4() local
92 dport = get_dport(iph + 1, data_end, iph->protocol); in handle_ipv4()
93 if (dport == -1) in handle_ipv4()
99 vip.dport = dport; in handle_ipv4()
157 int dport; in handle_ipv6() local
162 dport = get_dport(ip6h + 1, data_end, ip6h->nexthdr); in handle_ipv6()
163 if (dport == -1) in handle_ipv6()
169 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.c33 __be16 dport = 0; variable
148 bpf_tuple.ipv4.dport = bpf_get_prandom_u32(); /* dst port */ in nf_ct_test()
154 __u16 dport = bpf_get_prandom_u32(); in nf_ct_test() local
167 bpf_ct_set_nat_info(ct, &daddr, dport, NF_NAT_MANIP_DST___local); in nf_ct_test()
184 tuple->src.u.all == bpf_htons(dport)) in nf_ct_test()
208 bpf_tuple.ipv4.dport = dport; in nf_ct_test()
/linux-6.6.21/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.c78 const __be16 sport, const __be16 dport, in nf_tproxy_get_sock_v4() argument
98 saddr, sport, daddr, dport, in nf_tproxy_get_sock_v4()
111 daddr, dport, in->ifindex); in nf_tproxy_get_sock_v4()
119 sk = udp4_lib_lookup(net, saddr, sport, daddr, dport, in nf_tproxy_get_sock_v4()
144 protocol, ntohl(saddr), ntohs(sport), ntohl(daddr), ntohs(dport), lookup_type, sk); in nf_tproxy_get_sock_v4()
/linux-6.6.21/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.6.21/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()
Dnf_tproxy_ipv6.c79 const __be16 sport, const __be16 dport, in nf_tproxy_get_sock_v6() argument
100 daddr, ntohs(dport), in nf_tproxy_get_sock_v6()
113 ntohs(dport), in->ifindex, 0); in nf_tproxy_get_sock_v6()
121 sk = udp6_lib_lookup(net, saddr, sport, daddr, dport, in nf_tproxy_get_sock_v6()
145 protocol, saddr, ntohs(sport), daddr, ntohs(dport), lookup_type, sk); in nf_tproxy_get_sock_v6()
/linux-6.6.21/net/ipv4/
Dfou_bpf.c17 __be16 dport; member
73 info->encap.dport = encap->dport; in bpf_skb_set_fou_encap()
98 encap->dport = info->encap.dport; in bpf_skb_get_fou_encap()
/linux-6.6.21/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.6.21/include/trace/events/
Dtcp.h61 __field(__u16, dport)
78 __entry->dport = ntohs(inet->inet_dport);
93 __entry->sport, __entry->dport, __entry->saddr, __entry->daddr,
130 __field(__u16, dport)
146 __entry->dport = ntohs(inet->inet_dport);
163 __entry->sport, __entry->dport,
200 __field(__u16, dport)
216 __entry->dport = ntohs(ireq->ir_rmt_port);
231 __entry->sport, __entry->dport,
249 __field(__u16, dport)
[all …]
/linux-6.6.21/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()
/linux-6.6.21/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.6.21/security/
Dlsm_audit.c61 ad->u.net->dport = th->dest; in ipv4_skb_to_auditdata()
68 ad->u.net->dport = uh->dest; in ipv4_skb_to_auditdata()
75 ad->u.net->dport = dh->dccph_dport; in ipv4_skb_to_auditdata()
82 ad->u.net->dport = sh->dest; in ipv4_skb_to_auditdata()
129 ad->u.net->dport = th->dest; in ipv6_skb_to_auditdata()
140 ad->u.net->dport = uh->dest; in ipv6_skb_to_auditdata()
151 ad->u.net->dport = dh->dccph_dport; in ipv6_skb_to_auditdata()
161 ad->u.net->dport = sh->dest; in ipv6_skb_to_auditdata()
369 a->u.net->dport, in dump_common_audit_data()
377 a->u.net->dport, in dump_common_audit_data()

12345678