Lines Matching refs:hop
27 int bit = ring->hop; in ring_interrupt_index()
57 RING_TYPE(ring), ring->hop, in ring_interrupt_active()
85 io += ring->hop * 16; in ring_desc_base()
93 io += ring->hop * 32; in ring_options_base()
195 RING_TYPE(ring), ring->hop, in ring_work()
207 RING_TYPE(ring), ring->hop, in ring_work()
241 static struct tb_ring *ring_alloc(struct tb_nhi *nhi, u32 hop, int size, in ring_alloc() argument
246 transmit ? "TX" : "RX", hop, size); in ring_alloc()
249 if (hop >= nhi->hop_count) { in ring_alloc()
250 dev_WARN(&nhi->pdev->dev, "invalid hop: %d\n", hop); in ring_alloc()
253 if (transmit && nhi->tx_rings[hop]) { in ring_alloc()
254 dev_WARN(&nhi->pdev->dev, "TX hop %d already allocated\n", hop); in ring_alloc()
256 } else if (!transmit && nhi->rx_rings[hop]) { in ring_alloc()
257 dev_WARN(&nhi->pdev->dev, "RX hop %d already allocated\n", hop); in ring_alloc()
270 ring->hop = hop; in ring_alloc()
283 nhi->tx_rings[hop] = ring; in ring_alloc()
285 nhi->rx_rings[hop] = ring; in ring_alloc()
297 struct tb_ring *ring_alloc_tx(struct tb_nhi *nhi, int hop, int size) in ring_alloc_tx() argument
299 return ring_alloc(nhi, hop, size, true); in ring_alloc_tx()
302 struct tb_ring *ring_alloc_rx(struct tb_nhi *nhi, int hop, int size) in ring_alloc_rx() argument
304 return ring_alloc(nhi, hop, size, false); in ring_alloc_rx()
321 RING_TYPE(ring), ring->hop); in ring_start()
361 RING_TYPE(ring), ring->hop); in ring_stop()
364 RING_TYPE(ring), ring->hop); in ring_stop()
406 ring->nhi->tx_rings[ring->hop] = NULL; in ring_free()
408 ring->nhi->rx_rings[ring->hop] = NULL; in ring_free()
412 RING_TYPE(ring), ring->hop); in ring_free()
426 ring->hop); in ring_free()
444 int hop = -1; in nhi_interrupt_work() local
460 if (++hop == nhi->hop_count) { in nhi_interrupt_work()
461 hop = 0; in nhi_interrupt_work()
469 hop); in nhi_interrupt_work()
473 ring = nhi->tx_rings[hop]; in nhi_interrupt_work()
475 ring = nhi->rx_rings[hop]; in nhi_interrupt_work()
480 hop); in nhi_interrupt_work()