Lines Matching defs:txs_write_ptr
176 atomic_set(&adapter->txs_write_ptr, 0);
466 u32 txs_write_ptr;
472 txs_write_ptr = (u32) atomic_read(&adapter->txs_write_ptr);
473 txs = adapter->txs_ring + txs_write_ptr;
480 if (++txs_write_ptr == adapter->txs_ring_size)
481 txs_write_ptr = 0;
482 atomic_set(&adapter->txs_write_ptr, (int)txs_write_ptr);
498 txs = adapter->txs_ring + txs_write_ptr;
502 if (txs_write_ptr < 2) {
505 txs_write_ptr - 2);
507 txs = adapter->txs_ring + (txs_write_ptr - 2);
805 u32 txs_write_ptr = (u32) atomic_read(&adapter->txs_write_ptr);
807 return (adapter->txs_next_clear >= txs_write_ptr) ?
809 txs_write_ptr - 1) :
810 (int) (txs_write_ptr - adapter->txs_next_clear - 1);