Lines Matching refs:tc
90 static void ixgbe_get_first_reg_idx(struct ixgbe_adapter *adapter, u8 tc, in ixgbe_get_first_reg_idx() argument
102 *tx = tc << 2; /* 0, 4, 8, 12, 16, 20, 24, 28 */ in ixgbe_get_first_reg_idx()
103 *rx = tc << 3; /* 0, 8, 16, 24, 32, 40, 48, 56 */ in ixgbe_get_first_reg_idx()
116 *rx = tc << 4; in ixgbe_get_first_reg_idx()
117 if (tc < 3) in ixgbe_get_first_reg_idx()
118 *tx = tc << 5; /* 0, 32, 64 */ in ixgbe_get_first_reg_idx()
119 else if (tc < 5) in ixgbe_get_first_reg_idx()
120 *tx = (tc + 2) << 4; /* 80, 96 */ in ixgbe_get_first_reg_idx()
122 *tx = (tc + 8) << 3; /* 104, 112, 120 */ in ixgbe_get_first_reg_idx()
129 *rx = tc << 5; in ixgbe_get_first_reg_idx()
130 if (tc < 2) in ixgbe_get_first_reg_idx()
131 *tx = tc << 6; /* 0, 64 */ in ixgbe_get_first_reg_idx()
133 *tx = (tc + 4) << 4; /* 96, 112 */ in ixgbe_get_first_reg_idx()
151 int tc, offset, rss_i, i; in ixgbe_cache_ring_dcb() local
159 for (tc = 0, offset = 0; tc < num_tcs; tc++, offset += rss_i) { in ixgbe_cache_ring_dcb()
160 ixgbe_get_first_reg_idx(adapter, tc, &tx_idx, &rx_idx); in ixgbe_cache_ring_dcb()
165 adapter->tx_ring[offset + i]->dcb_tc = tc; in ixgbe_cache_ring_dcb()
166 adapter->rx_ring[offset + i]->dcb_tc = tc; in ixgbe_cache_ring_dcb()
467 u8 tc = ixgbe_fcoe_get_tc(adapter); in ixgbe_set_dcb_queues() local
471 f->offset = rss_i * tc; in ixgbe_set_dcb_queues()