Lines Matching refs:gdesc

374 	union Vmxnet3_GenericDesc *gdesc;  in vmxnet3_tq_tx_complete()  local
376 gdesc = tq->comp_ring.base + tq->comp_ring.next2proc; in vmxnet3_tq_tx_complete()
377 while (VMXNET3_TCD_GET_GEN(&gdesc->tcd) == tq->comp_ring.gen) { in vmxnet3_tq_tx_complete()
379 &gdesc->tcd), tq, adapter->pdev, in vmxnet3_tq_tx_complete()
383 gdesc = tq->comp_ring.base + tq->comp_ring.next2proc; in vmxnet3_tq_tx_complete()
408 union Vmxnet3_GenericDesc *gdesc; in vmxnet3_tq_cleanup() local
411 gdesc = tq->tx_ring.base + tq->tx_ring.next2comp; in vmxnet3_tq_cleanup()
669 union Vmxnet3_GenericDesc *gdesc; in vmxnet3_map_pkt() local
678 gdesc = ctx->sop_txd; /* both loops below can be skipped */ in vmxnet3_map_pkt()
724 gdesc = tq->tx_ring.base + tq->tx_ring.next2fill; in vmxnet3_map_pkt()
725 BUG_ON(gdesc->txd.gen == tq->tx_ring.gen); in vmxnet3_map_pkt()
727 gdesc->txd.addr = cpu_to_le64(tbi->dma_addr); in vmxnet3_map_pkt()
728 gdesc->dword[2] = cpu_to_le32(dw2); in vmxnet3_map_pkt()
729 gdesc->dword[3] = 0; in vmxnet3_map_pkt()
733 tq->tx_ring.next2fill, le64_to_cpu(gdesc->txd.addr), in vmxnet3_map_pkt()
734 le32_to_cpu(gdesc->dword[2]), gdesc->dword[3]); in vmxnet3_map_pkt()
753 gdesc = tq->tx_ring.base + tq->tx_ring.next2fill; in vmxnet3_map_pkt()
754 BUG_ON(gdesc->txd.gen == tq->tx_ring.gen); in vmxnet3_map_pkt()
756 gdesc->txd.addr = cpu_to_le64(tbi->dma_addr); in vmxnet3_map_pkt()
757 gdesc->dword[2] = cpu_to_le32(dw2 | frag->size); in vmxnet3_map_pkt()
758 gdesc->dword[3] = 0; in vmxnet3_map_pkt()
762 tq->tx_ring.next2fill, le64_to_cpu(gdesc->txd.addr), in vmxnet3_map_pkt()
763 le32_to_cpu(gdesc->dword[2]), gdesc->dword[3]); in vmxnet3_map_pkt()
768 ctx->eop_txd = gdesc; in vmxnet3_map_pkt()
913 union Vmxnet3_GenericDesc *gdesc; in vmxnet3_tq_xmit() local
999 gdesc = &tempTxDesc; in vmxnet3_tq_xmit()
1000 gdesc->dword[2] = ctx.sop_txd->dword[2]; in vmxnet3_tq_xmit()
1001 gdesc->dword[3] = ctx.sop_txd->dword[3]; in vmxnet3_tq_xmit()
1003 gdesc = ctx.sop_txd; in vmxnet3_tq_xmit()
1006 gdesc->txd.hlen = ctx.eth_ip_hdr_size + ctx.l4_hdr_size; in vmxnet3_tq_xmit()
1007 gdesc->txd.om = VMXNET3_OM_TSO; in vmxnet3_tq_xmit()
1008 gdesc->txd.msscof = ctx.mss; in vmxnet3_tq_xmit()
1010 gdesc->txd.hlen + ctx.mss - 1) / ctx.mss); in vmxnet3_tq_xmit()
1013 gdesc->txd.hlen = ctx.eth_ip_hdr_size; in vmxnet3_tq_xmit()
1014 gdesc->txd.om = VMXNET3_OM_CSUM; in vmxnet3_tq_xmit()
1015 gdesc->txd.msscof = ctx.eth_ip_hdr_size + in vmxnet3_tq_xmit()
1018 gdesc->txd.om = 0; in vmxnet3_tq_xmit()
1019 gdesc->txd.msscof = 0; in vmxnet3_tq_xmit()
1025 gdesc->txd.ti = 1; in vmxnet3_tq_xmit()
1026 gdesc->txd.tci = vlan_tx_tag_get(skb); in vmxnet3_tq_xmit()
1030 gdesc->dword[2] = cpu_to_le32(le32_to_cpu(gdesc->dword[2]) ^ in vmxnet3_tq_xmit()
1036 vmxnet3_TxDescToLe((struct Vmxnet3_TxDesc *)gdesc, in vmxnet3_tq_xmit()
1038 gdesc = ctx.sop_txd; in vmxnet3_tq_xmit()
1043 tq->tx_ring.base), le64_to_cpu(gdesc->txd.addr), in vmxnet3_tq_xmit()
1044 le32_to_cpu(gdesc->dword[2]), le32_to_cpu(gdesc->dword[3])); in vmxnet3_tq_xmit()
1084 union Vmxnet3_GenericDesc *gdesc) in vmxnet3_rx_csum() argument
1086 if (!gdesc->rcd.cnc && adapter->rxcsum) { in vmxnet3_rx_csum()
1088 if ((le32_to_cpu(gdesc->dword[3]) & VMXNET3_RCD_CSUM_OK) == in vmxnet3_rx_csum()
1091 BUG_ON(!(gdesc->rcd.tcp || gdesc->rcd.udp)); in vmxnet3_rx_csum()
1092 BUG_ON(!(gdesc->rcd.v4 || gdesc->rcd.v6)); in vmxnet3_rx_csum()
1093 BUG_ON(gdesc->rcd.frg); in vmxnet3_rx_csum()
1095 if (gdesc->rcd.csum) { in vmxnet3_rx_csum()
1096 skb->csum = htons(gdesc->rcd.csum); in vmxnet3_rx_csum()