/openbmc/linux/arch/alpha/lib/ |
H A D | csum_partial_copy.c | 181 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 …]
|
/openbmc/linux/include/net/ |
H A D | inet6_hashtables.h | 60 struct sk_buff *skb, int doff, 69 struct sk_buff *skb, int doff, 78 struct sk_buff *skb, int doff, 87 struct sk_buff *skb, int doff, in __inet6_lookup() argument 102 return inet6_lookup_listener(net, hashinfo, skb, doff, saddr, sport, in __inet6_lookup() 107 struct sock *inet6_steal_sock(struct net *net, struct sk_buff *skb, int doff, in inet6_steal_sock() argument 132 reuse_sk = inet6_lookup_reuseport(net, sk, skb, doff, in inet6_steal_sock() 147 struct sk_buff *skb, int doff, in __inet6_lookup_skb() argument 157 sk = inet6_steal_sock(net, skb, doff, &ip6h->saddr, sport, &ip6h->daddr, dport, in __inet6_lookup_skb() 165 doff, &ip6h->saddr, sport, in __inet6_lookup_skb() [all …]
|
H A D | inet_hashtables.h | 314 struct sk_buff *skb, int doff, 322 struct sk_buff *skb, int doff, in inet_lookup_listener() argument 326 return __inet_lookup_listener(net, hashinfo, skb, doff, saddr, sport, in inet_lookup_listener() 391 struct sk_buff *skb, int doff, 398 struct sk_buff *skb, int doff, 415 struct sk_buff *skb, int doff, in __inet_lookup() argument 430 return __inet_lookup_listener(net, hashinfo, skb, doff, saddr, in __inet_lookup() 436 struct sk_buff *skb, int doff, in inet_lookup() argument 444 sk = __inet_lookup(net, hashinfo, skb, doff, saddr, sport, daddr, in inet_lookup() 453 struct sock *inet_steal_sock(struct net *net, struct sk_buff *skb, int doff, in inet_steal_sock() argument [all …]
|
/openbmc/linux/net/ipv6/ |
H A D | inet6_hashtables.c | 131 struct sk_buff *skb, int doff, in inet6_lookup_reuseport() argument 144 reuse_sk = reuseport_select_sock(sk, phash, skb, doff); in inet6_lookup_reuseport() 153 struct sk_buff *skb, int doff, in inet6_lhash2_lookup() argument 165 result = inet6_lookup_reuseport(net, sk, skb, doff, in inet6_lhash2_lookup() 180 struct sk_buff *skb, int doff, in inet6_lookup_run_sk_lookup() argument 195 reuse_sk = inet6_lookup_reuseport(net, sk, skb, doff, in inet6_lookup_run_sk_lookup() 205 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() 227 result = inet6_lhash2_lookup(net, ilb2, skb, doff, in inet6_lookup_listener() 237 result = inet6_lhash2_lookup(net, ilb2, skb, doff, in inet6_lookup_listener() [all …]
|
/openbmc/linux/drivers/net/slip/ |
H A D | slhc.c | 268 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 …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | flow_dissector.c | 119 .tcp.doff = 5, 140 .tcp.doff = 5, 163 .tcp.doff = 5, 186 .tcp.doff = 5, 210 .tcp.doff = 5, 237 .tcp.doff = 5, 259 .tcp.doff = 5, 286 .tcp.doff = 5, 309 .tcp.doff = 5, 332 .tcp.doff = 5, [all …]
|
H A D | kfree_skb.c | 46 if (CHECK(pkt_v6->tcp.doff != 5, "check_tcp", in on_sample() 47 "tcp.doff %x\n", pkt_v6->tcp.doff)) in on_sample()
|
/openbmc/linux/net/ipv6/netfilter/ |
H A D | nf_socket_ipv6.c | 78 nf_socket_get_sock_v6(struct net *net, struct sk_buff *skb, int doff, in nf_socket_get_sock_v6() argument 87 skb, doff, saddr, sport, daddr, dport, in nf_socket_get_sock_v6() 104 int doff = 0; in nf_sk_lookup_slow_v6() local 127 doff = tproto == IPPROTO_TCP ? in nf_sk_lookup_slow_v6() 139 return nf_socket_get_sock_v6(net, data_skb, doff, tproto, saddr, daddr, in nf_sk_lookup_slow_v6()
|
/openbmc/linux/net/ipv4/netfilter/ |
H A D | nf_socket_ipv4.c | 66 nf_socket_get_sock_v4(struct net *net, struct sk_buff *skb, const int doff, in nf_socket_get_sock_v4() argument 75 skb, doff, saddr, sport, daddr, dport, in nf_socket_get_sock_v4() 96 int doff = 0; in nf_sk_lookup_slow_v4() local 114 doff = iph->protocol == IPPROTO_TCP ? in nf_sk_lookup_slow_v4() 146 return nf_socket_get_sock_v4(net, data_skb, doff, protocol, saddr, in nf_sk_lookup_slow_v4()
|
/openbmc/linux/drivers/dma/ |
H A D | fsl-edma-common.c | 446 edma_write_tcdreg(fsl_chan, tcd->doff, doff); in fsl_edma_set_tcd_regs() 476 u16 biter, u16 doff, u32 dlast_sga, bool major_int, in fsl_edma_fill_tcd() argument 515 tcd->doff = cpu_to_le16(doff); in fsl_edma_fill_tcd() 577 u16 soff, doff, iter; in fsl_edma_prep_dma_cyclic() local 618 doff = fsl_chan->is_multi_fifo ? 4 : 0; in fsl_edma_prep_dma_cyclic() 623 doff = fsl_chan->cfg.src_addr_width; in fsl_edma_prep_dma_cyclic() 628 soff = doff = 0; in fsl_edma_prep_dma_cyclic() 634 iter, doff, last_sg, major_int, false, true); in fsl_edma_prep_dma_cyclic() 650 u16 soff, doff, iter; in fsl_edma_prep_slave_sg() local 682 doff = 0; in fsl_edma_prep_slave_sg() [all …]
|
H A D | mpc512x_dma.c | 153 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()
|
/openbmc/linux/net/netfilter/ |
H A D | xt_tcpmss.c | 41 if (th->doff*4 < sizeof(*th)) in tcpmss_mt() 44 optlen = th->doff*4 - sizeof(*th); in tcpmss_mt()
|
H A D | nf_synproxy_core.c | 28 synproxy_parse_options(const struct sk_buff *skb, unsigned int doff, in synproxy_parse_options() argument 31 int length = (th->doff * 4) - sizeof(*th); in synproxy_parse_options() 37 ptr = skb_header_pointer(skb, doff + sizeof(*th), length, buf); in synproxy_parse_options() 197 optend = protoff + th->doff * 4; in synproxy_tstamp_adjust() 477 nth->doff = tcp_hdr_size / 4; in synproxy_send_client_synack() 523 nth->doff = tcp_hdr_size / 4; in synproxy_send_server_syn() 563 nth->doff = tcp_hdr_size / 4; in synproxy_send_server_ack() 601 nth->doff = tcp_hdr_size / 4; in synproxy_send_client_ack() 890 nth->doff = tcp_hdr_size / 4; in synproxy_send_client_synack_ipv6() 937 nth->doff = tcp_hdr_size / 4; in synproxy_send_server_syn_ipv6() [all …]
|
H A D | xt_tcpudp.c | 111 if (th->doff * 4 < sizeof(_tcph)) { in tcp_mt() 116 th->doff*4 - sizeof(_tcph), in tcp_mt()
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | gf100.c | 98 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 D | gk104.c | 106 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()
|
/openbmc/linux/net/ipv4/ |
H A D | inet_hashtables.c | 358 struct sk_buff *skb, int doff, in inet_lookup_reuseport() argument 369 reuse_sk = reuseport_select_sock(sk, phash, skb, doff); in inet_lookup_reuseport() 385 struct sk_buff *skb, int doff, in inet_lhash2_lookup() argument 397 result = inet_lookup_reuseport(net, sk, skb, doff, in inet_lhash2_lookup() 412 struct sk_buff *skb, int doff, in inet_lookup_run_sk_lookup() argument 425 reuse_sk = inet_lookup_reuseport(net, sk, skb, doff, saddr, sport, daddr, hnum, in inet_lookup_run_sk_lookup() 434 struct sk_buff *skb, int doff, in __inet_lookup_listener() argument 446 result = inet_lookup_run_sk_lookup(net, IPPROTO_TCP, skb, doff, in __inet_lookup_listener() 456 result = inet_lhash2_lookup(net, ilb2, skb, doff, in __inet_lookup_listener() 466 result = inet_lhash2_lookup(net, ilb2, skb, doff, in __inet_lookup_listener()
|
H A D | tcp_ipv4.c | 718 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset() 726 skb->len - (th->doff << 2)); in tcp_v4_send_reset() 791 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset() 805 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset() 905 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack() 920 rep.th.doff = arg.iov[0].iov_len/4; in tcp_v4_send_ack() 1425 if (tcp_v4_md5_hash_headers(hp, daddr, saddr, th, th->doff << 2)) in tcp_v4_md5_hash_hdr() 1471 if (tcp_md5_hash_skb_data(hp, skb, th->doff << 2)) in tcp_v4_md5_hash_skb() 1799 if (th->doff < sizeof(struct tcphdr) / 4) in tcp_v4_early_demux() 1861 hdrlen = th->doff * 4; in tcp_add_backlog() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | xdp_synproxy_kern.c | 421 hdr->tcp_len = hdr->tcp->doff * 4; in tcp_dissect() 521 tcp_header->doff = 5; /* doff is part of tcp_flag_word. */ in tcp_gen_synack() 530 tcp_header->doff += tcp_mkoptions(tcp_options, tsopt, mss, wscale); in tcp_gen_synack() 552 hdr->tcp_len = hdr->tcp->doff * 4; in tcpv4_gen_synack() 573 hdr->tcp_len = hdr->tcp->doff * 4; in tcpv6_gen_synack() 715 new_pkt_size = sizeof(*hdr->eth) + ip_len + hdr->tcp->doff * 4; in syncookie_handle_syn() 811 hdr->tcp_len = hdr->tcp->doff * 4; in syncookie_part2()
|
H A D | test_select_reuseport_kern.c | 120 if ((th->doff << 2) + sizeof(*cmd) > data_check.len) in _select_by_skb_data() 122 if (bpf_skb_load_bytes(reuse_md, th->doff << 2, &cmd_copy, in _select_by_skb_data()
|
H A D | test_parse_tcp_hdr_opt_dynptr.c | 94 tcp_hdr_opt_len = (tcp_hdr->doff * 4) - sizeof(struct tcphdr); in xdp_ingress_v6()
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
H A D | nv50.c | 244 const u32 doff = nv50_ior_base(dac); in nv50_dac_clock() local 246 nvkm_mask(device, 0x614280 + doff, 0x07070707, 0x00000000); in nv50_dac_clock() 253 const u32 doff = nv50_ior_base(dac); in nv50_dac_sense() local 257 nvkm_wr32(device, 0x61a00c + doff, 0x00100000 | loadval); in nv50_dac_sense() 260 loadval = nvkm_mask(device, 0x61a00c + doff, 0xffffffff, 0x00000000); in nv50_dac_sense() 270 nv50_dac_power_wait(struct nvkm_device *device, const u32 doff) in nv50_dac_power_wait() argument 273 if (!(nvkm_rd32(device, 0x61a004 + doff) & 0x80000000)) in nv50_dac_power_wait() 282 const u32 doff = nv50_ior_base(dac); in nv50_dac_power() local 290 nv50_dac_power_wait(device, doff); in nv50_dac_power() 291 nvkm_mask(device, 0x61a004 + doff, field, state); in nv50_dac_power() [all …]
|
/openbmc/linux/tools/include/uapi/linux/ |
H A D | tcp.h | 32 doff:4, member 42 __u16 doff:4, member
|
/openbmc/linux/include/uapi/linux/ |
H A D | tcp.h | 32 doff:4, member 42 __u16 doff:4, member
|
/openbmc/linux/include/linux/ |
H A D | tcp.h | 31 return th->doff * 4; in __tcp_hdrlen() 46 return inner_tcp_hdr(skb)->doff * 4; in inner_tcp_hdrlen() 81 return (tcp_hdr(skb)->doff - 5) * 4; in tcp_optlen()
|