Lines Matching refs:gdesc
368 union Vmxnet3_GenericDesc *gdesc; in vmxnet3_tq_tx_complete() local
370 gdesc = tq->comp_ring.base + tq->comp_ring.next2proc; in vmxnet3_tq_tx_complete()
371 while (VMXNET3_TCD_GET_GEN(&gdesc->tcd) == tq->comp_ring.gen) { in vmxnet3_tq_tx_complete()
378 &gdesc->tcd), tq, adapter->pdev, in vmxnet3_tq_tx_complete()
382 gdesc = tq->comp_ring.base + tq->comp_ring.next2proc; in vmxnet3_tq_tx_complete()
677 union Vmxnet3_GenericDesc *gdesc; in vmxnet3_map_pkt() local
686 gdesc = ctx->sop_txd; /* both loops below can be skipped */ in vmxnet3_map_pkt()
734 gdesc = tq->tx_ring.base + tq->tx_ring.next2fill; in vmxnet3_map_pkt()
735 BUG_ON(gdesc->txd.gen == tq->tx_ring.gen); in vmxnet3_map_pkt()
737 gdesc->txd.addr = cpu_to_le64(tbi->dma_addr); in vmxnet3_map_pkt()
738 gdesc->dword[2] = cpu_to_le32(dw2); in vmxnet3_map_pkt()
739 gdesc->dword[3] = 0; in vmxnet3_map_pkt()
743 tq->tx_ring.next2fill, le64_to_cpu(gdesc->txd.addr), in vmxnet3_map_pkt()
744 le32_to_cpu(gdesc->dword[2]), gdesc->dword[3]); in vmxnet3_map_pkt()
776 gdesc = tq->tx_ring.base + tq->tx_ring.next2fill; in vmxnet3_map_pkt()
777 BUG_ON(gdesc->txd.gen == tq->tx_ring.gen); in vmxnet3_map_pkt()
779 gdesc->txd.addr = cpu_to_le64(tbi->dma_addr); in vmxnet3_map_pkt()
780 gdesc->dword[2] = cpu_to_le32(dw2); in vmxnet3_map_pkt()
781 gdesc->dword[3] = 0; in vmxnet3_map_pkt()
785 tq->tx_ring.next2fill, le64_to_cpu(gdesc->txd.addr), in vmxnet3_map_pkt()
786 le32_to_cpu(gdesc->dword[2]), gdesc->dword[3]); in vmxnet3_map_pkt()
795 ctx->eop_txd = gdesc; in vmxnet3_map_pkt()
1026 union Vmxnet3_GenericDesc *gdesc; in vmxnet3_tq_xmit() local
1120 gdesc = &tempTxDesc; in vmxnet3_tq_xmit()
1121 gdesc->dword[2] = ctx.sop_txd->dword[2]; in vmxnet3_tq_xmit()
1122 gdesc->dword[3] = ctx.sop_txd->dword[3]; in vmxnet3_tq_xmit()
1124 gdesc = ctx.sop_txd; in vmxnet3_tq_xmit()
1129 gdesc->txd.hlen = ctx.l4_offset + ctx.l4_hdr_size; in vmxnet3_tq_xmit()
1130 gdesc->txd.om = VMXNET3_OM_ENCAP; in vmxnet3_tq_xmit()
1131 gdesc->txd.msscof = ctx.mss; in vmxnet3_tq_xmit()
1134 gdesc->txd.oco = 1; in vmxnet3_tq_xmit()
1136 gdesc->txd.hlen = ctx.l4_offset + ctx.l4_hdr_size; in vmxnet3_tq_xmit()
1137 gdesc->txd.om = VMXNET3_OM_TSO; in vmxnet3_tq_xmit()
1138 gdesc->txd.msscof = ctx.mss; in vmxnet3_tq_xmit()
1140 num_pkts = (skb->len - gdesc->txd.hlen + ctx.mss - 1) / ctx.mss; in vmxnet3_tq_xmit()
1145 gdesc->txd.hlen = ctx.l4_offset + in vmxnet3_tq_xmit()
1147 gdesc->txd.om = VMXNET3_OM_ENCAP; in vmxnet3_tq_xmit()
1148 gdesc->txd.msscof = 0; /* Reserved */ in vmxnet3_tq_xmit()
1150 gdesc->txd.hlen = ctx.l4_offset; in vmxnet3_tq_xmit()
1151 gdesc->txd.om = VMXNET3_OM_CSUM; in vmxnet3_tq_xmit()
1152 gdesc->txd.msscof = ctx.l4_offset + in vmxnet3_tq_xmit()
1156 gdesc->txd.om = 0; in vmxnet3_tq_xmit()
1157 gdesc->txd.msscof = 0; in vmxnet3_tq_xmit()
1165 gdesc->txd.ti = 1; in vmxnet3_tq_xmit()
1166 gdesc->txd.tci = skb_vlan_tag_get(skb); in vmxnet3_tq_xmit()
1175 gdesc->dword[2] = cpu_to_le32(le32_to_cpu(gdesc->dword[2]) ^ in vmxnet3_tq_xmit()
1181 vmxnet3_TxDescToLe((struct Vmxnet3_TxDesc *)gdesc, in vmxnet3_tq_xmit()
1183 gdesc = ctx.sop_txd; in vmxnet3_tq_xmit()
1188 tq->tx_ring.base), le64_to_cpu(gdesc->txd.addr), in vmxnet3_tq_xmit()
1189 le32_to_cpu(gdesc->dword[2]), le32_to_cpu(gdesc->dword[3])); in vmxnet3_tq_xmit()
1226 union Vmxnet3_GenericDesc *gdesc) in vmxnet3_rx_csum() argument
1228 if (!gdesc->rcd.cnc && adapter->netdev->features & NETIF_F_RXCSUM) { in vmxnet3_rx_csum()
1229 if (gdesc->rcd.v4 && in vmxnet3_rx_csum()
1230 (le32_to_cpu(gdesc->dword[3]) & in vmxnet3_rx_csum()
1233 WARN_ON_ONCE(!(gdesc->rcd.tcp || gdesc->rcd.udp) && in vmxnet3_rx_csum()
1234 !(le32_to_cpu(gdesc->dword[0]) & in vmxnet3_rx_csum()
1236 WARN_ON_ONCE(gdesc->rcd.frg && in vmxnet3_rx_csum()
1237 !(le32_to_cpu(gdesc->dword[0]) & in vmxnet3_rx_csum()
1239 } else if (gdesc->rcd.v6 && (le32_to_cpu(gdesc->dword[3]) & in vmxnet3_rx_csum()
1242 WARN_ON_ONCE(!(gdesc->rcd.tcp || gdesc->rcd.udp) && in vmxnet3_rx_csum()
1243 !(le32_to_cpu(gdesc->dword[0]) & in vmxnet3_rx_csum()
1245 WARN_ON_ONCE(gdesc->rcd.frg && in vmxnet3_rx_csum()
1246 !(le32_to_cpu(gdesc->dword[0]) & in vmxnet3_rx_csum()
1249 if (gdesc->rcd.csum) { in vmxnet3_rx_csum()
1250 skb->csum = htons(gdesc->rcd.csum); in vmxnet3_rx_csum()
1291 union Vmxnet3_GenericDesc *gdesc) in vmxnet3_get_hdr_len() argument
1302 BUG_ON(gdesc->rcd.tcp == 0); in vmxnet3_get_hdr_len()
1315 if (gdesc->rcd.v4) { in vmxnet3_get_hdr_len()
1322 } else if (gdesc->rcd.v6) { in vmxnet3_get_hdr_len()