Home
last modified time | relevance | path

Searched refs:tup (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/drivers/tty/serial/
Dserial-tegra.c152 static void tegra_uart_start_next_tx(struct tegra_uart_port *tup);
153 static int tegra_uart_start_rx_dma(struct tegra_uart_port *tup);
154 static void tegra_uart_dma_channel_free(struct tegra_uart_port *tup,
157 static inline unsigned long tegra_uart_read(struct tegra_uart_port *tup, in tegra_uart_read() argument
160 return readl(tup->uport.membase + (reg << tup->uport.regshift)); in tegra_uart_read()
163 static inline void tegra_uart_write(struct tegra_uart_port *tup, unsigned val, in tegra_uart_write() argument
166 writel(val, tup->uport.membase + (reg << tup->uport.regshift)); in tegra_uart_write()
176 struct tegra_uart_port *tup = to_tegra_uport(u); in tegra_uart_get_mctrl() local
187 if (tup->enable_modem_interrupt) in tegra_uart_get_mctrl()
192 static void set_rts(struct tegra_uart_port *tup, bool active) in set_rts() argument
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_bpf_nf_fail.c31 struct bpf_sock_tuple tup = {}; in alloc_release() local
34 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in alloc_release()
45 struct bpf_sock_tuple tup = {}; in insert_insert() local
48 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in insert_insert()
62 struct bpf_sock_tuple tup = {}; in lookup_insert() local
65 ct = bpf_skb_ct_lookup(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in lookup_insert()
76 struct bpf_sock_tuple tup = {}; in write_not_allowlisted_field() local
79 ct = bpf_skb_ct_lookup(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in write_not_allowlisted_field()
90 struct bpf_sock_tuple tup = {}; in set_timeout_after_insert() local
93 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in set_timeout_after_insert()
[all …]
Dtest_tcp_check_syncookie_kern.c48 struct bpf_sock_tuple tup; in check_syncookie() local
77 tup.ipv4.saddr = ipv4h->saddr; in check_syncookie()
78 tup.ipv4.daddr = ipv4h->daddr; in check_syncookie()
79 tup.ipv4.sport = tcph->source; in check_syncookie()
80 tup.ipv4.dport = tcph->dest; in check_syncookie()
82 sk = bpf_skc_lookup_tcp(ctx, &tup, sizeof(tup.ipv4), in check_syncookie()
109 memcpy(tup.ipv6.saddr, &ipv6h->saddr, sizeof(tup.ipv6.saddr)); in check_syncookie()
110 memcpy(tup.ipv6.daddr, &ipv6h->daddr, sizeof(tup.ipv6.daddr)); in check_syncookie()
111 tup.ipv6.sport = tcph->source; in check_syncookie()
112 tup.ipv6.dport = tcph->dest; in check_syncookie()
[all …]
Dxdp_synproxy_kern.c414 struct bpf_sock_tuple tup = {}; in tcp_lookup() local
425 tup.ipv4.saddr = hdr->ipv4->saddr; in tcp_lookup()
426 tup.ipv4.daddr = hdr->ipv4->daddr; in tcp_lookup()
427 tup.ipv4.sport = hdr->tcp->source; in tcp_lookup()
428 tup.ipv4.dport = hdr->tcp->dest; in tcp_lookup()
429 tup_size = sizeof(tup.ipv4); in tcp_lookup()
431 __builtin_memcpy(tup.ipv6.saddr, &hdr->ipv6->saddr, sizeof(tup.ipv6.saddr)); in tcp_lookup()
432 __builtin_memcpy(tup.ipv6.daddr, &hdr->ipv6->daddr, sizeof(tup.ipv6.daddr)); in tcp_lookup()
433 tup.ipv6.sport = hdr->tcp->source; in tcp_lookup()
434 tup.ipv6.dport = hdr->tcp->dest; in tcp_lookup()
[all …]