Lines Matching refs:ring
55 #define check_for_tx_hang(ring) \
56 test_bit(__FM10K_TX_DETECT_HANG, (ring)->state)
57 #define set_check_for_tx_hang(ring) \
58 set_bit(__FM10K_TX_DETECT_HANG, (ring)->state)
59 #define clear_check_for_tx_hang(ring) \
60 clear_bit(__FM10K_TX_DETECT_HANG, (ring)->state)
105 struct net_device *netdev; /* netdev ring belongs to */
108 void *desc; /* descriptor ring memory */
115 dma_addr_t dma; /* phys. address of descriptor ring */
121 * associated with this ring, which is
146 struct fm10k_ring *ring; /* pointer to linked list of rings */
167 static inline struct netdev_queue *txring_txq(const struct fm10k_ring *ring)
169 return &ring->netdev->_tx[ring->queue_index];
172 /* iterator for handling rings in ring container */
174 for (pos = &(head).ring[(head).count]; (--pos) >= (head).ring;)
201 struct fm10k_ring ring[] ____cacheline_internodealigned_in_smp;
213 u16 mask; /* Mask used for feature to ring mapping */
416 static inline u16 fm10k_desc_unused(struct fm10k_ring *ring)
418 s16 unused = ring->next_to_clean - ring->next_to_use - 1;
420 return likely(unused < 0) ? unused + ring->count : unused;
479 u64 fm10k_get_tx_pending(struct fm10k_ring *ring, bool in_sw);