Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/engine/disp/
Ddacnv50.c37 const u32 doff = outp->or * 0x800; in nv50_dac_power() local
58 if (!(nvkm_rd32(device, 0x61a004 + doff) & 0x80000000)) in nv50_dac_power()
61 nvkm_mask(device, 0x61a004 + doff, 0xc000007f, 0x80000000 | stat); in nv50_dac_power()
63 if (!(nvkm_rd32(device, 0x61a004 + doff) & 0x80000000)) in nv50_dac_power()
77 const u32 doff = outp->or * 0x800; in nv50_dac_sense() local
91 nvkm_mask(device, 0x61a004 + doff, 0x807f0000, 0x80150000); in nv50_dac_sense()
93 if (!(nvkm_rd32(device, 0x61a004 + doff) & 0x80000000)) in nv50_dac_sense()
97 nvkm_wr32(device, 0x61a00c + doff, 0x00100000 | loadval); in nv50_dac_sense()
100 loadval = nvkm_mask(device, 0x61a00c + doff, 0xffffffff, 0x00000000); in nv50_dac_sense()
102 nvkm_mask(device, 0x61a004 + doff, 0x807f0000, 0x80550000); in nv50_dac_sense()
[all …]
/linux-4.4.14/arch/alpha/lib/
Dcsum_partial_copy.c198 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.4.14/drivers/net/slip/
Dslhc.c264 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.4.14/drivers/dma/
Dfsl-edma.c127 __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 …]
Dmpc512x_dma.c163 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.4.14/net/ipv4/
Dinet_lro.c38 #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()
Dtcp_ipv4.c555 th->doff << 2, in __tcp_v4_send_check()
615 rep.th.doff = sizeof(struct tcphdr) / 4; in tcp_v4_send_reset()
623 skb->len - (th->doff << 2)); in tcp_v4_send_reset()
670 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_reset()
745 rep.th.doff = arg.iov[0].iov_len / 4; in tcp_v4_send_ack()
760 rep.th.doff = arg.iov[0].iov_len/4; in tcp_v4_send_ack()
1054 if (tcp_v4_md5_hash_pseudoheader(hp, daddr, saddr, th->doff << 2)) in tcp_v4_md5_hash_hdr()
1103 if (tcp_md5_hash_skb_data(hp, skb, th->doff << 2)) in tcp_v4_md5_hash_skb()
1453 if (th->doff < sizeof(struct tcphdr) / 4) in tcp_v4_early_demux()
1553 if (th->doff < sizeof(struct tcphdr) / 4) in tcp_v4_rcv()
[all …]
Dtcp_offload.c70 thlen = th->doff * 4; in tcp_gso_segment()
202 thlen = th->doff * 4; in tcp_gro_receive()
Dtcp_minisocks.c108 if (th->doff > (sizeof(*th) >> 2) && tcptw->tw_ts_recent_stamp) { in tcp_timewait_state_process()
583 if (th->doff > (sizeof(struct tcphdr)>>2)) { in tcp_check_req()
Dtcp_input.c3703 int length = (th->doff * 4) - sizeof(struct tcphdr); in tcp_parse_options()
3836 if (th->doff == (sizeof(*th) / 4)) { in tcp_fast_parse_options()
3840 th->doff == ((sizeof(*th) + TCPOLEN_TSTAMP_ALIGNED) / 4)) { in tcp_fast_parse_options()
3858 int length = (th->doff << 2) - sizeof(*th); in tcp_parse_md5sig_option()
4544 __skb_pull(skb, tcp_hdr(skb)->doff * 4); in tcp_data_queue()
5069 u32 ptr = tp->urg_seq - ntohl(th->seq) + (th->doff * 4) - in tcp_urg()
5385 if (len < (th->doff << 2) || tcp_checksum_complete_user(sk, skb)) in tcp_rcv_established()
Dtcp_output.c3022 th->doff = (tcp_header_size >> 2); in tcp_make_synack()
/linux-4.4.14/net/netfilter/
Dxt_tcpmss.c44 if (th->doff*4 < sizeof(*th)) in tcpmss_mt()
47 optlen = th->doff*4 - sizeof(*th); in tcpmss_mt()
Dnf_synproxy_core.c31 synproxy_parse_options(const struct sk_buff *skb, unsigned int doff, in synproxy_parse_options() argument
34 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()
Dnf_log_common.c110 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()
Dxt_tcpudp.c110 if (th->doff * 4 < sizeof(_tcph)) { in tcp_mt()
115 th->doff*4 - sizeof(_tcph), in tcp_mt()
Dxt_TCPMSS.c105 tcp_hdrlen = tcph->doff * 4; in tcpmss_mangle_packet()
197 tcph->doff += TCPOLEN_MSS/4; in tcpmss_mangle_packet()
Dxt_TCPOPTSTRIP.c55 tcp_hdrlen = tcph->doff * 4; in tcpoptstrip_mangle_packet()
Dxt_osf.c219 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()
Dnf_nat_helper.c118 mangle_contents(skb, protoff + tcph->doff*4, in __nf_nat_mangle_tcp_packet()
Dnf_conntrack_sane.c89 dataoff = protoff + th->doff * 4; in help()
Dnf_conntrack_pptp.c534 nexthdr_off += tcph->doff * 4; in conntrack_pptp_help()
535 datalen = tcplen - tcph->doff * 4; in conntrack_pptp_help()
Dnf_conntrack_irc.c139 dataoff = protoff + th->doff*4; in help()
Dnf_conntrack_proto_tcp.c370 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()
Dnf_conntrack_seqadj.c126 optend = protoff + tcph->doff * 4; in nf_ct_sack_adjust()
Dnf_conntrack_ftp.c417 dataoff = protoff + th->doff * 4; in help()
Dnf_nat_sip.c45 baseoff = protoff + th->doff * 4; in mangle_packet()
Dnf_conntrack_sip.c1502 dataoff = protoff + th->doff * 4; in sip_help_tcp()
Dnf_conntrack_h323_main.c139 tcpdataoff = protoff + th->doff * 4; in get_tpkt_data()
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
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()
102 u32 sctl = nvkm_rd32(device, dctl + (doff * 4)); in read_div()
113 u32 sclk = read_vco(clk, dsrc + (doff * 4)); in read_div()
118 return read_vco(clk, dsrc + (doff * 4)); in read_div()
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-4.4.14/include/linux/
Dtcp.h34 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.4.14/include/uapi/linux/
Dtcp.h31 doff:4, member
41 __u16 doff:4, member
/linux-4.4.14/net/ipv4/netfilter/
Dnf_reject_ipv4.c81 tcph->doff = sizeof(struct tcphdr) / 4; in nf_reject_ip_tcphdr_put()
88 (oth->doff << 2)); in nf_reject_ip_tcphdr_put()
Dipt_SYNPROXY.c104 nth->doff = tcp_hdr_size / 4; in synproxy_send_client_synack()
148 nth->doff = tcp_hdr_size / 4; in synproxy_send_server_syn()
188 nth->doff = tcp_hdr_size / 4; in synproxy_send_server_ack()
226 nth->doff = tcp_hdr_size / 4; in synproxy_send_client_ack()
Dnf_nat_h323.c54 *data = skb->data + ip_hdrlen(skb) + th->doff * 4 + dataoff; in set_addr()
/linux-4.4.14/include/net/netfilter/
Dnf_conntrack_synproxy.h59 bool synproxy_parse_options(const struct sk_buff *skb, unsigned int doff,
/linux-4.4.14/net/ipv6/netfilter/
Dip6t_SYNPROXY.c117 nth->doff = tcp_hdr_size / 4; in synproxy_send_client_synack()
161 nth->doff = tcp_hdr_size / 4; in synproxy_send_server_syn()
201 nth->doff = tcp_hdr_size / 4; in synproxy_send_server_ack()
239 nth->doff = tcp_hdr_size / 4; in synproxy_send_client_ack()
Dnf_reject_ipv6.c101 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.4.14/include/net/
Dip6_checksum.h79 csum_partial(th, th->doff << 2, in __tcp_v6_send_check()
/linux-4.4.14/net/netfilter/ipvs/
Dip_vs_ftp.c206 data = (char *)th + (th->doff << 2); in ip_vs_ftp_out()
350 data = data_start = (char *)th + (th->doff << 2); in ip_vs_ftp_in()
/linux-4.4.14/net/core/
Dflow_dissector.c746 const u8 *doff; in __skb_get_poff() local
749 doff = __skb_header_pointer(skb, poff + 12, sizeof(_doff), in __skb_get_poff()
751 if (!doff) in __skb_get_poff()
754 poff += max_t(u32, sizeof(struct tcphdr), (*doff & 0xF0) >> 2); in __skb_get_poff()
/linux-4.4.14/net/ipv6/
Dtcp_ipv6.c562 if (tcp_v6_md5_hash_pseudoheader(hp, daddr, saddr, th->doff << 2)) in tcp_v6_md5_hash_hdr()
612 if (tcp_md5_hash_skb_data(hp, skb, th->doff << 2)) in tcp_v6_md5_hash_skb()
772 t1->doff = tot_len / 4; in tcp_v6_send_response()
892 (th->doff << 2); in tcp_v6_send_reset()
1330 skb->len - th->doff*4); in tcp_v6_fill_cb()
1368 if (th->doff < sizeof(struct tcphdr)/4) in tcp_v6_rcv()
1370 if (!pskb_may_pull(skb, th->doff*4)) in tcp_v6_rcv()
1544 if (th->doff < sizeof(struct tcphdr) / 4) in tcp_v6_early_demux()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dsdio.c1550 u8 doff, sfdoff; in brcmf_sdio_rxglom() local
1734 doff = brcmf_sdio_getdatoffset(&dptr[SDPCM_HWHDR_LEN]); in brcmf_sdio_rxglom()
1741 skb_pull(pfirst, doff); in brcmf_sdio_rxglom()
1796 brcmf_sdio_read_control(struct brcmf_sdio *bus, u8 *hdr, uint len, uint doff) in brcmf_sdio_read_control() argument
1838 if ((len - doff) > bus->sdiodev->bus_if->maxctl) { in brcmf_sdio_read_control()
1840 len, len - doff, bus->sdiodev->bus_if->maxctl); in brcmf_sdio_read_control()
1873 bus->rxctl = buf + doff; in brcmf_sdio_read_control()
1875 bus->rxlen = len - doff; in brcmf_sdio_read_control()
2429 u8 doff; in brcmf_sdio_tx_ctrlframe() local
2442 doff = ((unsigned long)frame % bus->head_align); in brcmf_sdio_tx_ctrlframe()
[all …]
/linux-4.4.14/drivers/net/ethernet/sfc/
Dtx.c870 + (tcp_hdr(skb)->doff << 2u)) > in efx_tso_check_protocol()
1022 header_len = st->tcp_off + (tcp_hdr(skb)->doff << 2u); in tso_start()
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c1322 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.4.14/drivers/crypto/
Dhifn_795x.c1375 unsigned int soff, doff; in hifn_setup_dma() local
1396 doff = 0; in hifn_setup_dma()
1401 doff = dst->offset; in hifn_setup_dma()
1406 hifn_setup_dst_desc(dev, dpage, doff, len, n - len == 0); in hifn_setup_dma()
/linux-4.4.14/drivers/infiniband/hw/nes/
Dnes_mgt.c339 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()
Dnes_nic.c396 ((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()
Dnes_cm.c515 tcph->doff = (u16)((sizeof(*tcph) + optionsize + 3) >> 2); in form_cm_frame()
2047 optionsize = (tcph->doff << 2) - sizeof(struct tcphdr); in handle_syn_pkt()
2108 optionsize = (tcph->doff << 2) - sizeof(struct tcphdr); in handle_synack_pkt()
2168 optionsize = (tcph->doff << 2) - sizeof(struct tcphdr); in handle_ack_pkt()
2173 skb_pull(skb, tcph->doff << 2); in handle_ack_pkt()
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dd3.c420 pkt->tcp.doff = sizeof(struct tcphdr) / 4; in iwl_mvm_build_tcp_packet()
443 pkt->tcp.doff = (sizeof(struct tcphdr) + 8) / 4; in iwl_mvm_build_tcp_packet()
/linux-4.4.14/drivers/s390/net/
Dqeth_l3_main.c2800 hdr->ext.dg_hdr_len = (__u16)(iph->ihl*4 + tcph->doff*4); in qeth_tso_fill_header()
2820 tcp_hdr(skb)->doff * 4; in qeth_l3_tso_elements()
2967 tcp_hdr(new_skb)->doff * 4) - in qeth_l3_hard_start_xmit()
/linux-4.4.14/drivers/net/ethernet/tile/
Dtilepro.c1691 unsigned int th_len = th->doff * 4; in tile_net_tx_tso()
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c808 hdrlen = (th - skb->data) + (((struct tcphdr *)th)->doff << 2); in fm10k_tso()
/linux-4.4.14/drivers/net/ethernet/neterion/
Ds2io.c8280 return ntohs(ip->tot_len) - (ip->ihl << 2) - (tcp->doff << 2); in get_l4_pyld_length()
8301 if (tcp->doff == 8) { in initiate_new_session()
8397 if (tcp->doff != 5 && tcp->doff != 8) in verify_l3_l4_lro_capable()
8400 if (tcp->doff == 8) { in verify_l3_l4_lro_capable()
/linux-4.4.14/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_init.c1644 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; in netxen_process_lro()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c1300 LSO_TCPHDR_LEN_V(tcp_hdr(skb)->doff)); in t4vf_eth_xmit()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb/
Dsge.c1809 hdr->tcp_hdr_words = tcp_hdr(skb)->doff; in t1_start_xmit()
/linux-4.4.14/drivers/net/ethernet/sun/
Dsunvnet.c1164 hlen += tcp_hdr(skb)->doff * 4; in vnet_handle_offloads()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c1166 V_LSO_TCPHDR_WORDS(tcp_hdr(skb)->doff); in write_tx_pkt_wr()
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c1235 LSO_TCPHDR_LEN_V(tcp_hdr(skb)->doff)); in t4_eth_xmit()
/linux-4.4.14/drivers/net/vmxnet3/
Dvmxnet3_drv.c1227 return (hlen + (hdr.tcp->doff << 2)); in vmxnet3_get_hdr_len()
/linux-4.4.14/drivers/net/ethernet/qlogic/qlge/
Dqlge_main.c2632 (tcp_hdr(skb)->doff << 2)); in ql_hw_csum_setup()
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_main.c7062 mss_l4len_idx = (transport_hdr.tcphdr->doff * 4) << in ixgbe_tx_csum()