Home
last modified time | relevance | path

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

12345

/Linux-v5.4/drivers/tty/serial/
Dimx.c284 static void imx_uart_writel(struct imx_port *sport, u32 val, u32 offset) in imx_uart_writel() argument
288 sport->ucr1 = val; in imx_uart_writel()
291 sport->ucr2 = val; in imx_uart_writel()
294 sport->ucr3 = val; in imx_uart_writel()
297 sport->ucr4 = val; in imx_uart_writel()
300 sport->ufcr = val; in imx_uart_writel()
305 writel(val, sport->port.membase + offset); in imx_uart_writel()
308 static u32 imx_uart_readl(struct imx_port *sport, u32 offset) in imx_uart_readl() argument
312 return sport->ucr1; in imx_uart_readl()
321 if (!(sport->ucr2 & UCR2_SRST)) in imx_uart_readl()
[all …]
Dfsl_lpuart.c313 static inline bool is_imx8qxp_lpuart(struct lpuart_port *sport) in is_imx8qxp_lpuart() argument
315 return sport->devtype == IMX8QXP_LPUART; in is_imx8qxp_lpuart()
343 static int __lpuart_enable_clks(struct lpuart_port *sport, bool is_en) in __lpuart_enable_clks() argument
348 ret = clk_prepare_enable(sport->ipg_clk); in __lpuart_enable_clks()
352 ret = clk_prepare_enable(sport->baud_clk); in __lpuart_enable_clks()
354 clk_disable_unprepare(sport->ipg_clk); in __lpuart_enable_clks()
358 clk_disable_unprepare(sport->baud_clk); in __lpuart_enable_clks()
359 clk_disable_unprepare(sport->ipg_clk); in __lpuart_enable_clks()
365 static unsigned int lpuart_get_baud_clk_rate(struct lpuart_port *sport) in lpuart_get_baud_clk_rate() argument
367 if (is_imx8qxp_lpuart(sport)) in lpuart_get_baud_clk_rate()
[all …]
Dsa1100.c49 #define UART_GET_UTCR0(sport) __raw_readl((sport)->port.membase + UTCR0) argument
50 #define UART_GET_UTCR1(sport) __raw_readl((sport)->port.membase + UTCR1) argument
51 #define UART_GET_UTCR2(sport) __raw_readl((sport)->port.membase + UTCR2) argument
52 #define UART_GET_UTCR3(sport) __raw_readl((sport)->port.membase + UTCR3) argument
53 #define UART_GET_UTSR0(sport) __raw_readl((sport)->port.membase + UTSR0) argument
54 #define UART_GET_UTSR1(sport) __raw_readl((sport)->port.membase + UTSR1) argument
55 #define UART_GET_CHAR(sport) __raw_readl((sport)->port.membase + UTDR) argument
57 #define UART_PUT_UTCR0(sport,v) __raw_writel((v),(sport)->port.membase + UTCR0) argument
58 #define UART_PUT_UTCR1(sport,v) __raw_writel((v),(sport)->port.membase + UTCR1) argument
59 #define UART_PUT_UTCR2(sport,v) __raw_writel((v),(sport)->port.membase + UTCR2) argument
[all …]
Dpnx8xxx_uart.c65 static inline int serial_in(struct pnx8xxx_port *sport, int offset) in serial_in() argument
67 return (__raw_readl(sport->port.membase + offset)); in serial_in()
70 static inline void serial_out(struct pnx8xxx_port *sport, int offset, int value) in serial_out() argument
72 __raw_writel(value, sport->port.membase + offset); in serial_out()
78 static void pnx8xxx_mctrl_check(struct pnx8xxx_port *sport) in pnx8xxx_mctrl_check() argument
82 status = sport->port.ops->get_mctrl(&sport->port); in pnx8xxx_mctrl_check()
83 changed = status ^ sport->old_status; in pnx8xxx_mctrl_check()
88 sport->old_status = status; in pnx8xxx_mctrl_check()
91 sport->port.icount.rng++; in pnx8xxx_mctrl_check()
93 sport->port.icount.dsr++; in pnx8xxx_mctrl_check()
[all …]
Dsb1250-duart.c100 struct sbd_port sport[2]; member
121 static u64 __read_sbdchn(struct sbd_port *sport, int reg) in __read_sbdchn() argument
123 void __iomem *csr = sport->port.membase + reg; in __read_sbdchn()
128 static u64 __read_sbdshr(struct sbd_port *sport, int reg) in __read_sbdshr() argument
130 void __iomem *csr = sport->memctrl + reg; in __read_sbdshr()
135 static void __write_sbdchn(struct sbd_port *sport, int reg, u64 value) in __write_sbdchn() argument
137 void __iomem *csr = sport->port.membase + reg; in __write_sbdchn()
142 static void __write_sbdshr(struct sbd_port *sport, int reg, u64 value) in __write_sbdshr() argument
144 void __iomem *csr = sport->memctrl + reg; in __write_sbdshr()
153 static void __war_sbd1956(struct sbd_port *sport) in __war_sbd1956() argument
[all …]
Dpic32_uart.c38 static inline void pic32_wait_deplete_txbuf(struct pic32_sport *sport) in pic32_wait_deplete_txbuf() argument
41 while (!(pic32_uart_readl(sport, PIC32_UART_STA) & PIC32_UART_STA_TRMT)) in pic32_wait_deplete_txbuf()
45 static inline int pic32_enable_clock(struct pic32_sport *sport) in pic32_enable_clock() argument
47 int ret = clk_prepare_enable(sport->clk); in pic32_enable_clock()
52 sport->ref_clk++; in pic32_enable_clock()
56 static inline void pic32_disable_clock(struct pic32_sport *sport) in pic32_disable_clock() argument
58 sport->ref_clk--; in pic32_disable_clock()
59 clk_disable_unprepare(sport->clk); in pic32_disable_clock()
65 struct pic32_sport *sport = to_pic32_sport(port); in pic32_uart_tx_empty() local
66 u32 val = pic32_uart_readl(sport, PIC32_UART_STA); in pic32_uart_tx_empty()
[all …]
Dfsl_linflexuart.c165 static inline void linflex_transmit_buffer(struct uart_port *sport) in linflex_transmit_buffer() argument
167 struct circ_buf *xmit = &sport->state->xmit; in linflex_transmit_buffer()
173 writeb(c, sport->membase + BDRL); in linflex_transmit_buffer()
176 while (((status = readl(sport->membase + UARTSR)) & in linflex_transmit_buffer()
182 sport->icount.tx++; in linflex_transmit_buffer()
185 sport->membase + UARTSR); in linflex_transmit_buffer()
189 uart_write_wakeup(sport); in linflex_transmit_buffer()
192 linflex_stop_tx(sport); in linflex_transmit_buffer()
206 struct uart_port *sport = dev_id; in linflex_txint() local
207 struct circ_buf *xmit = &sport->state->xmit; in linflex_txint()
[all …]
Dpic32_uart.h70 #define pic32_get_port(sport) (&sport->port) argument
71 #define pic32_get_opt(sport) (&sport->opt) argument
72 #define tx_irq_enabled(sport) (sport->enable_tx_irq) argument
74 static inline void pic32_uart_writel(struct pic32_sport *sport, in pic32_uart_writel() argument
77 struct uart_port *port = pic32_get_port(sport); in pic32_uart_writel()
82 static inline u32 pic32_uart_readl(struct pic32_sport *sport, u32 reg) in pic32_uart_readl() argument
84 struct uart_port *port = pic32_get_port(sport); in pic32_uart_readl()
Dpxa.c798 struct uart_pxa_port *sport = dev_get_drvdata(dev); in serial_pxa_suspend() local
800 if (sport) in serial_pxa_suspend()
801 uart_suspend_port(&serial_pxa_reg, &sport->port); in serial_pxa_suspend()
808 struct uart_pxa_port *sport = dev_get_drvdata(dev); in serial_pxa_resume() local
810 if (sport) in serial_pxa_resume()
811 uart_resume_port(&serial_pxa_reg, &sport->port); in serial_pxa_resume()
829 struct uart_pxa_port *sport) in serial_pxa_probe_dt() argument
842 sport->port.line = ret; in serial_pxa_probe_dt()
848 struct uart_pxa_port *sport; in serial_pxa_probe() local
857 sport = kzalloc(sizeof(struct uart_pxa_port), GFP_KERNEL); in serial_pxa_probe()
[all …]
/Linux-v5.4/drivers/infiniband/ulp/srpt/
Dib_srpt.c139 struct srpt_port *sport; in srpt_event_handler() local
153 sport = &sdev->port[port_num]; in srpt_event_handler()
154 sport->lid = 0; in srpt_event_handler()
155 sport->sm_lid = 0; in srpt_event_handler()
171 sport = &sdev->port[port_num]; in srpt_event_handler()
172 if (!sport->lid && !sport->sm_lid) in srpt_event_handler()
173 schedule_work(&sport->work); in srpt_event_handler()
320 static void srpt_get_ioc(struct srpt_port *sport, u32 slot, in srpt_get_ioc() argument
323 struct srpt_device *sdev = sport->sdev; in srpt_get_ioc()
362 iocp->rdma_size = cpu_to_be32(min(sport->port_attrib.srp_max_rdma_size, in srpt_get_ioc()
[all …]
/Linux-v5.4/net/core/
Dsecure_seq.c76 __be16 sport, __be16 dport) in secure_tcpv6_seq() argument
81 __be16 sport; in secure_tcpv6_seq() member
86 .sport = sport, in secure_tcpv6_seq()
134 __be16 sport, __be16 dport) in secure_tcp_seq() argument
140 (__force u32)sport << 16 | (__force u32)dport, in secure_tcp_seq()
157 __be16 sport, __be16 dport) in secure_dccp_sequence_number() argument
162 (__force u32)sport << 16 | (__force u32)dport, in secure_dccp_sequence_number()
172 __be16 sport, __be16 dport) in secure_dccpv6_sequence_number() argument
177 __be16 sport; in secure_dccpv6_sequence_number() member
182 .sport = sport, in secure_dccpv6_sequence_number()
/Linux-v5.4/include/net/
Dinet6_hashtables.h46 const __be16 sport,
55 const __be16 sport,
64 const __be16 sport, in __inet6_lookup() argument
71 sport, daddr, hnum, in __inet6_lookup()
77 return inet6_lookup_listener(net, hashinfo, skb, doff, saddr, sport, in __inet6_lookup()
83 const __be16 sport, in __inet6_lookup_skb() argument
95 doff, &ipv6_hdr(skb)->saddr, sport, in __inet6_lookup_skb()
102 const struct in6_addr *saddr, const __be16 sport,
Dinet_hashtables.h247 const __be32 saddr, const __be16 sport,
255 __be32 saddr, __be16 sport, in inet_lookup_listener() argument
258 return __inet_lookup_listener(net, hashinfo, skb, doff, saddr, sport, in inet_lookup_listener()
315 const __be32 saddr, const __be16 sport,
321 const __be32 saddr, const __be16 sport, in inet_lookup_established() argument
325 return __inet_lookup_established(net, hashinfo, saddr, sport, daddr, in inet_lookup_established()
332 const __be32 saddr, const __be16 sport, in __inet_lookup() argument
340 sk = __inet_lookup_established(net, hashinfo, saddr, sport, in __inet_lookup()
347 sport, daddr, hnum, dif, sdif); in __inet_lookup()
353 const __be32 saddr, const __be16 sport, in inet_lookup() argument
[all …]
Dsecure_seq.h11 __be16 sport, __be16 dport);
14 __be16 sport, __be16 dport);
18 __be16 sport, __be16 dport);
20 __be16 sport, __be16 dport);
Dflow.h49 __be16 sport; member
59 __le16 sport; member
89 #define fl4_sport uli.ports.sport
102 __be16 dport, __be16 sport, in flowi4_init_output() argument
118 fl4->fl4_sport = sport; in flowi4_init_output()
148 #define fl6_sport uli.ports.sport
169 #define fld_sport uli.ports.sport
Droute.h154 __be16 dport, __be16 sport, in ip_route_output_ports() argument
160 daddr, saddr, dport, sport, sock_net_uid(net, sk)); in ip_route_output_ports()
283 __be16 sport, __be16 dport, in ip_route_connect_init() argument
292 protocol, flow_flags, dst, src, dport, sport, in ip_route_connect_init()
299 __be16 sport, __be16 dport, in ip_route_connect() argument
306 sport, dport, sk); in ip_route_connect()
321 __be16 sport, __be16 dport, in ip_route_newports() argument
324 if (sport != orig_sport || dport != orig_dport) { in ip_route_newports()
326 fl4->fl4_sport = sport; in ip_route_newports()
/Linux-v5.4/net/ipv6/netfilter/
Dnf_socket_ipv6.c81 const __be16 sport, const __be16 dport, in nf_socket_get_sock_v6() argument
87 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 uninitialized_var(dport), uninitialized_var(sport); in nf_sk_lookup_slow_v6()
123 sport = hp->source; in nf_sk_lookup_slow_v6()
135 &sport, &dport, &ipv6_var)) in nf_sk_lookup_slow_v6()
142 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
98 saddr, sport, in nf_tproxy_get_sock_v6()
112 saddr, sport, daddr, ntohs(dport), 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-v5.4/net/ipv6/
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()
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()
119 const __be16 sport, const struct in6_addr *daddr, in inet6_lhash2_lookup() argument
135 saddr, sport); in inet6_lhash2_lookup()
153 const __be16 sport, const struct in6_addr *daddr, in inet6_lookup_listener() argument
164 saddr, sport, daddr, hnum, in inet6_lookup_listener()
174 saddr, sport, &in6addr_any, hnum, in inet6_lookup_listener()
185 const struct in6_addr *saddr, const __be16 sport, in inet6_lookup() argument
192 sk = __inet6_lookup(net, hashinfo, skb, doff, saddr, sport, daddr, in inet6_lookup()
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-v5.4/include/trace/events/
Dtcp.h60 __field(__u16, sport)
76 __entry->sport = ntohs(inet->inet_sport);
90 __entry->sport, __entry->dport, __entry->saddr, __entry->daddr,
126 __field(__u16, sport)
141 __entry->sport = ntohs(inet->inet_sport);
157 __entry->sport, __entry->dport,
193 __field(__u16, sport)
208 __entry->sport = ireq->ir_num;
222 __entry->sport, __entry->dport,
239 __field(__u16, sport)
[all …]
/Linux-v5.4/net/ipv4/netfilter/
Dnf_socket_ipv4.c77 const __be16 sport, const __be16 dport, in nf_socket_get_sock_v4() argument
83 saddr, sport, daddr, dport, in nf_socket_get_sock_v4()
86 return udp4_lib_lookup(net, saddr, sport, daddr, dport, in nf_socket_get_sock_v4()
96 __be16 uninitialized_var(dport), uninitialized_var(sport); in nf_sk_lookup_slow_v4()
118 sport = hp->source; in nf_sk_lookup_slow_v4()
128 &sport, &dport)) in nf_sk_lookup_slow_v4()
155 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, in nf_tproxy_get_sock_v4()
112 saddr, sport, daddr, dport, 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-v5.4/security/
Dlsm_audit.c64 ad->u.net->sport = th->source; in ipv4_skb_to_auditdata()
73 ad->u.net->sport = uh->source; in ipv4_skb_to_auditdata()
82 ad->u.net->sport = dh->dccph_sport; in ipv4_skb_to_auditdata()
90 ad->u.net->sport = sh->source; in ipv4_skb_to_auditdata()
140 ad->u.net->sport = th->source; in ipv6_skb_to_auditdata()
151 ad->u.net->sport = uh->source; in ipv6_skb_to_auditdata()
162 ad->u.net->sport = dh->dccph_sport; in ipv6_skb_to_auditdata()
172 ad->u.net->sport = sh->source; in ipv6_skb_to_auditdata()
373 a->u.net->sport, in dump_common_audit_data()
381 a->u.net->sport, in dump_common_audit_data()

12345