Lines Matching refs:copy_size
692 BUG_ON(ctx->copy_size > skb_headlen(skb)); in vmxnet3_map_pkt()
701 if (ctx->copy_size) { in vmxnet3_map_pkt()
705 ctx->sop_txd->dword[2] = cpu_to_le32(dw2 | ctx->copy_size); in vmxnet3_map_pkt()
723 len = skb_headlen(skb) - ctx->copy_size; in vmxnet3_map_pkt()
724 buf_offset = ctx->copy_size; in vmxnet3_map_pkt()
856 ctx->copy_size = ctx->l4_offset + ctx->l4_hdr_size; in vmxnet3_parse_hdr()
860 ctx->copy_size = ctx->l4_offset + ctx->l4_hdr_size; in vmxnet3_parse_hdr()
908 ctx->copy_size = min(ctx->l4_offset + in vmxnet3_parse_hdr()
914 ctx->copy_size = min_t(unsigned int, in vmxnet3_parse_hdr()
920 ctx->copy_size = skb->len; in vmxnet3_parse_hdr()
923 if (unlikely(!pskb_may_pull(skb, ctx->copy_size))) in vmxnet3_parse_hdr()
927 if (unlikely(ctx->copy_size > tq->txdata_desc_size)) { in vmxnet3_parse_hdr()
929 ctx->copy_size = 0; in vmxnet3_parse_hdr()
959 memcpy(tdd->data, skb->data, ctx->copy_size); in vmxnet3_copy_hdr()
962 ctx->copy_size, tq->tx_ring.next2fill); in vmxnet3_copy_hdr()
1083 BUG_ON(ret <= 0 && ctx.copy_size != 0); in vmxnet3_tq_xmit()