/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | dacnv50.c | 36 const u32 doff = outp->or * 0x800; in nv50_dac_power() local 56 nv_wait(priv, 0x61a004 + doff, 0x80000000, 0x00000000); in nv50_dac_power() 57 nv_mask(priv, 0x61a004 + doff, 0xc000007f, 0x80000000 | stat); in nv50_dac_power() 58 nv_wait(priv, 0x61a004 + doff, 0x80000000, 0x00000000); in nv50_dac_power() 68 const u32 doff = outp->or * 0x800; in nv50_dac_sense() local 82 nv_mask(priv, 0x61a004 + doff, 0x807f0000, 0x80150000); in nv50_dac_sense() 83 nv_wait(priv, 0x61a004 + doff, 0x80000000, 0x00000000); in nv50_dac_sense() 85 nv_wr32(priv, 0x61a00c + doff, 0x00100000 | loadval); in nv50_dac_sense() 88 loadval = nv_mask(priv, 0x61a00c + doff, 0xffffffff, 0x00000000); in nv50_dac_sense() 90 nv_mask(priv, 0x61a004 + doff, 0x807f0000, 0x80550000); in nv50_dac_sense() [all …]
|
/linux-4.1.27/arch/alpha/lib/ |
D | csum_partial_copy.c | 198 unsigned long doff, in csum_partial_cfu_src_aligned() argument 208 mskql(partial_dest, doff, partial_dest); in csum_partial_cfu_src_aligned() 212 insql(word, doff, second_dest); in csum_partial_cfu_src_aligned() 217 insqh(word, doff, partial_dest); in csum_partial_cfu_src_aligned() 228 insql(word, doff, second_dest); in csum_partial_cfu_src_aligned() 229 len += doff; in csum_partial_cfu_src_aligned() 236 insqh(word, doff, partial_dest); in csum_partial_cfu_src_aligned() 238 doff = len; in csum_partial_cfu_src_aligned() 241 mskqh(second_dest, doff, second_dest); in csum_partial_cfu_src_aligned() 256 unsigned long soff, unsigned long doff, in csum_partial_cfu_unaligned() argument [all …]
|
/linux-4.1.27/drivers/net/slip/ |
D | slhc.c | 264 hlen = ip->ihl*4 + th->doff*4; in slhc_compress() 351 || th->doff != cs->cs_tcp.doff in slhc_compress() 353 || (th->doff > 5 && memcmp(th+1,cs->cs_tcpopt,((th->doff)-5)*4) != 0)){ in slhc_compress() 474 if (th->doff > 5) in slhc_compress() 475 memcpy(cs->cs_tcpopt, th+1, ((th->doff) - 5) * 4); in slhc_compress() 537 hdrlen = ip->ihl * 4 + thp->doff * 4; in slhc_uncompress() 621 if (thp->doff > 5) { in slhc_uncompress() 622 memcpy(cp, cs->cs_tcpopt, ((thp->doff) - 5) * 4); in slhc_uncompress() 623 cp += ((thp->doff) - 5) * 4; in slhc_uncompress() 673 if (cs->cs_tcp.doff > 5) in slhc_remember() [all …]
|
/linux-4.1.27/drivers/dma/ |
D | fsl-edma.c | 127 __le16 doff; member 453 edma_writew(edma, le16_to_cpu(tcd->doff), addr + EDMA_TCD_DOFF(ch)); in fsl_edma_set_tcd_regs() 463 u16 biter, u16 doff, u32 dlast_sga, bool major_int, in fsl_edma_fill_tcd() argument 485 tcd->doff = cpu_to_le16(EDMA_TCD_DOFF_DOFF(doff)); in fsl_edma_fill_tcd() 541 u16 soff, doff, iter; in fsl_edma_prep_dma_cyclic() local 567 doff = 0; in fsl_edma_prep_dma_cyclic() 572 doff = fsl_chan->fsc.addr_width; in fsl_edma_prep_dma_cyclic() 577 iter, doff, last_sg, true, false, true); in fsl_edma_prep_dma_cyclic() 593 u16 soff, doff, iter; in fsl_edma_prep_slave_sg() local 613 doff = 0; in fsl_edma_prep_slave_sg() [all …]
|
D | mpc512x_dma.c | 163 u32 doff:16; /* Signed destination address offset */ member 649 tcd->doff = 32; in mpc_dma_prep_memcpy() 655 tcd->doff = 16; in mpc_dma_prep_memcpy() 660 tcd->doff = 4; in mpc_dma_prep_memcpy() 665 tcd->doff = 2; in mpc_dma_prep_memcpy() 670 tcd->doff = 1; in mpc_dma_prep_memcpy() 752 tcd->doff = 4; in mpc_dma_prep_slave_sg() 757 tcd->doff = 0; in mpc_dma_prep_slave_sg()
|
/linux-4.1.27/net/ipv4/ |
D | inet_lro.c | 38 #define TCP_HDR_LEN(tcph) (tcph->doff << 2) 75 if (tcph->doff != TCPH_LEN_WO_OPTIONS && in lro_tcp_ip_check() 76 tcph->doff != TCPH_LEN_W_TIMESTAMP) in lro_tcp_ip_check() 80 if (tcph->doff == TCPH_LEN_W_TIMESTAMP) { in lro_tcp_ip_check() 166 if (tcph->doff == 8) { in lro_init_desc()
|
D | tcp_ipv4.c | 552 th->doff << 2, in __tcp_v4_send_check() 612 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset() 620 skb->len - (th->doff << 2)); in tcp_v4_send_reset() 667 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset() 742 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack() 757 rep.th.doff = arg.iov[0].iov_len/4; in tcp_v4_send_ack() 1052 if (tcp_v4_md5_hash_pseudoheader(hp, daddr, saddr, th->doff << 2)) in tcp_v4_md5_hash_hdr() 1101 if (tcp_md5_hash_skb_data(hp, skb, th->doff << 2)) in tcp_v4_md5_hash_skb() 1466 if (th->doff < sizeof(struct tcphdr) / 4) in tcp_v4_early_demux() 1566 if (th->doff < sizeof(struct tcphdr) / 4) in tcp_v4_rcv() [all …]
|
D | tcp_offload.c | 70 thlen = th->doff * 4; in tcp_gso_segment() 202 thlen = th->doff * 4; in tcp_gro_receive()
|
D | tcp_minisocks.c | 108 if (th->doff > (sizeof(*th) >> 2) && tcptw->tw_ts_recent_stamp) { in tcp_timewait_state_process() 571 if (th->doff > (sizeof(struct tcphdr)>>2)) { in tcp_check_req()
|
D | tcp_input.c | 3654 int length = (th->doff * 4) - sizeof(struct tcphdr); in tcp_parse_options() 3787 if (th->doff == (sizeof(*th) / 4)) { in tcp_fast_parse_options() 3791 th->doff == ((sizeof(*th) + TCPOLEN_TSTAMP_ALIGNED) / 4)) { in tcp_fast_parse_options() 3809 int length = (th->doff << 2) - sizeof(*th); in tcp_parse_md5sig_option() 4498 __skb_pull(skb, tcp_hdr(skb)->doff * 4); in tcp_data_queue() 5021 u32 ptr = tp->urg_seq - ntohl(th->seq) + (th->doff * 4) - in tcp_urg() 5337 if (len < (th->doff << 2) || tcp_checksum_complete_user(sk, skb)) in tcp_rcv_established()
|
D | tcp_output.c | 3013 th->doff = (tcp_header_size >> 2); in tcp_make_synack()
|
/linux-4.1.27/net/netfilter/ |
D | xt_tcpmss.c | 44 if (th->doff*4 < sizeof(*th)) in tcpmss_mt() 47 optlen = th->doff*4 - sizeof(*th); in tcpmss_mt()
|
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() 34 ptr = skb_header_pointer(skb, doff + sizeof(*th), length, buf); in synproxy_parse_options() 194 optend = protoff + th->doff * 4; in synproxy_tstamp_adjust()
|
D | nf_log_common.c | 110 if ((logflags & XT_LOG_TCPOPT) && th->doff*4 > sizeof(struct tcphdr)) { in nf_log_dump_tcp_header() 114 unsigned int optsize = th->doff*4 - sizeof(struct tcphdr); in nf_log_dump_tcp_header()
|
D | xt_tcpudp.c | 110 if (th->doff * 4 < sizeof(_tcph)) { in tcp_mt() 115 th->doff*4 - sizeof(_tcph), in tcp_mt()
|
D | xt_TCPMSS.c | 105 tcp_hdrlen = tcph->doff * 4; in tcpmss_mangle_packet() 197 tcph->doff += TCPOLEN_MSS/4; in tcpmss_mangle_packet()
|
D | xt_TCPOPTSTRIP.c | 55 tcp_hdrlen = tcph->doff * 4; in tcpoptstrip_mangle_packet()
|
D | xt_osf.c | 219 if (tcp->doff * 4 > sizeof(struct tcphdr)) { in xt_osf_match_packet() 220 optsize = tcp->doff * 4 - sizeof(struct tcphdr); in xt_osf_match_packet()
|
D | nf_nat_helper.c | 118 mangle_contents(skb, protoff + tcph->doff*4, in __nf_nat_mangle_tcp_packet()
|
D | nf_conntrack_sane.c | 89 dataoff = protoff + th->doff * 4; in help()
|
D | nf_conntrack_pptp.c | 533 nexthdr_off += tcph->doff * 4; in conntrack_pptp_help() 534 datalen = tcplen - tcph->doff * 4; in conntrack_pptp_help()
|
D | nf_conntrack_irc.c | 139 dataoff = protoff + th->doff*4; in help()
|
D | nf_conntrack_proto_tcp.c | 370 return (seq + len - dataoff - tcph->doff*4 in segment_seq_plus_len() 390 int length = (tcph->doff*4) - sizeof(struct tcphdr); in tcp_options() 444 int length = (tcph->doff*4) - sizeof(struct tcphdr); in tcp_sack() 774 if (th->doff*4 < sizeof(struct tcphdr) || tcplen < th->doff*4) { in tcp_error()
|
D | nf_conntrack_seqadj.c | 126 optend = protoff + tcph->doff * 4; in nf_ct_sack_adjust()
|
D | nf_conntrack_ftp.c | 417 dataoff = protoff + th->doff * 4; in help()
|
D | nf_nat_sip.c | 45 baseoff = protoff + th->doff * 4; in mangle_packet()
|
D | nf_conntrack_sip.c | 1502 dataoff = protoff + th->doff * 4; in sip_help_tcp()
|
D | nf_conntrack_h323_main.c | 139 tcpdataoff = protoff + th->doff * 4; in get_tpkt_data()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
D | gf100.c | 98 read_div(struct gf100_clk_priv *priv, int doff, u32 dsrc, u32 dctl) in read_div() argument 100 u32 ssrc = nv_rd32(priv, dsrc + (doff * 4)); in read_div() 101 u32 sctl = nv_rd32(priv, dctl + (doff * 4)); in read_div() 112 u32 sclk = read_vco(priv, dsrc + (doff * 4)); in read_div() 117 return read_vco(priv, dsrc + (doff * 4)); in read_div()
|
D | gk104.c | 104 read_div(struct gk104_clk_priv *priv, int doff, u32 dsrc, u32 dctl) in read_div() argument 106 u32 ssrc = nv_rd32(priv, dsrc + (doff * 4)); in read_div() 107 u32 sctl = nv_rd32(priv, dctl + (doff * 4)); in read_div() 118 u32 sclk = read_vco(priv, dsrc + (doff * 4)); in read_div() 123 return read_vco(priv, dsrc + (doff * 4)); in read_div()
|
/linux-4.1.27/include/linux/ |
D | tcp.h | 34 return tcp_hdr(skb)->doff * 4; in tcp_hdrlen() 44 return inner_tcp_hdr(skb)->doff * 4; in inner_tcp_hdrlen() 49 return (tcp_hdr(skb)->doff - 5) * 4; in tcp_optlen()
|
/linux-4.1.27/include/uapi/linux/ |
D | tcp.h | 31 doff:4, member 41 __u16 doff:4, member
|
/linux-4.1.27/net/core/ |
D | flow_dissector.c | 368 const u8 *doff; in __skb_get_poff() local 371 doff = __skb_header_pointer(skb, poff + 12, sizeof(_doff), in __skb_get_poff() 373 if (!doff) in __skb_get_poff() 376 poff += max_t(u32, sizeof(struct tcphdr), (*doff & 0xF0) >> 2); in __skb_get_poff()
|
/linux-4.1.27/net/ipv4/netfilter/ |
D | nf_reject_ipv4.c | 81 tcph->doff = sizeof(struct tcphdr) / 4; in nf_reject_ip_tcphdr_put() 88 (oth->doff << 2)); in nf_reject_ip_tcphdr_put()
|
D | ipt_SYNPROXY.c | 100 nth->doff = tcp_hdr_size / 4; in synproxy_send_client_synack() 144 nth->doff = tcp_hdr_size / 4; in synproxy_send_server_syn() 184 nth->doff = tcp_hdr_size / 4; in synproxy_send_server_ack() 222 nth->doff = tcp_hdr_size / 4; in synproxy_send_client_ack()
|
D | nf_nat_h323.c | 54 *data = skb->data + ip_hdrlen(skb) + th->doff * 4 + dataoff; in set_addr()
|
/linux-4.1.27/include/net/netfilter/ |
D | nf_conntrack_synproxy.h | 59 bool synproxy_parse_options(const struct sk_buff *skb, unsigned int doff,
|
/linux-4.1.27/net/ipv6/netfilter/ |
D | ip6t_SYNPROXY.c | 115 nth->doff = tcp_hdr_size / 4; in synproxy_send_client_synack() 159 nth->doff = tcp_hdr_size / 4; in synproxy_send_server_syn() 199 nth->doff = tcp_hdr_size / 4; in synproxy_send_server_ack() 237 nth->doff = tcp_hdr_size / 4; in synproxy_send_client_ack()
|
D | nf_reject_ipv6.c | 101 tcph->doff = sizeof(struct tcphdr)/4; in nf_reject_ip6_tcphdr_put() 112 otcplen - (oth->doff<<2)); in nf_reject_ip6_tcphdr_put()
|
/linux-4.1.27/include/net/ |
D | ip6_checksum.h | 79 csum_partial(th, th->doff << 2, in __tcp_v6_send_check()
|
/linux-4.1.27/net/ipv6/ |
D | tcp_ipv6.c | 564 if (tcp_v6_md5_hash_pseudoheader(hp, daddr, saddr, th->doff << 2)) in tcp_v6_md5_hash_hdr() 614 if (tcp_md5_hash_skb_data(hp, skb, th->doff << 2)) in tcp_v6_md5_hash_skb() 769 t1->doff = tot_len / 4; in tcp_v6_send_response() 889 (th->doff << 2); in tcp_v6_send_reset() 1351 skb->len - th->doff*4); in tcp_v6_fill_cb() 1389 if (th->doff < sizeof(struct tcphdr)/4) in tcp_v6_rcv() 1391 if (!pskb_may_pull(skb, th->doff*4)) in tcp_v6_rcv() 1452 if (skb->len < (th->doff<<2) || tcp_checksum_complete(skb)) { in tcp_v6_rcv() 1477 if (skb->len < (th->doff<<2)) { in tcp_v6_rcv() 1532 if (th->doff < sizeof(struct tcphdr) / 4) in tcp_v6_early_demux()
|
/linux-4.1.27/net/netfilter/ipvs/ |
D | ip_vs_ftp.c | 207 data = (char *)th + (th->doff << 2); in ip_vs_ftp_out() 353 data = data_start = (char *)th + (th->doff << 2); in ip_vs_ftp_in()
|
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/ |
D | sdio.c | 1543 u8 doff, sfdoff; in brcmf_sdio_rxglom() local 1727 doff = brcmf_sdio_getdatoffset(&dptr[SDPCM_HWHDR_LEN]); in brcmf_sdio_rxglom() 1734 skb_pull(pfirst, doff); in brcmf_sdio_rxglom() 1789 brcmf_sdio_read_control(struct brcmf_sdio *bus, u8 *hdr, uint len, uint doff) in brcmf_sdio_read_control() argument 1831 if ((len - doff) > bus->sdiodev->bus_if->maxctl) { in brcmf_sdio_read_control() 1833 len, len - doff, bus->sdiodev->bus_if->maxctl); in brcmf_sdio_read_control() 1866 bus->rxctl = buf + doff; in brcmf_sdio_read_control() 1868 bus->rxlen = len - doff; in brcmf_sdio_read_control() 2422 u8 doff; in brcmf_sdio_tx_ctrlframe() local 2435 doff = ((unsigned long)frame % bus->head_align); in brcmf_sdio_tx_ctrlframe() [all …]
|
/linux-4.1.27/drivers/net/ethernet/sfc/ |
D | tx.c | 869 + (tcp_hdr(skb)->doff << 2u)) > in efx_tso_check_protocol() 1021 header_len = st->tcp_off + (tcp_hdr(skb)->doff << 2u); in tso_start()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 1322 length = (th->doff << 2) + lro_length; in qlcnic_process_lro() 1327 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; in qlcnic_process_lro() 1845 length = (th->doff << 2) + lro_length; in qlcnic_83xx_process_lro() 1850 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; in qlcnic_83xx_process_lro()
|
/linux-4.1.27/drivers/crypto/ |
D | hifn_795x.c | 1377 unsigned int soff, doff; in hifn_setup_dma() local 1398 doff = 0; in hifn_setup_dma() 1403 doff = dst->offset; in hifn_setup_dma() 1408 hifn_setup_dst_desc(dev, dpage, doff, len, n - len == 0); in hifn_setup_dma()
|
/linux-4.1.27/drivers/infiniband/hw/nes/ |
D | nes_mgt.c | 339 fpdu_info->hdr_len = (((unsigned char *)tcph) + 4 * (tcph->doff)) - cb->data_start; in get_fpdu_info() 525 tcph_end = (((char *)tcph) + (4 * tcph->doff)); in queue_fpdus()
|
D | nes_nic.c | 396 ((u32)tcph->doff) | in nes_nic_send() 571 original_first_length = hoffset + ((((struct tcphdr *)skb_transport_header(skb))->doff)<<2); in nes_netdev_start_xmit() 661 ((u32)tcph->doff) | (((u32)hoffset) << 4)); in nes_netdev_start_xmit()
|
D | nes_cm.c | 515 tcph->doff = (u16)((sizeof(*tcph) + optionsize + 3) >> 2); in form_cm_frame() 2044 optionsize = (tcph->doff << 2) - sizeof(struct tcphdr); in handle_syn_pkt() 2105 optionsize = (tcph->doff << 2) - sizeof(struct tcphdr); in handle_synack_pkt() 2165 optionsize = (tcph->doff << 2) - sizeof(struct tcphdr); in handle_ack_pkt() 2170 skb_pull(skb, tcph->doff << 2); in handle_ack_pkt()
|
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/ |
D | d3.c | 426 pkt->tcp.doff = sizeof(struct tcphdr) / 4; in iwl_mvm_build_tcp_packet() 449 pkt->tcp.doff = (sizeof(struct tcphdr) + 8) / 4; in iwl_mvm_build_tcp_packet()
|
/linux-4.1.27/drivers/s390/net/ |
D | qeth_l3_main.c | 2910 hdr->ext.dg_hdr_len = (__u16)(iph->ihl*4 + tcph->doff*4); in qeth_tso_fill_header() 2930 tcp_hdr(skb)->doff * 4; in qeth_l3_tso_elements() 3077 tcp_hdr(new_skb)->doff * 4) - in qeth_l3_hard_start_xmit()
|
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_main.c | 817 hdrlen = (th - skb->data) + (((struct tcphdr *)th)->doff << 2); in fm10k_tso()
|
/linux-4.1.27/drivers/net/ethernet/tile/ |
D | tilepro.c | 1694 unsigned int th_len = th->doff * 4; in tile_net_tx_tso()
|
/linux-4.1.27/drivers/net/ethernet/neterion/ |
D | s2io.c | 8304 return ntohs(ip->tot_len) - (ip->ihl << 2) - (tcp->doff << 2); in get_l4_pyld_length() 8325 if (tcp->doff == 8) { in initiate_new_session() 8421 if (tcp->doff != 5 && tcp->doff != 8) in verify_l3_l4_lro_capable() 8424 if (tcp->doff == 8) { in verify_l3_l4_lro_capable()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_init.c | 1644 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; in netxen_process_lro()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb/ |
D | sge.c | 1809 hdr->tcp_hdr_words = tcp_hdr(skb)->doff; in t1_start_xmit()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | sge.c | 1290 LSO_TCPHDR_LEN(tcp_hdr(skb)->doff)); in t4vf_eth_xmit()
|
/linux-4.1.27/drivers/net/ethernet/sun/ |
D | sunvnet.c | 1164 hlen += tcp_hdr(skb)->doff * 4; in vnet_handle_offloads()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/ |
D | sge.c | 1221 LSO_TCPHDR_LEN(tcp_hdr(skb)->doff)); in t4_eth_xmit()
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/ |
D | sge.c | 1166 V_LSO_TCPHDR_WORDS(tcp_hdr(skb)->doff); in write_tx_pkt_wr()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/qlge/ |
D | qlge_main.c | 2621 (tcp_hdr(skb)->doff << 2)); in ql_hw_csum_setup()
|