Lines Matching defs:hop

55 	int bit = ring->hop;
101 index = ring->hop;
103 index = ring->hop + ring->nhi->hop_count;
148 RING_TYPE(ring), ring->hop,
180 io += ring->hop * 16;
188 io += ring->hop * 32;
520 if (ring->hop < 0) {
530 ring->hop = i;
535 ring->hop = i;
542 if (ring->hop > 0 && ring->hop < start_hop) {
543 dev_warn(&nhi->pdev->dev, "invalid hop: %d\n", ring->hop);
547 if (ring->hop < 0 || ring->hop >= nhi->hop_count) {
548 dev_warn(&nhi->pdev->dev, "invalid hop: %d\n", ring->hop);
552 if (ring->is_tx && nhi->tx_rings[ring->hop]) {
553 dev_warn(&nhi->pdev->dev, "TX hop %d already allocated\n",
554 ring->hop);
558 if (!ring->is_tx && nhi->rx_rings[ring->hop]) {
559 dev_warn(&nhi->pdev->dev, "RX hop %d already allocated\n",
560 ring->hop);
566 nhi->tx_rings[ring->hop] = ring;
568 nhi->rx_rings[ring->hop] = ring;
576 static struct tb_ring *tb_ring_alloc(struct tb_nhi *nhi, u32 hop, int size,
585 transmit ? "TX" : "RX", hop, size);
597 ring->hop = hop;
639 * @hop: HopID (ring) to allocate
643 struct tb_ring *tb_ring_alloc_tx(struct tb_nhi *nhi, int hop, int size,
646 return tb_ring_alloc(nhi, hop, size, true, flags, 0, 0, 0, NULL, NULL);
653 * @hop: HopID (ring) to allocate. Pass %-1 for automatic allocation.
664 struct tb_ring *tb_ring_alloc_rx(struct tb_nhi *nhi, int hop, int size,
669 return tb_ring_alloc(nhi, hop, size, false, flags, e2e_tx_hop, sof_mask, eof_mask,
694 RING_TYPE(ring), ring->hop);
724 u32 hop;
726 hop = ring->e2e_tx_hop << REG_RX_OPTIONS_E2E_HOP_SHIFT;
727 hop &= REG_RX_OPTIONS_E2E_HOP_MASK;
728 flags |= hop;
732 RING_TYPE(ring), ring->hop, ring->e2e_tx_hop);
735 RING_TYPE(ring), ring->hop);
769 RING_TYPE(ring), ring->hop);
774 RING_TYPE(ring), ring->hop);
817 ring->nhi->tx_rings[ring->hop] = NULL;
819 ring->nhi->rx_rings[ring->hop] = NULL;
823 RING_TYPE(ring), ring->hop);
838 ring->hop);
910 int hop = -1;
926 if (++hop == nhi->hop_count) {
927 hop = 0;
935 hop);
939 ring = nhi->tx_rings[hop];
941 ring = nhi->rx_rings[hop];
946 hop);