tx_ring_desc
struct tx_ring_desc *tx_ring_desc;
tx_ring_desc = tx_ring->wq_desc;
tx_ring_desc += mac_rsp->tid;
if (tx_ring_desc->tx_type == USE_DMA) {
for (j = 0; j < tx_ring_desc->tx_dma_handle_used; j++) {
tx_ring_desc->tx_dma_handle[j]);
tx_ring_desc->tx_dma_handle_used = 0;
if (tx_ring_desc->mp != NULL) {
freemsg(tx_ring_desc->mp);
tx_ring_desc->mp = NULL;
tx_ring->obytes += tx_ring_desc->tx_bytes;
struct tx_ring_desc *tx_ring_desc = tx_ring->wq_desc;
tx_ring_desc->index = i;
tx_ring_desc->queue_entry = mac_iocb_ptr;
tx_ring_desc++;
struct tx_ring_desc *tx_ring_desc;
tx_ring_desc = tx_ring->wq_desc;
for (i = 0; i < tx_ring->wq_len; i++, tx_ring_desc++) {
if (tx_ring_desc->tx_dma_handle[j]) {
&(tx_ring_desc->tx_dma_handle[j]));
tx_ring_desc->tx_dma_handle[j] = NULL;
if (tx_ring_desc->oal != NULL) {
tx_ring_desc->oal_dma_addr = 0;
tx_ring_desc->oal = NULL;
tx_ring_desc->copy_buffer = NULL;
tx_ring_desc->copy_buffer_dma_addr = 0;
ql_free_phys(&tx_ring_desc->oal_dma.dma_handle,
&tx_ring_desc->oal_dma.acc_handle);
tx_ring->wq_len * sizeof (struct tx_ring_desc));
struct tx_ring_desc *tx_ring_desc;
kmem_zalloc(tx_ring->wq_len * sizeof (struct tx_ring_desc),
tx_ring_desc = tx_ring->wq_desc;
for (i = 0; i < tx_ring->wq_len; i++, tx_ring_desc++) {
&tx_ring_desc->oal_dma.dma_handle,
&tx_ring_desc->oal_dma.acc_handle,
(caddr_t *)&tx_ring_desc->oal_dma.vaddr,
bzero(&tx_ring_desc->oal_dma,
sizeof (tx_ring_desc->oal_dma));
tx_ring_desc->oal = tx_ring_desc->oal_dma.vaddr;
tx_ring_desc->oal_dma_addr = dma_cookie.dmac_laddress;
tx_ring_desc->copy_buffer =
(caddr_t)((uint8_t *)tx_ring_desc->oal
tx_ring_desc->copy_buffer_dma_addr =
(tx_ring_desc->oal_dma_addr
0, &tx_ring_desc->tx_dma_handle[j])
tx_ring_desc->tx_dma_handle[j] = NULL;
&tx_ring_desc->oal_dma.dma_handle,
&tx_ring_desc->oal_dma.acc_handle);
struct tx_ring_desc *tx_cb;
struct tx_ring_desc *tx_ring_desc;
tx_ring_desc = tx_ring->wq_desc;
for (i = 0; i < tx_ring->wq_len; i++, tx_ring_desc++) {
for (j = 0; j < tx_ring_desc->tx_dma_handle_used; j++) {
if (tx_ring_desc->tx_dma_handle[j]) {
tx_ring_desc->tx_dma_handle[j]);
tx_ring_desc->tx_dma_handle_used = 0;
struct tx_ring_desc *wq_desc;