Home
last modified time | relevance | path

Searched refs:sport (Results 1 – 25 of 183) sorted by relevance

12345678

/linux-6.12.1/drivers/tty/serial/
Dimx.c273 static inline void imx_uart_writel(struct imx_port *sport, u32 val, u32 offset) in imx_uart_writel() argument
275 writel(val, sport->port.membase + offset); in imx_uart_writel()
278 static inline u32 imx_uart_readl(struct imx_port *sport, u32 offset) in imx_uart_readl() argument
280 return readl(sport->port.membase + offset); in imx_uart_readl()
283 static inline unsigned imx_uart_uts_reg(struct imx_port *sport) in imx_uart_uts_reg() argument
285 return sport->devdata->uts_reg; in imx_uart_uts_reg()
288 static inline int imx_uart_is_imx1(struct imx_port *sport) in imx_uart_is_imx1() argument
290 return sport->devdata->devtype == IMX1_UART; in imx_uart_is_imx1()
297 static void imx_uart_ucrs_save(struct imx_port *sport, in imx_uart_ucrs_save() argument
301 ucr->ucr1 = imx_uart_readl(sport, UCR1); in imx_uart_ucrs_save()
[all …]
Dfsl_lpuart.c362 static inline bool is_layerscape_lpuart(struct lpuart_port *sport) in is_layerscape_lpuart() argument
364 return (sport->devtype == LS1021A_LPUART || in is_layerscape_lpuart()
365 sport->devtype == LS1028A_LPUART); in is_layerscape_lpuart()
368 static inline bool is_imx7ulp_lpuart(struct lpuart_port *sport) in is_imx7ulp_lpuart() argument
370 return sport->devtype == IMX7ULP_LPUART; in is_imx7ulp_lpuart()
373 static inline bool is_imx8ulp_lpuart(struct lpuart_port *sport) in is_imx8ulp_lpuart() argument
375 return sport->devtype == IMX8ULP_LPUART; in is_imx8ulp_lpuart()
378 static inline bool is_imx8qxp_lpuart(struct lpuart_port *sport) in is_imx8qxp_lpuart() argument
380 return sport->devtype == IMX8QXP_LPUART; in is_imx8qxp_lpuart()
408 static int __lpuart_enable_clks(struct lpuart_port *sport, bool is_en) in __lpuart_enable_clks() argument
[all …]
Dsa1100.c45 #define UART_GET_UTCR0(sport) __raw_readl((sport)->port.membase + UTCR0) argument
46 #define UART_GET_UTCR1(sport) __raw_readl((sport)->port.membase + UTCR1) argument
47 #define UART_GET_UTCR2(sport) __raw_readl((sport)->port.membase + UTCR2) argument
48 #define UART_GET_UTCR3(sport) __raw_readl((sport)->port.membase + UTCR3) argument
49 #define UART_GET_UTSR0(sport) __raw_readl((sport)->port.membase + UTSR0) argument
50 #define UART_GET_UTSR1(sport) __raw_readl((sport)->port.membase + UTSR1) argument
51 #define UART_GET_CHAR(sport) __raw_readl((sport)->port.membase + UTDR) argument
53 #define UART_PUT_UTCR0(sport,v) __raw_writel((v),(sport)->port.membase + UTCR0) argument
54 #define UART_PUT_UTCR1(sport,v) __raw_writel((v),(sport)->port.membase + UTCR1) argument
55 #define UART_PUT_UTCR2(sport,v) __raw_writel((v),(sport)->port.membase + UTCR2) argument
[all …]
Dsb1250-duart.c95 struct sbd_port sport[2]; member
116 static u64 __read_sbdchn(struct sbd_port *sport, int reg) in __read_sbdchn() argument
118 void __iomem *csr = sport->port.membase + reg; in __read_sbdchn()
123 static u64 __read_sbdshr(struct sbd_port *sport, int reg) in __read_sbdshr() argument
125 void __iomem *csr = sport->memctrl + reg; in __read_sbdshr()
130 static void __write_sbdchn(struct sbd_port *sport, int reg, u64 value) in __write_sbdchn() argument
132 void __iomem *csr = sport->port.membase + reg; in __write_sbdchn()
137 static void __write_sbdshr(struct sbd_port *sport, int reg, u64 value) in __write_sbdshr() argument
139 void __iomem *csr = sport->memctrl + reg; in __write_sbdshr()
148 static void __war_sbd1956(struct sbd_port *sport) in __war_sbd1956() argument
[all …]
Dpic32_uart.c79 static inline void pic32_uart_writel(struct pic32_sport *sport, in pic32_uart_writel() argument
82 __raw_writel(val, sport->port.membase + reg); in pic32_uart_writel()
85 static inline u32 pic32_uart_readl(struct pic32_sport *sport, u32 reg) in pic32_uart_readl() argument
87 return __raw_readl(sport->port.membase + reg); in pic32_uart_readl()
129 static inline void pic32_wait_deplete_txbuf(struct pic32_sport *sport) in pic32_wait_deplete_txbuf() argument
132 while (!(pic32_uart_readl(sport, PIC32_UART_STA) & PIC32_UART_STA_TRMT)) in pic32_wait_deplete_txbuf()
139 struct pic32_sport *sport = to_pic32_sport(port); in pic32_uart_tx_empty() local
140 u32 val = pic32_uart_readl(sport, PIC32_UART_STA); in pic32_uart_tx_empty()
148 struct pic32_sport *sport = to_pic32_sport(port); in pic32_uart_set_mctrl() local
152 pic32_uart_writel(sport, PIC32_SET(PIC32_UART_MODE), in pic32_uart_set_mctrl()
[all …]
Dfsl_linflexuart.c160 static void linflex_put_char(struct uart_port *sport, unsigned char c) in linflex_put_char() argument
164 writeb(c, sport->membase + BDRL); in linflex_put_char()
167 while (((status = readl(sport->membase + UARTSR)) & in linflex_put_char()
172 writel(status | LINFLEXD_UARTSR_DTFTFF, sport->membase + UARTSR); in linflex_put_char()
175 static inline void linflex_transmit_buffer(struct uart_port *sport) in linflex_transmit_buffer() argument
177 struct tty_port *tport = &sport->state->port; in linflex_transmit_buffer()
180 while (uart_fifo_get(sport, &c)) { in linflex_transmit_buffer()
181 linflex_put_char(sport, c); in linflex_transmit_buffer()
182 sport->icount.tx++; in linflex_transmit_buffer()
186 uart_write_wakeup(sport); in linflex_transmit_buffer()
[all …]
Dpxa.c751 struct uart_pxa_port *sport = dev_get_drvdata(dev); in serial_pxa_suspend() local
753 if (sport) in serial_pxa_suspend()
754 uart_suspend_port(&serial_pxa_reg, &sport->port); in serial_pxa_suspend()
761 struct uart_pxa_port *sport = dev_get_drvdata(dev); in serial_pxa_resume() local
763 if (sport) in serial_pxa_resume()
764 uart_resume_port(&serial_pxa_reg, &sport->port); in serial_pxa_resume()
782 struct uart_pxa_port *sport) in serial_pxa_probe_dt() argument
795 sport->port.line = ret; in serial_pxa_probe_dt()
801 struct uart_pxa_port *sport; in serial_pxa_probe() local
814 sport = kzalloc(sizeof(struct uart_pxa_port), GFP_KERNEL); in serial_pxa_probe()
[all …]
Desp32_uart.c327 struct esp32_port *sport = container_of(port, struct esp32_port, port); in esp32_uart_startup() local
329 ret = clk_prepare_enable(sport->clk); in esp32_uart_startup()
335 clk_disable_unprepare(sport->clk); in esp32_uart_startup()
355 struct esp32_port *sport = container_of(port, struct esp32_port, port); in esp32_uart_shutdown() local
359 clk_disable_unprepare(sport->clk); in esp32_uart_shutdown()
481 struct esp32_port *sport = container_of(port, struct esp32_port, port); in esp32_uart_poll_init() local
483 return clk_prepare_enable(sport->clk); in esp32_uart_poll_init()
534 struct esp32_port *sport = esp32_uart_ports[co->index]; in esp32_uart_console_write() local
535 struct uart_port *port = &sport->port; in esp32_uart_console_write()
554 struct esp32_port *sport; in esp32_uart_console_setup() local
[all …]
/linux-6.12.1/drivers/infiniband/ulp/srpt/
Dib_srpt.c203 struct srpt_port *sport; in srpt_event_handler() local
213 sport = &sdev->port[port_num]; in srpt_event_handler()
214 sport->lid = 0; in srpt_event_handler()
215 sport->sm_lid = 0; in srpt_event_handler()
231 sport = &sdev->port[port_num]; in srpt_event_handler()
232 if (!sport->lid && !sport->sm_lid) in srpt_event_handler()
233 schedule_work(&sport->work); in srpt_event_handler()
383 static void srpt_get_ioc(struct srpt_port *sport, u32 slot, in srpt_get_ioc() argument
386 struct srpt_device *sdev = sport->sdev; in srpt_get_ioc()
425 iocp->rdma_size = cpu_to_be32(min(sport->port_attrib.srp_max_rdma_size, in srpt_get_ioc()
[all …]
/linux-6.12.1/include/net/
Dinet6_hashtables.h46 const __be16 sport,
62 __be16 sport,
71 const __be16 sport,
80 const __be16 sport,
89 const __be16 sport, in __inet6_lookup() argument
96 sport, daddr, hnum, in __inet6_lookup()
102 return inet6_lookup_listener(net, hashinfo, skb, doff, saddr, sport, in __inet6_lookup()
108 const struct in6_addr *saddr, const __be16 sport, in inet6_steal_sock() argument
133 saddr, sport, daddr, ntohs(dport), in inet6_steal_sock()
148 const __be16 sport, in __inet6_lookup_skb() argument
[all …]
Dinet_hashtables.h310 const __be32 saddr, const __be16 sport,
318 __be32 saddr, __be16 sport, in inet_lookup_listener() argument
321 return __inet_lookup_listener(net, hashinfo, skb, doff, saddr, sport, in inet_lookup_listener()
373 const __be32 saddr, const __be16 sport,
387 __be32 saddr, __be16 sport,
394 __be32 saddr, __be16 sport,
400 const __be32 saddr, const __be16 sport, in inet_lookup_established() argument
404 return __inet_lookup_established(net, hashinfo, saddr, sport, daddr, in inet_lookup_established()
411 const __be32 saddr, const __be16 sport, in __inet_lookup() argument
419 sk = __inet_lookup_established(net, hashinfo, saddr, sport, in __inet_lookup()
[all …]
Dsecure_seq.h13 __be16 sport, __be16 dport);
16 __be16 sport, __be16 dport);
20 __be16 sport, __be16 dport);
22 __be16 sport, __be16 dport);
/linux-6.12.1/net/core/
Dsecure_seq.c77 __be16 sport, __be16 dport) in secure_tcpv6_seq() argument
82 __be16 sport; in secure_tcpv6_seq() member
87 .sport = sport, in secure_tcpv6_seq()
137 __be16 sport, __be16 dport) in secure_tcp_seq() argument
143 (__force u32)sport << 16 | (__force u32)dport, in secure_tcp_seq()
162 __be16 sport, __be16 dport) in secure_dccp_sequence_number() argument
167 (__force u32)sport << 16 | (__force u32)dport, in secure_dccp_sequence_number()
177 __be16 sport, __be16 dport) in secure_dccpv6_sequence_number() argument
182 __be16 sport; in secure_dccpv6_sequence_number() member
187 .sport = sport, in secure_dccpv6_sequence_number()
/linux-6.12.1/net/ipv6/
Dinet6_hashtables.c52 const __be16 sport, in __inet6_lookup_established() argument
59 const __portpair ports = INET_COMBINED_PORTS(sport, hnum); in __inet6_lookup_established()
63 unsigned int hash = inet6_ehashfn(net, daddr, hnum, saddr, sport); in __inet6_lookup_established()
132 __be16 sport, in inet6_lookup_reuseport() argument
142 net, daddr, hnum, saddr, sport); in inet6_lookup_reuseport()
154 const __be16 sport, const struct in6_addr *daddr, in inet6_lhash2_lookup() argument
165 saddr, sport, daddr, hnum, inet6_ehashfn); in inet6_lhash2_lookup()
181 const __be16 sport, in inet6_lookup_run_sk_lookup() argument
189 no_reuseport = bpf_sk_lookup_run_v6(net, protocol, saddr, sport, in inet6_lookup_run_sk_lookup()
195 saddr, sport, daddr, hnum, ehashfn); in inet6_lookup_run_sk_lookup()
[all …]
Dfou6.c22 struct flowi6 *fl6, u8 *protocol, __be16 sport) in fou6_build_udp() argument
32 uh->source = sport; in fou6_build_udp()
43 __be16 sport; in fou6_build_header() local
48 err = __fou_build_header(skb, e, protocol, &sport, type); in fou6_build_header()
52 fou6_build_udp(skb, e, fl6, protocol, sport); in fou6_build_header()
60 __be16 sport; in gue6_build_header() local
65 err = __gue_build_header(skb, e, protocol, &sport, type); in gue6_build_header()
69 fou6_build_udp(skb, e, fl6, protocol, sport); in gue6_build_header()
Dsyncookies.c42 __be16 sport, __be16 dport, u32 count, int c) in cookie_hash() argument
48 __be16 sport; in cookie_hash() member
54 .sport = sport, 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()
76 const struct in6_addr *daddr, __be16 sport, 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/drivers/net/ethernet/microchip/sparx5/
Dsparx5_mirror.c113 static int sparx5_mirror_get(struct sparx5_port *sport, in sparx5_mirror_get() argument
116 struct sparx5 *sparx5 = sport->sparx5; in sparx5_mirror_get()
121 if (sparx5_mirror_has_monitor(sparx5, i, sport->portno)) in sparx5_mirror_get()
149 struct sparx5_port *sport, *mport; in sparx5_mirror_add() local
154 sport = entry->port; in sparx5_mirror_add()
157 sparx5 = sport->sparx5; in sparx5_mirror_add()
159 if (sport->portno == mport->portno) in sparx5_mirror_add()
162 err = sparx5_mirror_get(sport, mport, dir, &mirror_idx); in sparx5_mirror_add()
166 if (sparx5_mirror_contains(sparx5, mirror_idx, sport->portno)) in sparx5_mirror_add()
170 sparx5_mirror_port_add(sparx5, mirror_idx, sport->portno); in sparx5_mirror_add()
/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
123 sport = hp->source; 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.c16 __be16 sport; member
70 info->encap.sport = encap->sport; in bpf_skb_set_fou_encap()
95 encap->sport = info->encap.sport; in bpf_skb_get_fou_encap()
/linux-6.12.1/tools/testing/selftests/net/mptcp/
Duserspace_pm.sh202 client_port=$(mptcp_lib_evts_get_info sport "$client_evts")
558 local sport
559 sport=$(mptcp_lib_evts_get_info sport "$server_evts" $SUB_ESTABLISHED)
563 ip netns exec "$ns1" ./pm_nl_ctl dsf lip 10.0.2.1 lport "$sport" rip 10.0.2.2 rport\
597 sport=$(mptcp_lib_evts_get_info sport "$server_evts" $SUB_ESTABLISHED)
601 ip netns exec "$ns1" ./pm_nl_ctl dsf lip dead:beef:2::1 lport "$sport" rip\
636 sport=$(mptcp_lib_evts_get_info sport "$server_evts" $SUB_ESTABLISHED)
640 ip netns exec "$ns1" ./pm_nl_ctl dsf lip 10.0.2.1 lport "$sport" rip 10.0.2.2 rport\
674 sport=$(mptcp_lib_evts_get_info sport "$client_evts" $SUB_ESTABLISHED)
678 ip netns exec "$ns2" ./pm_nl_ctl dsf lip 10.0.2.2 lport "$sport" rip 10.0.2.1 rport\
[all …]
/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
110 sport = hp->source; in nf_sk_lookup_slow_v4()
120 &sport, &dport)) in nf_sk_lookup_slow_v4()
147 daddr, sport, dport, indev); in nf_sk_lookup_slow_v4()
/linux-6.12.1/tools/testing/selftests/bpf/
Dgenerate_udp_fragments.py67 sport = CLIENT_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.h32 __field(__u16, sport)
49 __entry->sport = ntohs(inet->inet_sport);
66 __entry->sport, __entry->dport, __entry->saddr, __entry->daddr,
155 __field(__u16, sport)
171 __entry->sport = ntohs(inet->inet_sport);
189 __entry->sport, __entry->dport,
225 __field(__u16, sport)
241 __entry->sport = ireq->ir_num;
257 __entry->sport, __entry->dport,
274 __field(__u16, sport)
[all …]
Dicmp.h23 __field(__u16, sport)
41 __entry->sport = 0;
45 __entry->sport = ntohs(uh->source);
59 __entry->saddr, __entry->sport, __entry->daddr,
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dtest_bpf_nf.c41 __be16 sport = 0; variable
168 bpf_tuple.ipv4.sport = bpf_get_prandom_u32(); /* src port */ in nf_ct_test()
174 __u16 sport = bpf_get_prandom_u32(); in nf_ct_test() local
185 bpf_ct_set_nat_info(ct, &saddr, sport, NF_NAT_MANIP_SRC___local); in nf_ct_test()
202 tuple->dst.u.all == bpf_htons(sport)) in nf_ct_test()
228 bpf_tuple.ipv4.sport = sport; in nf_ct_test()
268 bpf_tuple.ipv4.sport = bpf_get_prandom_u32(); /* src port */ in nf_ct_opts_new_test()
277 __u16 sport = bpf_get_prandom_u32(); in nf_ct_opts_new_test() local
287 bpf_ct_set_nat_info(ct, &saddr, sport, NF_NAT_MANIP_SRC___local); in nf_ct_opts_new_test()

12345678