Lines Matching refs:dirty_tx
466 atomic_t dirty_tx;
1208 atomic_set (&tp->dirty_tx, 0);
1267 atomic_set (&tp->dirty_tx, 0);
1311 atomic_read (&tp->dirty_tx));
1315 i == atomic_read (&tp->dirty_tx) % NUM_TX_DESC ?
1355 if ((atomic_read (&tp->cur_tx) - atomic_read (&tp->dirty_tx)) >= NUM_TX_DESC)
1369 int cur_tx, dirty_tx, tx_left;
1375 dirty_tx = atomic_read (&tp->dirty_tx);
1378 tx_left = cur_tx - dirty_tx;
1380 int entry = dirty_tx % NUM_TX_DESC;
1424 dirty_tx++;
1425 if (dirty_tx < 0) { /* handle signed int overflow */
1427 dirty_tx = cur_tx - tx_left + 1;
1433 tx_left = cur_tx - dirty_tx;
1438 if (atomic_read (&tp->cur_tx) - dirty_tx > NUM_TX_DESC) {
1441 dev->name, dirty_tx, atomic_read (&tp->cur_tx));
1442 dirty_tx += NUM_TX_DESC;
1446 atomic_set (&tp->dirty_tx, dirty_tx);