Lines Matching refs:hlen
1914 int dlen, hlen, len, i, alloclen; in cas_rx_process_pkt() local
1922 hlen = CAS_VAL(RX_COMP2_HDR_SIZE, words[1]); in cas_rx_process_pkt()
1924 len = hlen + dlen; in cas_rx_process_pkt()
1929 alloclen = max(hlen, RX_COPY_MIN); in cas_rx_process_pkt()
1940 if (hlen) { /* always copy header pages */ in cas_rx_process_pkt()
1946 i = hlen; in cas_rx_process_pkt()
1958 p += hlen; in cas_rx_process_pkt()
1963 if (alloclen < (hlen + dlen)) { in cas_rx_process_pkt()
1971 hlen = min(cp->page_size - off, dlen); in cas_rx_process_pkt()
1972 if (hlen < 0) { in cas_rx_process_pkt()
1974 "rx page overflow: %d\n", hlen); in cas_rx_process_pkt()
1978 i = hlen; in cas_rx_process_pkt()
1997 RX_USED_ADD(page, hlen); in cas_rx_process_pkt()
2002 skb->data_len += hlen - swivel; in cas_rx_process_pkt()
2003 skb->truesize += hlen - swivel; in cas_rx_process_pkt()
2004 skb->len += hlen - swivel; in cas_rx_process_pkt()
2009 skb_frag_size_set(frag, hlen - swivel); in cas_rx_process_pkt()
2012 if ((words[0] & RX_COMP1_SPLIT_PKT) && ((dlen -= hlen) > 0)) { in cas_rx_process_pkt()
2013 hlen = dlen; in cas_rx_process_pkt()
2020 hlen + cp->crc_size, in cas_rx_process_pkt()
2024 hlen + cp->crc_size, in cas_rx_process_pkt()
2028 skb->data_len += hlen; in cas_rx_process_pkt()
2029 skb->len += hlen; in cas_rx_process_pkt()
2035 skb_frag_size_set(frag, hlen); in cas_rx_process_pkt()
2036 RX_USED_ADD(page, hlen + cp->crc_size); in cas_rx_process_pkt()
2041 crcaddr = addr + off + hlen; in cas_rx_process_pkt()
2052 hlen = min(cp->page_size - off, dlen); in cas_rx_process_pkt()
2053 if (hlen < 0) { in cas_rx_process_pkt()
2055 "rx page overflow: %d\n", hlen); in cas_rx_process_pkt()
2059 i = hlen; in cas_rx_process_pkt()
2076 if ((words[0] & RX_COMP1_SPLIT_PKT) && ((dlen -= hlen) > 0)) { in cas_rx_process_pkt()
2077 p += hlen; in cas_rx_process_pkt()