Home
last modified time | relevance | path

Searched refs:lastRead (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/3com/
Dtyphoon.c540 typhoon_num_free(int lastWrite, int lastRead, int ringSize) in typhoon_num_free() argument
546 lastRead /= sizeof(struct cmd_desc); in typhoon_num_free()
547 return (ringSize + lastRead - lastWrite - 1) % ringSize; in typhoon_num_free()
572 return typhoon_num_free(ring->lastWrite, ring->lastRead, TXLO_ENTRIES); in typhoon_num_free_tx()
1265 tp->txLoRing.lastRead = 0; in typhoon_init_rings()
1266 tp->txHiRing.lastRead = 0; in typhoon_init_rings()
1510 u32 lastRead = txRing->lastRead; in typhoon_clean_tx() local
1516 while(lastRead != le32_to_cpu(*index)) { in typhoon_clean_tx()
1517 tx = (struct tx_desc *) (txRing->ringBase + lastRead); in typhoon_clean_tx()
1536 typhoon_inc_tx_index(&lastRead, 1); in typhoon_clean_tx()
[all …]
Dtyphoon.h43 u32 lastRead; member