Lines Matching defs:txq

613   amb_txq * txq = &dev->txq;
621 spin_lock_irqsave (&txq->lock, flags);
623 if (txq->pending < txq->maximum) {
624 PRINTD (DBG_TX, "TX in slot %p", txq->in.ptr);
626 *txq->in.ptr = *tx;
627 txq->pending++;
628 txq->in.ptr = NEXTQ (txq->in.ptr, txq->in.start, txq->in.limit);
630 wr_mem (dev, offsetof(amb_mem, mb.adapter.tx_address), virt_to_bus (txq->in.ptr));
633 if (txq->pending > txq->high)
634 txq->high = txq->pending;
635 spin_unlock_irqrestore (&txq->lock, flags);
638 txq->filled++;
639 spin_unlock_irqrestore (&txq->lock, flags);
645 amb_txq * txq = &dev->txq;
650 spin_lock_irqsave (&txq->lock, flags);
652 if (txq->pending && txq->out.ptr->handle) {
654 tx_complete (dev, txq->out.ptr);
656 txq->out.ptr->handle = 0;
658 txq->pending--;
659 txq->out.ptr = NEXTQ (txq->out.ptr, txq->out.start, txq->out.limit);
661 spin_unlock_irqrestore (&txq->lock, flags);
665 spin_unlock_irqrestore (&txq->lock, flags);
1435 amb_txq * t = &dev->txq;
1549 amb_txq * txq = &dev->txq;
1551 txq->pending = 0;
1552 txq->high = 0;
1553 txq->filled = 0;
1554 txq->maximum = txs - 1;
1556 txq->in.start = in;
1557 txq->in.ptr = in;
1558 txq->in.limit = in + txs;
1560 memory = txq->in.limit;
1563 txq->out.start = out;
1564 txq->out.ptr = out;
1565 txq->out.limit = out + txs;
1567 memory = txq->out.limit;
1614 // includes txq.in, txq.out, rxq[].in and rxq[].out
1981 a.tx_start = bus_addr (dev->txq.in.start);
1982 a.tx_end = bus_addr (dev->txq.in.limit);
1983 a.txcom_start = bus_addr (dev->txq.out.start);
1984 a.txcom_end = bus_addr (dev->txq.out.limit);
2153 spin_lock_init (&dev->txq.lock);