Home
last modified time | relevance | path

Searched refs:doff (Results 1 – 25 of 91) sorted by relevance

1234

/linux/arch/alpha/lib/
H A Dcsum_partial_copy.c181 unsigned long doff, in csum_partial_cfu_src_aligned() argument
190 mskql(partial_dest, doff, partial_dest); in csum_partial_cfu_src_aligned()
195 insql(word, doff, second_dest); in csum_partial_cfu_src_aligned()
200 insqh(word, doff, partial_dest); in csum_partial_cfu_src_aligned()
212 insql(word, doff, second_dest); in csum_partial_cfu_src_aligned()
213 len += doff; in csum_partial_cfu_src_aligned()
220 insqh(word, doff, partial_dest); in csum_partial_cfu_src_aligned()
222 doff = len; in csum_partial_cfu_src_aligned()
225 mskqh(second_dest, doff, second_dest); in csum_partial_cfu_src_aligned()
239 unsigned long soff, unsigned long doff, in csum_partial_cfu_unaligned() argument
[all …]
/linux/include/net/
H A Dinet6_hashtables.h61 struct sk_buff *skb, int doff,
69 struct sk_buff *skb, int doff,
78 struct sk_buff *skb, int doff,
86 struct sk_buff *skb, int doff, in __inet6_lookup() argument
101 return inet6_lookup_listener(net, skb, doff, saddr, sport, in __inet6_lookup()
106 struct sock *inet6_steal_sock(struct net *net, struct sk_buff *skb, int doff, in inet6_steal_sock() argument
131 reuse_sk = inet6_lookup_reuseport(net, sk, skb, doff, in inet6_steal_sock()
145 static inline struct sock *__inet6_lookup_skb(struct sk_buff *skb, int doff, in __inet6_lookup_skb() argument
155 sk = inet6_steal_sock(net, skb, doff, &ip6h->saddr, sport, &ip6h->daddr, dport, in __inet6_lookup_skb()
162 return __inet6_lookup(net, skb, doff, &ip6h->saddr, sport, in __inet6_lookup_skb()
[all …]
H A Dinet_hashtables.h311 struct sk_buff *skb, int doff,
318 struct sk_buff *skb, int doff, in inet_lookup_listener() argument
323 return __inet_lookup_listener(net, skb, doff, saddr, sport, in inet_lookup_listener()
387 struct sk_buff *skb, int doff,
394 struct sk_buff *skb, int doff,
409 struct sk_buff *skb, int doff, in __inet_lookup() argument
424 return __inet_lookup_listener(net, skb, doff, saddr, in __inet_lookup()
429 struct sk_buff *skb, int doff, in inet_lookup() argument
437 sk = __inet_lookup(net, skb, doff, saddr, sport, daddr, in inet_lookup()
446 struct sock *inet_steal_sock(struct net *net, struct sk_buff *skb, int doff, in inet_steal_sock() argument
[all …]
/linux/net/ipv6/
H A Dinet6_hashtables.c165 struct sk_buff *skb, int doff, in inet6_lookup_reuseport() argument
178 reuse_sk = reuseport_select_sock(sk, phash, skb, doff); in inet6_lookup_reuseport()
187 struct sk_buff *skb, int doff, in inet6_lhash2_lookup() argument
199 result = inet6_lookup_reuseport(net, sk, skb, doff, in inet6_lhash2_lookup()
214 struct sk_buff *skb, int doff, in inet6_lookup_run_sk_lookup() argument
229 reuse_sk = inet6_lookup_reuseport(net, sk, skb, doff, in inet6_lookup_run_sk_lookup()
238 struct sk_buff *skb, int doff, in inet6_lookup_listener() argument
252 result = inet6_lookup_run_sk_lookup(net, IPPROTO_TCP, skb, doff, in inet6_lookup_listener()
263 result = inet6_lhash2_lookup(net, ilb2, skb, doff, in inet6_lookup_listener()
273 result = inet6_lhash2_lookup(net, ilb2, skb, doff, in inet6_lookup_listener()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector.c106 .tcp.doff = 5,
127 .tcp.doff = 5,
150 .tcp.doff = 5,
173 .tcp.doff = 5,
197 .tcp.doff = 5,
224 .tcp.doff = 5,
246 .tcp.doff = 5,
273 .tcp.doff = 5,
296 .tcp.doff = 5,
319 .tcp.doff = 5,
[all …]
H A Dkfree_skb.c46 if (CHECK(pkt_v6->tcp.doff != 5, "check_tcp", in on_sample()
47 "tcp.doff %x\n", pkt_v6->tcp.doff)) in on_sample()
H A Dparse_tcp_hdr_opt.c20 .pk6_v6.tcp.doff = 9, /* 16 bytes of options */
/linux/net/rxrpc/
H A Dtxbuf.c23 size_t total, doff, jsize = sizeof(struct rxrpc_jumbo_header); in rxrpc_alloc_data_txbuf() local
33 doff = round_up(jsize, data_align); in rxrpc_alloc_data_txbuf()
34 total = doff + data_size; in rxrpc_alloc_data_txbuf()
54 txb->data = buf + doff; in rxrpc_alloc_data_txbuf()
/linux/net/ipv6/netfilter/
H A Dnf_socket_ipv6.c78 nf_socket_get_sock_v6(struct net *net, struct sk_buff *skb, int doff, in nf_socket_get_sock_v6() argument
86 return inet6_lookup(net, skb, doff, saddr, sport, daddr, dport, in nf_socket_get_sock_v6()
104 int doff = 0; in nf_sk_lookup_slow_v6() local
131 doff = tproto == IPPROTO_TCP ? in nf_sk_lookup_slow_v6()
162 return nf_socket_get_sock_v6(net, data_skb, doff, tproto, saddr, daddr, in nf_sk_lookup_slow_v6()
/linux/net/ipv4/netfilter/
H A Dnf_socket_ipv4.c66 nf_socket_get_sock_v4(struct net *net, struct sk_buff *skb, const int doff, in nf_socket_get_sock_v4() argument
74 return inet_lookup(net, skb, doff, saddr, sport, daddr, dport, in nf_socket_get_sock_v4()
95 int doff = 0; in nf_sk_lookup_slow_v4() local
116 doff = iph->protocol == IPPROTO_TCP ? in nf_sk_lookup_slow_v4()
148 return nf_socket_get_sock_v4(net, data_skb, doff, protocol, saddr, in nf_sk_lookup_slow_v4()
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tcp_custom_syncookie.c133 if (ctx->tcp->doff < sizeof(*ctx->tcp) / 4) in tcp_reload_headers()
137 if (bpf_skb_change_tail(ctx->skb, data_len + 60 - ctx->tcp->doff * 4, 0)) in tcp_reload_headers()
164 ctx->tcp->doff * 4, IPPROTO_TCP, csum); in tcp_v4_csum()
170 ctx->tcp->doff * 4, IPPROTO_TCP, csum); in tcp_v6_csum()
180 csum = bpf_csum_diff(0, 0, (void *)ctx->tcp, ctx->tcp->doff * 4, 0); in tcp_validate_header()
420 ctx->tcp->doff = ((long)ctx->ptr32 - (long)ctx->tcp) >> 2; in tcp_handle_syn()
426 csum = bpf_csum_diff(0, 0, (void *)ctx->tcp, ctx->tcp->doff * 4, 0); in tcp_handle_syn()
H A Dtest_select_reuseport_kern.c119 if ((th->doff << 2) + sizeof(*cmd) > data_check.len) in _select_by_skb_data()
121 if (bpf_skb_load_bytes(reuse_md, th->doff << 2, &cmd_copy, in _select_by_skb_data()
H A Dtest_parse_tcp_hdr_opt_dynptr.c94 tcp_hdr_opt_len = (tcp_hdr->doff * 4) - sizeof(struct tcphdr); in xdp_ingress_v6()
H A Dtest_parse_tcp_hdr_opt.c97 tcp_hdr_opt_len = (tcp_hdr->doff * 4) - sizeof(struct tcphdr); in xdp_ingress_v6()
/linux/net/netfilter/
H A Dxt_tcpmss.c45 if (th->doff*4 < sizeof(*th)) in tcpmss_mt()
48 optlen = th->doff*4 - sizeof(*th); in tcpmss_mt()
H A Dxt_tcpudp.c113 if (th->doff * 4 < sizeof(_tcph)) { in tcp_mt()
118 th->doff*4 - sizeof(_tcph), in tcp_mt()
H A Dxt_TCPMSS.c97 tcp_hdrlen = tcph->doff * 4; in tcpmss_mangle_packet()
189 tcph->doff += TCPOLEN_MSS/4; in tcpmss_mangle_packet()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dgf100.c98 read_div(struct gf100_clk *clk, int doff, u32 dsrc, u32 dctl) in read_div() argument
101 u32 ssrc = nvkm_rd32(device, dsrc + (doff * 4)); in read_div()
112 sclk = read_vco(clk, dsrc + (doff * 4)); in read_div()
115 if (doff <= 2) { in read_div()
116 sctl = nvkm_rd32(device, dctl + (doff * 4)); in read_div()
H A Dgk104.c106 read_div(struct gk104_clk *clk, int doff, u32 dsrc, u32 dctl) in read_div() argument
109 u32 ssrc = nvkm_rd32(device, dsrc + (doff * 4)); in read_div()
110 u32 sctl = nvkm_rd32(device, dctl + (doff * 4)); in read_div()
121 u32 sclk = read_vco(clk, dsrc + (doff * 4)); in read_div()
126 return read_vco(clk, dsrc + (doff * 4)); in read_div()
/linux/drivers/dma/
H A Dmpc512x_dma.c153 u32 doff:16; /* Signed destination address offset */ member
636 tcd->doff = 32; in mpc_dma_prep_memcpy()
642 tcd->doff = 16; in mpc_dma_prep_memcpy()
647 tcd->doff = 4; in mpc_dma_prep_memcpy()
652 tcd->doff = 2; in mpc_dma_prep_memcpy()
657 tcd->doff = 1; in mpc_dma_prep_memcpy()
749 tcd->doff = mchan->dwidth; in mpc_dma_prep_slave_sg()
758 tcd->doff = 0; in mpc_dma_prep_slave_sg()
/linux/net/ipv4/
H A Dinet_hashtables.c393 struct sk_buff *skb, int doff, in inet_lookup_reuseport() argument
404 reuse_sk = reuseport_select_sock(sk, phash, skb, doff); in inet_lookup_reuseport()
420 struct sk_buff *skb, int doff, in inet_lhash2_lookup() argument
432 result = inet_lookup_reuseport(net, sk, skb, doff, in inet_lhash2_lookup()
447 struct sk_buff *skb, int doff, in inet_lookup_run_sk_lookup() argument
460 reuse_sk = inet_lookup_reuseport(net, sk, skb, doff, saddr, sport, daddr, hnum, in inet_lookup_run_sk_lookup()
468 struct sk_buff *skb, int doff, in __inet_lookup_listener() argument
480 result = inet_lookup_run_sk_lookup(net, IPPROTO_TCP, skb, doff, in __inet_lookup_listener()
491 result = inet_lhash2_lookup(net, ilb2, skb, doff, in __inet_lookup_listener()
501 result = inet_lhash2_lookup(net, ilb2, skb, doff, in __inet_lookup_listener()
H A Dtcp_ipv4.c685 reply->doff = arg->iov[0].iov_len / 4; in tcp_v4_ao_sign_reset()
752 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset()
760 skb->len - (th->doff << 2)); in tcp_v4_send_reset()
829 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
843 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
942 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
957 rep.th.doff = arg.iov[0].iov_len/4; in tcp_v4_send_ack()
973 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
1568 tcp_v4_md5_hash_headers(&ctx, daddr, saddr, th, th->doff << 2);
1592 tcp_md5_hash_skb_data(&ctx, skb, th->doff << 2);
[all …]
/linux/tools/include/uapi/linux/
H A Dtcp.h32 doff:4, member
42 __u16 doff:4, member
/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/
H A Dnv50.c278 const u32 doff = nv50_ior_base(dac); in nv50_dac_clock() local
280 nvkm_mask(device, 0x614280 + doff, 0x07070707, 0x00000000); in nv50_dac_clock()
287 const u32 doff = nv50_ior_base(dac); in nv50_dac_sense() local
291 nvkm_wr32(device, 0x61a00c + doff, 0x00100000 | loadval); in nv50_dac_sense()
294 loadval = nvkm_mask(device, 0x61a00c + doff, 0xffffffff, 0x00000000); in nv50_dac_sense()
304 nv50_dac_power_wait(struct nvkm_device *device, const u32 doff) in nv50_dac_power_wait() argument
307 if (!(nvkm_rd32(device, 0x61a004 + doff) & 0x80000000)) in nv50_dac_power_wait()
316 const u32 doff = nv50_ior_base(dac); in nv50_dac_power() local
324 nv50_dac_power_wait(device, doff); in nv50_dac_power()
325 nvkm_mask(device, 0x61a004 + doff, field, state); in nv50_dac_power()
[all …]
/linux/include/net/netfilter/
H A Dnf_synproxy.h45 bool synproxy_parse_options(const struct sk_buff *skb, unsigned int doff,

1234