Lines Matching refs:tcb
660 tx_control_block_t *tcb; in ixgbe_alloc_tcb_lists() local
717 tcb = tx_ring->tcb_area; in ixgbe_alloc_tcb_lists()
718 for (i = 0; i < tx_ring->free_list_size; i++, tcb++) { in ixgbe_alloc_tcb_lists()
719 ASSERT(tcb != NULL); in ixgbe_alloc_tcb_lists()
721 tx_ring->free_list[i] = tcb; in ixgbe_alloc_tcb_lists()
731 &tcb->tx_dma_handle); in ixgbe_alloc_tcb_lists()
733 tcb->tx_dma_handle = NULL; in ixgbe_alloc_tcb_lists()
743 tx_buf = &tcb->tx_buf; in ixgbe_alloc_tcb_lists()
749 ASSERT(tcb->tx_dma_handle != NULL); in ixgbe_alloc_tcb_lists()
750 ddi_dma_free_handle(&tcb->tx_dma_handle); in ixgbe_alloc_tcb_lists()
751 tcb->tx_dma_handle = NULL; in ixgbe_alloc_tcb_lists()
756 tcb->last_index = MAX_TX_RING_SIZE; in ixgbe_alloc_tcb_lists()
775 tx_control_block_t *tcb; in ixgbe_free_tcb_lists() local
777 tcb = tx_ring->tcb_area; in ixgbe_free_tcb_lists()
778 if (tcb == NULL) in ixgbe_free_tcb_lists()
781 for (i = 0; i < tx_ring->free_list_size; i++, tcb++) { in ixgbe_free_tcb_lists()
782 ASSERT(tcb != NULL); in ixgbe_free_tcb_lists()
785 if (tcb->tx_dma_handle != NULL) { in ixgbe_free_tcb_lists()
786 ddi_dma_free_handle(&tcb->tx_dma_handle); in ixgbe_free_tcb_lists()
787 tcb->tx_dma_handle = NULL; in ixgbe_free_tcb_lists()
796 ixgbe_free_dma_buffer(&tcb->tx_buf); in ixgbe_free_tcb_lists()