Lines Matching refs:txc
1387 struct vmxnet3_comp_ring *txc; in vmxnet3_alloc_txq_data() local
1397 txc = &txq->vxtxq_comp_ring; in vmxnet3_alloc_txq_data()
1411 error = vmxnet3_dma_malloc(sc, compsz, 512, &txc->vxcr_dma); in vmxnet3_alloc_txq_data()
1417 txc->vxcr_u.txcd = in vmxnet3_alloc_txq_data()
1418 (struct vmxnet3_txcompdesc *) txc->vxcr_dma.dma_vaddr; in vmxnet3_alloc_txq_data()
1440 struct vmxnet3_comp_ring *txc; in vmxnet3_free_txq_data() local
1448 txc = &txq->vxtxq_comp_ring; in vmxnet3_free_txq_data()
1459 if (txc->vxcr_u.txcd != NULL) { in vmxnet3_free_txq_data()
1460 vmxnet3_dma_free(sc, &txc->vxcr_dma); in vmxnet3_free_txq_data()
1461 txc->vxcr_u.txcd = NULL; in vmxnet3_free_txq_data()
2122 struct vmxnet3_comp_ring *txc; in vmxnet3_txq_eof() local
2132 txc = &txq->vxtxq_comp_ring; in vmxnet3_txq_eof()
2144 txcd = &txc->vxcr_u.txcd[txc->vxcr_next]; in vmxnet3_txq_eof()
2145 if (txcd->gen != txc->vxcr_gen) in vmxnet3_txq_eof()
2149 if (++txc->vxcr_next == txc->vxcr_ndesc) { in vmxnet3_txq_eof()
2150 txc->vxcr_next = 0; in vmxnet3_txq_eof()
2151 txc->vxcr_gen ^= 1; in vmxnet3_txq_eof()
2802 struct vmxnet3_comp_ring *txc; in vmxnet3_txinit() local
2811 txc = &txq->vxtxq_comp_ring; in vmxnet3_txinit()
2812 txc->vxcr_next = 0; in vmxnet3_txinit()
2813 txc->vxcr_gen = VMXNET3_INIT_GEN; in vmxnet3_txinit()
2814 memset(txc->vxcr_u.txcd, 0, in vmxnet3_txinit()
2815 txc->vxcr_ndesc * sizeof(struct vmxnet3_txcompdesc)); in vmxnet3_txinit()