Lines Matching refs:next_to_use
726 tx_ring->next_to_use = 0;
1532 u16 next_to_use = 0;
1536 next_to_use = tx_ring->next_to_use;
1538 return (u16)(next_to_clean > next_to_use) ?
1539 (next_to_clean - next_to_use - 1) :
1540 (tx_ring->count + next_to_clean - next_to_use - 1);
1551 u16 next_to_use = 0;
1553 next_to_use = tx_ring->next_to_use;
1554 if (++tx_ring->next_to_use == tx_ring->count)
1555 tx_ring->next_to_use = 0;
1557 memset(&tx_ring->desc[next_to_use], 0, sizeof(struct atl1e_tpd_desc));
1558 return (struct atl1e_tpd_desc *)&tx_ring->desc[next_to_use];
1784 AT_WRITE_REG(&adapter->hw, REG_MB_TPD_PROD_IDX, tx_ring->next_to_use);