Lines Matching full:indexes
243 struct typhoon_indexes indexes __3xp_aligned;
268 struct typhoon_indexes *indexes; member
483 struct typhoon_indexes *indexes = tp->indexes; in typhoon_process_response() local
490 cleared = le32_to_cpu(indexes->respCleared); in typhoon_process_response()
491 ready = le32_to_cpu(indexes->respReady); in typhoon_process_response()
533 indexes->respCleared = cpu_to_le32(cleared); in typhoon_process_response()
553 int cmdCleared = le32_to_cpu(tp->indexes->cmdCleared); in typhoon_num_free_cmd()
561 int respReady = le32_to_cpu(tp->indexes->respReady); in typhoon_num_free_resp()
562 int respCleared = le32_to_cpu(tp->indexes->respCleared); in typhoon_num_free_resp()
578 struct typhoon_indexes *indexes = tp->indexes; in typhoon_issue_command() local
652 if (indexes->respCleared != indexes->respReady) in typhoon_issue_command()
681 if (indexes->respCleared != indexes->respReady) in typhoon_issue_command()
1191 shared_dma = tp->shared_dma + shared_offset(indexes); in typhoon_init_interface()
1226 tp->indexes = &tp->shared->indexes; in typhoon_init_interface()
1254 memset(tp->indexes, 0, sizeof(struct typhoon_indexes)); in typhoon_init_rings()
1560 struct typhoon_indexes *indexes = tp->indexes; in typhoon_recycle_rx_skb() local
1566 le32_to_cpu(indexes->rxBuffCleared)) { in typhoon_recycle_rx_skb()
1581 indexes->rxBuffReady = cpu_to_le32(ring->lastWrite); in typhoon_recycle_rx_skb()
1587 struct typhoon_indexes *indexes = tp->indexes; in typhoon_alloc_rx_skb() local
1597 le32_to_cpu(indexes->rxBuffCleared)) in typhoon_alloc_rx_skb()
1626 indexes->rxBuffReady = cpu_to_le32(ring->lastWrite); in typhoon_alloc_rx_skb()
1724 struct typhoon_indexes *indexes = tp->indexes; in typhoon_poll() local
1728 if (!tp->awaiting_resp && indexes->respReady != indexes->respCleared) in typhoon_poll()
1731 if (le32_to_cpu(indexes->txLoCleared) != tp->txLoRing.lastRead) in typhoon_poll()
1732 typhoon_tx_complete(tp, &tp->txLoRing, &indexes->txLoCleared); in typhoon_poll()
1736 if (indexes->rxHiCleared != indexes->rxHiReady) { in typhoon_poll()
1737 work_done += typhoon_rx(tp, &tp->rxHiRing, &indexes->rxHiReady, in typhoon_poll()
1738 &indexes->rxHiCleared, budget); in typhoon_poll()
1741 if (indexes->rxLoCleared != indexes->rxLoReady) { in typhoon_poll()
1742 work_done += typhoon_rx(tp, &tp->rxLoRing, &indexes->rxLoReady, in typhoon_poll()
1743 &indexes->rxLoCleared, budget - work_done); in typhoon_poll()
1746 if (le32_to_cpu(indexes->rxBuffCleared) == tp->rxBuffRing.lastWrite) { in typhoon_poll()
1962 struct typhoon_indexes *indexes = tp->indexes; in typhoon_stop_runtime() local
1981 if (indexes->txLoCleared == cpu_to_le32(txLo->lastWrite)) in typhoon_stop_runtime()
2012 if (indexes->txLoCleared != cpu_to_le32(txLo->lastWrite)) { in typhoon_stop_runtime()
2013 indexes->txLoCleared = cpu_to_le32(txLo->lastWrite); in typhoon_stop_runtime()
2014 typhoon_clean_tx(tp, &tp->txLoRing, &indexes->txLoCleared); in typhoon_stop_runtime()
2031 typhoon_clean_tx(tp, &tp->txLoRing, &tp->indexes->txLoCleared); in typhoon_tx_timeout()