Lines Matching refs:lastRead
534 typhoon_num_free(int lastWrite, int lastRead, int ringSize) in typhoon_num_free() argument
540 lastRead /= sizeof(struct cmd_desc); in typhoon_num_free()
541 return (ringSize + lastRead - lastWrite - 1) % ringSize; in typhoon_num_free()
566 return typhoon_num_free(ring->lastWrite, ring->lastRead, TXLO_ENTRIES); in typhoon_num_free_tx()
1261 tp->txLoRing.lastRead = 0; in typhoon_init_rings()
1262 tp->txHiRing.lastRead = 0; in typhoon_init_rings()
1505 u32 lastRead = txRing->lastRead; in typhoon_clean_tx() local
1511 while (lastRead != le32_to_cpu(*index)) { in typhoon_clean_tx()
1512 tx = (struct tx_desc *) (txRing->ringBase + lastRead); in typhoon_clean_tx()
1531 typhoon_inc_tx_index(&lastRead, 1); in typhoon_clean_tx()
1534 return lastRead; in typhoon_clean_tx()
1541 u32 lastRead; in typhoon_tx_complete() local
1545 lastRead = typhoon_clean_tx(tp, txRing, index); in typhoon_tx_complete()
1547 lastRead, TXLO_ENTRIES) > (numDesc + 2)) in typhoon_tx_complete()
1550 txRing->lastRead = lastRead; in typhoon_tx_complete()
1728 if (le32_to_cpu(indexes->txLoCleared) != tp->txLoRing.lastRead) in typhoon_poll()