Home
last modified time | relevance | path

Searched refs:doff (Results 1 – 25 of 99) 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.h59 struct sk_buff *skb, int doff,
67 struct sk_buff *skb, int doff,
76 struct sk_buff *skb, int doff,
84 struct sk_buff *skb, int doff, in __inet6_lookup() argument
99 return inet6_lookup_listener(net, skb, doff, saddr, sport, in __inet6_lookup()
104 struct sock *inet6_steal_sock(struct net *net, struct sk_buff *skb, int doff, in inet6_steal_sock() argument
129 reuse_sk = inet6_lookup_reuseport(net, sk, skb, doff, in inet6_steal_sock()
143 static inline struct sock *__inet6_lookup_skb(struct sk_buff *skb, int doff, in __inet6_lookup_skb() argument
153 sk = inet6_steal_sock(net, skb, doff, &ip6h->saddr, sport, &ip6h->daddr, dport, in __inet6_lookup_skb()
160 return __inet6_lookup(net, skb, doff, &ip6h->saddr, sport, in __inet6_lookup_skb()
[all …]
H A Dinet_hashtables.h298 struct sk_buff *skb, int doff,
305 struct sk_buff *skb, int doff, in inet_lookup_listener() argument
310 return __inet_lookup_listener(net, skb, doff, saddr, sport, in inet_lookup_listener()
374 struct sk_buff *skb, int doff,
381 struct sk_buff *skb, int doff,
396 struct sk_buff *skb, int doff, in __inet_lookup() argument
411 return __inet_lookup_listener(net, skb, doff, saddr, in __inet_lookup()
416 struct sk_buff *skb, int doff, in inet_lookup() argument
424 sk = __inet_lookup(net, skb, doff, saddr, sport, daddr, in inet_lookup()
433 struct sock *inet_steal_sock(struct net *net, struct sk_buff *skb, int doff, in inet_steal_sock() argument
[all …]
/linux/drivers/net/slip/
H A Dslhc.c268 if (th->doff < sizeof(struct tcphdr) / 4) in slhc_compress()
270 hlen = nlen + th->doff * 4; in slhc_compress()
357 || th->doff != cs->cs_tcp.doff in slhc_compress()
359 || (th->doff > 5 && memcmp(th+1,cs->cs_tcpopt,((th->doff)-5)*4) != 0)){ in slhc_compress()
480 if (th->doff > 5) in slhc_compress()
481 memcpy(cs->cs_tcpopt, th+1, ((th->doff) - 5) * 4); in slhc_compress()
547 hdrlen = ip->ihl * 4 + thp->doff * 4; in slhc_uncompress()
631 if (thp->doff > 5) { in slhc_uncompress()
632 memcpy(cp, cs->cs_tcpopt, ((thp->doff) - 5) * 4); in slhc_uncompress()
633 cp += ((thp->doff) - 5) * 4; in slhc_uncompress()
[all …]
/linux/net/ipv6/
H A Dinet6_hashtables.c130 struct sk_buff *skb, int doff, in inet6_lookup_reuseport() argument
143 reuse_sk = reuseport_select_sock(sk, phash, skb, doff); in inet6_lookup_reuseport()
152 struct sk_buff *skb, int doff, in inet6_lhash2_lookup() argument
164 result = inet6_lookup_reuseport(net, sk, skb, doff, in inet6_lhash2_lookup()
179 struct sk_buff *skb, int doff, in inet6_lookup_run_sk_lookup() argument
194 reuse_sk = inet6_lookup_reuseport(net, sk, skb, doff, in inet6_lookup_run_sk_lookup()
203 struct sk_buff *skb, int doff, in inet6_lookup_listener() argument
217 result = inet6_lookup_run_sk_lookup(net, IPPROTO_TCP, skb, doff, in inet6_lookup_listener()
228 result = inet6_lhash2_lookup(net, ilb2, skb, doff, in inet6_lookup_listener()
238 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()
/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/fs/nilfs2/
H A Dalloc.c587 size_t doff, boff; in nilfs_palloc_prepare_alloc_entry() local
611 doff = nilfs_palloc_group_desc_offset(inode, group, desc_bh); in nilfs_palloc_prepare_alloc_entry()
612 desc = kmap_local_folio(desc_bh->b_folio, doff); in nilfs_palloc_prepare_alloc_entry()
632 desc = kmap_local_folio(desc_bh->b_folio, doff); in nilfs_palloc_prepare_alloc_entry()
695 size_t doff, boff; in nilfs_palloc_commit_free_entry() local
701 doff = nilfs_palloc_group_desc_offset(inode, group, req->pr_desc_bh); in nilfs_palloc_commit_free_entry()
702 desc = kmap_local_folio(req->pr_desc_bh->b_folio, doff); in nilfs_palloc_commit_free_entry()
736 size_t doff, boff; in nilfs_palloc_abort_alloc_entry() local
742 doff = nilfs_palloc_group_desc_offset(inode, group, req->pr_desc_bh); in nilfs_palloc_abort_alloc_entry()
743 desc = kmap_local_folio(req->pr_desc_bh->b_folio, doff); in nilfs_palloc_abort_alloc_entry()
[all …]
/linux/drivers/dma/
H A Dfsl-edma-common.c453 edma_cp_tcd_to_reg(fsl_chan, tcd, doff); in fsl_edma_set_tcd_regs()
483 u16 biter, u16 doff, dma_addr_t dlast_sga, bool major_int, in fsl_edma_fill_tcd() argument
536 fsl_edma_set_tcd_to_le(fsl_chan, tcd, doff, doff); in fsl_edma_fill_tcd()
601 u16 soff, doff, iter; in fsl_edma_prep_dma_cyclic() local
649 doff = fsl_chan->is_multi_fifo ? 4 : 0; in fsl_edma_prep_dma_cyclic()
651 doff = fsl_chan->cfg.dst_addr_width; in fsl_edma_prep_dma_cyclic()
656 doff = fsl_chan->cfg.src_addr_width; in fsl_edma_prep_dma_cyclic()
663 soff = doff = 0; in fsl_edma_prep_dma_cyclic()
669 iter, doff, last_sg, major_int, false, true); in fsl_edma_prep_dma_cyclic()
685 u16 soff, doff, iter; in fsl_edma_prep_slave_sg() local
[all …]
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/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()
/linux/net/netfilter/
H A Dnf_synproxy_core.c29 synproxy_parse_options(const struct sk_buff *skb, unsigned int doff, in synproxy_parse_options()
32 int length = (th->doff * 4) - sizeof(*th); in synproxy_parse_options()
38 ptr = skb_header_pointer(skb, doff + sizeof(*th), length, buf); in synproxy_parse_options()
198 optend = protoff + th->doff * 4; in synproxy_tstamp_adjust()
478 nth->doff = tcp_hdr_size / 4; in synproxy_send_client_synack()
524 nth->doff = tcp_hdr_size / 4; in synproxy_send_server_syn()
564 nth->doff = tcp_hdr_size / 4; in synproxy_send_server_ack()
602 nth->doff = tcp_hdr_size / 4; in synproxy_send_client_ack()
891 nth->doff = tcp_hdr_size / 4; in synproxy_send_client_synack_ipv6()
938 nth->doff in synproxy_send_server_syn_ipv6()
28 synproxy_parse_options(const struct sk_buff * skb,unsigned int doff,const struct tcphdr * th,struct synproxy_options * opts) synproxy_parse_options() argument
[all...]
H A Dxt_tcpmss.c30 /* tcp.doff is only 4 bits, ie. max 15 * 4 bytes */ in tcpmss_mt()
41 if (th->doff*4 < sizeof(*th)) in tcpmss_mt()
44 optlen = th->doff*4 - sizeof(*th); in tcpmss_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()
H A Dxt_tcpudp.c113 if (th->doff * 4 < sizeof(_tcph)) { in tcp_mt()
118 th->doff*4 - sizeof(_tcph), in tcp_mt()
/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/net/ipv4/
H A Dinet_hashtables.c388 struct sk_buff *skb, int doff, in inet_lookup_reuseport() argument
399 reuse_sk = reuseport_select_sock(sk, phash, skb, doff); in inet_lookup_reuseport()
415 struct sk_buff *skb, int doff, in inet_lhash2_lookup() argument
427 result = inet_lookup_reuseport(net, sk, skb, doff, in inet_lhash2_lookup()
442 struct sk_buff *skb, int doff, in inet_lookup_run_sk_lookup() argument
455 reuse_sk = inet_lookup_reuseport(net, sk, skb, doff, saddr, sport, daddr, hnum, in inet_lookup_run_sk_lookup()
463 struct sk_buff *skb, int doff, in __inet_lookup_listener() argument
475 result = inet_lookup_run_sk_lookup(net, IPPROTO_TCP, skb, doff, in __inet_lookup_listener()
486 result = inet_lhash2_lookup(net, ilb2, skb, doff, in __inet_lookup_listener()
496 result = inet_lhash2_lookup(net, ilb2, skb, doff, in __inet_lookup_listener()
H A Dtcp_ipv4.c708 reply->doff = arg->iov[0].iov_len / 4; in tcp_v4_ao_sign_reset()
775 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset()
783 skb->len - (th->doff << 2)); in tcp_v4_send_reset()
852 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
866 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
965 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
980 rep.th.doff = arg.iov[0].iov_len/4; in tcp_v4_send_ack()
996 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
1597 tcp_v4_md5_hash_headers(&ctx, daddr, saddr, th, th->doff << 2);
1621 tcp_md5_hash_skb_data(&ctx, skb, th->doff << 2);
[all …]
H A Dtcp_offload.c110 if ((skb_pagelen(skb) - th->doff * 4 == skb_shinfo(skb)->gso_size) && in tcp4_gso_segment()
150 thlen = th->doff * 4; in tcp_gso_segment()
289 unsigned int thlen = th->doff * 4; in tcp_gro_receive()
/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/tools/include/uapi/linux/
H A Dtcp.h32 doff:4, member
42 __u16 doff:4, member

1234